OctSum
00:00 / 11:44

AI Engineer · 11:44

Good afternoon everybody.

大家下午好。

I am Brian Kennedy.

我是 Brian Kennedy。

I'm an engineer on ZoomInfo's agentic platform.

我是 ZoomInfo 智能体平台的一名工程师。

Now, I want to start with showing you something one of our agents wrote.

现在,我想先给大家看看我们的一位智能体写的内容。

This is a real output from our product.

这是我们产品生成的真实输出。

The agent's job was to schedule an email for a customer, and this is what it reported back.

这位智能体的任务是为客户安排一封邮件,而这就是它反馈的结果。

It said it scheduled the email, it queued it up, and that it was going to go out on Tuesday.

它说邮件已经安排好了,已加入队列,并将于周二发送。

we don't just trust the agent, though.

不过,我们不会只相信智能体。

a second model checks the agent's work.

另一个模型会检查智能体的工作。

i'm going to call this one the judge.

我把这个模型称为“裁判”。

the judge read this and it accepted it.

裁判读了这段内容,并予以通过。

great.

很好。

now, here's the problem.

现在,问题来了。

and this is what had actually happened.

而实际发生的情况是这样的。

these are the tool results, the record of what actually ran when the agent called the tools.

这些是工具返回的结果,也就是智能体调用工具时实际执行情况的记录。

i'm going to call these the receipts.

我把这些称为“凭据”。

the agent tried to create a record in salesforce and it failed.

智能体试图在 Salesforce 中创建一条记录,但失败了。

the error message that came back says the record was not created and it tells the agent not to report a success or even make up a record.

返回的错误消息称记录未创建,并告知智能体不要报告成功,甚至不要编造一条记录。

we wrote this message ourselves for exactly this situation.

我们专门为这种情况编写了这条消息。

The agent tried again.

智能体又试了一次。

It created a task, which is a to-do.

它创建了一个任务,也就是一条待办事项。

No email was ever scheduled.

从来没有安排过发送邮件。

The agent doesn't even have a tool that can send an email.

这个智能体甚至没有发送邮件的工具。

The agent made it up and the judge approved it.

智能体捏造了这件事,而裁判却批准了。

So that's two failures.

所以这里有两处失败。

The agent fabricated a send and the judge rubber-stamped it, approved a claim that never actually checked.

智能体捏造了发送邮件这件事,而裁判却照单全收,批准了一个从未核实过的说法。

So if you build agents, you probably have run into this and you probably have a judge like this.

所以,如果你在构建智能体,你很可能遇到过这种情况,也很可能有过这样的裁判。

It might be a code reviewer or a grader of your evals or a supervisor in your loop.

它可能是代码审查员、评估结果的评分器,或是你工作流中的监督者。

anytime a model decides whether another model's work is good, this can happen.

只要有模型负责判断另一个模型的工作是否合格,这种情况就可能发生。

about for the next 10 minutes, i'll show you how we caught this and what we did about it.

接下来的10分钟里,我会向你展示我们是如何发现这个问题,以及我们对此采取了什么措施。

First, some quick background.

首先,简单介绍一下背景。

My team at ZoomInfo, uh, is called Agent Teams.

我在 ZoomInfo 的团队叫 Agent Teams。

We announced this last week.

我们上周刚宣布了这个项目。

Uh, it's a multi-agent orchestration layer that lives in ZoomInfo's GTM Studio.

它是一个多智能体编排层,运行在 ZoomInfo 的 GTM Studio 中。

It coordinates a team of specialized agents across a company's systems to run GTM workflows.

它会协调一组专用智能体,在公司的各类系统中执行 GTM 工作流。

For example, find companies, research them, write an email, log it into their CRM.

例如,查找公司、研究这些公司、撰写邮件,并将邮件记录到它们的 CRM 中。

Each agent has its own roles and instructions, like, and tools like Salesforce, HubSpot, Slack.

每个智能体都有自己的角色和指令,以及 Salesforce、HubSpot、Slack 等工具。

These agents make real decisions and take real actions in the customer's systems.

