arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.07625

Stateless Language Agents: Scaling Long-Horizon Automated Research

Qizheng Zhang, Changxiu Ji, Isaac Sun, Yuetai Li, Shubhangi Upasani, Sherry Ruan, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Yoonho Lee, Yuzhen Mao, Genghan Zhang, Rulin Shao, Qiuyang Mang, Andy Dimnaku, Changran Hu, Radha Poovendran, Kunle Olukotun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Qizheng Zhang 1∗^{1*} Changxiu Ji 1∗^{1*} Isaac Sun 2∗^{2*} Yuetai Li 3^{3} Shubhangi Upasani 4^{4} Sherry Ruan 1^{1} Boyuan Ma 4^{4} Fenglu Hong 4^{4} Vamsidhar Kamanuru 4^{4} Yoonho Lee 1^{1} Yuzhen Mao 1^{1} Genghan Zhang 1^{1} Rulin Shao 3^{3} Qiuyang Mang 5^{5} Andy Dimnaku 1^{1} Changran Hu 4^{4} Radha Poovendran 3^{3} Kunle Olukotun 1^{1}

1^{1} Stanford University 2^{2} Carnegie Mellon University 3^{3} University of Washington

4^{4} SambaNova Systems, Inc. 5^{5} UC Berkeley ∗^{*} equal contribution

qizhengz@stanford.edu, kunle@stanford.edu SLA

(a) Stronger solutions, fewer tokens

Anthropic kernel optimization · Codex · 3 runs each

Figure

SLA (ours) --- SwarmResearch ..... CORAL --- EvoX

(b) Rankings reverse

FrontierSWE · Codex

Figure

SLA – strongest baseline (points)

175M (25%) ● 700M (100%)

Figure 1: SLA sustains research progress over long horizons. (a) On Anthropic kernel optimization, SLA finds stronger solutions and reaches the strongest baseline’s mean final performance with 14.5×14.5 \times fewer tokens (a 93.1% reduction); every SLA run finishes ahead of every baseline run. Thick curves show means over three runs per method; thin curves show individual runs. (b) On all four FrontierSWE tasks, SLA trails the strongest per-task baseline at 175M tokens (25% of the budget, open circles) but leads at 700M (full budget, filled circles). All results use Codex with GPT-5.5.

Abstract

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.

1 Introduction

Large language model (LLM) agents are increasingly used for automated research (AutoResearch): iteratively proposing, implementing, and evaluating solutions to problems with measurable objectives but no known optimum [21, 24, 28, 29, 37]. As these systems take on harder problems, what matters is not only how quickly they find good solutions, but whether additional computation keeps producing better ones. In other words, how can automated research sustain progress as its inference budget grows?

Existing evaluations rarely run long enough to answer this question. Most measure budgets in iterations or model calls rather than tokens. Widely used benchmarks also saturate early: on 26-circle packing, four methods finish within 2.3×10−102.3 \times 10^{-10} of one another by 5M tokens (Figure 2(a)). A saturated benchmark measures how quickly a method reaches the ceiling, not whether it can keep converting computation into progress. As a result, design choices whose effects compound as experience accumulates, such as context management and experiment selection, remain largely untested.

Long runs expose two challenges. First, retaining experience while controlling context: candidate solutions, evaluation results, and failed attempts are reusable evidence, but replaying a growing history consumes tokens and degrades agent behavior [10, 41]. Second, turning accumulated evidence into productive exploration: recorded findings do not determine what to try next. In one CORAL [28] run on a GPU kernel task, the last improvement arrives at 231M tokens. Afterward, agents repeatedly declare their solutions optimal, and 98% of the final 1,500 sessions make no tool calls while token consumption continues (Figure 2(b)). This shows that scaling inference alone does not guarantee productive search.

We introduce Stateless Language Agents (SLAs), built on one principle: stateful search with stateless agents. We distinguish an agent's state, which persists across invocations, from its context, which is what it sees within one invocation. A stateless agent keeps no state: nothing it accumulates, including its conversation, carries over to its next invocation. This does not make it contextless. The harness owns the research state (candidate solutions and measured outcomes) and reconstructs a fresh and role-specific context from it for every invocation. What each agent sees thus becomes an explicit design choice, not a by-product of accumulated conversation. We implement this principle in the SLA framework, which addresses each challenge with one mechanism. With harness-controlled context reconstruction, a stateless Advisor sees structured evidence across all search directions, while each stateless Worker sees only its assignment, its retained candidate, and local feedback. With evidence-driven work assignment, the Advisor turns this evidence into concrete experiments, so parallel Workers run distinct experiments instead of repeating each other's work. Harness-owned state also makes SLA an experimental instrument: our ablations resume from identical checkpointed research states.

We evaluate SLA against EvoX [18], CORAL [28], and SwarmResearch [37] on long-horizon software engineering, kernel optimization, and algorithm design at budgets of up to one billion cumulative tokens, measuring both solution quality at matched budgets and the tokens needed to reach a common target. Our evaluation yields three findings:

• SLA finds stronger solutions with fewer tokens. SLA achieves the best full-budget result on every evaluated task. On Anthropic kernel optimization with Codex, all three SLA runs outperform all nine baseline runs. SLA also reaches the strongest baseline’s final performance with 93% fewer tokens (84% with Claude Code). On FrontierSWE, it improves scores by 4.95 points on average over the strongest per-task baseline.

• Focused contexts and explicit assignments each contribute to SLA's progress, and their effects can compound over a run. From shared checkpoints, removing Advisor context reconstruction, Worker context isolation, or Advisor assignments reduces mean progress in every comparison. Removing Worker isolation costs 5–11 cycles over 100M-token continuations but 224 cycles over a full 1B-token run. Without assignments, parallel Workers repeatedly implement the same feature (Appendix D.3).

• Explicit coordination is cheap. The Advisor consumes 0.24–0.51% of tokens and 1.2–2.3% of model cost, compared with 8.4–10.7% of tokens and 6.1–7.4% of cost for SwarmResearch’s Shepherd. Because coordination is separated from implementation, the Worker model can also be chosen per task (S4.4).

(a) Benchmark saturation

Figure

(b) Experiment inactivity

Figure

Figure 2: Long-horizon AutoResearch requires benchmark headroom and sustained experimentation. (a) On 26-circle packing, four methods reach nearly identical scores by 5M tokens (within 2.3×10−102.3 \times 10^{-10}), leaving little separation between methods. (b) In a CORAL run on a GPU kernel task, the last improvement occurs at 231M tokens, but token consumption continues to 1B. Of the final 1,500 sessions, 98% make no tool calls, showing that additional inference does not always translate to productive experiments.

Our results also have implications for evaluating AutoResearch systems. Across our experiments, short horizons can misjudge methods, components, and configurations. On FrontierSWE, SLA trails the strongest baseline at 175M tokens but leads at 700M (§4.2). The cost of removing Worker isolation grows by more than an order of magnitude between a 100M-token continuation and a full run (§4.3). Wider Worker pools that trail by 337 cycles at 25% of the budget finish within 4 cycles of the narrowest (§4.4). We therefore report results at multiple cumulative token budgets and encourage future evaluations to do the same.

References (47)