TL;DR:在不更改模型的情况下,我们能将 AI 智能体提升多少?我们使用 GPT-OSS-120B 在 VAKRA 基准测试中测试了我们的开源智能体 CUGA。我们没有改变模型,而是改进了智能体框架(agent harness):包括它如何选择工具、执行多步任务以及如何生成答案。这些改进是可复用的配置选项,而非针对特定基准的修补方案。现在,CUGA 在 VAKRA 的所有四项能力上均优于使用相同模型的 LangGraph ReAct 智能体。在多跳任务中,其成功率从 19% 提升至 52.8%。所有改进均为开源,VAKRA 特定的集成保留在一个单独的适配器中。
为什么框架对开放权重模型至关重要
智能体由模型和框架组成。框架控制模型能看到什么、智能体如何调用工具以及如何给出最终答案。前沿模型对较弱的框架更具包容性。而处于 100B 量级的开放权重模型往往无法做到这一点,许多企业出于成本、隐私或本地部署的考虑必须使用开放权重模型。
我们想知道,在模型保持不变的情况下,框架能在多大程度上缩小差距。VAKRA 为我们提供了一种衡量方式。
起点
VAKRA 从四项能力对企业智能体进行评分:商业智能(BI)API、工具选择任务、多跳任务以及策略下的多源多跳任务。为了保持比较的公平性,我们将 CUGA 与使用相同模型的参考智能体——即基于 GPT-OSS-120B 的 LangGraph ReAct 智能体——进行比较。
我们的首次运行使用了未经任何更改的原始 CUGA。在一组任务样本中,CUGA 解决了 12% 的工具选择任务和 19% 的多跳任务。参考智能体则分别解决了 50.5% 和 25.1%。我们检查的每一个失败案例都指向框架问题,而非模型本身。
VAKRA 给我们的启示
模型无法从数百个外观几乎相同的工具中进行选择。VAKRA 为智能体提供了一个庞大的 API 目录,其中许多 API 具有相似的名称和模式。当所有这些内容都被放入提示词时,模型会选择错误的工具或捏造参数。在模型看到目录之前,工具选择需要有一个独立的步骤。
“代码优先”执行会在看到任何结果之前就承诺完成整个工具调用链。默认情况下,CUGA 会编写一个简短的 Python 脚本,按顺序调用多个工具。当步骤相互独立时,这很有效。但在多跳任务中,每个步骤都需要前一步的输出,因此模型预先编写的脚本往往会使用错误的值。这些任务需要智能体在采取下一步之前查看每一步的结果。
以下是来自 VAKRA 训练集的一个真实任务:“哈佛大学所在的国家,2016 年女性大学生的百分比是多少?”该任务需要两个顺序工具:一个用于确定大学所在的国家,另一个用于检索该国和该年份的百分比。在代码优先模式下,CUGA 在未检查中间结果的情况下调用了这两个工具。第一个返回了 {"country_name": "United States of America"},但 CUGA 将整个记录传递给了第二个工具,而不是提取国家名称。查询因此失败。
答案必须来自模型实际看到的数据。某些运行找到了正确的数据,然后以错误的格式给出答案,或者给出了数据不支持的答案。当运行在中间阶段失败时,智能体有时会返回无法评分的内容。
三个新的配置点
每一个教训都变成了任何 CUGA 部署都可以使用的设置。
原生函数调用。这是继“代码优先”执行之后的第二种执行模式。智能体进行一次真实的工具调用,检查结果,然后选择下一次调用。适用于与 API 进行对话的任务。这种模式打破了多跳任务的瓶颈。
可配置的短列表生成器(shortlister)。短列表生成器在模型选择工具之前,将工具目录缩减为一组候选工具。其使用的策略现在已成为每个部署的配置项。你可以从三种内置策略中选择一种,或者接入自己的策略:llm(由模型选择工具,这是默认选项);embedding(一种无需调用模型的快速相似度搜索);以及 hybrid(先通过相似度搜索缩短列表,再由模型进行选择)。
最终答案流水线。这是一个受控步骤,用于生成答案:包括严格的输出格式、确定性的清理过程以及重试门控。智能体给出的答案是可以评分的,即使在运行在结束前失败的情况下也是如此。
[advanced_features]
cuga_lite_execution_mode = "function_calling"
cuga_lite_step_discipline = "one_tool_per_step"
[shortlister]
strategy = "embedding"
top_k = 128
[final_answer]
instructions = "Answer with the value only."
function = "my_package.clean_answer"
哪项改进带来的帮助最大?我们估计,约45%的收益来自函数调用(function calling),30%来自短列表生成器,20%来自最终答案流水线,另有5%来自其他细微改动。
为何这对企业自动化至关重要
CUGA 是企业自动化的框架,智能体在其中跨业务系统执行工作。VAKRA 对我们有用,是因为其任务形态与该工作相同。每个配置点都对应着企业团队面临的一个问题:
| VAKRA 测试内容 | 企业自动化中的问题 | CUGA 设置 |
|---|---|---|
| 数百个名称和模式相似的 API | 企业系统暴露出庞大的 API 目录,其中包含同一操作的大量版本。 | 可配置的短列表生成器 |
| 多跳任务(multihop tasks),每一步都使用前一步的输出 | 业务流程读取记录、对其做出决策,然后写入下一个系统。 | 原生函数调用 |
| 评分员必须阅读的答案 | 下游系统或人员必须接受输出,且无需人工清理。 | 最终答案流水线 |
| 跨多个源的多跳任务,受策略约束 | 自动化必须遵守关于数据和操作的书面的规则。 | 三者结合 |
能力4最接近真实的企业工作场景:涉及多个源、多个步骤以及需要遵守的策略。这也是 CUGA 在 GPT-OSS-120B 上得分高于带有 ReAct 智能体的 GPT-5.5 的能力,得分为33.4%,而后者为28.8%。能力4的所有得分都较低,因此该问题尚未得到解决。
由于每项修复都是一个配置项,企业团队无需为每个工作流编写新的框架。团队可以在同一个部署中,为独立步骤选择代码优先执行(code-first execution),而为依赖链步骤选择函数调用。
结果
以下是 VAKRA 测试集的最终结果。CUGA 和参考智能体均使用 GPT-OSS-120B。
| 能力 | CUGA,首次运行 | 参考智能体 | CUGA,当前 |
|---|---|---|---|
| 1 · BI APIs | ~20% * | 41.9% | 47.2% |
| 2 · Tool Selection | 12% | 50.4% | 67.9% |
| 3 · Multihop | 19% | 27.9% | 52.8% |
| 4 · Multihop, many sources, with policy | ~16% * | 18.7% | 33.4% |
与 LangGraph ReAct 参考智能体相比,最大的增益出现在多跳任务上(+24.9个百分点),其次是工具选择(+17.5个百分点)和受策略约束的多跳任务(+14.7个百分点)。在 BI APIs 上,增益最小(+5.3个百分点)。
图1. VAKRA 按能力划分的任务成功率。斜线填充的条形图为估算值。
数据未能展示的内容
结果来自单一基准测试和单一模型,因此存在局限性。
前沿模型在大多数能力上仍然表现更好。带有 ReAct 智能体的 GPT-5.5 在能力1至3上的得分分别为50.3%、72.2%和54.7%。CUGA 仅在能力4上得分高于 GPT-OSS-120B,得分为33.4%,而后者为28.8%。更优秀的框架缩小了开源模型与前沿模型之间的差距,但并未消除这一差距。
部分数据为估算值。能力1和能力4的首次运行得分均为估算值,因此这两项的提升幅度仅为近似值。由于我们并未单独测试每一个配置点,因此在这三个配置点之间的收益分配也是估算结果。
VAKRA 对任务评分的方式:VAKRA 会重新运行智能体的工具调用,并检查两个方面。首先,答案必须正确:要么工具调用返回了参考解决方案使用的所有数据,要么由裁判模型(GPT-OSS-120B,温度设为0)判定答案与预期答案一致。其次,答案必须有据可依:裁判模型会检查来自工具的数据是否支持该答案。在能力4中,基于规则的检查还会判定智能体违反工具使用策略的对话为失败。本文中的每个得分均来自单次运行。
配置而非基准测试代码
CUGA 的核心部分不包含任何特定于 VAKRA 的代码。所有工作均已合并至 cuga-agent 和 cuga-eval 中。对 CUGA 的更改通过15个拉取请求(pull requests)合并到 cuga-agent 中。这三个配置点分别为 #777(函数调用)、#664(shortlister)和 #707(最终答案)。特定于 VAKRA 的部分位于 cuga-eval 中的一个开放适配器(open adapter)内。
这就是我们将这项工作称为“通过配置进行工程化”的原因。下一个基准测试或下一次部署都从这些设置开始,无需新的工作框架(harness)。每个新的基准测试仍需进行设置工作,但对于 CUGA 而言,现在这已是一个可重复的流程:研究任务、连接工具、配置智能体、适配不兼容的部分,并迭代优化。
为了保持收益,针对 CUGA 的拉取请求会在基准测试的回归分支(regression splits)上运行。任何导致智能体在 VAKRA 上表现变差的更改,在合并前都会失败。
相关阅读
关于 CUGA
关于 VAKRA
致谢
CUGA 团队设计并构建了本文所述的配置更改。VAKRA 团队帮助他们理解任务的性质,并在开发过程中评估了中间结果。
TL;DR: How much can we improve an AI agent without changing its model? We tested CUGA , our open-source agent, on the VAKRA benchmark using GPT-OSS-120B . Instead of changing the model, we improved the agent harness: how it selects tools, executes multi-step tasks, and produces answers. These improvements are reusable configuration options, not benchmark-specific fixes. CUGA now outperforms a LangGraph ReAct agent using the same model across all four VAKRA capabilities. On multihop tasks, its success rate increased from 19% to 52.8%. All improvements are open source, with VAKRA-specific integration kept in a separate adapter.
Why the harness matters for open-weight models
An agent is a model and a harness. The harness controls what the model sees, how the agent calls tools, and how it gives its final answer. Frontier models are more forgiving of a weak harness. Open-weight models in the 100B range often cannot, and many enterprises must use open-weight models for cost, privacy or on-premises deployment.
We wanted to know how much of the gap a harness can close when the model stays the same. VAKRA gave us a way to measure it.
The starting point
VAKRA scores enterprise agents on four capabilities: business intelligence (BI) APIs, Tool Selection tasks, multihop tasks, and multihop tasks across many sources under policy. To keep the comparison fair, we compare CUGA with a reference agent that uses the same model: a LangGraph ReAct agent on GPT-OSS-120B.
Our first run used CUGA as it was, with no change. On a sample of tasks, CUGA solved 12% of the Tool Selection tasks and 19% of the multihop tasks. The reference agent solved 50.5% and 25.1%. Each failure that we examined pointed to the harness, not to the model.
What VAKRA taught us
A model cannot select from hundreds of tools that look almost the same. VAKRA gives the agent a large catalog of APIs, and many of them have similar names and schemas. When all of them go into the prompt, the model selects the wrong tool or makes up arguments. Tool selection needs its own step before the model sees the catalog.
Code-first execution commits to a full chain of tool calls before it sees one result. By default, CUGA writes a short Python script that calls several tools in sequence. That works when the steps are independent. In a multihop task, each step needs the output of the step before it, so a script that the model writes in advance often uses wrong values. These tasks need the agent to look at each result before it takes the next step.
Here is a real task from the VAKRA training set: "In the nation where Harvard University is located, what is the percentage of female university students in 2016?" The task requires two sequential tools: one identifies the university's country, and the other retrieves the percentage for that country and year. In code-first mode, CUGA called both tools without inspecting the intermediate result. The first returned {"country_name": "United States of America"} , but CUGA passed the entire record to the second tool instead of extracting the country name. The lookup failed.
The answer must come from data that the model actually saw. Some runs found the correct data and then gave an answer in the wrong format, or an answer that the data did not support. When a run failed in the middle, the agent sometimes returned nothing that could be scored.
Three new configuration points
Each lesson became a setting that any CUGA deployment can use.
Native function calling. This is a second execution mode, next to code-first execution. The agent makes one real tool call, examines the result, and then selects the next call. Use it for tasks that are a conversation with an API. This mode broke the ceiling on multihop tasks.
A configurable shortlister. The shortlister reduces the tool catalog to a small set of candidate tools before the model selects one. The strategy that it uses is now a setting for each deployment. You can choose one of three built-in strategies, or plug in your own: llm, where the model picks the tools (the default); embedding, a fast similarity search that needs no model call; and hybrid, where the similarity search shortens the list and then the model picks.
A final-answer pipeline. One controlled step produces the answer: a strict output format, deterministic cleanup, and retry gates. The agent gives an answer that you can score, also when the run fails before it finishes.
[advanced_features]
cuga_lite_execution_mode = "function_calling"
cuga_lite_step_discipline = "one_tool_per_step"
[shortlister]
strategy = "embedding"
top_k = 128
[final_answer]
instructions = "Answer with the value only."
function = "my_package.clean_answer"
Which change helped most? We estimate about 45% of the gain from function calling, 30% from the shortlister, 20% from the final-answer pipeline, and 5% from smaller changes.
Why this matters for enterprise automation
CUGA is a harness for enterprise automation, where an agent does work across business systems. VAKRA is useful to us because its tasks have the same shape as that work. Each configuration point maps to a problem that enterprise teams have:
What VAKRA tests
The problem in enterprise automation
The CUGA setting
Hundreds of APIs with similar names and schemas
Enterprise systems expose large API catalogs, with many versions of one operation.
Configurable shortlister
Multihop tasks, where each step uses the output of the step before
A business process reads a record, makes a decision on it, and then writes to the next system.
Native function calling
An answer that a scorer must read
A downstream system or a person must accept the output with no manual cleanup.
Final-answer pipeline
Multihop tasks across many sources, under policy
Automation must obey written rules on data and actions.
All three, together
Capability 4 is the closest to real enterprise work: many sources, many steps, and a policy to obey. It is also the capability where CUGA on GPT-OSS-120B scores higher than GPT-5.5 with a ReAct agent, 33.4% against 28.8%. All scores on capability 4 are low, so this capability is not solved.
As each fix is a setting, an enterprise team does not have to write a new harness for each workflow. A team can select code-first execution for independent steps and function calling for a chain of dependent steps, in the same deployment.
Results
These are the final results on the VAKRA test set. CUGA and the reference agent both use GPT-OSS-120B.
Capability
CUGA, first run
Reference agent
CUGA, now
1 · BI APIs
~20% *
41.9%
47.2%
2 · Tool Selection
12%
50.4%
67.9%
3 · Multihop
19%
27.9%
52.8%
4 · Multihop, many sources, with policy
~16% *
18.7%
33.4%
Relative to the LangGraph ReAct reference agent, the largest gains are on multihop tasks (+24.9 percentage points), followed by Tool Selection (+17.5 points) and multihop under policy (+14.7 points). On BI APIs, the gain is the smallest (+5.3 points).
Figure 1. VAKRA task success by capability. Hatched bars are estimates.
What the numbers do not show
The results come from one benchmark and one model, and they have limits.
A frontier model still does better on most capabilities. GPT-5.5 with a ReAct agent scores 50.3%, 72.2% and 54.7% on capabilities 1 to 3. CUGA on GPT-OSS-120B scores higher only on capability 4, with 33.4% against 28.8%. A better harness made the gap to the frontier model smaller on an open-weight model. It did not remove the gap.
Some numbers are estimates. The first-run scores for capabilities 1 and 4 are estimates, so the gain on those two is approximate. The split of the gain between the three configuration points is also an estimate, because we did not test each one alone.
How VAKRA scores a task: VAKRA runs the agent's tool calls again and checks two things. First, the answer must be correct: either the tool calls returned all the data that the reference solution uses, or a judge model (GPT-OSS-120B at temperature 0) decides that the answer matches the expected answer. Second, the answer must be grounded: the judge model checks that the data from the tools supports the answer. On capability 4, a rule-based check also fails a dialogue in which the agent broke a tool-use policy. Each score in this post is from a single run.
Configuration, not benchmark code
The core of CUGA contains no code that is specific to VAKRA. All of the work is merged into cuga-agent and cuga-eval. The changes to CUGA are merged into cuga-agent, in 15 pull requests. The three configuration points are #777 (function calling), #664 (shortlister) and #707 (final answer). The parts that are specific to VAKRA are in an open adapter in cuga-eval.
This is the reason that we call the work harness engineering through configuration. The next benchmark, or the next deployment, starts with these settings, and it does not need a new harness. Each new benchmark still needs setup work, but for CUGA it is now a repeatable sequence: study the tasks, connect the tools, configure the agent, adapt what does not fit, and iterate.
To keep the gains, pull requests to CUGA run against regression splits of the benchmarks. A change that makes the agent worse on VAKRA fails before it merges.
Related reading
On CUGA
On VAKRA
Acknowledgements
The CUGA team designed and built the configuration changes in this post. The VAKRA team helped them understand the nature of the tasks and evaluated the intermediate results during the work.
首次收录 · 2026-12-02 · 10.64 分