这些智能体会在客户的系统中做出实际决策并采取实际行动。

They write records and they send messages.

它们会写入记录,也会发送消息。

every team and every agent finishes a step, a second model checks its work.

每当一个团队或智能体完成一个步骤,另一个模型就会检查它的工作。

that's the judge.

那就是裁判。

and it has three options to move on, to redo the step, or to stop the job altogether.

它有三个选项:继续、重做这一步,或彻底停止任务。

you've probably heard this called llm as a judge.

你可能听说过这种做法叫作“让大语言模型充当裁判”。

it's the same idea as a code reviewer or an eval grader.

这和代码审查员或评估评分器的概念一样。

Now, the hard part for us is that it's one model and it has to grade every kind of agent that we're running through it.

对我们来说,难点在于只有一个模型,却要用它来评估我们运行的各种智能体。

Our customers build their own workflows with any agent and any tool in any order.

我们的客户可以用任何智能体和工具,按任意顺序构建自己的工作流。

So the permutations are almost infinite.

所以,可能的组合几乎是无穷无尽的。

so the list of jobs for the judge has to grow with it.

因此,裁判要处理的任务清单也必须随之扩展。

the judge can tell whether the work looks finished, but what it can't tell is whether the work was right, because that depends on what right means for each job, and we're asking it the same question for all of them.

裁判能判断工作看起来是否已经完成,但无法判断工作是否正确,因为每项任务对“正确”的定义都不同,而我们却对所有任务都问它同一个问题。

So here's where we're going.

接下来我们会讲讲我们的方案。

First, I'll talk about what we found when we checked the judge.

首先,我会介绍我们检查裁判后发现了什么。

Then what we chose instead, and what you can do today with your own agents.

然后讲讲我们最终选择了什么,以及今天你可以如何在自己的智能体上实践。

To start, we ran offline evals.

首先,我们进行了离线评估。

We took 500 real steps from production, each with a decision that the judge had made.

我们从生产环境中抽取了500个真实步骤,每个步骤都有裁判作出的决定。

Then we took a larger frontier model and regraded every one of those to come back with an accept or a send back.

然后,我们用一个更强大的前沿模型重新评估每个步骤,让它判定接受还是退回。

Then we hand checked each of those samples and we checked the grades.

接着,我们逐一人工检查这些样本,并核对评分。

Where we disagreed with the model, we went with our call.

如果我们和模型意见不一致,就采用我们的判断。

This gave us a reference label for all 500 steps.

这样,我们就为全部500个步骤都得到了一个参考标签。

And it turned out the judge was right 65% of the time, so more or less a coin flip.

结果发现,裁判只有65%的时候判断正确,差不多就像抛硬币。

it accepted 118 steps that it should have sent back.

它接受了118个本应退回的步骤。

that's more than one in four of everything that it accepted.

这超过了它所接受内容的四分之一。

Pretty bad.

相当糟糕。

And when we read through those, the most common problem was that similar to the email at the start, the agent reported that it did something like send a message and no tool call had ever done that.

我们通读这些记录后发现,最常见的问题和开头的那封邮件类似:智能体声称自己做了某件事,比如发送了一条消息,但实际上没有任何工具调用执行过这项操作。

So to see why the judge had accepted it, let's go back to the email example and look at what the judge was given.

那么,要弄清楚裁判为什么会接受它,我们回到邮件这个例子,看看裁判拿到了什么。

On the left you have what the agent's own summary.

左边是智能体自己的总结。

Think of it as like a story.

可以把它想成一个故事。

It's confident, it's well written.

它语气自信,写得也很流畅。

It says the email was scheduled.

它说邮件已经安排好了。

Now on the right, you have the receipts.

右边则是实际凭据。

This is the actual tool results.

这是工具实际返回的结果。

There are errors, failed to create messages, telling the agent not to make up the record.

里面有错误,显示创建消息失败,还提醒智能体不要捏造记录。

Now the judge had both of these, and it went with the story.

裁判同时看到了这两边的内容,却采信了那个故事。

The work looked fine on the surface, so it accepted it.

