A Jev that can ask Opus for help gives Opus accuracy at 4x lower cost

本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。

We tested whether fast, cheap decision models like Jev and GPT-6 Luna could grade identity resolution as well as frontier LLMs, and found that pairing Jev with Claude Opus gets close to Opus-level accuracy for much less.

我们测试了像 Jev 和 GPT-6 Luna 这样快速且廉价的决策模型是否能像前沿大语言模型(LLM)一样对身份解析进行评分,结果发现将 Jev 与 Claude Opus 结合使用,能以低得多的成本获得接近 Opus 水平的准确率。

We wanted to test whether LLMs and decision models, specifically Jev and Luna, could solve a hard problem that we encounter regularly (grading identity resolution results). We found that while both models performed okay out of the box (88.8–97.3% accuracy), implementing a hybrid model that combines Jev + Opus achieves frontier accuracy at > 4x lower costs.

我们希望测试大语言模型和决策模型(特别是 Jev 和 Luna)能否解决我们经常遇到的一个难题(即对身份解析结果进行评分)。我们发现,虽然这两个模型在开箱即用时表现尚可(准确率为 88.8%–97.3%),但实施一种结合了 Jev 和 Opus 的混合模型,能以超过 4 倍的低成本实现前沿水平的准确率。

Identity resolution is the process of mapping data to corresponding real people. More precisely, say you have a set of data records D. Determine a set of identities I and mapping m(D)->I such that each record d ∈ D maps to an identity i ∈ I , each i corresponds to exactly one real person in the real world, and no two i correspond to the same person in the real world.

身份解析是将数据映射到相应真实个人的过程。更准确地说,假设你有一组数据记录 D。确定一组身份 I 和映射 m(D)->I,使得每条记录 d ∈ D 都映射到一个身份 i ∈ I,每个 i 对应现实世界中的唯一一个人,且没有两个 i 对应现实世界中的同一个人。

This is foundational for any company wishing to do outreach, personalization, or analytics on customers. You can’t know, for instance, the lifetime value of a customer without being able to map all their purchases to a single identity.

对于任何希望对客户进行外联、个性化服务或分析的公司来说,这是基础工作。例如,如果你无法将客户的所有购买记录映射到同一个身份,就无法得知该客户的终身价值。

For example, the input data might contain the following records. IDR would ideally create one identity, Alice, and associate all of these records with Alice.

例如,输入数据可能包含以下记录。理想情况下,身份解析(IDR)会创建一个身份“Alice”,并将所有这些记录与 Alice 关联起来。

In practice, IDR is very difficult. People share emails, move addresses, etc. There might also be errors in the data. See some examples here:

在实践中,身份解析非常困难。人们会共用电子邮件、搬迁住址等。数据中也可能存在错误。请在此处查看一些示例:

The most common and problematic issue with IDR is over-merging. This is when an identity i incorrectly corresponds to multiple people in the real world.

身份解析中最常见且最棘手的问题是过度合并。即一个身份 i 错误地对应了现实世界中的多个人。

On real data, there is no answer key we can consult after we’ve merged records into identities. If there were, then we’d just use that to match data, and we wouldn’t need to do IDR. This makes it very difficult to assess the accuracy of any IDR algorithm. In practice, teams will spend months attempting to determine if their IDR is working.

在真实数据中,当我们把记录合并为身份后,没有可以参考的答案键。如果有的话,我们直接用它来匹配数据就行了,根本不需要进行身份解析。这使得评估任何身份解析算法的准确性都变得非常困难。在实践中,团队往往需要花费数月时间来确定他们的身份解析是否有效。

You can use heuristics to look for statistical signs of over-merged profiles (count the number of emails per identity, etc), but ultimately you need to sample output identities and review them by hand to know how well your IDR algorithm is performing.

你可以使用启发式方法来寻找过度合并配置文件的统计迹象(例如计算每个身份的电子邮件数量等),但最终你需要对输出的身份进行抽样并人工审查,才能了解你的身份解析算法表现如何。

To do this, we define the records Dᵢ as the set of d such that m(d) -> i for any given i. If the IDR engine is successful, then we should only find evidence of one real person in any given Dᵢ.

为此,我们将记录 Dᵢ 定义为满足 m(d) -> i 的所有 d 的集合(针对任何给定的 i)。如果身份解析引擎成功,那么在任何给定的 Dᵢ 中,我们应该只能找到一个真实存在的证据。

Human sampling is slow (~50 identities/hr), and sampling small numbers of identities gives poor estimates of over-merging. Over-merges are rare in a healthy graph, and estimating a rare rate precisely takes more samples than people expect (> 1000 samples to get the error down to under +-1% on over-merging rate)

人工抽样速度很慢(约每小时 50 个身份),且抽样数量过少会导致对过度合并的估计不准确。在健康的图中,过度合并的情况很少见,要精确估计这种罕见比率所需的样本量比人们预期的要多(需要超过 1000 个样本才能将过度合并率的误差降至 +-1% 以下)。

An LLM should, intuitively, be able to replicate what a human is doing when they inspect an identity. If a model can judge identities at human accuracy, then we could spin up as many LLMs as we want to grade identities in parallel. A sample of 100,000 identities could be evaluated in seconds. This would enable much faster iteration cycles when setting up IDR, and make maintenance much easier.

直觉上,大语言模型应该能够复制人类检查身份时的操作。如果一个模型能以人类的准确度来判断身份,那么我们就可以并行启动任意数量的大语言模型来对身份进行评分。10 万个身份的样本可以在几秒钟内完成评估。这将使设置身份解析时的迭代周期大大加快,并使维护工作变得更加容易。

Of particular interest are Jev and GPT-6 Luna. These are members of a new class of language models that return a 0-1 confidence score that a specific condition is true. They are far faster and cheaper than current frontier models.

特别值得关注的是 Jev 和 GPT-6 Luna。它们属于一类新型语言模型,能够针对特定条件是否成立返回 0 到 1 之间的置信度分数。它们比当前的前沿模型要快得多,也便宜得多。

We made a benchmark with pseudopeople, a tool from the Institute for Health Metrics and Evaluation at the University of Washington. It simulates a fictional US town and generates records of its residents from multiple sources. We also added a bunch of realistic data errors.

我们使用华盛顿大学健康指标与评估研究所开发的工具“pseudopeople”建立了一个基准测试。它模拟了一个虚构的美国城镇,并从多个来源生成了居民记录。我们还添加了许多现实中的数据错误。

From those records, we built 1,000 identities. Half are one person with noisy records, and half are over-merges. Then we spun up some models and measured how they did.

根据这些记录,我们构建了 1000 个身份。其中一半是带有噪声记录的单个人,另一半是过度合并的身份。然后我们启动了一些模型并测量了它们的表现。

We started with a plain prompt:

我们首先使用了一个简单的提示词:

Then we described the kinds of noise in the data, so that a typo would not be mistaken for a new person:

然后我们描述了数据中存在的噪声类型,这样拼写错误就不会被误认为是新的人:

Then we explained where the records came from:

接着我们解释了记录的来源:

Every model gained the most from the error examples. The data context then added at most a point for the frontier models and wasn’t helpful for the decision models. Our guess is that decision models don’t really reason, so providing fundamental context doesn’t help them. We kept the full prompt for all models to keep things consistent. With the final prompt, the results were:

每个模型都从错误示例中获益最多。数据上下文对于前沿模型来说最多增加了一个百分点的准确率,而对决策模型则没有帮助。我们推测决策模型并不具备真正的推理能力,因此提供基础上下文对它们没有帮助。为了保持一致性,我们对所有模型都保留了完整的提示词。使用最终提示词后的结果如下:

Initially, we used a 50% confidence threshold, but this was arbitrary. We can adjust it to trade one type of error for another.

最初,我们使用了 50% 的置信度阈值,但这很随意。我们可以调整它,以权衡不同类型的错误。

The cutoff matters a lot for Jev and very little for Luna. We settled on 60% for Jev and 70% for Luna, which maximize accuracy in each case. Here’s how both models perform with a better-calibrated threshold.

这个临界值对 Jev 影响很大,对 Luna 影响很小。我们最终确定 Jev 的阈值为 60%,Luna 为 70%,这在各自情况下都能实现准确率最大化。以下是两个模型在经过更好校准的阈值下的表现。

So far Luna looks very good; indeed, it’s surprisingly close to the frontier models at a small fraction of their cost. We decided to up the difficulty of our test to see if the frontier models could pull ahead.

到目前为止,Luna 看起来表现非常好;事实上,它以极低的成本获得了惊人地接近前沿模型的表现。我们决定提高测试难度,看看前沿模型是否能拉开差距。

We used the same town and the same kinds of noise, but only tricky cases. We tried to trick the model by constructing cases including:

我们使用了同一个城镇和同样的噪声类型,但只选取了棘手的案例。我们通过构建以下案例来试图欺骗模型:

Example easier over-merged identity

较容易的过度合并身份示例

Example harder over-merged identity

较难的过度合并身份示例

Great, there’s a clear gap between the frontier models and Luna now. Interestingly, Luna is also now level with Jev, despite being ahead previously. We started digging into the cases where Luna and Jev got it wrong to see whether we could improve accuracy without paying for a frontier model.

太好了,现在前沿模型和 Luna 之间出现了明显的差距。有趣的是,尽管 Luna 之前领先,但现在它与 Jev 持平了。我们开始深入研究 Luna 和 Jev 出错的案例,看看是否能在不支付前沿模型费用的情况下提高准确率。

In investigating the cases in which Jev and Luna missed while the larger models got it right, we noticed a very interesting pattern. Let’s start with the easier dataset to see it clearly.

在调查 Jev 和 Luna 出错而大型模型表现正确的案例时,我们发现了一个非常有趣的模式。让我们从较简单的数据集开始,以便清晰地观察它。

GPT-6 Luna, Decisions API

GPT-6 Luna,决策 API

Most of Jev’s mistakes are closer to 50% confidence, which is what you’d expect out of a well-calibrated model. Luna, on the other hand, seems quite overconfident in the 90–100% bucket despite making far fewer mistakes.

Jev 的大多数错误都集中在 50% 的置信度附近,这正是你对一个校准良好的模型所期望的。另一方面,Luna 尽管犯错更少,但在 90%–100% 的置信区间内似乎显得过于自信。

Let’s see what happens when we re-run on the trickier cases.

让我们看看在更棘手的案例中重新运行会发生什么。

GPT-6 Luna, Decisions API, harder test

GPT-6 Luna,决策 API,更难的测试

While Jev’s conf

虽然 Jev 的置信度