读见

模拟能告诉你智能体实际上在做什么:与 Zhou Yu 对话

原题Simulation Can Tell You What Your Agents are Actually Doing: A Conversation with Zhou Yu

约 37 分钟约 9,188 字原文英文已翻译

读前速览

4 个要点

Zhou Yu 探讨如何利用动态模拟评估 AI 智能体,并应对非确定性系统、多轮交互以及贯穿软件生命周期的全面测试需求。

  1. 动态模拟对于评估非确定性 AI 智能体至关重要,因为静态基准测试无法涵盖多轮交互和不断变化的系统状态。

    与传统软件测试不同,AI 智能体会根据先前的响应生成不同输出,因此基于标准答案的评估并不可靠。使用虚拟角色和场景进行模拟,可以开展一致、可重复的测试,同时呈现真实交互的复杂性。

  2. 模拟可以构建多样的用户行为、环境条件和边界情况,从而全面测试 AI 智能体的可靠性与合规性。

    通过模拟目标、情绪、口音各异的角色,以及工厂噪声等环境因素,开发者可以评估智能体如何应对边界情况、用户中途退出、重复提问和不同地区的法律要求。

  3. 这一测试框架适用于整个软件生命周期,从产品设计和 CI/CD 流水线,到生产环境监控与合规性验证。

    产品经理利用模拟进行原型设计,工程师将其用于单元测试和回归测试,团队则在部署前开展压力测试。在生产环境中,模拟有助于发现模型漂移、第三方工具故障,以及不同地区的法律合规问题。

  4. 构建可靠的 AI 系统,需要融合机器学习、系统可靠性和传统软件工程等领域的专业知识,并由人类领域专家完善测试场景。

    人类专家会参考生产数据、设计文档和社交媒体信息,审查并完善模拟场景,确保测试覆盖真实的用户行为和特定领域要求,弥补自动化系统可能遗漏的内容。

完整摘要

在这期播客中,计算机科学教授、Arklex.ai 联合创始人 Zhou Yu 探讨了动态模拟在评估 AI 智能体方面的关键作用。她指出,对于结果取决于先前响应的非确定性系统,传统静态基准测试并不适用。模拟可以纳入不同的角色、目标和边界情况,让开发者在各种条件下测试对话智能体,例如不同的情绪、口音和环境因素。这种方法适用于整个软件生命周期,从产品设计和 CI/CD 测试,到生产环境中对模型漂移和合规性的监控。Zhou 强调,构建可靠的 AI 系统需要机器学习、系统可靠性和软件工程方面的专业知识;人类专家则根据生产数据和领域知识不断完善测试场景。

目录 · 25 节

查看原文

在这期播客中,Michael Stiefel 与 Zhou Yu 探讨了如何使用动态模拟来评估 AI 智能体。讨论的一个重点是对话智能体:它们采取的行动取决于先前的回复,而大语言模型具有非确定性,因此无法依赖静态的、基于参考答案的基准测试。你需要通过动态模拟来测试它们,并在模拟中纳入不同的人设、目标和边缘情况。你可以模拟对话如何因情绪、偏好、口音或工厂背景噪声等环境条件而发生变化。与其只依赖简单的通过或失败判定,基于规则的任务验证器还可以衡量任务是否完成,以及成本、效率、安全性和合规性是否达到相应阈值。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.

模拟可以应用于整个软件生命周期。产品经理可以用它们进行原型设计和设计。工程师可以在 CI/CD 流水线中使用它们进行测试。还可以用它们测试生产环境中是否存在模型漂移或第三方工具故障,也可以用它们测试是否符合不同地区的法律要求。模拟还可以结合合成数据用于微调模型。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

  • 评估 AI 智能体时,不能依赖静态的、基于参考答案的基准,因为这些系统并非确定性的,而且结果往往取决于先前的响应。测试需要采用动态模拟,其中可以纳入不同角色、目标和边界情况。
    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.
  • AI 系统的可靠性工程需要结合机器学习、系统可靠性和传统软件工程方面的技能。领域专家根据生产数据、设计文档,甚至社交媒体内容来改进模拟场景。
    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:

Apple Podcasts YouTube Soundcloud Spotify Overcast Podcast Feed
Simulation Can Tell You What Your Agents are Actually Doing: A Conversation with Zhou Yu Play episode Play SoundCloud

文字记录Transcript

迈克尔·斯蒂费尔:欢迎收听《架构师播客》。在节目中,我们会探讨成为一名架构师意味着什么,以及架构师实际上是如何工作的。今天的嘉宾是周瑜,她是哥伦比亚大学的计算机科学教授,也是 Arklex.ai 的联合创始人。她在卡内基梅隆大学获得博士学位。周博士入选《福布斯》30位30岁以下精英榜单,在对话式智能体、计算机用户智能体和大语言模型训练方面拥有丰富的研究和产品经验。她创办的公司为 AI 智能体提供自动化质量保证测试。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.

周宇:我从事人工智能研究已经相当长时间了。2011年,我在卡内基梅隆大学开始攻读博士学位。当时我在语言技术研究所,那里有很多教授从事自然语言处理和语音相关问题的研究。我一直对交互很感兴趣。这不仅仅是语音识别或文本处理,而是人们如何与机器互动。对我来说,这才是人工智能的终极目标:人类能够像与另一个人交谈一样,与某个系统或实体交谈,从而协作完成各种任务,甚至彼此协商、说服对方。对我来说,这就是人工智能的终极目标。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.

所以我一直对开发这种交互式 AI 很感兴趣,我的博士研究也聚焦于此。我们在多模态对话智能体方面做了很多工作。如何才能更好地实现轮替发言?如何让智能体实时地同时思考和说话?以及诸如此类的问题。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?

模拟的重要性 [02:33]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?

多轮智能体与移动目标 [04:03]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.

模拟用户画像 [05:09]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.

这就是为什么我们很早以前就开始研究这个问题:我们究竟如何利用智能体来模拟用户行为?这样一来,你就不再依赖标准的静态基准测试,而是依赖标准化的人设或场景来进行测试;随后将这些场景标准化,并基于我们构建的标准黄金 CI/CD 流水线开发应用。这条流水线包含带有不同用户画像和目标的虚拟场景。接着,你就可以持续地在这些场景上进行测试,涵盖所有边界情况以及你希望模拟的用户维度多样性。以往要开展真实用户研究测试,你得招募所有这些人,让他们手动进行测试;现在则可以用 AI 实现自动化。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.

测试非确定性系统 [06:29]Testing Non-Deterministic Systems [06:29]

Michael Stiefel:从你的回答中,我想到好几个问题,我们一个一个来。你刚才说的一点让我印象很深:它会依赖之前发生的事情。我觉得,对架构师、工程师、SRE 以及所有人来说,最难理解的一点就是,这些系统具有非确定性——我们以前从未遇到过类似的东西。过去,即使答案不止一两个,答案的数量也总是有限的,你可以检查输入,判断答案对不对。但在这里,先不谈方言、口音以及各种差异,系统本身就是非确定性的。那么,要如何构建测试?测试会是什么样?它又该如何融入 CI/CD 流水线?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?

目标完成情况与任务验证器 [07:33]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.

所以,如果你考虑一下测试,我们会给不同的用户设定不同的档案和目标,然后进行测试,看看结果。有时我们把它称为任务:给它一个任务,然后检查智能体是否能够完成任务。有时我们也会把它称为验证、验证器或任务验证器。任务验证器必须与任务相关联。对于每个具体任务,验证器可能会略有不同。有些可以基于规则,有些则可以由 LLM 评判。因此,有些任务可能需要进行各种不同的验证,比如安全方面和对齐方面的验证。这就是重要的部分。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.

核实信息与边界情况 [08:57]Verifying Information and Corner Cases [08:57]

Michael Stiefel:你说到“完成”时,我能想到两种大致的情况。一种是这样完成:“我想买一张音乐会门票。要么我买到了,要么没买到。”所以这似乎很容易定义。但如果我来询问信息,在这种情况下,你如何确认他们确实获得了这些信息?因为如果聊天突然中断,可能是用户感到沮丧,而不是得到了他们想要的答案。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.

设计、运行和维护仿真测试 [11:18]Designing, Running, Maintaining Simulation Tests [11:18]

Michael Stiefel:听起来,人类还有很多工作要做,因为必须定义这些角色画像,还必须理解系统试图实现什么。我们还没发展到可以让智能体设计这些测试的阶段。因此,这显然仍然是一个需要人类参与其中的情形。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.

如果是这样,我知道听众脑海里可能会浮现这样一个问题:假设我是架构师、开发人员、SRE、QA 人员,或者其他什么角色,我该如何设计这个测试?需要经历哪些步骤?我应该先定义一个角色画像吗?再定义一个目标吗?又该如何表达这些内容?而且,评估完测试之后,我该如何把结果反馈给系统,以便知道该如何恰当地调整系统?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:或者是异常路径。Michael Stiefel: Or unhappy paths.

人类参与其中,以及不断变化的现实世界 [13:40]Humans in the Loop and the Ever Changing Real World [13:40]

周瑜:是的,边界情况、异常流程。然后最重要的是,就像你说的,让人参与其中。你用自然语言展示这些场景,这样产品经理或主题专家(SME)就可以来查看,看看:“啊,还有没有其他我们没想到的情况?”然后他们可以编辑这些场景,添加新的案例。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".

重要的是,如果你考虑一下 CI/CD 流水线,就会发现,对于这些迭代式开发,面向客户的智能体应该不断变化,因为用户可能会变化,或者用我们常说的话来说,用户分布可能会变化。比如说,你是一家电商公司,对吧?突然有了新产品上市,大家都在询问这款新产品。它不在你之前的数据或已有配置中,这时你确实需要做出调整。你可以从现有知识库和新产品目录中填充相关内容,并以此为基础更新 CI/CD 流水线。或者,你可以从现有的生产数据中提取场景。你的 CI/CD 流水线必须随着智能体的能力、知识以及用户分布的变化而不断演进。同样,如果你开拓了新的市场,比如现在开始在巴西和阿根廷销售,就得扩展语言测试,对吧?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:我也经历过。我完全明白你在说什么。以前我做过一些用户界面测试,需要匹配屏幕上的像素。只要有人稍微改动了屏幕,你就得重新设计整个测试。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.

运行模拟的不同场景 [16:58]Different Scenarios For Running Simulations [16:58]

Michael Stiefel:对。那么,你认为这些测试是在有人提交代码时运行,还是在发布前运行?你觉得这些测试应该在哪个阶段运行?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:你调用了这么多不同的工具。其中有些工具可能恰好已经无法使用了。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:你依赖于第三方,而他们在特定时间可能在工作,也可能没有。Michael Stiefel: You're dependent on third parties who may or may not be working at a given time.

周瑜:所以,对于任务关键型任务,你想确保导入 90% 的分支,也就是说覆盖这些关键场景,并且每天都进行测试。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.

并行运行仿真 [18:55]Running Simulations in Parallel [18:55]

Michael Stiefel:我想这里没有什么固定的情况,不过通常运行这些测试需要多长时间?还是说,这主要取决于每项测试本身有多复杂?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.

周宇:这实际上取决于你想同时运行多少个,以及你愿意花多少时间。这就是在模拟终端用户会如何使用它。如果你有 API,基本上可以并行启动所有请求。你只需要把智能体的端点提供给我们。我们也可以进行基于 Web 的测试。基本上,我们会模拟用户在你的网站上浏览并输入内容。这类测试会稍慢一些,因为需要打开浏览器并执行操作。它的并行化程度较低,因为你需要打开浏览器。一台机器上能同时运行的浏览器数量是有限的,对吧?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?

开始使用模拟 [19:51]Getting Started With Simulations [19:51]

Michael Stiefel:没错。假设我刚接触这个想法,该怎么开始?“我真的得做这件事。该怎么开始?”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?"

周瑜:通常是那些正在构建智能体的人。首先,他们想了解自己的智能体表现如何。最简单的入门方式就是试试我们的开源项目。比如 Arklex:搜索我们的 ArkSim 开源项目,就可以下载一个 Python 包并接入你的智能体。我们的用户模拟器是一个 API,你的智能体也是一个 API。两者相互交互,生成敏感数据,并在此基础上运行评估。对于独立开发者来说,这是最简单的入门方式。无论你是在构建客服智能体,还是个人聊天伴侣之类的智能体,都可以在不同场景下测试它面对不同用户时的表现。你可以搭建一个简单的测试环境,来测试你的多轮对话智能体。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.

仿真的未来用途 [21:29]Future Uses of Simulation [21:29]

Michael Stiefel:你怎么看这项技术未来的发展?我的意思是,显然我们才刚刚触及表面,未来会出现复杂得多的代理交互。而一个从根本上具有非确定性的系统,一旦开始扩展规模,再把这些代理组成的子系统组合起来,你就能看出复杂性会如何不断扩大。我不知道该说这是指数级增长、抛物线式增长,还是别的什么。它很快就会变得相当复杂。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.

周瑜:是的。所以仿真很重要。沙箱测试也很重要,它能让你更清楚地了解智能体的表现。正如你所说,其中存在非确定性因素。因此,对于关键用例,你不能只运行一次,而要运行多次。你要确保它通过 K 次,也就是说,运行 K 次,每次都通过,对吧?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.

采用通过/不通过的测试评分方式可能并不合适 [23:35]Pass/Fail Test Grading May Be Inappropriate [23:35]

Michael Stiefel:这些测试是不是只有通过或失败两种结果?像这种情况,测试可能完成了 85%,目前来说这或许已经不错了。所以看起来,这类测试的结果并不是非通过即失败。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.

周宇:没错。所以在测试方面,尤其是机器学习模型,绝不能只看单一指标。就像评估自己的健康状况一样,你会关注血压、心率等各种指标,对吧?如今,智能体也是如此。人们通常最关注的是任务完成情况,但还有成本、效率等其他方面,也包括合规性、安全性,以及人们关心的所有这些指标。你可以在 CI/CD 流水线中设定标准:哪些指标达到什么阈值,就足以通过部署,或者足以进入真实用户测试,等等。所以总是可以为这些指标设定一个阈值。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.

合规与监管日志记录 [24:38]Logging for Compliance and Regulation [24:38]

Michael Stiefel:我想所有操作都会被记录下来,因此如果出现合规或监管方面的问题,就可以进行调查。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:因为我想,有时候你得证明自己已经尽力去做某件事。你不必做到完美。所以,这是一种可以证明你确实考虑过这件事、也尝试过的方式:“是的,我们考虑到了这一点,也试过了,但人不可能面面俱到。我们已经尽力了。”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:你觉得人们意识到这件事的重要性了吗?还是说他们只是忙得应接不暇,没精力去应对?你怎么看待这种互动?因为听你演讲时,我觉得这件事很顺理成章。我不想说它显而易见,因为对一个人显而易见的事,对另一个人未必如此,但我觉得这确实解决了一个实际问题。那么你介绍这件事时,人们会有什么反应?或者说,接受程度如何?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?

周瑜:我觉得,越来越多的人意识到,在评估数据合成任务能力时,模拟用户的重要性。不过,如果你看看如今在业界构建真实智能体的人,会发现他们大致分为两类:一类是从传统机器学习工程师转型而来的 AI 工程师,另一类是试图转型为 AI 工程师的传统工程师。他们各自都有所欠缺。机器学习工程师可能不了解工程在可靠性和鲁棒性方面的复杂性;而工程师可能不太理解评估这一环,因为他们以前没有做过机器学习模型的评估。这两群人正试图彼此融合、互相学习,但有时确实很难。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.

所以我认为,很多人都在努力逐渐培养这种思维方式,并真正意识到,AI 工程意味着你必须对模型进行评估,但评估的不只是模型,还有整个系统。这是另一个层面的差距,关系到一个真正用于生产环境的 AI 智能体系统需要具备哪些条件才能可靠运行。我认为,随着时间推移,人们会理解这一点,并找到逐步将其标准化的最佳方式。想一想,你需要为各种不同的应用构建一套完善的模拟框架。你不能只构建一个智能体,然后就把模拟代码丢掉,因为你的最终用户始终是这些人。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.

标准化 [28:24]Standardization [28:24]

Michael Stiefel:你提到这应该是一个平台。每次我想到平台,就会想到标准。你觉得这个领域会不会出现一些关于如何实现这件事的标准?显然,如果人们认为这件事像你和我认为的那样重要,就会有很多人想要尝试,而这总会引出一个问题:“要不要制定标准?”当然,标准的问题在于,你必须先有一个运作良好的市场;否则就无法制定标准,因为如果一开始就强行推行标准,那就毫无意义,因为你还不知道事情会如何发展。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.

将结果整合到代码中 [29:56]Incorporating the Results into the Code [29:56]

Michael Stiefel:根据我和别人交流的经验,我发现其中一个难点是:如何反馈结果?你运行模拟,得到这些信息后,怎样把它反馈给架构师和设计人员,以改进系统?传统上,这意味着你得修改代码,而这非常繁琐,尤其是当你讨论的情况可能是合规率从 85% 提高到 90% 时。或者,如果你采用基于制品的方式,比如有一份文档——大家可能会尝试用需求文档,让智能体根据文档编写代码。那么,你又该如何把结果反馈到文档中?这似乎是一个尚未解决的重大问题。你对此有什么看法吗?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.

了解数据与故障的背景 [32:17]Understanding the Context of the Data and the Failure [32:17]

Michael Stiefel:拿到这些结果后,你们能理解事情发生时的具体情境吗?我举个简单的例子:如果我在和一位客服人员交谈,我可能心情不好,也可能心情很好,我的语气也会随之变化,而具体措辞的不同会让对方给出不同的回应,这样一来,客服人员可能会以某种方式成功处理问题。这个例子比较简单,不过我想你之前提到过类似的场景。客户提问的顺序以及问题的先后次序不同,客服人员的回应可能会大不相同。那么,你们如何捕捉这种情境?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.

模拟用户环境及数字孪生的应用 [34:55]Simulating the User Environment and the Use of Digital Twins [34:55]

Michael Stiefel:正如你之前所说的,如果我的理解有误,请纠正我。你当然可以将它用于市场调研。比如说,我想看看我们的产品能否在工厂车间正常运行。正如你所说,你可以模拟噪声,也可以模拟环境。或者我想进入另一个国家?我可以看看那个国家的法律是否与我们系统中的假设相矛盾。所以,这似乎是一个可以在开发流程两端都发挥作用的工具。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.

周宇:如果你把我们谈到的这些事情,以及你正在谈的内容都放在一起考虑,它们其实都属于同一个大框架,也就是我们所说的数字孪生。不过,模拟可以有各种不同的侧重点。因为我们主要在做这类测试之类的工作,所以更关注细粒度的行为。有时,像市场研究人员这样的人会做 A/B 测试,或者更关注人的内在信念或其他不同方面。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.

有些公司关注的是数字孪生模型,它配备不同的传感器,还能模拟你想要的各种环境。比如,你想看看如果把实际空间的温度升高 1 度,能耗等方面会发生什么变化?没错,也有各种公司在这一领域开展工作。更先进的应用中,人们还在研究数字小鼠、数字患者,以便测试各种药物或治疗方案等。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:说到这里,正好引出了你的问题:你见过这项技术最奇特的应用是什么?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:这很有意思,因为它确实展现了模拟的强大之处。Michael Stiefel: This is interesting because it truly shows you the power of the simulation.

评估模拟 [37:44]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.

我认为这也是一个非常、非常重要的领域,很多人一直在其中努力,以便能够验证这类智能体的表现。例如,你必须连接到 CRM 和其他系统,还必须对这些模型和 API 的实际表现进行良好的模拟。总的来说,我认为这是一个非常活跃的领域。随着时间推移,模拟在某些方面变得越来越重要,因为大型语言模型很强大。接下来,我们希望赋予这些智能体更多自主权。自主权越大,就越需要进行评估,否则你就无法真正控制它们,也无法验证它们是如何执行任务的。而且我们知道,它们的模型一直在变化;同时,你又非常依赖第三方工具,这些工具可能会出错。任何环节都可能出现问题。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.

所以,评估正变得越来越重要。我觉得评估测试会……以前大家总觉得,质量保证(QA)团队的开销可能只占总支出的 5% 或 2%。大部分资源都花在开发上,但我觉得现在情况其实反过来了。我跟很多人聊过,他们确实花了很多时间做评估,因为一旦知道什么样的智能体是好的、什么样的是差的,优化起来就容易了。否则,如果没有标准,优化就很难,你会做很多无用功,兜来兜去。或者你不知道,修改这个问题、换那个工具,是否真的能带来更好的结果。所以我觉得,对很多工程师来说,这算是一种观念转变:评估实际上应该是首要环节。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:对。Michael Stiefel: Right.

周瑜:不应该成为二等公民。Zhou Yu: Shouldn't be a second class citizen.

Michael Stiefel:我不想谈这个,因为我们可能还得再花好几个小时讨论这个问题。不过,世界模型这个概念是当今大语言模型面临的问题之一,因为它们确实不像人类那样理解这个世界。因此,模拟这一概念是解决这个问题的一种途径。不过,这又是一个很长的话题。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.

建筑师问卷 [40:50]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:你最不喜欢软件开发工作的哪一部分?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:你就像在一台永远不会停下来的跑步机上。与你的软件合作时,你在创意、精神或情感层面有什么感受吗?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:无论是从创造力还是精神层面,任何你想用来回答这个问题的角度都可以。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:在使用软件时,有什么会让你感到反感吗?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:你有特别喜欢的技术吗?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:你有没有特别喜欢软件的某一点?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:嗯,这对我来说很有意思,因为我不是在数字世界中长大的。我亲眼见证了这一转变:有些年轻人根本不知道还有其他选择。而在我看来,这简直令人着迷。无论好坏,这都彻底改变了世界。因为一旦将事物数字化,你就能做出许多模拟数据根本无法实现的事情。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.

周宇:是的。我觉得从某种意义上说,从人文层面来看,始终是从 HCR 的视角探讨技术如何影响人类生活和人类社会。此外,还有很多事情确实与人类心理有关,比如满足感,或者从某种意义上说,什么才算幸福。一个缺乏与自然及其他人类进行身体接触的数字世界,有时会带来更多焦虑之类的问题。所以,技术肯定会对人类产生负面影响。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:这正好引出了我接下来想问的问题。你讨厌软件的哪些方面?不过,你似乎已经在某种程度上回答了这个问题。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.

周瑜:是的。我觉得随着时间推移,因为我出生在80年代末,所以我们见证了很多变化。我们起初没有手机,但上高中后没多久就有了手机之类的东西。后来,手机从简单的电话发展成智能手机,社交媒体等各种功能也融为一体。但我仍然觉得,归根结底,每个人多少都有些不同,不过我还是更倾向于……我觉得满足感也来自人与人之间的联系,尤其是深层次的人际连接。年轻一代可能不认同这一点。而且如今我们看到很多心理问题。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.

周宇:是的,我完全同意,因为过去 50 年里,技术确实呈爆炸式发展,对吧?在那之前,情况大不相同。人们几千年来一直过着那样的生活,但近来的变化带来了很多……从某种意义上说,人类也需要实时适应这些变化,才能适应新的数字世界。这就是为什么从事技术开发真的很难——我们必须认真思考,究竟什么能让人类社会变得更好。举个例子,我们确实看到,如今人们会跟 ChatGPT 聊天,而不是去找心理治疗师。这到底是好事还是坏事?很多人会说:“总比什么都没有强。”但从我们目前看到的媒体影响来看,精神科医生预约的会诊变少了。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.

周宇:很多事情都是这样,和 AI 交流可能很轻松,但和真人交流却需要费一番功夫。如果你不锻炼这些能力,就会逐渐失去它们,到时候就再也做不到了。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:是的。就我而言,晚上睡觉时,我会把手机放在另一个房间。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:是的。所以,我并不是一早醒来就离不开它,也不是晚上睡前做的最后一件事就是用它。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.

迈克尔·斯蒂费尔:前几天我做了个小实验。我选取了一些自己的文字作为样本,因为我写过两本书,也写过文章,还在会议上做过演讲。我把这些文字样本交给了 Google Gemini,让它做两件事。第一,点评我的写作风格。它对此给出了相当不错的分析,说明了我的写作特点。但后来我让它模仿我的风格写一段东西,结果简直是一场灾难。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:我最后给它提供了更多样本,但它还是没能理解。有趣的矛盾之处在于,数据足够它准确分析,却不足以让它复现我的风格。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:好的,再次非常感谢,回头聊。Michael Stiefel: Well, thank you very much again and talk to you soon.

周瑜:谢谢。Zhou Yu: Thanks.

提及:Mentioned:

更多关于我们的播客的信息More about our podcasts

You can keep up-to-date with the podcasts via our RSS Feed, and they are available via SoundCloud, Apple Podcasts, Spotify, Overcast and YouTube. From this page you also have access to our recorded show notes. They all have clickable links that will take you directly to that part of the audio.

往期播客Previous podcasts

值得记下

  1. Symposium 是一套面向智能体的工具链。工具链就像编译器和包管理器。我希望有一套专为智能体设计、适合智能体使用的工具链,因为我认为,越来越多时候,真正运行编译器的主要对象将会是智能体。
  2. 如果你想想智能体,就会发现它们不是单轮智能体。它们是多轮、多枢纽、调用多种工具,并且具有长时程追踪的程序。
  3. 你可以模拟对话如何随着情绪、偏好、口音或环境条件而变化,例如工厂里的背景噪声。
  4. AI 系统的可靠性工程需要融合机器学习、系统可靠性和传统软件工程方面的技能。