表面上看,工作似乎做得不错,所以它就接受了。

Now, this isn't only our judge.

当然,这不只是我们这个裁判的问题。

You can think of a code review agent that reads the PR description before it looks at the diff.

你可以想象一个代码审查智能体:它先读 PR 描述,再看代码差异。

It's a similar kind of problem.

这也是类似的问题。

If the description says, I fixed the bug, added tests, the agent is going to lean on that when it reads the code.

如果描述写着“我修复了这个 bug,也添加了测试”,智能体读代码时就会受到这番话的影响。

so the obvious fix at the start was to tune the judge and write a better prompt.

所以,一开始最显而易见的解决办法,就是调整裁判并写出更好的提示词。

for us, that was going to be a significant amount of work.

对我们来说,这需要投入大量工作。

our agents write sales emails, update crms, do research, and to judge each of these well, we'd have to figure out what it was that the user was asking.

我们的智能体会撰写销售邮件、更新 CRM、开展研究。要把这些工作都评判好,我们就得弄清楚用户究竟想要什么。

give the judge the right rules for every kind of work and keep it all up to date.

为评审器提供适用于每种工作的正确规则,并让规则始终保持最新。

That's basically a custom judge for every use case.

这基本上就是针对每种使用场景定制一个评审器。

What we went with, we went in a different direction.

我们选择了另一条不同的路。

We stopped asking one big general question, is this good?

我们不再问一个笼统的大问题:这做得好吗?

And we started asking a short list of small yes or no questions.

而是开始问一小组简短的是非题。

They are the same questions for every step, and each one is small enough to answer by looking at the receipts.

每个步骤都问同样的问题,而且每个问题都足够简单,只要查看记录就能回答。

The first option here is basically a prompt tuning project that never ends, whereas the second one is a small handful of small checks.

第一个方案基本上是一个永无止境的提示词调优项目;而第二个方案只需要少量的小检查。

Now to answer those questions, we use Jev.

现在,为了回答这些问题,我们使用 Jev。

You've heard a lot about Jev today, so I'll skip that and keep that short.

今天你们已经听了很多关于 Jev 的介绍,所以我就略过,简单说说。

It's a typed decision model, not a generative model.

它是一种有类型的决策模型,而不是生成式模型。

For mom at home watching, just ask Claude.

在家看直播的妈妈们,直接问 Claude 就行。

And we'll send it structured facts, you know, about the step and a listed type of questions.

我们会向它发送结构化事实,比如关于该步骤的信息,以及一系列问题。

A type question is a yes or no question or a choice with from a fixed list of options.

有类型的问题是是非题,或者从固定选项列表中选择的问题。

It sends back a probability for each answer and it answers all the questions in one call.

它会为每个答案返回一个概率,并在一次调用中回答所有问题。

we gave it four things, the instructions, the input, the receipts, meaning every tool call, and whether it was successful or it failed, and the agent's report.

我们给它四样东西:指令、输入、记录(也就是每次工具调用,以及调用成功还是失败),还有智能体的报告。

then we asked for one choice, which was accept, redo, or stop.

然后我们让它从接受、重做或停止这三个选项中选一个。

and that choice makes the decision.

这个选择就决定了最终结果。

But then we also ask seven yes or no questions.

但我们还会问七个是非题。

Those seven questions tell us the why.

这七个问题能告诉我们原因。

They decide between a redo and a stop, and they go into the feedback that the agent gets when it actually has to redo a step.

它们决定是重做还是停止;如果智能体确实需要重做某个步骤,这些问题的答案也会纳入提供给它的反馈。

Now, back to the email.

现在,回到这封邮件。

The LLM judge accepted it, and it took about two and a half seconds.

LLM 裁判接受了它,耗时大约两秒半。

Jev gave us a probability for each option.

Jev 为每个选项都给出了一个概率。

For this step, it accepted 0%, redo 97%, and stop at 3%.

在这一步,它给出的概率是:接受 0%、重做 97%、停止 3%。

And it took about a fifth of a second.

耗时大约五分之一秒。

