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

Manuscript Offprint

arXiv:2610.07447

Fork-and-Flush: Escaping Idea Basins in Autoresearch Agents

Ziyang Cai, Christos Ziakas, Vasilis Kontonis, Tim Pearce, Siddhartha Sen, Akshay Krishnamurthy, Shivam Garg, Dimitris Papailiopoulos

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

ABSTRACT

Autoresearch agents tackle open-ended problems by repeatedly proposing candidate solutions, evaluating them, and using feedback to guide subsequent experiments. We show that independent runs of the same agent on the same task often plateau at substantially different scores, with gaps that persist even after considerable additional compute. Embedding their candidate artifacts by functional similarity provides further evidence that trajectories remain in localized regions of the solution space, which we call idea basins. To help agents escape these basins, we study a simple periodic intervention, fork-and-flush. Our method forks the agent into parallel trajectories, each inheriting the accumulated workspace but starting with a fresh chat context. After running each trajectory for a fixed horizon, the agent continues from the highest-scoring one. Across 13 long-horizon research and engineering tasks, with individual agent runs lasting up to several days, fork-and-flush outperformed the single-run and best-of-N baselines by a relative improvement of 66.0% and 44.4%, respectively, on the min-max normalized average score under an equal compute budget.

1 INTRODUCTION

Large Language Model (LLM) agents have shown remarkable promise in autonomously solving hard, open-ended research problems requiring long execution horizons (Mang et al., 2026; Merrill et al., 2026; Terminal-Bench-Science Team, 2026). A prominent paradigm for addressing these

Figure

Figure 1: Eight independent agents on p171 research task. Left: Best-so-far score against compute spend, with dots representing individual submissions. Runs plateau at different levels, with gaps persisting even after substantial additional compute. Right: The artifacts from these runs embedded by judged functional similarity. Agents converge into five distinct “idea basins” and remain there.

∗^{*}This work was done during an internship at Microsoft Research.

Emails: zc5794@princeton.edu, c.ziakas24@imperial.ac.uk, {shigarg, dimitriosp}@microsoft.com problems is the autoresearch loop (Karpathy, 2026; Novikov et al., 2025), where an agent iteratively proposes a solution, evaluates it within an environment, and uses the execution feedback or submission score to guide its next experiment. This process can be viewed loosely as idea descent, by analogy with gradient descent: feedback guides successive modifications through the space of candidate solutions. Consider, for example, the task of finding the smallest CIFAR classifier that achieves a target accuracy. Although the objective is easy to state, the design space is broad: the agent can explore different architecture families, layer depths and widths, computational blocks, and training recipes, with many possible tradeoffs between accuracy and model size. A single autoresearch run can evaluate hundreds of candidate solutions and continue for multiple days. This scale raises a fundamental question: over such long horizons, does an agent explore the solution space broadly, or does it mainly refine the ideas it selected early on?

We first examine how solution quality evolves over long autoresearch runs. The score of the best solution found so far tends to plateau within a run. More revealingly, independent runs of the same agent on the same task plateau at substantially different levels, with gaps that persist even after considerable additional compute (Figure 1). This suggests that runs may differ not just in how quickly they improve, but in which parts of the solution space they explore. To investigate this possibility, we embed their candidate artifacts in two dimensions based on functional similarity (Figure 1). The resulting visualization provides additional evidence: submissions from individual runs tend to remain in localized regions of this space. Continuing the idea descent analogy, we call these regions idea basins. Some runs appear to spend much of their subsequent effort refining solutions in less productive regions rather than discovering the higher-scoring solutions found by other runs. Notably, this localization persists despite periodic compaction of the agents' conversational histories.

Can we exploit the variation across independent runs to improve an ongoing run by encouraging it to explore more broadly? To this end, we consider two natural operations that are easy to incorporate into existing autoresearch loops. Forking lets the agent try several candidate continuations and select one based on their scores. Flushing clears the inherited chat history while retaining the accumulated workspace, allowing the continuations to explore with less dependence on earlier reasoning. Our intervention, fork-and-flush, combines these operations periodically: it forks the agent into parallel trajectories that each inherit a copy of the current workspace and begin with a fresh chat context, runs each for a fixed horizon, and continues from the highest-scoring trajectory.

We evaluate fork-and-flush across 13 long-horizon research and engineering tasks (Table 4). Eleven are drawn from Frontier-CS (Mang et al., 2026) and EdgeBench (Zhu et al., 2026), spanning problems from polyomino packing and job-shop scheduling to cryptanalysis and inferring a groundwater contaminant source from well readings. The remaining two tasks involve designing a compact CIFAR classifier under an accuracy constraint and optimizing a kernel for a simulated VLIW machine. Individual agent runs last from several hours to multiple days depending on the task. Under an equal compute budget, fork-and-flush outperforms both the single-run and best-of-N baselines, achieving 66.0% and 44.4% relative improvements in min-max normalized average score, respectively. Our artifact embedding also shows broader exploration under fork-and-flush (Figure 2), connecting the gains to the idea-basin observation.

We summarize our key contributions as follows:

• We show that long-running autoresearch agents exhibit persistent outcome variance: independent runs on the same task plateau at substantially different scores, with gaps that remain even after considerable additional compute.

• We show that a simple intervention, fork-and-flush, improves performance by periodically forking and flushing the chat context while preserving accumulated work. In an evaluation across 13 open-ended tasks, including research and applied engineering challenges with individual runs lasting up to 107 hours, it outperforms single-run and best-of-N baselines under equal compute budgets.

• We develop an embedding of agent artifacts based on functional similarity to study where trajectories search. It reveals localized exploration consistent with idea basins and shows broader movement through this space under fork-and-flush.

Figure

Figure

Figure 2: An illustration of fork-and-flush. Left: A single run (grey, dashed) keeps exploring similar ideas within one basin. Fork-and-flush clears the chat context on the same workspace (◇), fans out K probes, retains the best (★), and discards the rest (×). Right: While the leader’s edits remain localized, a fresh-context probe jumps to a new basin via fork-and-flush and continues there.

References (67)