Scaling Proactive Compute

Scaling Proactive Compute: When Agents Anticipate the Task

1Stanford University 2Meta
*Equal contribution, †Equal senior authorship · October 2026
Stanford University Meta Scaling Intelligence Lab
Environment–agent interaction timelines for proactive and reactive agents. Before a task arrives (offline), the proactive agent studies the available context. After the task arrives (online), it uses the time spent waiting for tool results to anticipate possible outcomes and prepare its next steps. A reactive agent (bottom) remains idle during both periods.

8 min read

TLDRAgents often have access to the context of their environment, such as a code repository or a company’s filesystem, whether or not they are working on a task. Yet they spend much of their time waiting, first for the task and then for each tool call to return. We let agents use this time to anticipate the task: they study the context before the task arrives and plan ahead while their tools run. We scale this proactive compute precisely, across nine benchmarks and four model families, and past a single context window with multiple agents. We find that an agent that has studied its context reaches the same accuracy with a fraction of the test-time tokens and far fewer tool calls, and an agent that keeps working while its tools run gets ahead in wall-clock time. Because every task on the same context reuses the study, its cost is spread across tasks. In our experiments it breaks even within a few dozen tasks and saves tokens from then on. Proactive compute gives agents a second axis to scale, alongside test-time compute.

Agents sit idle before the task arrives and while their tools run

Test-time compute predictably improves performance [1, 2, 3], but agents usually spend it reactively, generating tokens only after a task or tool result arrives. A reactive agent on MLE-Bench generates tokens for only 5–16% of a two-hour session, even though it already has the context of the task (a code repository, a filesystem) or knows its likely next steps.

Instead, agents can spend compute proactively: they can study the available context before a task arrives [4], or plan ahead while they wait for tool results [5]. This compute can often run while GPUs are otherwise idle, which keeps its cost low. Our contribution is treating proactive compute as a budget to scale precisely. We sweep the proactive study budget from 64 tokens to 128k, split it across agents to go beyond a single context window, and measure how accuracy, latency, and cost change with scale.

Four reactive and four proactive agents working on one repository. Without a study, the reactive agents re-explore the repository before solving the task. With the study, each proactive agent starts the session with knowledge of the repository, so it skips the redundant exploration. Bar lengths are illustrative, and tasks are shortened from SWE-QA-Pro tasks.

Proactive agents use idle time to study the context and plan ahead

In the offline setting, when the agent is waiting for its task, the agent explores the context C before the task q arrives and writes a trace of P tokens, which we call the study. When the task q arrives, the study stays in its history, and the same agent, now the solver, solves the task using T test-time tokens. In the online setting, when the agent is waiting for a tool result, it writes up to P tokens per tool call while the call runs.

We control both budgets exactly with budget forcing [3]. If the model stops early, we tell it to keep going, and if it goes over, we cut it off at our desired budget. We sweep P from 0 to 128k and T from 64 to 64k tokens (k = 1,024). This post shows five benchmarks: two software-engineering benchmarks, SWE-QA-Pro [6] and StudyBench [7]; two algorithmic reasoning benchmarks, ARC-AGI-1 [8] and MIR-Bench [9]; and one legal knowledge-work benchmark, Harvey LAB [10]. The paper adds four math benchmarks [11].

Proactive studying pre-explores the repository. DeepSeek-V4-Flash studies the cekit repository for 131,072 tokens and reads 141 of its 177 files. Each dot in the tree is a file, colored by the study budget at which it is first read. After the study, three SWE-QA-Pro tasks arrive: grey bars are tool calls without the study, green bars are tool calls with it, and the number is the judge’s rubric-based score.

Studying cuts the test-time compute needed for the same accuracy

Studying helps most when latency (time to answer) is critical and the solver has little budget at test time. On SWE-QA-Pro, a 128k-token study lets DeepSeek-V4-Flash answer as accurately with 64 test-time tokens as it does with about 850 tokens and no study, 13× fewer. Across the paper’s benchmarks, the saving ranges from 7× on StudyBench to 221× on AIME 2025.

Test-time efficiency E

Test-time efficiency is the ability to achieve higher accuracy at lower test-time budgets. To summarize the whole accuracy–T curve in a single number, we adapt the expertise metric of Machine Studying [7] and define E as the area under the curve with T on a log scale, normalized by the curve’s width. Each doubling of T counts equally:

\[ E(P) = \frac{\sum_k w_k \, \tfrac{1}{2}\big(a_k + a_{k+1}\big)}{\sum_k w_k}, \qquad a_k = \mathrm{acc}(P, T_k), \quad w_k = \log_2 \frac{T_{k+1}}{T_k}, \]

where \(T_1 < T_2 < \dots\) are the tested budgets.

Accuracy against test budget as the study grows from 64 to 128k tokens (left), and the test-time efficiency E of each curve (right). Grey points have no study, green points have a study of P tokens, and the shaded area between the curves is the gain in E. The box below the plots shows an example context C and task q from the selected benchmark.

Proactive agents save tool calls and thinking tokens while keeping accuracy

With the study in context, the solver makes fewer tool calls: at the largest test budget, a 128k study cuts tool calls by 10× on StudyBench, 4× on SWE-QA-Pro and 1.7× on Harvey LAB. When the solver sets its own budget, a 16k study on SWE-QA-Pro more than halves its thinking and cuts its tool calls tenfold at matched accuracy.

Tool calls per task against test budget (top) and uncapped thinking tokens against study budget (bottom). Arrows show the drop from no study to the largest study. DeepSeek-V4-Flash, 30 tasks per benchmark, 3 seeds.

Proactive compute becomes more cost-efficient as more tasks share a context