we make the decision from the probability of accept.

我们根据接受的概率来做决定。

at 30% or higher, we accept that.

达到 30% 或更高时,我们就接受。

at 5% or lower, we redo or stop.

低于或等于 5% 时,我们就重做或停止。

and anything in between means jev isn't sure, so we kick it to an llm judge.

介于两者之间则意味着 Jev 不确定,所以我们会把它交给 LLM 裁判。

we picked those cutoffs from testing the 500 labels that we had at the beginning.

我们根据一开始手头的 500 个标签进行测试,选定了这些阈值。

now, to test whether or not this works better, we took two different routes.

现在,为了测试这种方法是否效果更好,我们采用了两种不同的做法。

the first test used the same 500 production steps from the offline eval.

第一项测试使用了离线评估中的同一批 500 个生产步骤。

jev was confident enough in about 7 out of 10 of them.

其中大约十分之七,Jev 都有足够的把握。

one of those steps, the llm judge had accepted 82 that should have been sent back.

在其中一个步骤中,LLM 裁判接受了 82 个本该退回的步骤。

each red square here is one of those.

这里每个红色方块都代表其中一个。

Jev successfully caught 74 of those.

Jev 成功识别出了其中的 74 个。

The blue squares are the ones that Jev would have sent back.

蓝色方块是 Jev 会退回的那些步骤。

Now, the second test is what we called shadow mode.

第二项测试,我们称之为影子模式。

Both judges look at every step, but only the LLM judge, uh, that decision counts.

两个裁判都会查看每个步骤,但只有 LLM 裁判的决定会生效。

So we saved Jev what would have done, and we don't let it affect the actual run.

所以我们记录 Jev 会怎么做,但不让它影响实际运行。

That gave us 37,000 decisions to mine for insights.

这让我们有 37,000 个决策可供挖掘洞见。

and in that time, there were 728 steps where a tool had clearly failed.

在此期间,有 728 个步骤明显出现了工具故障。

the llm caught 294 of them.

LLM 发现了其中 294 个。

jev caught 623.

Jev 发现了 623 个。

and the fake email from the beginning, it wasn't a one-off thing either.

一开始那封假邮件,也不是只发生过一次。

the same step ran 1,081 times, and almost every time the agent said it had scheduled an email, the llm judge only caught it once.

同一个步骤运行了 1,081 次,几乎每次智能体都说自己安排好了邮件发送,而 LLM 裁判只发现过一次。

Jev caught that 876 times.

Jev 发现了 876 次。

And when you have a judge, every step waits.

而有了裁判,每个步骤都得等。

Jev was ten times faster and forty times cheaper.

Jev 的速度快了十倍,成本低了四十倍。

At this scale, it is massive.

在这个规模下,差别非常显著。

So, what's next?

那么,接下来呢?

Right now, every step goes with the same seven questions.

现在,每个步骤都会问同样的七个问题。

They go into Jev along with the facts, and Jev gives us an accept, redo, or stop.

这些问题连同事实一起交给 Jev,Jev 会给出接受、重做或停止的结果。

But next, we're adding post-condition checks, which are questions that depend on which tool called, uh, was within the step.

接下来,我们要加入后置条件检查,也就是根据步骤中调用的工具来确定的问题。

So we don't have to guess.

这样我们就不用猜了。

Uh, we know the step up front because the tool tells us.

我们一开始就知道步骤是什么,因为工具会告诉我们。

If a step's called, let's say, a send tool, we also ask whether the message was delivered.

如果某个步骤调用了发送工具,比如说,我们还会询问消息是否已送达。

If it wrote a record, we ask whether the record exists.

如果它写入了一条记录,我们就会询问这条记录是否存在。

And those go into Jev with the same seven questions in the same call.

这些问题会和同样的七个问题一起,在同一次调用中交给 Jev。

Now what can you do today with your agents?

那么,今天你能用智能体做些什么?

first, pick one judgment.

首先,选定一个判断标准。

somewhere in your systems, there's an llm deciding whether or not something is good.

在你的系统某处,有个 LLM 正在判断某件事好不好。

