无状态语言代理:扩展长周期自动化研究

·

研究论文 · 2026/10/12

自动化研究系统越来越多地在长周期内运行LLM智能体,但更多的推理本身并不会带来更多进展:智能体会重放不断增长的历史、重复彼此的工作,或在token消耗持续的同时停止实验。然而,大多数评估使用短预算或早期饱和的基准,使得这些失败模式未被测试。我们将这些失败追溯到两个选择:研究状态存放的位置以及谁决定下一步尝试什么。我们引入了无状态语言智能体(SLAs),基于有状态搜索与无状态智能体的原则:没有智能体在调用之间携带其对话;相反,框架拥有研究状态(候选解决方案和测量结果),并为每次调用重建一个全新的、角色特定的上下文。每个智能体看到的内容成为明确的设计选择,而不是随着运行增长的历史。我们在SLA框架中实现了这一原则,其中一个无状态的顾问读取框架汇总的跨搜索方向的证据,并将具体实验分配给并行工作者。我们在软件工程、内核优化和算法设计上,以高达十亿token的预算,将SLA与三个近期框架进行了评估。SLA在每个任务上都取得了最佳最终结果,并以超过84%更少的token达到了最强内核基线的最终性能。来自共享检查点的消融实验表明,聚焦的上下文和明确的分配各自对SLA的进展有贡献,其效果可以在完整运行中复合,而顾问消耗的token不到0.6%。这些结果支持SLAs,即将持久的研究状态保持在智能体对话之外,并表明短评估周期可能误判研究系统及其组件。

该研究揭示了长周期自动化研究中智能体重复、停滞等关键失败模式,并提出无状态智能体架构,在多个任务上以显著更少的token取得更优结果,对设计高效可扩展的研究系统具有重要启示。

Automated research systems increasingly run LLM agents over long horizons, but more inference does not by itself produce more progress: agents replay growing histories, duplicate one another's work, or stop experimenting while token consumption continues. Yet most evaluations use short budgets or benchmarks that saturate early, leaving these failure modes untested. We trace these failures to two choices: where research state lives and who decides what to try next. We introduce Stateless Language Agents (SLAs), built on the principle of stateful search with stateless agents: no agent carries its conversation across invocations; instead, the harness owns the research state (candidate solutions and measured outcomes) and reconstructs a fresh and role-specific context for every invocation. What each agent sees becomes an explicit design choice rather than a history that grows with the run. We implement this principle in the SLA framework, where a stateless Advisor reads harness-summarized evidence across search directions and assigns concrete experiments to parallel Workers. We evaluate SLA against three recent frameworks on software engineering, kernel optimization, and algorithm design at budgets of up to one billion tokens. SLA achieves the best final result on every task and reaches the strongest kernel baseline's final performance with over 84% fewer tokens. Ablations from shared checkpoints show that focused contexts and explicit assignments each contribute to SLA's progress, with effects that can compound over full runs, while the Advisor consumes less than 0.6% of tokens. These results argue for SLAs, which keep durable research state out of agent conversations, and show that short evaluation horizons can misjudge research systems and their components.

阅读原文

参与讨论