When n tasks share one context, each task costs P/n + T*P tokens, where T*P is the test-time budget needed to achieve a certain performance given a study of budget P. With only a few tasks, a study costs more than it saves. Past the break-even point, 7–10 tasks for a 16k study and 13–33 for a 64k study in our experiments, every further task saves tokens, and longer studies usually save more.

Tokens saved against the number of tasks sharing one context, for 16k, 32k and 64k studies on SWE-QA-Pro, StudyBench and Harvey LAB
Tokens saved over not studying, as more tasks share one context, at a fixed target accuracy per benchmark (80% on SWE-QA-Pro, 40% on StudyBench, 60% on Harvey LAB). Dots mark break-even points, numbers give the token savings after 1,024 tasks, and savings past the task counts we measured are extrapolated. DeepSeek-V4-Flash, 3 seeds.

Studying a 134M-token filesystem with a structured, multi-agent strategy

Harvey LAB is a 134M-token filesystem of legal matters from a fictitious law firm [10], which far exceeds the size of one context window. A wiki-style study, prompted to explore as if building a wiki over the filesystem, is more efficient than a plain study at every budget (E ≈ 0.47 against 0.40). To go past one context window, we spread the study over multiple agents with 131k tokens each, in parallel over partitions of the filesystem or serially with notes passed along, similar to compaction. With eight parallel agents, the study reaches E = 0.585, against 0.458 for RAG [12] and 0.515 for RLM [13]. A cheap hierarchical summary, which reads the opening of each document and writes one page per folder, does as well (E = 0.589) at under a third of the cost ($0.41 against $1.36).

Test-time efficiency against study cost for each studying method. Pick a method to highlight it. DeepSeek-V4-Flash, 120 tasks; 3 seeds for single-agent studies, 1 seed otherwise.

Agents that work while commands run beat the median human 2× sooner

On eight MLE-Bench tasks [14], an agent works in a shell for two hours on a single B200. While a command runs, the proactive agent keeps working for up to 1k, 4k or 16k tokens; the reactive agent sits idle. We compare each agent against the median score of the human Kaggle entrants on the task. Half of the 16k agent’s sessions beat it after 24 minutes, compared to 49 minutes for the reactive agent, partly because it submits its first valid file sooner (11 against 25 minutes). This speed-up also costs tokens: to reach the median human’s score, the 16k agents generate about 1.7× as many tokens as the reactive agents do.

Share of seeds that have beaten the median human, per task (top), share of the session spent generating tokens (bottom left) and the split of the session so far (bottom right). Grey curves are reactive agents, green curves are proactive agents. DeepSeek-V4-Flash-0731, 32 seeds per task; bands are 95% CIs.

The 16k agents spend 32% of the session generating tokens, while reactive agents sit at 10%. The 16k agents are still idle 68% of the time: 16k tokens take about two minutes to generate, while a command runs for 7.5 minutes on average.

A future full of proactive agents

Agents spend much of their time waiting, for the next task and for their tools. We let them use that time to study their environment and plan ahead. An agent that has studied a repository answers its questions as accurately with up to 13 times fewer test-time tokens and far fewer tool calls, and an agent that keeps working while its commands run beats the median human on MLE-Bench in half the time. When the study follows the structure of the files and is split across several agents, this works even on a 134M-token legal filesystem. And since every task on the same context reuses the study, it gets cheaper per task the more it is used.

Looking forward, we envision more proactive agents that live in their environments, from codebases and file systems to shared workspaces and the web. Such agents can spend the time between requests, and the time they wait on their tools, getting to know their environment and anticipating what comes next, so that they are ready before they are asked.

Why does a study help, how far can it be summarized, and what else did we measure? The paper has the full results, further analyses and the experimental details.

A pixel-art landscape of many small robot agents on hills and in a town, all looking up at thought bubbles that hold future tasks; nearer agents are large, distant ones small.

BibTeX

@misc{talaei2026proactive,
  title  = {Scaling Proactive Compute: When Agents Anticipate the Task},
  author = {Talaei, Shayan and Chiaranaipanich, Gino and Zeinali, Amirreza and
            Youssefi, Amir and Mirhoseini, Azalia and Saberi, Amin},
  year   = {2026},
  url    = {https://arxiv.org/abs/XXXX.XXXXX}
}

Acknowledgements

TBD

References

  1. Brown et al. (2024). Large Language Monkeys: Scaling Inference Compute with Repeated Sampling.
  2. Snell et al. (2024). Scaling LLM Test-Time Compute Optimally Can Be More Effective than Scaling Model Parameters.
  3. Muennighoff et al. (2025). s1: Simple Test-Time Scaling.
  4. Lin et al. (2025). Sleep-time Compute: Beyond Inference Scaling at Test-time. arXiv:2504.13171.
  5. Choi et al. (2026). IdleSpec: Exploiting Idle Time via Speculative Planning for LLM Agents. arXiv:2605.22154.
  6. Cai et al. (2026). SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding. arXiv:2603.16124.
  7. Li et al. (2026). Machine Studying.
  8. Chollet (2019). On the Measure of Intelligence. arXiv:1911.01547.
  9. Yan et al. (2025). MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning? arXiv:2502.09933.
  10. Grupen et al. (2026). Open-Sourcing Harvey's Long Horizon Legal Agent Benchmark.
  11. Balunović et al. (2026). MathArena: Evaluating LLMs on Uncontaminated Math Competitions. arXiv:2505.23281.
  12. Lewis et al. (2021). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. arXiv:2005.11401.
  13. Zhang et al. (2025). Recursive Language Models. arXiv:2512.24601.
  14. Chan et al. (2025). MLE-bench: Evaluating Machine Learning Agents on Machine Learning Engineering. arXiv:2410.07095.