it might be reviewing code, creating an eval.

它可能在审查代码,或是在创建评估。

pick one of those and rewrite it as a few simple yes or no questions that can be answered from the evidence.

选其中一个,把它改写成几个简单的是非题,答案都能从证据中得出。

second is build it.

第二步是把它构建出来。

this is the easy part, honestly.

说实话,这部分很简单。

we used jev and ours was seven questions.

我们用的是 JEV,一共有七个问题。

And then the third, ship it in shadow mode.

第三步,在影子模式下部署它。

Run it next to what you already have, but don't let it make the decisions yet.

让它和你现有的系统并行运行,但暂时别让它做决定。

Just save it, and then you can analyze it later.

只要把结果保存下来,之后就可以分析。

Then read the cases and see where the two disagree.

然后查看这些案例,看看两者在哪些地方意见不一致。

Don't overthink it, just start small.

别想得太复杂,从小处着手就好。

We had trusted our judge until we measured it.

在测量之前,我们一直信任自己的评判器。

Measure yours.

测量一下你的评判器。

Run a second check.

再做一次检查。

Run it in shadow mode and see where it disagrees.

在影子模式下运行它,看看它在哪些地方意见不一致。

You may be surprised with what you find.

你可能会对发现的结果感到惊讶。

Thank you.

谢谢。

Overview

ZoomInfo 工程师 Brian Kennedy 分享了智能体审查中的一个典型失误:智能体声称已安排邮件,实际上工具调用失败且系统没有发送邮件,通用 LLM 评审却采信了智能体的叙述。团队抽查 500 个生产步骤后发现,评审判断正确率仅为 65%,常因相信“故事”而忽视工具结果。为减少对每类任务编写定制评审提示的负担,他们改用 Jev 对工具记录等结构化事实进行判断,并回答七个简短的是非问题。离线评测与 37,000 次影子模式决策显示,这种方式更能发现工具失败,同时速度更快、成本更低;演讲最后建议从小处着手、依据证据设计问题,并先以影子模式验证。

Chapters

00:12 邮件未发送,评审却判定成功

ZoomInfo 的智能体声称已为客户安排周二发送的邮件,第二个模型也接受了这份报告。但工具记录显示,智能体创建 Salesforce 记录失败,随后只创建了一个待办任务;系统没有发送邮件,智能体甚至没有发送邮件的工具。智能体捏造了成功结果,评审却批准了它,暴露出“模型评模型”可能把未经核实的报告当成事实。

代理声称邮件已排期并将在周二发送
评审模型接受了代理的说法
展示工具实际执行记录
错误信息显示 Salesforce 记录创建失败
实际结果是邮件从未排期

02:01 Agent Teams 的工作流与通用评审难题

ZoomInfo 的 Agent Teams 是 GTM Studio 中的多智能体编排层,可让具备不同角色和工具的智能体跨系统执行工作流,例如寻找并研究公司、撰写邮件、记录 CRM。每个团队或智能体完成步骤后,评审模型可以选择继续、重做或停止。然而客户能以不同智能体和工具组合出几乎无限种工作流;同一个通用评审问题只能判断结果看起来是否完成,却难以判断它是否符合每项任务各自的正确标准。

评审模型无法判断不同任务中的工作是否正确

03:49 500 个生产步骤揭示评审准确率问题

团队抽取 500 个真实生产步骤,由更大的前沿模型重新评分,再逐项人工核对并形成参考标签。原评审判断正确率只有 65%;它错误接受了 118 个本应退回的步骤,超过所有已接受步骤的四分之一。最常见的问题与邮件案例相似:智能体声称发送了消息,却没有任何工具调用实际完成发送。

生产数据样本规模
评审准确率仅为65%
误接受的步骤数量

04:47 评审采信智能体叙述,而非工具回执

邮件案例中,评审同时看到了智能体自述和工具返回结果:自述措辞自信、完整,称邮件已安排;回执却记录了创建消息失败,并明确提示不要编造记录。评审仍然选择相信自述。类似偏差也可能出现在代码审查中:评审先读到 PR 描述宣称修复了漏洞、添加了测试,便可能在检查代码差异时受其影响。

