你的长时程基准真的够深吗?终端任务中深度的测量与合成

·

研究论文 · 2026/11/04

长时程终端任务用于评估和训练智能体。人工整理的数据集稀缺,因此出现了许多合成方法。这些方法通常用模型通过任务所需的轮数来衡量任务长度,并用生成时LLM设置的标签来衡量难度。然而,我们发现轮数很大程度上反映了模型的习惯,而不仅仅是任务的需求,并且标签几乎无法追踪模型通过的频率。我们用任务的工作量(所需操作数)和深度(必须按顺序发生的轮数,因为每轮的命令只能在前一轮输出被读取后才能选择)来描述终端任务。将深度估计为向智能体声明的最小轮数上限,在该上限下任务通过,我们审计了来自六个现有数据集的734个任务。合成主要增加了工作量,而非深度:94%的已解决合成任务在三轮内通过,然而深度不同于轮数,它能预测超出工作量的难度。我们提出DEPTH,其中生成智能体在真实软件环境中一次一个片段地编写每个任务,在编写每个片段之前执行它,并从它留下的状态开始下一个片段。我们的105个任务在深度和工作量上超过了所有审计数据集,并且当前六个模型中没有一個能通过其中一半。在这些任务的运行上微调Qwen3-8B,在两个终端基准上提升了其性能。

该研究揭示了现有长时程任务合成方法的缺陷,提出了更准确的深度度量,并构建了更具挑战性的数据集,对智能体评估和训练有重要价值。

Long-horizon terminal tasks are used to evaluate and train agents. Human-curated datasets are scarce, so many synthesis methods have emerged. They usually measure the length of a task by the turns a model needs to pass it, and its difficulty by labels the LLM sets during generation. We find, however, that the turn count largely reflects the habits of the model, not only the demands of the task, and that the labels barely track how often models pass. We describe a terminal task by its work, the number of operations it requires, and its depth, the number of turns that must happen in sequence because the commands of each turn can only be chosen after reading the output of the previous one. Estimating depth as the smallest turn cap, stated to the agent, under which the task passes, we audit 734 tasks from six existing datasets. Synthesis has mostly added work, not depth: 94% of the solved synthetic tasks pass within three turns, yet depth, unlike the turn count, predicts difficulty beyond work. We propose DEPTH, in which a generation agent writes each task one segment at a time in a real software environment, carrying out each segment before writing it and starting the next from the state it leaves. Our 105 tasks exceed every audited dataset in depth and work, and none of six current models passes half of them. Fine-tuning Qwen3-8B on runs from these tasks improves it on two terminal benchmarks.

阅读原文

参与讨论