JevAgentHarness:对与LLM共享控制的决策模型进行基准测试、部署和训练
研究论文 · 2026/10/16
大型语言模型(LLM)智能体如今能修复软件、操作计算机并服务客户,但其运行程序(harness)在每一步都调用大型LLM,导致长任务缓慢且昂贵。这些调用大多以多项选择决策结束,例如下一步调用哪个工具。像Jev这样的决策模型能以远低于LLM调用的时间和价格直接回答这些问题。我们研究harness如何将此类决策委托给决策模型而几乎不损失成功率。为评估智能体任务中的决策模型,我们构建了AgentDecisionBench,从孤立问题到控制运行中的智能体,在公开基准和我们的DecisionGym环境中进行测试。在孤立问题上最准确的决策模型仅解决了69.5%的智能体任务,且在没有拟合置信阈值的情况下,委托工具选择使成功率降低了19.0个百分点。基于这些发现,我们设计了JevAgentHarness,它根据智能体自身轨迹为每个选择拟合该阈值,并让LLM在低于阈值时决策。由于现有决策模型从未见过智能体在自身错误后达到的状态,我们训练了AgentDecision-4B,一个开放的4B模型,使用Jev的答案作为标签在此类状态上训练。在与训练数据不同的任务上,使用AgentDecision-4B的智能体解决了91.5%的任务,使用Jev的解决了82.0%。在与训练数据相似的任务上,以这种方式训练的4B模型使智能体成本降低81.1-89.0%,速度提升高达2.5倍,且任务成功率损失不超过3个百分点。模型、数据和harness将在https://github.com/JevAgentHarness/JevAgentHarness发布。
该研究解决了LLM智能体在长任务中因频繁调用大型LLM而导致的缓慢和昂贵问题,通过决策模型委托和置信阈值拟合,显著降低了成本并提升了速度,同时保持了任务成功率。提出的基准、方法和模型对智能体效率优化具有重要实践意义,且开源发布将促进相关研究。
Large language model (LLM) agents now fix software, operate computers and serve customers, but their harnesses, the programs that run them, call a large LLM at every step, which makes long tasks slow and costly. Most of these calls end in a multiple-choice decision, such as which tool to call next. Decision models such as Jev answer these questions directly, at a fraction of an LLM call's time and price. We ask how a harness can delegate these decisions to a decision model with little loss of success. To evaluate decision models in agentic tasks, we build AgentDecisionBench, which tests them from isolated questions up to control of a running agent, on public benchmarks and our DecisionGym environment. The decision model most accurate on isolated questions solved only 69.5% of agent tasks, and without a fitted confidence threshold, delegating tool choices lowered success by 19.0 points. Building on these findings, we then design JevAgentHarness, which fits this threshold for each choice on the agent's own trajectories and lets the LLM decide below it. Because existing decision models never see the states an agent reaches after its own mistakes, we train AgentDecision-4B, an open 4B model, on such states with Jev's answers as labels. On tasks unlike its training data, the agent solved 91.5% of them with AgentDecision-4B and 82.0% with Jev. On tasks like their training data, 4B models trained this way made agents 81.1-89.0% cheaper and up to 2.5 times faster, without losing 3 or more points of task success. The models, data, and harness will be released at https://github.com/JevAgentHarness/JevAgentHarness.