TL;DR
AI agents spend a surprising amount of time doing nothing—sitting idle before a task arrives, and waiting around while tools or training scripts run. This paper shows that if agents use that downtime to proactively compute—studying their environment beforehand or planning next steps while tools execute—they can solve tasks with up to $15\times$ less test-time compute and finish machine learning engineering tasks up to twice as fast.
What Problem Does This Paper Address?
For the last few years, the dominant way to make language models smarter at inference time has been test-time compute: letting the model "think" longer after you ask it a question.
But in real-world agentic settings—like coding in a repository or navigating a company's filesystem—agents often have access to the environment long before a user's prompt arrives. Even after a task starts, they spend most of their time waiting. On machine learning engineering tasks (MLE-Bench), for example, a DeepSeek-V4-Flash agent spends only 7% of a two-hour session actually generating tokens; the other 93% is spent waiting for commands and training runs to finish.
The authors ask: What happens if we put that idle time to work? Rather than being purely reactive, can agents spend proactive compute to anticipate tasks and prepare ahead of time, and how does performance scale as we give them bigger proactive budgets?
Methods
The authors evaluate proactive compute in two distinct regimes, using token-level budget forcing (extending generation with prompts like "Keep reasoning. Do not answer yet." until a exact token budget is hit) to precisely control both the proactive budget ($P$) and the test-time budget ($T$):
- Offline (Before the task arrives): The agent explores the available context $C$ (e.g., a codebase or math problem setup) and writes a "study" trace of $P$ tokens (sweeping from $0$ up to $128\text{k}$ tokens). When the task $q$ finally arrives, the study remains in the agent's context window as it solves the problem.
- Online (While waiting for tools): Whenever a command takes longer than 30 seconds and moves to the background, the agent uses that wait time to anticipate tool outputs and plan its next steps, generating up to $P \in \{1\text{k}, 4\text{k}, 16\text{k}\}$ tokens per wait.
When a context is far larger than a single context window—like a 112M-token legal filesystem—a single study hits a wall. To scale past one window, the authors introduce structured and multi-agent studying: prompting agents to build a plain-text wiki of the filesystem, splitting the work across up to 8 agents (either in parallel or serially passing notes), and building a hierarchical summary of every folder.
Datasets
The authors evaluate four model families (primarily DeepSeek-V4-Flash, alongside Qwen3.8-27B, Muse Spark Open, and gpt-5.6-luna) across:
- 9 Offline Benchmarks: Math competitions (AIME 2024/2025/2026, HMMT), algorithmic reasoning (ARC-AGI-1, MIR-Bench), software engineering (StudyBench, SWE-QA-Pro), and legal work (Harvey LAB, a massive 112M-token fictitious law firm filesystem).
- 8 Online Tasks: Machine learning engineering tasks from MLE-Bench, run over 2-hour wall-clock sessions on an NVIDIA B200 GPU.
Key Insights and Ideas
- A second axis of inference scaling: Proactive compute shifts the entire accuracy–test-time-compute frontier to the left. Instead of spending tokens frantically after a question is asked, an agent can front-load the exploration.
- Amortized savings: If multiple tasks share the same environment (like engineers asking questions about the same codebase), you only need to pay for the offline study once. As more tasks reuse the study, the total token cost per task drops dramatically.
- What's actually inside a study? On math problems, a study often solves the core problem ahead of time—meaning you can compress a 128k-token study down to just 256 tokens and keep 97% of the accuracy gain. On code repositories, however, the value is spread across many file-level details, so compression loses more of the benefit.
- Online trade-offs: Unlike offline studying (which saves both time and test-time tokens), online proactive compute trades extra tokens (~1.7× more) for faster wall-clock progress, largely because the agent is ready to submit its first valid solution much earlier.
Key Results
- Massive test-time savings (Offline): With a 128k-token study, a solver given a tiny test-time budget of $T = 64$ tokens reaches 74% accuracy on SWE-QA-Pro—a score that takes a $15\times$ larger test budget (~950 tokens) without a study. On StudyBench, it reduces the required test budget by $7\times$.
- Fewer tool calls: On SWE-QA-Pro, a 16k-token study more than halves the solver's test-time thinking tokens ($0.39\times$) and cuts tool calls tenfold (from 46.9 down to 4.5 per task) at matched accuracy.
- Faster ML engineering (Online): On MLE-Bench, agents that prepare for up to 16k tokens while waiting for commands beat the median human Kaggle score $1.6\text{--}2.0\times$ sooner (half of the sessions beat it within 24 minutes, versus 49 minutes for a reactive agent).
- Scaling beyond one context window: On Harvey LAB's 112M-token filesystem, 8 parallel agents achieve a test-time efficiency of $E = 0.585$ (beating RAG at $0.458$ and RLM at $0.515$). A hierarchical summary matches this performance ($E = 0.589$) at less than a quarter of the price ($0.96 vs. $4.07). When amortized across 120 tasks, studies break even in dollar cost after just 1.8–10.3 tasks and cut total costs by 42–61%.
Limitations and Future Work
- Diminishing returns and "context rot": A single study plateaus at high budgets ($P \ge 64\text{k}$). Agents begin discovering new information 5–12× more slowly and sometimes devolve into meta-reasoning about the budget-forcing continuation prompt ("This is an endless loop...").
- Stopping too early: On Harvey LAB, an uncapped solver given a 64k study can become overconfident and stop too early, lowering accuracy by 0.05.
- Future directions: The authors suggest building agents that can dynamically decide how long to study based on the tasks they expect, as well as methods to efficiently update studies when the underlying environment changes.
Summary updated