In this podcast, Michael Stiefel spoke to Zhou Yu about using dynamic simulations to evaluate AI agents. One particular focus was conversational agents where actions depend on prior responses, and the non-deterministic nation of LLMs means you cannot rely on static, reference-based benchmarks.You need to test them using dynamic simulations that incorporate different personas, goals, and corner cases. You can simulate how conversations shift based on moods, preferences, accents, or environmental conditions such as factory background noise. Rather than relying on simply binary pass or fail, the rule based task verifiers can measure whether the task was completed as well as threshold metrics for cost, efficiency, safety, and compliance.
Simulations can be used during the entire software lifecycle. Product managers can use them for prototyping and design. Engineers can use them for testing in CI/CD pipelines. They can also be used to test production for model drift or failure of third party tools. They can also be used to test compliance with the laws in different regions. Simulations can also be used with synthetic data to fine-tune models.
Key Takeaways
- To evaluate AI agents you cannot rely on static, reference-based benchmarks because the systems are not deterministic, and often the results depend on prior responses. Testing requires using dynamic simulations that can incorporate personas, goals, and corner cases.
- Using simulations for testing applies to the entire software lifecycle. Product managers can use it for designing. Engineers can use it for unit and regression tests. Before deployment you can do stress testing. You can use it to test production for model drift or failure of third party tools.
- Reliability Engineering for AI systems requires the combination of skills from machine learning, systems reliability, and traditional software engineering. Human subject matter experts refine simulation scenarios based on production data, design documents, or even social media.
- Simulation of conversational agents can evaluate multiple parts of the human - software interaction. For example, it can consider the varying interaction possibilities stemming from prior responses, and the way they might change based on human moods, as well as varying goals and preferences. Another example is simulation of corner cases. It can also take into consideration environmental considerations such as factory noise. It can verify whether a task was completed alongside metrics for cost, efficiency, safety, and compliance. Legal compliance in different regions can also be verified.
- Detailed logging of agent statements and tool calls also provides an audit trail for regulatory compliance and failure analysis.
Subscribe on:
Transcript
Michael Stiefel: Welcome to the Architects Podcast where we discuss what it means to be an architect and how architects actually do their job. Today's guest is Zhou Yu, who is a computer science professor at Columbia University and co-founder of Arklex.ai. She obtained her PhD from Carnegie Mellon University. Dr. Yu was named one of the Forbes 30 Under 30 and has extensive research and product experience in conversational agents, computer user agents and LLM model training. Her company enables automated quality assurance testing for AI agents.
It's great to have you here on the podcast. And I'd like to start out by asking you, how did you get interested in conversational agents and simulation? I mean, it's not something you decided one morning when you woke up and decided to do it.
Zhou Yu: I have been working on AI for quite a long time. So I started my PhD in 2011 at Carnegie Mellon. So back then I was in the language technology institute. There are many professors working on natural language processing, speech-related questions. So I was always very interested about interaction. It's not just speech recognition or processing text, but how people interact with machines. To me, that was the ultimate AI, the moment a human can talk to a system or entity the same way that this person is talking to another human being in order to collaborate on various tasks or even negotiate, persuade each other. So to me, that was the ultimate goal of artificial intelligence.
So I was really interested in working on this interactive AI. So my PhD is focused on that. We worked a lot on multimodal conversational agents. How can we do better time taking? How can we, in real time, have agents to think and speak at the same time and various things like that?
The Importance of Simulation [02:33]
Michael Stiefel: So I guess the best way to start out talking about this is what's the importance of this simulation? I mean, to me, one of the important things is this simulation, in addition to testing, helps architects and designers actually to understand what their system is really doing because that's almost impossible to know otherwise.
Zhou Yu: Yes. To me, coming from a research background, the ultimate goal of building a new technology or a new research project is on how you evaluate it. Is there a standard way that you can repeatedly get the same answer? For example, the robustness matters and the standardized testing or evaluation matters. It's more, to me, the very fundamental base of a technology development is about evaluation.
And then if you think about what I have been doing on conversational agents, evaluation has always been one piece of my major research direction. If you think about traditional software testing or website testing, a lot of times there are people are using a manual way to test it or there are automated tooling to support this, like how do you roll out different pages or websites and stuff like that. But the hard part is actually how do you make sure there is a good coverage of various behaviors?
Multi-Turn Agents and Moving Targets [04:03]
And then most importantly, if you think about agents, they're not single turn agents. They're multi-turn, multi-hub, multi-tool calling, long horizon traces kind of programs. Let's just take a simple application of chat bots. Chatbots, in some sense, why do we call them multi-turn, is if you say something, the agent says something back. Based on what the agent says, your next user's input is going to be different. So making the evaluation really difficult, it's like a moving target. If you change your system, you have to redo the evaluation. You can't rely on a static benchmark of what we call reference-based evaluation. This is the question, this is a gold data standard answer that you always can reference towards it because that reference will change based on how your agent changes because a user might ask a different question next time or maybe a user would ask for a clarification at this point.
Simulating User Personas [05:09]
And then the hard part is also that different users might interact with the agent slightly differently because currently natural language is an input, which is exponential in terms of complexity and diversity. If you think about traditional software as this is a button, you press it and there are two actions, they can do swipe left or swipe right. So that makes the testing infinitely hard in various ways.
So that's why we started looking into it a long time ago, is how can we actually use agents to simulate user behaviors? So now you're not relying on standard static benchmarks, you're relying on standard personas or scenarios that you're testing and then you standardize these scenarios and then you build the app based on the standard golden CI/CD pipeline we built, which is these virtual scenarios with human profiles, different goals. And then you're tested consistently on these scenarios that have all the corner cases, has the diversity of the user dimensions that you want to simulate real user study testing where you have to recruit all these people, have them manually tested, now using AI to automate this.
Testing Non-Deterministic Systems [06:29]
Michael Stiefel: From your response, multiple questions come to mind, so take them one by one. One of the first things that you said that struck me was there is a dependency on what came before. One of the most difficult things I think for architects, engineers, SREs, everybody, to wrap their head around is that these are non-deterministic systems, which we've never encountered anything like this before. Because in the past, even if there were more than one or two answers, there were some number of answers and you could check the input to know if this is right, is this wrong. But here, just forget about dialects and accents and all the differences that you can. The system itself is non-deterministic. So how do you build a test? What does a test look like and how does that fit into the CI/CD pipeline?
Goal Completion and Task Verifiers [07:33]
Zhou Yu: That's a really good question because if you think about these current agents, what makes it amazing is they're going to come up with plans in real time. And every time the plan is different, so you can't just look at it turn by turn, what is it doing? Give them all these kinds of shackles or guidelines. It's really about you have to do integrated tests, which means that did this agent ultimately complete the goal that the user wanted to complete? So that's why we use a general term called a goal completion. Once the interaction is finished, has the user actually completed this goal while we give them as sort of an original goal.
So if you think about the testing, we give different users with different profiles, different goals. And we test it to see, sometimes we call it a task. We give it a task and then we look to see if the agent was able to complete the task. Sometimes we also call it verifications, verifiers, task verifiers. And the task verifier has to be correlated with the task. And then for an individual task, the verifier might slightly be different. Some of them can be rule-based. Some of them could be LLM judges. So some of them maybe have various different verifications we need to run in terms of safety, in terms of alignments. So that is the important part.
Verifying Information and Corner Cases [08:57]
Michael Stiefel: When you say completion, I can think of two broad scenarios. One is completion of, "I want to buy a ticket to a concert. I either get the ticket or I don't get the ticket". So it seems easy to define, but if I come and ask for information, how in that scenario do you verify that they got this information? Because if the chat abruptly stops, it may be because the user got frustrated, not because they got the answer they wanted.
Zhou Yu: Yes, that's a really valid thing that people have been doing. So that's why even more important is to be able to simulate different scenarios. So for example, when we are setting up these kinds of simulated users, we give it a specific goal and then we try to verify that goal while the interaction is completed. This user's goal might just be, I wanted to get this information. Once you get the information, you can leave, right? And then some of them are just you're going to be a difficult user, you're going to abandon them in the middle and then come back with a different goal. So then you kind of know what you're dealing with at the end of the day that you can evaluate based on the goal of the user. So that's the great part about simulator users.
If you look at production data, you don't know the real intent behind the user, then it's much more difficult. Of course, when we are doing these simulated users, we are also extracting scenarios based on production data so that we have a diversity of that that could cover better ranges of real user behavior.
So your agent in some way pressure tests for various different things. We have seen various corner cases that real users do. People ask repeated questions, not paying attention. There was some glitch on their keyboard. They keep typing these wrong words a couple of times. So all this is our pressure test or variations we need to capture. And then as you said it before, a different accent or different ways of speaking, experienced users and inexperienced users may use different acronyms describing things in various ways. So I think the diversity really matters when it comes to these natural language input based systems.
Designing, Running, Maintaining Simulation Tests [11:18]
Michael Stiefel: It sounds like there's a lot of work for humans still to do because you have to define these personas. You have to understand what the system is trying to accomplish. We haven't got to the point yet where we can have agents design these tests yet. And so it's still certainly human in the loop situation.
So if that's the case, I know this is probably going to run in our listeners' minds is this question, let's say I am an architect, a developer, SRE, a QA person, whatever, how do I design this test? What do I go through? Do I define a persona first? I define a goal? And how do I express that? And once I evaluate the test, how do I feed that back into the system to know how to change the system appropriately?
Zhou Yu: Yes, that's basically exactly what we're doing, how to make other people's life easier. So if you think about how you design the testing cases, that's basically the most important thing or the holy grail. So there are different ways we can use machine learning algorithms to help in terms of permutations of different aspects, trying to figure out based on the systems, what kind of tool calls you already have that we can base on the trajectories to actually design certain goals and scenarios automatically.
And then the other thing is that if you have existing data, of how humans are approaching the task. For example, in customer service, there are usually certain things you already have data for. Or there are some existing data in terms of your product design doc that talks about what your customers would usually do. And then how diverse, let's say e-commerce. Usually people have some user studies they have already done, like, "What kind of people come to our store? What are they usually wanting to do with us when they're calling in for customer service or when they're calling in for suggestions or things?"
And then there's also domain knowledge for various domains that you really sort of can leverage on. Sometimes we can even mine social media to say, "Well, what are the things that people are going to do when it comes to these scenarios?" So that's sort of the way that we can gather information in order as an input to generate these kinds of happy paths or corner cases.
Michael Stiefel: Or unhappy paths.
Humans in the Loop and the Ever Changing Real World [13:40]
Zhou Yu: Yes, corner cases, unhappy paths. And then the most important thing is, like you said, humans in the loop. You show these scenarios in natural language so that the product manager or subject expert, SMEs, can come in to look at them to see, "Ah, are there other things we haven't thought about?" And then they can edit them, add new cases.
And then the most important part is also once you have these simulated scenarios, you can run the interaction with the agent and generate these data. And then it might be easier for a subject expert to look at the data to really think about, "Is it similar to what I have been seeing in the real world? What are some things I'm lacking and I'm giving some diversity attributes?" Or I say, "Oh, I actually think we want more code switching". Code switching means switching between different languages. "I wanted to add a little bit of noise in the background. Because I work in a factory, I wanted to add a specific kind of noise to the background so it's closer to my real world".
And the important part is if you think about the CI/CD pipeline, CI/CD pipeline for these iterative developments the customer-facing agents should be ever-changing because your users may change or what we usually say user distribution may change. Let's say you're an e-commerce, right? Suddenly you have a new product coming in and everyone's asking about the new product. It's not in your previous data or your previous setup, and then you really do need to change it. So one thing is I can populate it from your existing knowledge base, your new product catalogs. You basically base on that to update your CI/CD pipeline. Or you have some existing production data that you can extract scenarios out of your existing production data. So this CI/CD pipeline has to be evolving based on your agent's capability, your agent's knowledge, your user's distribution change. And the same thing, if you open up a new territory, like now you're selling in Brazil and Argentina, you got to expand your language testing, right?
Michael Stiefel: Yes. And Spanish is not the same in both those places. There are regional variations.
Zhou Yu: Exactly. So the preferences are different. The profiles might be different. There might be ambiguities in terms of various policies. For example, your discount works differently in different countries.
Michael Stiefel: Or for example, in France, you're not allowed to discount certain books. I mean, the laws are just different all over.
Zhou Yu: Exactly. You have different laws. You wanted to test it to make sure that it's compliant, right? So simulation is very important. Testing is very important. Before, people had to do manual testing. Everything changes, you have to redo the manual testing.
Michael Stiefel: I've been there. I know exactly what you're talking about. Back in the day, I once did some user interface testing where you had to match pixels on the screen. And if somebody changed the screen slightly, you had to redesign the whole test.
Zhou Yu: Yes, exactly. So humans are very expensive.
Michael Stiefel: Yes.
Zhou Yu: So that's why the simulated user is very handy, is that you can call it at any time. You change it slightly, you just call it again.
Different Scenarios For Running Simulations [16:58]
Michael Stiefel: Right. So do you see these tests being run when somebody does a check-in or just before release? Where do you see these tests being run?
Zhou Yu: That's a really great question. So many people actually try to use it differently. For example, some people use it for product design. They wanted to see like, if I say my agent has this ability, pretend my agent had this ability, like prompt a large language model to do this without some verifications like prototype, they can run the simulator agents to see what it will look like, to give them some idea about how you can design the agent. This is sort of in the design phase.
So product managers sometimes use it, but the most important part is probably the before production. Before you deploy, you wanted to run unit tests, pressure tests, integrated tests, and then you wanted to do debugging. So if you find an error, you fix it, you run it again to see if it's actually fixed or not. And then the integrated test is important because if you fix one thing, something might be popping up, you got to make sure that the regression test is all passed.
And then of course, once you're in production, you always wanted to make sure anything that you wanted to update, you wanted to test it to make sure then there's no question. And then sometimes people also run small number every day for critical services. They run every day a small batch of these kinds of tests every day just to see if there's any drift because you don't know what may change.
Michael Stiefel: Right. Right.
Zhou Yu: There are so many different tools that you're calling. There might be some tools that just happen to not work anymore.
Michael Stiefel: You're dependent on third parties who may or may not be working at a given time.
Zhou Yu: So for a mission-critical task, you wanted to make sure that importing 90% branches, like you cover these critical cases, you test it every day.
Running Simulations in Parallel [18:55]
Michael Stiefel: I guess there's nothing typical here, but typically how long does it take to run these tests or is it just really a function of how complicated the individual test is?
Zhou Yu: Yes, so you can run these user simulations in parallel.
Michael Stiefel: Okay.
Zhou Yu: It's really about how many you want to run, how much time you want. So it's really simulating how end users would use it. And if you have APIs, you can basically launch them all in parallel. You just expose the agent's endpoint to us. We can also do web-based testing. So basically we have a user simulate how we navigate on your websites and type things. Those are a little bit slower because you have to open up the browser and do things. It's less parallelizable because you need to open up the browser. There are so many browsers you can do on a machine, right?
Getting Started With Simulations [19:51]
Michael Stiefel: Right. Let's say I am new to this idea. How do I get started? "I really need to do this. How do I get started?"
Zhou Yu: It's usually people who are building agents. One, it's to know how well their agents are doing it. So the easiest way to get started is to try our open source. So Arklex, if you search for our ArkSim open source, you can download a Python package and plug in your agent. So our user simulator is an API, your agent is an API. They talk to each other to generate sensitive data and run evaluations on top. This is the easiest way you can get started for individual developers. You're building a customer service agent, you're building a personal chat like companions or whatever. You want to see how well your agent is doing on each individual with different scenarios when different people are talking to it. You can set up a simple thing to test your multi-turn agents.
Michael Stiefel: And do you set up scenarios using what technology? Do you...
Zhou Yu: Yes, so the easiest way if you want to get it started as soon as possible is you can manually write a couple of things and then you can also use our automatic generation of scenarios in batches. Then you just hit a button, give us an endpoint, give us a source code that will generate some of the examples for you, and then you can iterate on them yourself. So the idea is always you are the domain knowledge expert. You always hold the ground truth or just help you to get that ground truth out by making things easier for you.
Future Uses of Simulation [21:29]
Michael Stiefel: How do you see this technology evolving in the future? I mean, obviously we're just scratching the surface and we're going to get much more complicated agent interactions. And a system that's fundamentally non-deterministic and you start to scale it and you start to put subset systems of these agents together, you can see how the complexity can expand. I don't know if it's exponentially or parabolically or whatever you want to say. It gets quite complicated quite fast.
Zhou Yu: Yes. So that's why simulation is important. Sandboxing is important for you to have more visibility of how your agent performs. And as you said, there is the nondeterministic part of it. So that's why for critical use cases, you don't want to just do it once, you do it multiple times. You want it to make sure that it's passed at K, which means that you do K times and every time you pass, right?
Michael Stiefel: Yes.
Zhou Yu: So you have stricter rules for it. To us, the technology really is evolving. Our simulation kind of idea is not only for testing, but also for agent improvement. If you think about us as a user, a simulated user, a lot of times you have to have real user insights to improve your product, but now you can start with your simulated user and find these errors, automatically fix them, and run these users again to see if they are fixed. And of course there is also the efficiency and cost perspective that based on synthetic data that you generated, you can fine tune models to reduce cost. So you can use them to cover better space instead of having to wait for your real users to generate your data. And there's also problems that you can train on your real user data and stuff like that. So a synthetic user is used for evaluation, a user for synthetic data generated for training, for self-evolving agents to have you sort of really get this sort of data and better model flywheel.
Pass/Fail Test Grading May Be Inappropriate [23:35]
Michael Stiefel: Do these tests just pass or fail? It would seem in something like this, a test can go 85% of the way and that might be good for the time being. So it seems not to be a binary pass or fail at these things.
Zhou Yu: Exactly. So for testing, especially when it comes to machine learning models, it's never a one single metric. You can have multiple metrics like how you're looking into how healthy you are. You have blood pressure, you have heart rate, everything, right? So it's the same thing with the agent these days as well. So usually, the predominant one people are looking into is task completion, but there are also other things like cost, efficiencies. And there's also compliance and safeties and all these metrics that people care about. So you could set up in terms of your CI/CD pipelines, which metric above which threshold is good enough for deployment or good enough to put in real user testing or things like that. So there's always a threshold you can put it for.
Logging for Compliance and Regulation [24:38]
Michael Stiefel: And I presume everything is logged, so if they're compliance issues or regulatory issues, these can be investigated.
Zhou Yu: Yes. So everything is about logging and auditing. Once you generate this insider data, you can look into the logging to see exactly what the agent said, what the agent's tool call used, and what is the response of the user. And then you can base it on to see the compliance. For example, you have an evaluator. I just created it and say, "Never mention my competitor".
Michael Stiefel: Right. Right.
Zhou Yu: You look into it.
Michael Stiefel: Because I imagine sometimes you have to show that you made a best effort to do something. You don't have to be perfect. So this is one way you can demonstrate, "Yes, we thought of this, we tried, but you can't think of everything. We did the best that we could".
Zhou Yu: Yes, exactly. In compliance areas, for example, you can't have biases against individual users. You can say, "Hey, here's our synthetic data. Everything is the same. We changed the agenda. The outcome is the same". These things are the best sort of outcomes they can see.
Michael Stiefel: Do you see that people realize the importance of this or are they just too overwhelmed to take it on? How do you see the interaction? Because when I heard your talk, this seemed natural to me. I don't want to say it was obvious because what's obvious to one person is not necessarily obvious to another, but this seemed to solve a real problem. And how do people react when you present this or what's the uptake?
Zhou Yu: I think more and more people realized the importance of simulated users for evaluations for data synthesis tasks capability. But there's always, if you think about people who are building real agents in industry these days, there are two kinds of people. One is the traditional machine learning engineer turned into an AI engineer, and there is a traditional engineer trying to turn into an AI engineer. They all have some piece that is missing. The MLE people probably don't understand the complexity of engineering in terms of reliableness and robustness. And then the engineer piece of it probably didn't understand the evaluation piece very well because they haven't done evaluation of machine learning models before. So these two groups of people are trying to converge together and try to learn from each other, but sometimes it's really hard.
So I think many people are trying to grow this mindset over time and really realizing AI engineering is that you have to do the evaluations of the model, but not only the model, but the system. So that is a different layer of gap in terms of what a real production AI agent system needs to be reliable. I think over time people understand this and then find the best way to standardize it over time. If you think about it, you have to have a good framework of these simulations for various different applications. You're not just building one agent and then trash the code for simulation because your end user is always these people.
And then for example, you wanted to build different agents and serve them. You got to figure out how to actually make it repeated over different applications. So more and more people realize that it shouldn't be just a data science project, let's do evaluation, let's do simulation, let's just do prompt. It should be a platform that is part of the engineering stack that you can manage test cases, you can build different test cases for various different applications. So I think it's a way that people trying to meet in between to figure out what does an agent infrastructure looks like and then how should we actually make it generalizable so the teams can reuse things instead of building their own things over and over and not sharing.
Standardization [28:24]
Michael Stiefel: You mentioned that this should be a platform. And every time I think of a platform, I think of standards. Do you see that this area will see sort of standards on ways to do this? Because obviously if people think it's as important as you think it is and I think it is, there can be lots of people who want to try this, and this always says, "Should there be standards?" And the problem of course with standards is you have to have a functioning marketplace because without that, you can't have standards because if you impose standards from the outset, it makes no sense because you don't know what's going to happen.
Zhou Yu: Exactly. To me, standards are really about how do you validate your scenarios? For example, these synthetic users, are they realistic? Are they actually having coverage? Are these kind of standard metrics that we can say, "Oh, this is a good synthetic user that everybody can trust and that everybody can use?"
And then it's also about, when I say platform, it's more about a way that people can collaborate on and then have some standardized things that they can reuse over time. I think it's more a way that it's also about management and a collaboration because testing is not just one team's work. It's a collaborative effort from the product designer to a subject expert and the engineers and everybody together. So you got to sort of do this collaboratively. And then you wanted to have a shared platform that people easily communicate and visually be able to see things.
Incorporating the Results into the Code [29:56]
Michael Stiefel: One of the things that I've seen in my experience in talking to other people, the difficulty is how do you feed back the results? You run the simulation, you get this information. How do you feed it back to the architect and designers to improve the system? Now, classically, this would mean you'd have to revise the code, and this is very cumbersome and it's very... Especially when you're talking about something that's maybe going from 85% to 90% compliant. Or if you are in a situation where you're doing artifact-based, you have a document like people are trying to... or requirements document and have the agents work off the doc and to write the code. And how do you feed that back to the document? This seems to be a great unsolved problem. Do you have any feelings about this?
Zhou Yu: Yes, I totally agree with you in terms of once you do the testing, you find a couple of conversations failed, a couple of interactions failed, then you have to do root cause analysis.
Michael Stiefel: Correct.
Zhou Yu: And you got to figure out which one is a zero level bug, which one is what? You wanted to also rank them, which one has higher impact in terms of failure, which one needs immediate attention. That's also something that we're doing as well. And then based on these areas, how do you provide suggestions in terms of fixes?
So ideally what everyone wants is self-involving agents that the agents can base on the reports and then propose changes and then try themselves. "If we deploy these changes, we're going to run these tests again to see if this is fixed or not. If it's not fixed, we're going to iterate down this by itself". Through this loop, you can figure out which ones are done. I think this is the feature that everyone wants to see.
Of course, this is the simulation platform. One important piece is that you also need to take the real production data, which is how your real users are using it, trying to make sure that your simulated users are closer to your real user all the time when you get new feedbacks. And then identifying what are the failed interactions in your real production data and how do you replay it. How do you generalize it? Other corner cases similar to this also are patched up.
Understanding the Context of the Data and the Failure [32:17]
Michael Stiefel: When you get these results back, do you understand the context in which this was happening? Because just to use the imagination, if I'm talking to a customer service agent, I may be in a bad mood, I may be in a good mood and my tone may change and the exact words will give a different response in which case the agent will succeed in one way or another. It's just a simplistic example, but it could be, I think you mentioned this scenario before. Depending on the sequence of questions and the order of the questions that the customer has, the agent may have very different responses. So how do you capture that context?
Zhou Yu: Yes, so that's why this context was part of the simulation scenario. So for example, how we define it is usually you have profiles of your user. Everything about this person is in this field that you specify, happy people, not happy people, budget conscious. It really depends on the task. You have different dimensions that you think affect how your outcomes would look like, which is your human behaviors. For example, some of the tasks, some of the attributes don't really matter. But for some attributes, that matters. So it's also in the selection process, what attributes we need to incorporate in this particular use case. So that's usually what we do for optimization.
And then the intent or goals of the user. Depending on what the agents do and what the people want, you can define and see. For example, customer service, I want to return a product. And then we want to look into even if you want to return a product, there are complexities in it. So for example, I have a human being that has two transactions, which one do you want to return? So this is a complexity. And then one is, "Oh, I have a product that hasn't shipped". You can't return it. You can cancel the order, right?
So there are these kinds of complexities. We're looking at the domain and trying to do this for you. So novice people, novice engineers who don't understand the process could start with this, that makes it easier for them.
And then there is also, like what you said, some of the context is really important. For example, "Oh, there is a big noise in the background or there is an accent or there is various knowledge that is different". So all this could be incorporated into the scenarios that we construct to help you to do the testing that has all these kinds of coverage.
Simulating the User Environment and the Use of Digital Twins [34:55]
Michael Stiefel: And as you said before, and tell me if I am reading this the wrong way, you could certainly do this for market research. Let's say I want to go and see if our product will work on the factory floor. As you say, you could simulate the noise, you could simulate the environment. Or do I want to go to another country? I can see whether the laws in that country contradict the assumptions we've made in our system. So it seems to be something that can be being used at both ends of the development.
Zhou Yu: If you think about all these things that we talked about and what you're talking about is all under the same hood, what we call digital twins, but a simulation could be based on various different emphases. Because we are mostly working with this kind of testing or things like that, we care more about granular behaviors. Sometimes people like marketing research are doing A/B tests or things caring more about internal beliefs or various different aspects of human beings.
Some of them care about a digital twin olfactory that has different sensors, environments you want to simulate. For example, you wanted to see if I heat up the physical space 1 degree, what's going to happen in terms of energy consumption and so on? Yes, there are various companies working on this front as well. And then in even more advanced cases, people are looking into digital mice, digital patients, so that they can test their various trial runs of drugs or treatments, things like that.
Michael Stiefel: Actually, this leads into your question, what's the strangest application you've seen of this technology?
Zhou Yu: I think when I saw digital mice, I was, "Oh, that's interesting. That was an interesting thing. But for us, it's really about can we actually abstract information and try to use statistical models to represent the physical world and then you can have different fidelity of this for various downstream patterns?
So for us, we sort of focused mostly on agents, how people behave when they're interacting with agents. This is our sweet spot because we have done a lot of research around this. And we have seen other people trying to assimilate these kinds of villages. People have different occupations, how would they actually do things together, like a game that we've seen in a video game, how people would interact with each other. There's various people doing an automatic game where you have a companion that plays with you.
Michael Stiefel: This is interesting because it truly shows you the power of the simulation.
Evaluating the Simulation [37:44]
Zhou Yu: One thing that we really see in the future, and then many people looked into as well, is really about how do we evaluate the simulated user or simulated environment? How do we know that the sim to real gap is small or big or large? So if you think about it, sometimes users are part of the environment. So when we talk about these kinds of word models and so on, the user is part of the word model as well. Because I've been working on natural language processing for quite a long time and speech, so a lot of my work is more focusing on the diversity of user behavior, individual user behavior. But we are also seeing various architectural differences in terms of systems. You wanted to model different environments in terms of software, you have different tech stacks and things like that.
I think that's also a very, very important space many people have been working in order to be able to verify these kinds of agent performance. For example, you have to connect to CRMs, connect to other things, you have to have a good simulation of how these models and APIs will look like. So in general, I think it's a very active field. Simulation in some ways is getting more and more important over time because large language models are powerful. Then we want to give these agents more autonomy. The more autonomy means more evaluation is needed, otherwise you can't really control them and verify how they're doing it. And then we know their models are changing all the time and then you're depending so much on third party tooling, they could make errors. Everything can have problems.
So evaluations are getting more and more important. Testing evaluation, I think it's going to be... Previously, you always thought quality assurance, a QA team is maybe 5% or 2% of your entire spend. The majority of things are in development, but I think now it's actually more flipped. I've been talking to a lot of people that they actually spend a lot of time on evaluation because once you know what is a good agent and what is a bad agent, it's easy to optimize. Otherwise, if you don't have the standards, it's hard to optimize and you're going to do a lot of work in a circle. Or you don't know if you change this problem, change that tool, does it actually give you better outcomes? So I think it's sort of a flip for many engineers that evaluation actually should be a first class citizen.
Michael Stiefel: Right.
Zhou Yu: Shouldn't be a second class citizen.
Michael Stiefel: I don't want to talk about this because we could spend another several hours talking about this, but this whole idea of world models is one of the problems with LLMs today because they just really don't understand the world the way humans understand the world. So this whole idea of simulation is a way of approaching that problem. But again, that's a long conversation.
The Architect’s Questionnaire [40:50]
At this point, I'd like to ask the people who appear on the podcast some questions, and put a more human face on things. What's your favorite part of working with software?
Zhou Yu: To me, it's really about the product that matters, that you can actually enable other people to do more things with your tool that I think is a critical thing. For example, I've always been working on machine learning. The product is always a model or a piece of infrastructure, like a tool that people can use to build other things so they don't have to rebuild the wheel. I think that the most important thing is the utility part. And you can actually... To me, a software for that is a piece of my brain, other people can reuse it.
Michael Stiefel: What's your least favorite part of working with software?
Zhou Yu: I think it's really about the technology changes all the time. And then some things if you don't maintain it, it can go obsolete very quickly. So this sort of active maintenance is always a pain.
Michael Stiefel: You're on this treadmill that just never stops. Do you feel anything creatively, spiritually, or emotionally about working with software?
Zhou Yu: Emotionally?
Michael Stiefel: Creatively or spiritually, any dimension you want to answer that question.
Zhou Yu: To me, building something is always... It's like a baby of yours. You invest a lot of time. You think really hard about how people are going to use it. So it's always an iterative process. And then you feel really emotionally happy. And I see how people are using it and telling you how they're using it, so that's sort of the most exciting part.
Michael Stiefel: Is there anything that turns you off when you work with software?
Zhou Yu: Yes, there's always these kinds of corner cases you need to iron out once you release it. There's always sometimes it breaks and you have to patch it and iteratively patch it. Of course, this process sometimes can be excruciating.
Michael Stiefel: Do you have any favorite technologies?
Zhou Yu: Favorite technologies? I would still think that the current large language model really enables the things we couldn't do before. I would say it's more the generative models over time are very powerful, but at this point that we are really looking into, there are other alternatives that can push it even further away.
Michael Stiefel: Is there anything about software you love?
Zhou Yu: Software redefines our lives in some sense that I think we're all living in the digital world these days.
Michael Stiefel: Well, it's interesting for me because I didn't grow up in the digital world. I've watched this transition where some younger people don't know any alternative. And to me, it's just completely fascinating. For both good and bad, how has this completely changed the world. Because once you digitize things, you can do things that you could never do with analog data.
Zhou Yu: Yes. I think in some sense, humanity-wise, it's always from an HCR perspective how the technologies are impacting human life and human society. And there's also a lot of things really related to human psychology, like fulfillment or what is considered to be happiness in some sense. A digital world without physical contact with the nature of other human beings sometimes can create more anxiety and things like that. So definitely there is a negative impact on human beings.
Michael Stiefel: It sort of feeds into the next question I was going to ask. What about software do you hate? But you seem to have sort of answered that question already.
Zhou Yu: Yes. I think over time, because I was born around late '80s, we see the transitions a lot. We didn't start with cell phones, but we got cell phones pretty early on in high school and stuff. And then it evolved from a simple phone into a smartphone, then you have social media and all things combined. But I still feel like at the end of the day, it's really everyone is slightly different, but I still prefer... I think fulfillments is also about human connections and deep human connections. And then the younger generations might not agree with that. And there's a lot of psychological problems we're seeing these days.
Michael Stiefel: Well, because from an evolutionary perspective, our brains were formed in an analog world. And for however long we've been evolving, you pick your number where you want to start from, we've had that much evolutionary pressure in an analog world and we're now in a very, very different world.
Zhou Yu: Yes, I totally agree because technology really is exploding in the past 50 years, right? Before that, it was very different. People have been living thousands of years like that, but the recent change makes a lot of... Humans also need to adapt to this in real time in some sense to be able to adapt to the new digital world. And then that's why it's really difficult to work in technology development, really thinking about what actually adds to the better human societies. We definitely see if you take an example of how nowadays people are talking to ChatGPT instead of talking to therapists. Is that actually a good thing or a bad thing? Many people are talking about, "Oh, it's better than nothing". But in the media impact that we're seeing right now is that psychiatrists are booking less meetings.
Michael Stiefel: Yes.
Zhou Yu: A lot of things are like talking to your AI could be easy, but talking to a real human needs work. If you don't exercise your muscles, you're going to lose that ability, then you won't be able to do it anymore.
Michael Stiefel: Yes. For my part, when I go to sleep at night, my cell phone is in another room.
Zhou Yu: That's good. A physical isolation.
Michael Stiefel: Yes. So it is not the first thing in the morning that I am attached to or the last thing I do at night.
What profession other than being a professor would you like to attempt or being a starter of a company would you like to attempt?
Zhou Yu: When I was younger, I always wanted to be a writer. So I guess being a writer in some sense, I write technical content, I write blog posts, I write opinion pieces, if you think about people using AI to write these days. But writing to me is a self-expression. It's a self-healing process as well. And writing stories, writing fiction, that's also a way of creativity and part of the artwork. So I think that's something that I always wanted to explore when I retire.
Michael Stiefel: I ran a little experiment the other day. I took a sample of my writing because I've written two books. I've written articles. I've spoken at conferences. And I gave a sample of some of my writing to Google Gemini and I asked it to do two things. One, critique my style. And for that, it came up with a pretty good analysis of how I write. But then I asked it to write something in my style, and that was a complete disaster.
Zhou Yu: You got to feed it more samples.
Michael Stiefel: I ended up feeding more samples, but it just didn't get it. The interesting dichotomy was there was enough data for it to analyze accurately, but there wasn't enough data for it to reproduce my style.
Zhou Yu: Yes, it requires a little bit of more training on the data that you have. It's really about how you particularly are in the pre-training data. If you ask it to write like Shakespeare or these kinds of people who are famous in the training data, it can do pretty well.
Michael Stiefel: Do you ever see yourself not being a professor anymore or not running a company anymore?
Zhou Yu: Eventually. I think at a certain point we think about retiring, right? This is something that also I'm mom, I have two young kids, so a lot of times I really am thinking about it. The fact is I like what I do. And at the same time, people also think about alternatives, what you can do. And so the problem is also you can't run these kinds of counterfactual experiments every time.
Michael Stiefel: Right. Right.
Zhou Yu: I think over time, what is really interesting to me is really still creating things and learning things because being a researcher, being a professor and being an entrepreneur, it's always about learning new things and then trying to be able to process it and have new ideas yourself. I think that is a common thread of my interest all the time.
Michael Stiefel: When a project is done, what do you like to hear from the clients or your team or other people?
Zhou Yu: I think it's really about how people are using it, how people are finding what they couldn't do before. And now they are able to do it, how this sort of adds to their value over time that they bring to their own companies and things like that. That's always something great to hear. And we have been servicing various large companies, and those companies serve individuals so we can really see who actually benefits individually at the end of the day for our technologies.
For example, we have been working with education companies, e-commerce or banks or things like that. Let's just take education companies. We were able to help them to verify their customer service system that everything is automated now so that they can book tests quickly. They can find information about when they can take the test so they don't really have to call in. There's no friction. So it's just much easier for people to be able to get access to information.
Michael Stiefel: Well, thank you very much for this conversation. I found it fascinating. I hope people find this interesting because as we've discussed, I don't see any other way forward in an agent world to not be able to use these kinds of technologies, but people are so overwhelmed that sometimes they don't... I guess the old saying is that the truly urgent takes precedence over the truly important.
Zhou Yu: I totally agree with you. So it's always something that they want to do, but people try sometimes they don't know this technology exists. They're still using humans to do the verifications, which could be costly and lead to very difficult deployment over time or unsuccessful deployment. I think it's really about being aware of this technology, knowing how to adopt them, how do you efficiently integrate them into your workflows. It takes time. It takes certain domains or certain applications would adopt it faster because it's more critical to them. Eventually this is just a good practice that all agent builders should adopt.
Michael Stiefel: Well, thank you very much again and talk to you soon.
Zhou Yu: Thanks.
Mentioned: