Ramp 如何在客户试用之前检验 AI 记账智能体|Ryan Stevens
原题How Ramp Tests Its AI Bookkeeping Agent Before Customers Do - Ryan Stevens, Ramp
推荐理由Ramp 用模拟企业和四到六个月上线前评估拆解记账可靠性,适合建立可回放、能发现退化的业务 Agent 测试,而非只看单轮演示。
看前速览
Ramp 为记账智能体搭建了可反复回放的模拟企业,用来评分任务结果,并在改动前后发现能力退化。
模拟完整的工作环境
先搞清楚记账员如何对账和结账,再构造可重复执行同一任务的业务系统与数据。
给结果打分,再追查失败原因
区分部分得分和完整通过。Ramp 初期优先看最终结果、成本和延迟,随后进一步分析模型为什么出错。
上线后继续使用同一套基准
对比移除技能和更换记忆提示词后的效果,定期运行打过标签的案例,并把疑似退化交给团队调查。
完整摘要
Ryan Stevens 介绍了 Ramp 如何拆分记账工作,并为模拟企业准备总账、账单、客户和供应商数据。智能体上线前,评估工作持续了四到六个月。基准测试区分做对部分步骤与完整通过任务,帮助团队选择模型、精简技能,并检验记忆能否跨会计期间发挥作用。Ramp 定期运行测试并调查退化,避免用波动明显的评估结果频繁拦截 CI。
章节
文字稿
简要描述Brief Description
Ramp 如何在客户使用前测试其 AI 记账代理——Ramp 的 Ryan StevensHow Ramp Tests Its AI Bookkeeping Agent Before Customers Do - Ryan Stevens, Ramp
目录Table of Contents
- 简介Intro
- 你的智能体的目标是什么?What's your agent's goal?
- 拆解簿记员的工作Breaking down a bookkeeper's job
- 构建基准测试Building a benchmark
- 在拥有用户之前和之后Before and after you have users
- 数据是瓶颈Data is the bottleneck
- 构建合成企业Building synthetic businesses
- 评估不过是回测。Evals are just back-tests
- 每项任务的评分方式How each task is graded
- 准确率与 pass@kAccuracy vs. pass@k
- 选择模型Picking a model
- 模型为何会失败:推理Why models fail: reasoning
- 失败的实验Experiments that failed
- 技能消融Skill ablation
- 测试记忆Testing memories
- 后台回归测试Regression testing in the background
- 要点Takeaways
简介Intro
主持人:今天我要谈谈如何通过端到端评测打造更好的智能体。我会介绍 Ramp 的一款产品 Stack,也就是我们的 AI 记账智能体。这是一个简短的演讲,我会简单介绍一下自己和 Ramp。Ramp 服务超过 70,000 家企业。我们提供公司卡、差旅、应付账款和应收账款服务。我们是一个费用管理平台。我负责领导应用科学团队。团队成员包括 AI 工程师、机器学习工程师(MLE)和产品数据科学家,他们此前曾在 Meta 任职;我拥有经济学博士学位。我非常重视衡量和评估,这正是我们今天要讨论的内容。Host: Today I'm going to talk about building better agents through end-to-end evals. I'm going to talk about one of Ramp's products, Stack, our AI bookkeeping agent. so this is a short talk briefly about me, about Ramp. Ramp, more than 70,000 businesses. we have card, travel, AP, AR. We're an expense management platform. I lead our applied sciences team. These are AI engineers, MLEs, product data scientists, formerly of Meta, and I have a PhD in economics. I care a lot about measurement and evaluation, which is what we're going to talk about today.
你的智能体的目标是什么?What's your agent's goal?
所以,有三件事。你的智能体的目标是什么?设计这些评估,然后我们如何从设计好的评估中获得价值?我对此尤其有自己的看法:人们总想去识别一个自己其实并不真正理解的流程。而为某个流程构建智能体,首先要做的就是拆解工作、各项任务,以及成功是什么样的。So, three things. What's your agent's goal? Design those evals, and then how did we get value from the evals that we designed? so I'm particularly opinionated about this, that people try to identify a process that they don't really understand. And the first task in building an agent for a process is breaking down the job, the tasks, and what success looks like.
拆解簿记员的工作内容Breaking down a bookkeeper's job
所以,簿记员的工作通常就是这样。他们想要完成结账。今天我们不会做太多会计工作,但一般来说,他们会有一系列要完成的任务。构建基准测试时,我们创建了一组类别。这是其中三个。稍后你还会看到第四个类别。接着,我们思考了怎样才算成功。明确任务和成功标准后,我们与簿记员和会计师事务所坐下来交流,想要准确了解解决某项特定任务的完整端到端流程。下面是对账的一个示例。对账其实是一项相当简单的工作。左侧是一个代表应付账款分类账的 ERP 系统。So, this is what a bookkeeper's job tends to look like. So, they want to close the books. We're not going to do a ton of accounting today, but generally they have a set of tasks that they're trying to accomplish. When we're building our benchmark, we created a set of categories. These are three of them. There's going to be a fourth that you're going to see a little later. and then we thought about what success looks like. once we knew the tasks, once we knew success, we sat down with bookkeepers, we sat down with accounting firms, and then we wanted to understand exactly the full end-to-end process to solve a specific task. This is an example of a reconciliation. A reconciliation is actually a pretty simple exercise. You have on the left-hand side, you have an ERP that represents the accounts payable ledger.
这些都是你必须支付的账单。如果你不知道应付账款这个术语,几年前的我也不知道。右边则是存放这些账单的系统。在这种情况下,你可以用 Ramp 支付账单。你需要这两个系统中的数字保持一致。这是个相当简单的操作。会计做什么呢?他们会打开 Excel,逐行导入 ERP 中的数据,再导入应付账款系统中的数据。然后核对一下,两边是否一致?是否对得上?是还是否?接着,他们会找出对不上的原因,再让两边对上。只要你准确理解这个流程是什么,就很容易识别出来。Those are bills that you have to pay. If you don't know the term accounts payable, I didn't until a few years ago either. And then on the right, you have the system that has the bills. In this case, you can pay your bills with Ramp. You need these two systems to have the same numbers. It's a pretty simple exercise. What does an accountant do? Well, they go into Excel. They bring in the data for the ERP row by row. They bring in the data from the system that is accounts payable. Do they reconcile? Do they tie? Yes, no. And then they figure out why they don't, and then they make them tie. Pretty easy to identify this process if you understand exactly what it is.
构建基准测试Building a benchmark
所以,我们想要构建一个基准测试。我会交替使用基准测试、评估、可验证性之类的术语,因为坦白说,我觉得这些说法都混在一起了,指的其实都是同一件事。我们想要评估的内容分为四类:调节核对,也就是我刚才描述的内容;数据录入;差异分析,即数字为何会发生变动;以及计划表和应计项目。我就不深入展开了,但这是会计师正在处理的一项复杂工作。So, we want to build a benchmark. I'm going to interchangeably use terms like benchmarks, evals, verifiability, because frankly, I think it's a soup of language that are all trying to do the same thing. These are the four sets of categories of things that we wanted to eval. There's reconciliation, what I just described, data entry, variance analysis, it's why do numbers move, schedules and accruals, not going to go deep into there, but it is a complex thing that an accountant is doing.
在拥有用户前后Before and after you have users
所以,这只是一个非常高层次、经过简化的示意版本,用来说明如何思考构建评估的流程。你可以把它分成两个阶段:还没有用户,或者用户数量还不足以让你认为已经获得了良好的数据分布;以及有了用户之后。要记住,在没有用户时,所有智能体做的事情就是调用会访问数据库的工具。仅此而已。你没有用户,就需要进行模拟,也需要合成数据。我强烈建议,凡是你在一个用户数量不足的领域构建智能体,都应该生成合成数据。我们与一家名为 Mercor 的公司合作构建了这个基准测试;他们是非常出色的合作伙伴。你不一定非要和公司合作来构建它,但模拟确实相当重要。有了用户之后,事情会稍微容易一些——但也可能更难。So, this is just like a very high-level schematized version of how to think about the process of building evaluations. You can think about the state before you have users or at least enough users that you think you have a good distribution of data. And then with users. So, before you have users, remember all agents are doing is they're calling tools that hit a database. That's it. You don't have users. You need simulation. You need synthetic data. I would highly recommend anytime you're building an agent for an area where you don't have enough users, you should build synthetic data. we built this benchmark in partnership with a company called Mercor. they were a great partner for this. you don't have to build it with a company, but simulation is pretty important. Once you have users, things get a little easier, if not harder.
这次演讲我们不打算谈那个阶段。我只有18分钟。那样讲会超过18分钟。所以……We're not going to talk about that phase in this talk. I only have 18 minutes. That would be longer than an 18-minute talk. so
数据是瓶颈Data is the bottleneck
数据是评测的瓶颈。我觉得这话显而易见,但我想明确强调,要进行评测,就必须有干净的数据作为基础。那么,我们该如何设计评测?比如,我们是怎么考虑构建数据集、制定一套能让我们从中获得价值的任务标准的?Data is the bottleneck to evals. I think that's an obvious statement, but I want that to be like very clear that to evaluate, you have to have clean data to do things on. So, how do we design the evals? Like, how did we think about making a data set, a set of task criteria that we would get value out of?
构建合成企业Building synthetic businesses
所以我们构建了虚拟企业。这是其中一家虚拟企业的例子。它是一家面向消费者直销(D2C)的生活方式公司,使用亚马逊。它们的会计处理方式有些复杂。它们采用日历年度,只想在每个月底进行结账。它们通过多个渠道开展业务,从 Shopify、亚马逊以及其他各种渠道获得收入。这家公司具体是什么样的其实没那么重要;我们还为它构建了一套文档和数据,包括它的 ERP、客户名单、供应商名单、应付账款,以及虚拟企业进行良好离线评估所需的一切。顺便说一下,我们在这里做的只是对智能体进行回测并衡量成效。so we built synthetic businesses. this is an example of one of our synthetic businesses. they're a D2C lifestyle company. they use Amazon. there's some complexity to how they do their accounting. They have a calendar year. They want to do just close at the end of the month. They're multi-channel. They get revenue from Shopify, Amazon, a bunch of different stuff. the details of this are not that important of who this company is, but what we also did is we built a set of documents or data for this company. We built their ERP. We built their customer list, their vendor list, the accounts payable, everything that would be needed for a synthetic business, in order to do good offline evaluation. all we're doing here, by the way, is just backtesting agents and measuring success.
评估不过是回测而已。Evals are just back-tests
人们会交替使用这些术语。我接受的训练是 MLE。在我来到 Ramp 之前,我是 Ramp 的第一位 MLE。我认为,关于评估、可验证性和基准测试的讨论存在一个问题:大家只是在寻找标签,只是在寻找衡量事物成功与否的方法,而且说来说去都差不多。但实际上,你只是想做回测。你想让你的智能体日复一日地针对同一组数据运行,从而找到优化它的方法。我有个理论:这个行业有点……我用的词不是“受伤”,但我觉得,当时只有编码智能体时,我们的处境很好,因为 Git 本身就允许你重放过去的操作,状态也总是会被记录下来。一旦开始考虑生产环境中的智能体,你要如何随着时间推移捕获状态,以便重放呢?People use these terms interchangeably. My training is as an MLE. before I came at Ramp, I was the first MLE at Ramp. and I think one of the problems on the discourse on evaluations, verifiability, and benchmarks, is that they're just trying to find labels. They're just trying to find ways to measure success for things. and they're all sort of saying the same thing. but really you're just looking to run back tests. You're looking to run your agents against the same set of data day over day to find ways to optimize it. I sort of have a theory that the industry's been a little I the term is not hurt, but I think we had it good when it's just coding agents cuz Git by nature allows you to replay things in the past. State is always captured. When you start to think about production agents, how do you capture state over time so you can replay?
没有用户时,我们处于一个不错的状态。我们构建这种状态,并随着时间推移保持它不变。但这其实只是我们的目标。我们正在进行回测,衡量是否成功。we're in a nice place when we have no users. We build that state and we keep that state the same over time. But that's really just our goal. We're running a back test. We're measuring success.
每项任务如何评分 我们会构建一个任务,在这个例子中是一个对账任务。我们把这些东西称为“世界”(worlds)。这是 Mercor 想出来的一个说法,我很喜欢。一个世界也可以是你的生产数据,或者它的一个快照。没理由把它换进去,它们是一样的。我们让智能体运行,然后只评估最终输出。你可以看到我们设定的评分标准。每项任务通常有 10 到 20 条评分标准。我们不会评判执行轨迹本身,比如调用的工具是否正确、调用的技能是否恰当,或者执行路径是否高效。我们确实关心延迟、成本,以及是否成功。你可能会因为不同的原因关注执行轨迹,但在最初构建智能体时,你只希望它正确、成本低、速度快。How each task is graded We build a task, in this case a reconciliation. We call these things worlds. It's a term that Mercor came up with and I quite like it. a world could also be your production data, a snapshot of it. There's no reason to swap that in. It's the same thing. We have the agent run and then we just evaluate on the final output. You can see the criteria that we have. For each task we tended to have anywhere from 10 to 20 criteria. We didn't judge the trajectories themselves like were the right tools called, were the right skills invoked? Did it take an efficient path? We do care about latency, cost, and like success. there are different reasons you might care about trajectories, but when you're initially building your agent, you just want it to be right, to be cheap, and to be fast.
它是怎么做到的,没那么重要。所以这不是我们关注的重点。就像我之前那段小小的吐槽里说的,以这个为例,我们在找的是一些能够定义成功的要素。如果我只从机器学习工程的角度来看,我会说这些就是标签。我想说的是,在推出这个智能体之前,构建整套东西花了四到六个月。我认为,对于那些试图在前沿模型尚未充分优化的领域构建智能体的公司来说,在评测上投入这么多时间是很常见的。要是把它用作编程智能体,那当然,开箱即用可能就会表现得很好。如果你身处一个前沿领域,一个与模型优化目标稍微有些偏离的领域,那就需要花些时间来构建这些东西。How it gets there is a little bit less important. so, that's not what we focused on. And like I had said my mini rant before, in this as example, we're looking for a few things that define success. If I were just in MLE, I would say these are the labels. the thing I want to say is the process to build this whole thing was 4 to 6 months before launching this agent. And I think that level of time investment in evals is typical in companies that are trying to build agents for areas that are not fully optimized by the frontier models. You're throwing something as a coding agent, sure, it'll probably work great out of the box. If you're in a frontier area, an area that's slightly orthogonal to what they're optimized against, you need to spend some time building these things.
准确率与 pass@kAccuracy vs. pass@k
那么,我们如何衡量性能呢?我相信在座的很多人都见过这些指标。其中一个是准确率,这很简单。就像我说的,这项任务有六个标准,其中四项正确,准确率为 67%,也就是说可以计入部分得分。另一种常见的报告方式是 Pass@K。这里展示的是这个智能体的三次运行结果:第一次答对了四项,第二次答对了五项,最后一次答对了六项,也就是全部答对。Pass@K 是一种非此即彼的指标。对于错误代价非常高的领域,比如会计,你或许会选择将 Pass@K 作为优化目标。你必须确保每一步都正确。如果会计师无法相信所有步骤都准确无误,他们可能就不会使用你的智能体。So, how do we measure performance? I'm sure there's a lot of people in this room that have seen these metrics. one is accuracy, that's pretty simple. So, like I said, this given task had six criteria, four of those six are right, 67%, so partial credit counts. the other way that you'll see reported a lot is pass at K. this is an example of three runs on this given agent. in the first run, it got four right. Second run, it got five right. Final attempt, it got six right, so it got all of them right. Pass at K is an all or nothing metric. you could think for areas where the cost of error is very high, maybe like accounting, pass at K might be the thing you're optimizing for. You need everything to be right. If an accountant can't trust that all of the steps are right, then they may not use your agent.
所以,这是 pass@K。你可以看到,pass@1 为 0,pass@2 为 0,然后 pass@3 为 1,因为它终于解出来了。so, this is pass at K. You can see pass at one is zero, pass at two is zero, and then pass at three is one because it finally solved it.
选择模型Picking a model
这就是我们构建 eval 的方式,也是我们的 eval 内容。接下来我会讲讲,花了四到六个月、投入了这么多资金和时间之后,我们现在如何运用这些 eval。首先显而易见的一个应用场景,就是挑选前沿模型。你会想知道:哪个模型在这方面表现最好?这份数据有点旧了,来自 Stack 发布时我们写的一篇博客文章。当时你大概能看出,Opus 系列模型的表现最好。我们现在重新运行这些基准测试时,看到的结果仍然如此。[字幕中最佳模型版本不明确。] 你还会发现,准确率很高,而 Pass@1 的通过率很低。这些基准测试还没有达到饱和状态,这很好;对我们来说也很不错,因为我们发现,优化测试框架可以提高通过率。That's how we built the evals. That's what our evals were. I'm going to talk about all the things we now do with these evals now that we spent that four to six months, now that we spent all the money on it and time. I mean, the first obvious case, right, is you're going to like pick a frontier model. You're going to be like, which model is best at this? this is a little old. This is from a blog post we wrote when Stack launched. as you could sort of see at the time, the Opus models were the highest performing. That's still what we see when we rerun these benchmarks. [Best-model version unclear in captions.] What you'll also see is accuracy is very high. Pass at one is very low. These aren't saturated yet, which is great. it's great for us, too, because we find harness optimizations allow us to get better pass rates.
所以,这意味着你不能只靠一个前沿模型就解决这个问题。so, it means you can't just throw a frontier model at this problem and have it solved.
模型为何会失败:推理Why models fail: reasoning
我们深入研究了模型为什么无法发现可优化的环节。因此,我们考察了推理失败之类的问题:它是否掌握了所有数据?是不是推理过程出了错?是不是没有收集到正确的信息?是不是没有遵循指令?还有反思失败之类的问题,不过我其实会把它归为“其他”。我们发现一个有意思的结果:在会计领域,问题出在推理失败。这意味着这些测试框架其实很擅长收集恰到好处的数据。会计并不是一项特别难的数据收集工作。应付账款这类东西,我都能讲给五岁小孩听——当然,是比较聪明的五岁小孩。所以,你大概能知道需要哪些文件。由此可以看出,你知道,模型就是没那么聪明。We dug deeper into why the models are failing to spot areas for optimization. so, we looked at things like reasoning failure. Does it have all the data? It's just reasoning through it incorrectly? does it not gather the right information? Does it not follow instructions? and then like reflection failure, which is I would actually call it other. interesting result that we see is that for accounting, it's reasoning failure. What that means is that these harnesses are pretty good at actually gathering the right amount of data. Accounting is not that difficult of an gathering exercise. Accounts payable is like something I could explain to like a five-year-old, so you could sort of get a well, sophisticated five-year-old. so, you could sort of get what files you would need. and so, what this sort of says is like, you know, the models, they just ain't that smart.
而且我们在这方面还有不少发挥空间。有意思的是,[字幕中模型名称不清楚] 在这方面表现得非常好。所以我们做了大量实验。and we've got some room to run here. what was interesting was [model name unclear in captions] actually did really well in this. so we ran a ton of experiments.
失败的实验Experiments that failed
这些都是失败的尝试。我其实有点喜欢这一点,因为你会看到论文里写着他们做了这些很棒的事情来优化和调优智能体,却不会告诉你还有 30 件事都失败了。其实我想特别强调其中一件。我先稍微岔开一下,聊个小话题。[字幕中方法名称不清楚]、自动调优、自动研究技能。都不行。也许是我们的智能体有问题,但我觉得,在文本空间里通过评估来做爬山搜索,并不是我首先会尝试的办法。直觉上很难理解它为什么会奏效,也就是说,很难理解你如何从梯度中获得方向。我们没有看到成功。后来我们还是没能看到成功。我想特别指出这一点,因为我觉得关于自动研究的说法有很多噪音。Karpathy 那条著名推文说的是调优机器学习模型,而这显然有梯度、有方向。These are all the things that failed. I sort of like this because like you'll see papers of like these awesome things that they did to optimize and tune their agents and they don't show you the 30 things that failed. Actually want to highlight one. I'm going to go on like a mini side quest for a moment here. [method name unclear in captions], auto-tuning, auto researching skills. No good. it might be our agent, but I think the idea of hill climbing with evals on text space is not the first thing I would do here. intuitively it's difficult to understand why it would work, i.e. how you can get direction on a gradient. we did not see success here. We were still not seeing success. I just want to call this out because I think there's a lot of noise on auto research. the Karpathy famous tweet is about tuning ML models, which obviously it has a gradient, it has a direction.
它搜索的空间也是有限的。很好。所以这里可以吸取的一个教训是:别指望自动化研究能解决你糟糕的智能体问题。It's also a finite space it's searching over. Great. so one lesson to take away from here is maybe don't think that auto research is going to solve your bad agent problem.
技能消融Skill ablation
这里有一些确实奏效的实验。我会讲两个:技能消融和轨迹蒸馏记忆。我受训成为一名 MLE。通常,你会构建一堆特征,把它们放进模型里,然后可能做留一特征实验,或者把特征加回来。这一切都是为了评估某个特征对模型性能的增量贡献。对于拥有许多技能、许多工具的智能体,我们没有对工具进行实验,而是对技能进行了实验。工具比较难处理一些,不过你也可以做类似的事情。我们只是尝试精简技能的数量,以节省上下文。这就是你的目标。基本上,这里展示的是:如果看没有技能的基线,你可以把它理解为原始模型,也就是权重里本身包含的内容;然后再看移除技能和添加技能的效果。So here's some experiments that did work. I'm going to talk about two. I'm going to talk about skill ablation and trajectory distilled memories. So I'm an MLE by training. usually what you do is you build a bunch of features, throw them in a model, and then you might do like a leave one out feature, or you might add features back in. It's all just trying to assess the incrementality of a given feature on model performance. agents with many skills, many tools. We didn't do with tools, we did with skills. Tools are a little bit more difficult to deal with, but you could do a similar thing. we just tried to trim the number of skills saving context. That's your goal. and what this basically shows is if you look at no skill baseline, basically this is you could just think it's like the raw model, whatever's in the weights, versus removing versus like adding the skill.
我觉得其实我把它们弄反了。我觉得负面示例应该是擅长这项技能的,正面示例则是不擅长这项技能的。不管怎样,你们可以看到,有技能和没有技能确实存在差异。这为我们提供了一组候选项,让我们可以进一步考虑:也许应该删除这些技能、压缩这些技能,基本上就是提高效率。所以,技能消融,你们应该做。I think I've reversed these actually. I think the negatives are like it's good with the skill and the positives is bad with the skill. Regardless, what you can see is there's definitely differences in skills being there versus not being there. And this created a candidate set for us to then be like maybe we should delete these skills, compress these skills, basically make things more efficient. So, skill ablation, you should do it.
测试记忆功能Testing memories
工具消融也可以做。轨迹蒸馏记忆。所以,很多人都在谈记忆。我觉得,随着个人智能体兴起,人们会谈论记忆以及它们有多好,诸如此类。但人们其实并不会真正测试自己的记忆系统,至少我不常看到有人这么做。他们会准备一个提示词,压缩一些信息,把它存进某个存储库,然后再读出来。所以,我们在这里做的一个小创新,就是所谓的“向前滚动世界”。这稍微有点复杂,所以我来带你看左边那张图。但基本上,你要在两个时间段里执行同一个任务。完成第一个任务后,你写下一条记忆;接着,你可以把这条记忆注入进去——如果想稍微作弊一下的话——也可以让智能体在下一时间段执行同一任务时,从一组记忆中进行搜索。Tool ablation, you can also do. Trajectory distilled memory. So, a lot of people talk about memories. I think the rise of personal agents, people talk about the memories and how good they are, blah, blah. but people don't really test their memory systems. or at least I don't tend to see people testing their memory systems. They'll have a prompt, they'll compress some information, they'll put it into some store, and then they'll read it back. so, one little innovation we did here is what we call roll forward worlds. So, it's a little complex, so I'm going to walk you through that chart on the left. but basically, you do the same task over two time periods. You write a memory after the first task, and then you either inject the memory in if you want to cheat a little bit, or you let the agent search over a set of memories, for the same task in the following period.
所以,在我这里的这个例子中,我们想要匹配一些记录,也就是进行对账。这里有一些隐含的客户规则,以及客户喜欢采用的处理方式。这些规则并没有被完全编码进去,但你可以从成功标准中推断出来:要想成功完成这项任务,就必须学会这些规则。我们有一个记忆提示,它会对信息进行压缩并写入记忆,然后我们重新运行任务,让它再次读取这些记忆。我们实际看到,这里有很大的提升空间。为任务编写的记忆类型很大程度上取决于提示,而任务能否成功也取决于这些提示。我们观察到的提升非常显著;在采用这类评估后,这是我们看到的最大提升之一。So, in the example I have here is like we want to match some records, do a reconciliation. There's some implicit customer rules and how they like to do that. those will be not fully encoded, but you can infer them from the success criteria like you have to learn these rules in order to be successful at this task. We have a memory prompt that then compresses, writes, and then we rerun it, and it reads again. And what we actually saw that there is a ton of alpha here. Like the types of memories that were written for tasks really depended on the prompts, and then success also depended on those prompts. We saw a very large gain. This was actually one of the biggest gains we saw from having these types of evals.
后台回归测试Regression testing in the background
所以,你有一个很棒的数据集,可以用来运行评测。我觉得人们做得还不够的一件事,就是我所说的回归测试。作为一个见过很多非确定性结果、通过率只有 80%、70% 的人,我不太相信基于智能体评测来设置 CI 门禁。CI 门禁通常不是最好的做法。相反,我们现在搭建了一个内部平台来托管评测,大家可以把评测添加进去。你看到的上方图片展示了一个示例数据集。我们有很多不同的用例,还会给这些用例打标签,以便更好地对它们进行聚类和整理。我们会设置定期运行计划,比如每周、每天在后台运行。运行之后,我们会查看效果如何。我们还有一个后台智能体,会检查失败、回归等各种情况。So you have a great data set that you can run evals on. The thing that I think people don't do enough of is what I call regression testing. I'm not a big believer in CI gating based off of agentic evals as someone that's seen a lot of non-determinism, a lot of 80%, 70% passage. CI gating is not usually the best idea, but instead what we do now is we have an internal platform that hosts our evals that people can add the evals to. This top picture you see is an example of stack. We have a bunch of different cases. We actually tag these cases so that we can cluster and organize them a little bit better. We set a recurring schedule, so these should run in the background every week, every day, whatever. We run it, we see how things perform. We have a background agent that then looks at like failures, regressions, all of those things.
然后我们会收到一条 Slack 消息,告诉我们:“哦,看来有东西出现了回归。去查查看吧,我觉得这里出问题了。”and then we get a Slack message that tells us, "Ooh, it looks like something's regressed. Go investigate it. Here's what I think broke."
要点Takeaways
所以,充分发挥评测的价值很重要。总结一下:我时间到了。把一项工作拆解成明确的任务,构建真实的环境,尽可能多地挖掘价值,然后想办法将这些评测稳定地纳入工作流中,用来衡量表现。好,感谢大家聆听,也谢谢大家抽出时间。So, getting the value out of your evals is important. So, takeaways. I'm at time. Break down a job into discrete, you know, tasks. Build realistic environments. Focus on extracting like value as much as possible and then figure out how to consistently put those into workflows to measure performance. Cool. Thank you for listening and yeah, appreciate the time.