智能体摘要称邮件已安排
工具回执显示创建消息失败,与摘要说法相矛盾

05:38 用可由证据回答的小问题代替定制大评审

为每一种销售邮件、CRM 更新或研究任务定制评审规则,需要不断推断用户意图并维护各自的提示词。团队改为对每个步骤提出一组相同的简短判断题,每题都能依据工具回执回答。Jev 是类型化决策模型而非生成式模型,可接收步骤事实和问题清单,在一次调用中为是非题或固定选项返回各自概率。

以简短、可判断的问题替代一个笼统的整体评估
用步骤相关的证据回答统一的小问题

07:03 七个判断问题与概率阈值决策

Jev 接收指令、输入、所有工具调用及其成功或失败状态,以及智能体报告;系统还会询问七个是非问题,用于说明判定原因、区分重做与停止,并形成返工反馈。邮件案例中,Jev 给出的概率为接受 0%、重做 97%、停止 3%,用时约五分之一秒,而原 LLM 评审约需 2.5 秒。团队以接受概率设阈值:30% 及以上接受,5% 及以下重做或停止,中间区间交给 LLM 评审;阈值来自对 500 个标注样本的测试。

该步骤的 accept、redo 与 stop 概率分布
接受决策的概率阈值
中间概率区间交由 LLM judge 判断

08:19 离线比较:Jev 找出更多应退回步骤

在同一批 500 个生产步骤上,Jev 对约七成样本有足够把握。LLM 评审曾接受 82 个本应退回的步骤,Jev 成功发现其中 74 个。这个离线测试表明,基于结构化问题和证据的判断可以纠正相当一部分原评审的错误接受。

图中红色方块代表应被退回但被接受的步骤
Jev 成功识别并拦截 74 个步骤
蓝色方块标示 Jev 会退回的步骤

08:56 影子模式验证 37,000 次决策

影子模式下,两个评审同时检查每个步骤,但只有原 LLM 的决定影响实际运行,Jev 的判断仅被保存供分析。累计 37,000 次决策中,有 728 个步骤的工具明确失败;LLM 发现 294 个,Jev 发现 623 个。同一类虚构邮件步骤重复运行 1,081 次,LLM 几乎每次都漏掉、总共只发现一次,Jev 则发现了 876 次。

影子模式累计决策数
LLM judge 捕捉到的失败次数
Jev 捕捉到的失败次数
同一步骤重复运行次数
Jev 捕捉到邮件误报的次数

09:42 速度、成本与后置条件检查

每个评审步骤都可能让工作流等待;Jev 的运行速度快十倍、成本低四十倍。团队还计划加入依工具类型而定的后置条件检查:如果步骤调用了发送工具,就核实消息是否送达;如果写入记录,就核实记录是否存在。这些检查会与原有七个问题一起交给 Jev,从而直接检查实际结果。

速度与成本优势数据
步骤判断的三种结果
新增的后置条件检查
发送步骤的交付检查

10:32 从一个判断开始,以影子模式测量

实践建议是先找出系统中一个由 LLM 判断好坏的环节,把它改写成能根据证据回答的几个简单是非题;随后构建检查器,并与现有评审并行运行影子模式,暂不让新判断影响实际决策。保存结果后检查两种评审意见不一致的案例,从小范围开始并用测量验证原有评审。

并行运行新旧判断方式,暂不让新方式做决定

Conclusions

00:56 智能体的自述不能代替工具执行证据;评审若采信流畅的报告而忽略失败回执,就会批准并未发生的操作。

06:04 把“这一步做得好吗”拆成少量可由工具回执验证的通用问题,可以减少为不同工作流持续维护定制评审规则的负担。

09:07 在 37,000 次影子模式决策中,Jev 发现了 623 个工具明确失败的步骤,而 LLM 评审发现 294 个。

10:57 新评审应先与现有系统并行运行影子模式,通过分析分歧来验证效果,而不是一开始就接管实际决策。