Papers · 2026 · Reading: 34 min, plus 8 in closed details.
Paper · Preprint, arXiv cs.CL, 11 pages (v2) · arXiv 2609.14858

Dream-RSI: Recursive Self-Improvement through Evolving Worlds

Tong Zheng, Xidong Wu, Zheng Zhang, Zhankui He, Chaoyi Zhang, Benjamin Coleman, Ruoqiao Wei, Di Bai, Haolin Liu, Rui Liu, Xue Wang, Yue Zhuan, Wang-Cheng Kang, Renkai Xiang, Heng Huang, Xinwu Cheng, Yunsong Guo (corresponding: Xidong Wu, Zheng Zhang)
Google, University of Maryland College Park, Google DeepMind, University of Virginia (affiliations as the project README gives them) · 14 September 2026 (v1); this page follows arXiv v2 of 6 October 2026

In one line: Treat an agent's accumulated discovery history as a replay simulator: a revised exploration policy (where to branch, how wide to batch, when to stop) is scored by replaying it over recorded attempts at no new evaluations (in v2, by the area of its quality-against-calls trade-off over five budget settings), and replay can only re-order what was recorded, never beat its best node. In one run per setting it used fewer discovery-agent calls than a fixed-policy baseline in several settings (Lasso with Gemini-3.1-Pro 550 to 317 calls, faster on 1 of 6 datasets; VGG16 kernel 2.43× fewer generations by total budget, 1.89× at matched speed) and lost on one of three maths tasks; v2's harness gain (Terminal-Bench 2.1, 0.7247 to 0.8090) has no baseline and was selected on its own test suite; the policy-writing agent's calls are not counted.

Rescoped on 26 October 2026 for arXiv v2 and the released code (the 25 October text described v1's objective and three domains; before that, the database claimed "competitive or better solution quality at substantially lower discovery cost across algorithm engineering, mathematical optimisation and GPU kernel engineering"). The Notion property needs the same edit.

550 → 317 agent calls
Lasso solver discovery with Gemini-3.1-Pro, average held-out runtime 3,587.1 → 2,931.0 ms
faster than fixed exploration on 1 of the 6 datasets (v2 now says so); RCV1 is 91% of the average · Figure 4
2.43× · 1.79×
fewer generations on the VGG16 and LayerNorm kernels at "comparable performance"
ratios of total budgets; at matched performance 1.89× and 1.19× · Figure 3
2.09× · 1.44×
higher speed on the ConvDiv and ConvMax kernels at a similar budget
one run each; ConvMax's gain is one jump in the last round · Figure 3
0.7247 → 0.8090 TB2.1
harness optimisation on Terminal-Bench 2.1 with Claude Opus 4.8 (new in v2)
129 to 144 of 178 trials; no fixed-policy baseline, best of 64 candidates on the same suite · Figure 5

How far to trust it: Believe the idea, and that replay-ranked policies can save calls: the released code computes the score v2 describes (this page reran it), and the ratios reproduce from the paper's own figures. Treat the numbers as anecdotes: one run per setting with no error bars, a cost count that leaves out the policy-writing agent, ratios that shrink at matched performance (VGG16 2.43× becomes 1.89×, LayerNorm 1.79× becomes 1.19×), a Lasso Pro average carried by one dataset (v2 now says so itself), and a harness gain with no baseline, selected on its own test suite. The evidence, judged.

The idea in one sentence: a finished discovery run is an exact record of what every attempt produced, so a revised exploration policy (where to branch, how wide to batch, when to stop) can be scored by replaying it over that record at no cost in new calls; the replay can only re-order what was recorded, so it buys the same results for fewer attempts, and anything better has to come from the next online run.

Record a run, replay revised policies on the record, redeploy the best. Fig. 1 runs the loop of Figure 1 and §3 on this page's own replay simulator: each world is a recorded discovery tree drawn as a bar field, branches across and attempts into the depth, each bar one attempt at its recorded score (red: failed). Drag it to turn it.

  1. Online round 1 records a world. The hand-written starting policy (parallel refine) steers the coding agent: 10 branches from the root, each refined to 11 attempts, so 110 calls, every one executed, scored and paid for. What it leaves behind is a recorded world.
  2. The record joins the history. ℋt = ℋt−1 ∪ {𝒯t}. Here the history holds three worlds recorded in full (seeds 1 to 3, the default of the Dream tab); in the paper each later world is recorded by that round's policy.
  3. Dream: replay a rewrite on the record. The development agent rewrites the policy's code (the purple glass). Replay starts from the bare root and reveals a cell only when the policy asks for it, by reading its recorded outcome: no call, no evaluation. The toy's winner, at ρ = 1, asks for 26 of world 1's 110 cells in 5 rounds, closing weak branches after round 2.
  4. The ceiling. Replay can only reveal what was recorded, so no replayed policy rises above the recorded best (the gold plane, 92.2). This one closed branch 9 after two attempts without gain, two attempts short of the best node, and keeps 96% of the best for 26 of 110 attempts: dreaming buys fewer attempts, never a better result.
  5. Score every version on every world; keep the best. The current policy and three rewrites (M = 4) are each replayed on all three worlds at five budget preferences and scored by Eq. 1: the area under their calls-against-attainment staircase, minus λ = 0.05 × rounds per call. The fixed policy scores −0.005 (no budget knob, so all five replays spend 110 calls: zero area); rewrites a, b and c score 0.390, 0.603 and 0.818. The best becomes πt+1; the current policy is in the pool, so on the history the choice never gets worse.
  6. Redeploy online. The winner steers the next real round on a new world (seed 4): only the cells it asks for are generated and paid, 33 calls in 10 rounds, and here it reaches the world's best. Its record joins the history, now four worlds, and the loop repeats. Anything better than the record can only come from rounds like this one.

The worlds, scores and rewrites are this page's illustrative simulator (the Dream over a recorded tree tab), not the paper's runs, which are not released. Rewrites a and b are two settings of the toy's policy family standing in for the development agent's code (4 open at once with patience 3; 2 open with patience 2, both refilling); c is the toy's dream winner over all 505 candidates. The paper's own numbers at this scale: Lasso with Gemini-3.1-Pro, 550 → 317 calls; the VGG16 kernel, 990 → 408 generations, 2.43× by total budget and 1.89× at matched speed (Figure 4, Figure 3). Redrawn for this page: the paper is under arXiv's non-exclusive licence.

You need: the model-based RL idea of improving a policy against a model instead of the world, Dyna and Dreamer (Model-based RL and planning); nothing else beyond agent loops. New terms: discovery loop (propose, evaluate, learn, repeat); exploration policy (the code that picks which attempts to continue and how many at once); discovery tree or world (one recorded run: every attempt, its parent and its score); dreaming (replaying a policy over recorded worlds); budget preference ρ (a knob the policy reads: high means wider and more patient); development agent (the LLM that rewrites the policy's code); Recursive Fixed Exploration (the baseline: same loop, policy never changes); discovery cost (discovery-agent calls, not counting the development agent).

How this page was built, and what it corrects

Added to the knowledge base on 21 September 2026, a week after the preprint. The first summary was written from the abstract and results; this page was built on 3 October from the arXiv HTML (v1), its vector figures decoded point by point, the SimpleTES paper whose numbers it reuses, the project page and the GitHub repository, and corrects that summary where the details change the reading (listed under How much to believe). On 26 October it was rewritten to follow arXiv v2 (6 October 2026) and checked against the released code: its replay score is ported next to this page's simulator and compared with the released implementation run on the same recorded worlds. What v1 said differently is in the closed block What changed from v1. The first summary also called it the most-upvoted paper of its week on Hugging Face, which may have been true when written but was unconfirmed on 3 October (readings in the dated block at the end of What it takes to use this).

Problem: exploration is the expensive part to improve

§1 Introduction

An agentic discovery loop proposes a candidate (a program, a construction, a kernel, an agent harness), evaluates it, learns from the result and proposes again. AlphaEvolve and its successors run such loops over algorithm design, open mathematical problems and systems code, and the hardest targets now take "thousands of proposal-evaluation cycles" (§1). Every cycle costs a model call plus an evaluation: compiling and benchmarking a GPU kernel, running an optimisation to convergence, or running a benchmark suite.

What decides whether those cycles are well spent is the exploration policy: which directions to pursue, which candidates to refine, how many branches to run in parallel, and when to stop. In most systems it is written by hand and stays fixed for the whole run, so it "may repeatedly spend computation on unproductive search directions" (§1). Improving it online is costly for two reasons the paper names:

  • Meta-level feedback is delayed and expensive. Judging a policy means watching it steer a whole discovery run over many cycles, not scoring one candidate.
  • The meta-policy space is vast. Most policies you might try are bad, and each costs a long online rollout to find that out.

EvoX (Liu et al. 2026a) optimises the search strategy online and pays exactly this cost. Dream-RSI asks whether the policy can be improved without paying it.

Idea: the history you already paid for is a simulator

§2 Motivation

A finished discovery run is not just text to reread. It is a tree: every attempt, the attempt it continued from, and the outcome it actually produced when executed and scored. An exploration policy does one thing: given what it has seen, choose which attempts to continue next. So a different policy can be "run" on the recorded tree by walking it differently (other branches, another order, other parallel groupings, earlier stopping) and simply reading the outcomes already on disk. No agent call, no evaluation. In the authors' words, "accumulated discovery history can act as a replay simulator over the realized search space" (abstract).

The analogy is model-based reinforcement learning (§2): Sutton's Dyna (1990) and the Dreamer family learn a model of the environment and improve a policy on imagined experience (both in general: Model-based RL and planning). Here the "model" is not learned at all; it is the record itself, exact where the record goes and silent everywhere else. The paper calls evaluating policies in it dreaming and the recorded trees worlds (footnote 1, §1).

The cost argument is simple. One expensive online run supports many cheap offline evaluations of other policies (Figure 2), so the meta-level search that EvoX pays for in rollouts is paid for here in reads. The catch is equally simple: a policy can only be judged where history went. The replay in Method and the Dream over a recorded tree tab run this on illustrative worlds so you can see both sides.

One outer iteration t of the loop
1 Online explore
policy πt steers the coding agent; a new tree 𝒯t is recorded
→2 Build the simulator
history ℋt = ℋt−1 ∪ {𝒯t}
→3 Dream
a development agent writes 3 rewrites; with the current policy, M = 4 versions are replayed on every recorded tree
→4 Redeploy
πt+1 = the best version; back to 1

The loop of Figure 1. Only the policy's code changes; the coding agent (Gemini CLI, or Claude Code for the harness task), the evaluator and the models stay fixed, and no weights are trained (§3).

not revealedrevealed: score 0 to 1failed attemptthis round's batch✕ branch closed by the policy

Method: trees, replay and one score

§3 Dream-RSI

The tree and the decision interface

A discovery tree has a root r (the starting workspace, score 0). Every other node has one parent, where its attempt began: the agent resumes the parent's saved workspace and its accumulated observations, makes a new attempt, and the node stores its generation history, its files and a score sv, larger is better (§3, Discovery trees). At each decision the policy may continue from the root (open a new branch) or from any current leaf: the eligible set is A(𝒯) = {r} ∪ {leaves}. With W parallel workers it picks a batch C ⊆ A(𝒯) of at most W nodes, so one choice fixes both where to continue and how many attempts run at once.

Online rollout

At outer iteration t, policy πt grows a fresh tree from the root for at most K1 rounds, with the earlier history available as context. Each selected node gets one new child per round; the step is stochastic because the agent may produce something different from the same workspace. The rollout ends on an empty batch or after K1 rounds, and the finished tree joins the history (§3, Online rollout). Table 3 gives the per-round ceilings: 10 branches × 11 attempts (110 calls) for most tasks (Table 3).

Offline replay

With the history fixed, each policy version is replayed on every recorded tree separately, and once for each of five budget preferences ρ ∈ {0, 0.25, 0.5, 0.75, 1} that the policy reads (§3, Offline evaluation). Replay starts from the bare root and reveals the tree only as the policy asks:

  • selecting a revealed leaf reveals its one recorded child, if it has one;
  • selecting the root opens the earliest-created unopened branch;
  • nothing beyond the recorded tree is ever generated; replay stops on an empty batch, after K2 rounds, or when everything is revealed.

So replay can test how far to pursue each branch, how to group attempts into batches, and when to open another branch or stop. It cannot test a different attempt: every branch is traversed in its recorded order.

Watch the rule work on an illustrative recorded world: a generated 10 branches × 11 attempts grid (the Gemini-3.1-Pro round of Table 3), scores in invented units from 0 to 1, about one attempt in six failed. Only the replay rules, the score and the selection rule are the paper's; no traces were released. The replay plays the fixed policy, then (with the toggle) the dreamed winner, through the same world at the budget preference you choose; round 1 is a step of its own and later rounds come in stretches of up to three, each explained below as it plays.

    Replay many policies over a recorded tree and keep the one with the best replay score. Compared with the policy that recorded the tree, what can the winner do?

    The replay score

    Eq. 1

    Start with the five replays of one policy on one world. Each gives a point: calls spent n, and attainment a, the best revealed score as a share of the best recorded. Plot them against calls and keep the points nothing cheaper beats; the score is the share of the box (all B calls of the recorded run × 100% of its best) that this staircase dominates. The figure shows it for the world selected in the replay.

    Vi = (1/Bi) Σj (āj − āj−1)(Bi − n̄j) − λ · (1/|ℛ|) Σρ: n > 0 k*ρ / nρ
    ρ ∈ ℛ
    the five budget preferences; each gives one replay and one point (nρ, aρ)
    aρ
    best revealed score ÷ Si, the best recorded score, clipped to [0, 1]
    Bi
    evaluated nodes of the recorded tree: what the run that recorded it paid
    (n̄j, āj)
    the non-dominated points by increasing calls, ā0 = 0; the first sum is the normalised hypervolume
    k*ρ / nρ
    completed rounds per call: 1 for a serial policy, 1/W for full batches; the parallelism penalty
    λ
    its weight. Not given in the paper; 0.05 in the released code

    A policy version's score is its average V over all t recorded trees (§3, Replay objective). A development agent (a fixed LLM) reads the replay trajectories and scores of the current version, rewrites the policy's code, and repeats: the current policy plus three rewrites, M = 4 versions per offline phase (Appendix B.2). The next online policy is the best-scoring of them; because the current policy is one of them, the chosen one "is never worse than πt on the average replay score" over the history (§3, Policy improvement). That guarantee is in-sample: it says nothing about the next online run, which is the point the toy in the second tab measures.

    What the area does to the starting policy

    The hand-written starting policy has no budget knob, so all five of its replays reveal the whole tree: one point at (Bi, 100%), zero area, and with the released defaults a score of −0.05 × 11/110 = −0.005 (this page ran the released code on its worlds and got exactly that). Any rewrite that reaches anything with fewer calls outscores it, so the "never worse" guarantee is close to automatic in the first offline phase; selection only bites between rewrites. The score also says nothing about the absolute best: a policy that reaches 96% of the recorded best with a quarter of the calls beats one that reaches 100% with all of them.

    In v1 the score was different: the best score reached, minus β1 per attempt, plus β2 per average batch size, with neither coefficient given, and the authors' own prompt already used the area form. The second tab scores the same candidates both ways; the rest of v1's method text is in What changed from v1.

    Cheap points that still reach most of the best earn most of the area; spending the whole tree earns none

    The released code against the text

    The code (google-research/dream-rsi, Apache 2.0, commit 8ec35bd of 8 October 2026) computes this score in dream_rsi/learning/heuristic_search/eval.py. This page ported it next to its own simulator and ran the released code on the same recorded worlds: The code matches the text on the frontier, the area, the five budget preferences, M = 4 and Table 3's rounds. The differences are small: λ = 0.05 is only in the code, the penalty counts worker-capped rounds, replay has no round limit and may open several branches at once, and some worlds are left out of the average.

    The four differences between code and text
    • λ is only in the code (0.05, with W = 10 replay workers), as is the fact that the starting policy ignores ρ.
    • The penalty counts worker-capped rounds: a batch of c calls costs ⌈c / W⌉ rounds, and the code does not cap a batch at W as §3 does; it prices it instead. With batches of at most W the two agree.
    • Replay has no round limit K2, and a batch may open several new branches at once, in any order, where §3 opens the earliest unopened branch once per round.
    • Some worlds are left out of the average: a recorded tree whose best score is not positive, or with fewer than 2 evaluated nodes, is skipped, and a replay that spent no calls is left out of the penalty's average instead of counting as zero.
    The rest of the code reading: selection, the policy interface, what is not released
    • Selection keeps the highest-scoring candidate that passed replay validation (every trace and every budget preference replayed without error); ties go to the later rewrite. If no candidate, the incumbent included, passes, up to three more batches of three rewrites are tried before the step fails.
    • The policy also plans the next online grid (plan_grid: how many branches and refinements the next round gets, within hard caps), which §3 does not describe and the prompt does. A plan larger than a recorded tree makes that replay fail ("out of support"), and the whole budget preference is then dropped from the score.
    • The replay rules are in dream_rsi/env/trace_env.py: a cell is legal once its parent is revealed, failed attempts are scored 0 and still cost a call, and the best so far starts at 0, as §3 has it.
    • Not released: the harness-optimisation task, any recorded trees, and the discovered programs (the paper's own repository lists them as "being prepared"). The maths and Lasso task files come from SimpleTES under the AGPL-3.0 and are downloaded by a script; the kernels need a GPU evaluation server. The 39 tests of the replay, policy and learning modules pass on a laptop CPU in under a second.
    • How this page checked it: all 505 candidate policies of the toy, replayed by the page at the five budget preferences on its three default worlds, were fed to the released _pareto_summary; then the worlds were written as released trace files and ten policies (the released parallel-refine incumbent and nine toy policies written against the released policy API) were replayed by the released eval.py --beta-sweep. Calls, rounds and best per world and budget preference agree in all 150 replays, and every score to 2 × 10−16 (src/check_score.py).

    What the policy and the agent actually see

    Appendix D

    The exploration policy is a Python class with a solve() method that the development agent rewrites under hard rules (Appendix D.2): decisions may use only what has been revealed, batches are a portfolio of up to W cells (never a parent and its child together), one "beta" knob (the paper's ρ) trades width and patience, and plan_grid() sizes the next live run, where anything beyond the recorded grid "is out of support and cannot earn replay reward". The prompt ranks policies by "pareto.reward = pareto.auc − lambda × parallel_penalty", which is v2's Eq. 1; the prompts are unchanged from v1.

    The policy prompt's rules in full (Appendix D.2)

    The exploration policy is a Python class with a solve() method that the development agent rewrites. Its prompt (Appendix D.2) describes the world as "a frozen, irregular branch×attempt grid" and sets hard rules:

    • Prefix only. Decisions may use revealed observations, structural metadata and helper signals, never unrevealed scores, a known optimum, hard-coded cell ids or absolute score targets.
    • Read each branch as a trajectory (its best successful result, trend, regressions, failure and repair sequence) and classify failures as hard-unrecoverable, repairable implementation failure, weak but underexplored, or repeatedly unpromising. Correctness mismatches, shared-memory limits and shape errors are "normally repairable".
    • Batch as a portfolio of up to W independent cells: strong refinements, new roots or underexplored branches, and at most one recovery of a repairable failure; never random, never a fixed widen-all or deepen-all schedule, never a parent and its child together.
    • One knob, beta, fixed within an episode: high beta means wider, more patient, weaker pruning. The default is moved by about 0.1 to 0.2 between live cycles from evidence (raise it on a plateau if the sweep shows higher beta reaches more; lower it if high beta only adds work).
    • Plan the next grid with plan_grid(): how many branches and refinements the next live run gets, chosen from earlier live manifests. A plan beyond the recorded tree's width or depth "is out of support and cannot earn replay reward".

    The coding agent itself gets a separate prompt (Appendix D.1): read every earlier proposal and its measured score in full ("trust the measured result over what the proposal claims"), find why failures failed, avoid "another small tweak" on a saturated direction, then write a proposal and the program. That prompt is the same for Dream-RSI and the fixed baseline.

    Why the coding agent's prompt matters for replay

    Because each new attempt reads every sibling attempt and the history, what the agent produced at a node depended on what else had been tried by then. Replay assumes a node's recorded outcome would have been the same under a policy that visited the tree in another order or skipped some siblings. The paper does not discuss this; it is the usual gap between a log and a simulator.

    Top: each round's budget as a bar, to scale (one bar per recursive round, width = generations or agent calls). Bottom: the round's result against cumulative cost. Values come from the figures' vector paths, calibrated on their own tick marks (kernel values to about 0.0002, Lasso runtimes to about 0.1 ms); the last Lasso points equal Figure 4(a)'s table. v2 draws the same runs as v1 (largest difference 0.0002 per ms and 0.2 ms). Each line is one run.

    Setup: one controlled baseline

    §4 Experiments

    Nine tasks in four domains: four GPU kernels, three maths problems, a Lasso solver, and an agent harness. On the first eight the controlled comparison is Recursive Fixed Exploration: the same discovery agent, evaluator, initialisation, per-round budget limits and hand-designed starting policy, but the exploration policy never changes after round 1 (§4). The starting policy is parallel refine: independent workspaces side by side, each refining its own candidate from its own history. So round 1 is identical by construction, and every difference comes after. The harness task has no such baseline (below).

    • Gemini-3.1-Pro for the science tasks: up to 10 branches × 11 attempts = 110 discovery-agent calls per round, W = 10 workers; 9 rounds for the kernels, 10 for the maths tasks, 5 for Lasso (Table 3).
    • Gemini-3.7-Flash for a second Lasso run: 32 × 20 = 640 calls per round. Claude Opus 4.8 with Claude Code for the harness task: 4 × 4 = 16 per round, 9 rounds.
    • Discovery cost is "the cumulative number of discovery-agent calls" (§4). The development agent's own calls while dreaming are not counted. These budgets are upper limits: the policy may spend less in a round, and Dream-RSI usually does.

    Every comparison below is one run of each method. Watch six of them unfold round by round, with the paper's own numbers decoded from its vector figures; choose the task on the card, and each round is explained here as it plays:

      GPU kernel engineering: four KernelBench tasks

      §4.1

      Four tasks from KernelBench (Ouyang et al. 2025): VGG16, LayerNorm, ConvDiv and ConvMax. A candidate kernel must match the PyTorch reference; its score is speed, 1 / runtime in ms, measured on an NVIDIA L40S (Appendix B.1). Gemini-3.1-Pro is the coding agent, and v2 adds the evolutionary system PACEvolve as a second baseline, capped at two days per task (§4.1). No speed-up over the PyTorch reference is reported; Figure 3 starts both curves at an unlabelled point at zero generations (0.1184 per ms on ConvDiv), probably the starting program.

      The claims (Figure 3): on VGG16 and LayerNorm Dream-RSI "matches final performance with 2.43× and 1.79× fewer generations"; on ConvDiv and ConvMax it is 2.09× and 1.44× faster "under comparable budgets" (§4.1, Results). All four ratios reproduce from the decoded curves (the checks).

      VGG16: fixed exploration ran 9 rounds of 110 generations (990); Dream-RSI stopped at 408, hence "2.43× fewer". How many generations did fixed exploration need to reach Dream-RSI's final speed?

      The two speed claims are point comparisons too. ConvDiv's 2.09× is Dream-RSI's final 1.8976 against fixed exploration at 770 generations (0.9092); against fixed's own final (1.2820 at 990 generations) it is 1.48×, still a large gap. ConvMax's 1.44× comes from one jump in Dream-RSI's last round (0.2786 → 0.4310); until then it trailed fixed exploration. Dream-RSI's rounds are mostly smaller: VGG16's after the first were 16 to 80 generations against 110. v2 adds the discovered ConvDiv kernel (Appendix E.2): it max-pools adjacent convolution outputs at once and keeps the later reductions in registers, so the convolution and pooled maps are never written out.

      PACEvolve ends at 0.2002, 0.8264, 0.6452 and 0.2654 per ms on the four tasks, far below both methods (Dream-RSI is 1.4 to 2.9 times faster; so is fixed exploration, 1.1 to 2.7 times), which is what "surpasses PACEvolve" means. Two things limit what that says: the cap is wall-clock time, in which PACEvolve made only 220 to 249 generations (Figure 8) against Dream-RSI's 408 to 786, and its model is not named. In Figure 3 its dashed line is drawn above the printed value on three of the four panels; read the labels.

      Mathematical optimisation: three open problems

      §4.2

      Three problems with formal definitions in Appendix B.3: the sum-difference problem (find a finite integer set A maximising log(|A+A|/|A|) / log(|A−A|/|A|)), circle packing (n circles in the unit square, maximise the sum of radii) and an autocorrelation inequality (find a function on [−¼, ¼] with integral 1 whose autoconvolution has the smallest peak). Gemini-3.1-Pro runs 10 rounds of each method; Table 1 compares against nine published systems (§4.2).

      The results (Table 1): sum-difference 1.145427, above SimpleTES (1.143975) and fixed exploration (1.144047); circle packing 2.635983, "matching the strongest reported result"; autocorrelation 1.456375, "remaining competitive" (§4.2, Results). v2's introduction now says it "matches or exceeds the best results among the compared baselines on two of three tasks".

      Read the table more closely
      • On autocorrelation Dream-RSI loses to its own baseline. Lower is better, and fixed exploration's 1.456001 beats Dream-RSI's 1.456375; it ranks fourth of the eight entries with a value, behind SimpleTES, AlphaEvolve and fixed exploration. The project README's own summary says "2 of 3 tasks at or above the selected baseline".
      • Which inequality? Appendix B.3 defines three autocorrelation problems; the column does not say which. SimpleTES's Table 1 prints 1.453675 for the third inequality and lists a previous best, Together AI's 1.454555, that this table leaves out (SimpleTES).
      • Circle packing is saturated. Six of the eleven entries print 2.635983 (the n = 26 value), so the task cannot separate methods.
      • The sum-difference gain is 0.12% over fixed exploration (+0.00138), one run each. SimpleTES reports 1.144887 with a post-trained model, still below 1.145427.
      • The generation count is never given for Dream-RSI on these tasks; Table 3's ceiling is 10 rounds of 110, so at most 1,100.

      Algorithm engineering: a faster Lasso path solver

      §4.3

      The task, taken from SimpleTES (Ye et al.), is to write a program that computes the whole Lasso regularisation path (the solution for a decreasing sequence of penalties λ) as fast as possible. The search scores solvers on SimpleTES's 17 synthetic instances; the reported numbers are wall-clock times on six held-out real datasets (Gisette, RCV1 and four biological ones), timed on an 8-vCPU AMD EPYC virtual machine (Appendix B.1). Both methods run 5 rounds (§4.3).

      Correctness rule, search score and the datasets (Appendix B.3)

      A solver must match sklearn's objective within 10−6 at every λ on fresh instances, or its score is zero; the search score is the inverse geometric mean of the run times on the timing instances (Appendix B.3). The six held-out datasets are two non-biological (Gisette, RCV1) and four biological (DNA, Leukemia, Colon, Duke Breast).

      The headline (Figure 4a): with Gemini-3.1-Pro the average runtime falls from 3,587.1 ms (fixed exploration, 550 calls) to 2,931.0 ms with 317 calls; with Gemini-3.7-Flash from 2,516.7 ms (3,200 calls) to 2,350.6 ms with 1,879 calls. Both discovered solvers beat sklearn and glmnet on all six datasets, and both averages beat SimpleTES's 3,804.8 ms, which used 51,200 generations: "approximately 162× and 27× fewer discovery-agent calls", which v2 qualifies with "although these comparisons use different model backbones" (§4.3, Main results). Its 51,200 is SimpleTES's default budget, 32 trajectories × 100 steps × 16 samples (SimpleTES §Methods).

      With Gemini-3.1-Pro, Dream-RSI cut the average runtime by 18%. On how many of the six datasets is its solver faster than the fixed-exploration solver?

      Two more things change the reading of that table. The unmarked SimpleTES row was timed on another, faster machine; against "SimpleTES†", SimpleTES re-run on this paper's machine, Dream-RSI looks better, not worse (8,318.4 against 2,931.0 or 2,350.6 ms). And a call is not a generation: a Dream-RSI "discovery-agent call" is one Gemini CLI agent session that reads the whole history and writes a proposal and a program (Appendix D.1); a SimpleTES generation is one sample from gpt-oss-120b, so 317 against 51,200 counts different units with different models.

      How the SimpleTES rows were traced

      The unmarked SimpleTES row's six numbers are identical to SimpleTES's own Supplementary Table 16, while this paper's sklearn and glmnet rows are about twice as slow as SimpleTES's (glmnet 2.12× on Gisette and RCV1), so they were timed on a slower machine. The dagger row "SimpleTES†", "results reproduced by us" (defined only in v2), is about 2× slower than the copied row too: SimpleTES re-run on this paper's machine. The per-dataset ratios are in the tables tab.

      Round by round (Figure 4b, decoded): the Pro run spent 110, 9, 28, 87 and 83 calls in its five rounds, and its held-out runtime got worse for three rounds (5,267 → 5,349 → 5,369 → 5,706 ms) before the last round's solver dropped it to 2,931 ms. At 234 calls it was slower than fixed exploration's solver at 110. v2 claims only that "by the final round" Dream-RSI is ahead on both backbones (§4.3, Dynamics), which holds; the Flash run (640, 336, 254, 299, 350 calls) is ahead at every round, the Pro run only at the last.

      What the discovered Lasso solver does (Appendix E.1)

      The discovered solver (Appendix E.1) combines strong-rule screening with Cauchy-Schwarz bounds that certify which features can be skipped in the optimality (KKT) check, computes exact gradients only where needed, and falls back to a full refresh once pruning stops paying (§4.3, Dynamics). SimpleTES's solver, by contrast, switches between LARS and coordinate descent by problem dimension. The Flash program is faster than the Pro one on RCV1 (12,923.4 against 14,616.0 ms).

      Harness optimisation: Terminal-Bench 2.1 (new in v2)

      §4.4

      The ninth task improves an agent harness, the program around a fixed model that decides what it stores, retrieves and sees (§4.4). Following Meta-Harness, the search starts from the Terminus-Kira harness; every candidate runs the full Terminal-Bench 2.1 suite of 89 tasks twice; Claude Opus 4.8 with Claude Code is the discovery agent, the development agent and the model being evaluated. Over 64 generations the best-so-far score rises from 0.7247 to 0.8090, above Claude Code (0.75) and a reproduced Meta-Harness (0.79) "under the same evaluation setting" (Figure 5).

      What this result can and cannot show
      • No controlled baseline. The fixed-policy run was omitted "due to its substantial cost: an additional full search is estimated to cost over $100,000" (§4), so nothing separates the dreaming from the search itself.
      • Selected on the reported suite. 0.8090 is the best of 64 harnesses, each scored on the same 89 tasks it is reported on; there are no held-out tasks and no repeat. One evaluation's sampling spread at this level is about ±0.03 (one standard error over 178 trials, if trials were independent), a third of the 8.4-point gain, and the best of 64 noisy scores is biased upward.
      • Small budget, used in part. Table 3 allows 9 rounds of 4 × 4 = 16 calls (144); the curve ends at 64.
      Five improvements, each worth one to nine more passed trials out of 178
      Figure 5(a) decoded: best-so-far score against generations; each step is labelled with its passed trials out of 178 (89 tasks × 2 runs). Every step lands on a whole number of trials: 129 → 138 → 140 → 141 → 143 → 144.

      Analysis: history, guidance, and what the learned policy does

      §5 Further Analysis

      Replaying all history or only the last round (new in v2). On ConvDiv, Dream-RSI replaying every recorded world reached 1.90 per ms with 786 calls; replaying only the current round's world reached 1.59 with 430 (Table 2). The paper reads this as accumulated worlds giving "a more general exploration policy" and avoiding "overly conservative exploration associated with fitting to a single world" (§5, History accumulation). The two rows spent different amounts: at 437 calls the all-history run (the same run as Figure 3's ConvDiv curve) stood at 1.4881, below the other's 1.59 at 430. So the table shows that the current-history policy stopped earlier and lower, which fits "conservative", not that it was worse per call. One run each.

      History as guidance instead of a simulator. A natural alternative is to summarise past trajectories into "high-level directional insights" and put them in the agent's prompt. On ConvDiv, both methods with such guidance end below their unguided runs (Figure 6): Dream-RSI 1.4881 against 1.8976, fixed exploration 0.6329 against 1.2820; the paper concludes "such guidance may constrain exploration" (§5, Guidance). The guided runs are ahead early (fixed with guidance leads at 220 to 550 generations, Dream-RSI with guidance at 190 to 349), and the guided Dream-RSI run used 11 rounds against 9. One run per arm, one task.

      How the policy changes. On ConvDiv the learned policy spent 110, 110, 87, 80, 50, 92, 80, 91 and 86 attempts in rounds E0 to E8 while its round-best speed rose 0.427 → 0.625 → 0.855 → 1.403 → 1.488 → 1.499 → 1.770 → 1.880 → 1.898 (Figure 7; these are the same run as Figure 3's ConvDiv curve, and the attempts add up to its 786 generations). The paper's reading: it first conserves compute as performance improves ("from 110 to 50"), then spends more again when progress plateaus, "coinciding with further performance gains" (§5, Exploration behaviour). Nine points from one run, so a pattern to look for rather than a measured behaviour.

      How much of this to believe

      Verdict: believe the mechanism, and believe that it can cut calls; treat every number as one anecdote. The idea is sound and cheap, the released code computes the score v2 describes, the reported ratios reproduce from the paper's own figures, and some results are large (ConvDiv). But nothing is repeated, several headline ratios are chosen at their most favourable point, the cost metric omits the dreaming itself, and the new harness result has no baseline and was selected on the suite it reports.

      What holds up

      • The idea is correct on its own terms. A recorded tree really is an exact record of what each attempt produced, and re-scoring a different traversal of it costs nothing. The selection rule (keep the best of M = 4 versions, the current one included) can only improve the replay score on the history.
      • The code is out and does what v2 says. Ported and rerun here, the released score agrees with this page's port to 2 × 10−16 on 505 policies and in 150 end-to-end replays; the differences from the text are small and listed above.
      • The arithmetic checks. Every average, every call count (5 × 110 = 550, 5 × 640 = 3,200), the 162× and 27× ratios, all four kernel ratios and the harness steps (whole numbers of 178 trials) reproduce from the paper's own tables and decoded figures; Figure 7 adds up to Figure 3's ConvDiv curve exactly (all checks).
      • The baseline is controlled on eight of nine tasks: same agent, evaluator, initialisation, starting policy and per-round budget, so round 1 is shared and only the policy differs.
      • Some effects are large. ConvDiv ends 1.48× faster than fixed exploration's own final at fewer generations; Lasso with Flash is faster on five of six datasets at 59% of the calls.
      • The authors are candid, more so in v2. They write "competitive" and "in several settings", and v2 adds that the Pro Lasso gain "is driven by RCV1", that the SimpleTES comparisons "use different model backbones", and that maths matches or exceeds the baselines on "two of three tasks"; it drops v1's "consistently" claims.

      What does not

      • One run per arm, no error bars. Discovery runs are stochastic (the paper says so in §3), yet every curve is one run. Held-out Lasso runtime moves by hundreds of milliseconds between rounds of the same method (fixed Pro: 5,267, 5,365, 5,295, 4,691, 3,587 ms), so the gaps being compared are of the size of round-to-round noise.
      • Ratios taken at the best point. VGG16's 2.43× and LayerNorm's 1.79× are ratios of total budgets at which Dream-RSI ends slightly worse; at matched performance they are 1.89× and 1.19×. ConvDiv's 2.09× compares against fixed exploration at 770 generations rather than its final (1.48×). ConvMax's 1.44× is one final-round jump. Table 2's history ablation compares runs that spent 786 and 430 calls.
      • An average carried by one dataset. Pro's Lasso solver is faster than fixed exploration's on 1 of 6 datasets and 13% slower on the geometric mean; the 18% gain is RCV1 (now stated in v2, still the headline).
      • A cost metric that leaves out the dreaming. Only discovery-agent calls are counted. The development agent writes three rewrites every round, reads every replay trace and its rewrites are replayed 5 × t times each; its token use is not reported. Replay is free of evaluations, not free.
      • A harness result with nothing to compare against. No fixed-policy run; 0.8090 is the best of 64 candidates on the same 89 tasks, with a sampling spread of about ±0.03 per evaluation; Claude Code and Meta-Harness are single scores.
      • Comparisons that are not like for like. SimpleTES's Lasso row is copied from its own paper and was timed on a machine about twice as fast as the one that timed this paper's sklearn and glmnet rows; 51,200 gpt-oss-120b generations are not the same unit as 317 Gemini CLI sessions; PACEvolve ran under a 48-hour clock with an unnamed model and made fewer generations; Table 1's other systems used other models and budgets, and it omits a previous best (Together AI's 1.454555).
      • On autocorrelation Dream-RSI is beaten by its own baseline, and the generation counts on the maths tasks are not given.
      • Not fully reproducible yet. The code reruns the method, but no recorded trees or discovered programs are released, the harness task is not in the code, λ is in the code but not the paper, and the kernels need a GPU server.
      • What replay cannot see. It rewards only what the record covers. A policy that would go deeper or wider than the recorded grid "is out of support and cannot earn replay reward" (Appendix D.2), and no replayed policy can score above the best recorded node. Replay also assumes a node's outcome does not depend on which siblings had been tried first, while the agent's prompt makes every attempt read them all.

      The limit, stated plainly

      A replay simulator is only valid inside the region the history covers. Dreaming therefore sharpens how a mapped space is exploited (fewer, better-placed probes), and cannot by itself push exploration into unmapped territory; whatever new territory Dream-RSI reaches comes from the online rounds. v2's score makes the bias explicit: it pays for reaching the recorded best cheaply and nothing for spending more. The toy in Dream over a recorded tree shows the shape of this: the dreamed policy wins by probing less, keeps most of the best result on fresh worlds of the same kind, and loses more when the next world rewards depth it never recorded. It is the opposite failure from the one Agora reported, where the agents concentrated on one lineage and the authors intervened to push diversity (whether that helped is untested there); both point at the same risk in self-improving loops: the cheap signal is always the one that describes where you have already been.

      What it takes to use this

      The released code (google-research/dream-rsi, Apache 2.0) has the orchestration layer that logs every attempt as a tree node, the replay environment and score, the policy interface, the prompts and launch scripts with the paper's settings; you supply a task with an evaluator and an agent CLI. The reported runs are small (hundreds to about 2,000 calls per task), and it pays only when evaluations are expensive and successive rounds explore similar ground.

      What is in the code, budget, when it pays, what to measure first
      • What is in the code: dream_rsi/orchestrate.py runs the loop (explore, learn, promote); env/trace_env.py is the decision interface shared by online rollout and replay; learning/heuristic_search/eval.py is the replay score; policy/baseline.py the starting policy; prompts/ the two prompts of Appendix D, the most reusable part of the paper. The KernelBench tasks are included (they need a GPU evaluation server); the maths and Lasso tasks are fetched from SimpleTES (AGPL-3.0); the harness task is not included. The agents are the Gemini CLI (used in the paper), the Claude Agent SDK and the Codex CLI.
      • Budget: the reported runs are small: 317 to 1,879 Gemini CLI calls for Lasso, at most 990 generations per kernel and 1,100 per maths task, 64 harness generations, plus an unreported amount of development-agent work per round (three rewrites, each replayed on every recorded tree at five budget preferences).
      • When it should pay: when evaluations are expensive, the per-round budget is large enough to waste, and successive rounds explore similar ground, so that old trees say something about the next one. It buys little when one run is all you have (nothing to replay yet) or when the useful directions lie beyond anything recorded.
      • What to measure first: run each arm several times, report matched-performance savings and per-task results, keep held-out tasks for anything selected on a benchmark, and count the development agent's calls in the cost.
      Since the paper (dated: checked 26 October 2026)
      • On 3 October 2026: no code. github.com/zhengkid/Dream-RSI held the PDF, figures and a README whose release plan listed "Full codebase", "Reproduction scripts" and "Discovered programs" as "being prepared", with no licence file.
      • Code released on 6 October 2026: google-research/dream-rsi, Apache 2.0, last commit 8 October (8ec35bd), which this page read and ran. The paper's README now marks the codebase and reproduction scripts available and "Discovered programs" still "being prepared" (checked 26 October 2026).
      • arXiv version 2 (6 October 2026), which this page follows since 26 October; what v1 said is in the block below.
      • Hugging Face: 250 upvotes on 3 October 2026 (sixth in its week, fourth on its day), 334 on 25 and 26 October (papers API).
      What changed from v1 (14 September 2026)

      v1 (arXiv HTML v1) reported eight tasks in three domains, with the same headline numbers (550, 317, 2.43×, 1.79×, 2.09×, 1.44×, 1.145427). What it said differently:

      • The replay score. v1's Eq. 1 (v1 §3) was V = max sv − β1N + β2·N / max(1, k*): the best revealed score, minus a charge per attempt, plus a bonus per average batch, one replay per world, no budget preferences. No value was given for β1, β2, M, K1, K2 or the replay workers, and the objective in v1's own policy prompt was already "pareto.auc − lambda × parallel_penalty", so v1 did not say which objective produced its results. v1's selection text also ran its loop for m = 0 to M−1 and produced πM, one version too many.
      • Claims v2 dropped: "1.7×" fewer calls than fixed exploration (the arithmetic holds: 550 / 317 = 1.74, 3,200 / 1,879 = 1.70); "over 50× budget savings" against SimpleTES on the maths tasks with "fewer than 1,000 generations" (never counted); "roughly two orders of magnitude fewer" calls than SimpleTES (true for Pro, not for Flash's 27×); "consistently achieves superior downstream performance" on Lasso (fails for Pro in two of four later rounds); guidance "consistently underperforms" (both guided runs lead early); "Overall, these results show that our Dream-RSI generalize well on mathematics optimization"; and that the Pro solver "appears particularly well suited to large-scale matrices such as RCV1" (the Flash solver is faster on RCV1).
      • Things v1 left unstated that v2 states: the dagger row (v1: never defined; the project page called it "our reproduction"), the GPU and machines, the per-task rounds and budgets (Table 3), M = 4, and the per-dataset Lasso picture. v1 described the discovered solver further: "lazy Gram-matrix construction, and hardware-aware implementation".
      • New in v2: the harness task, PACEvolve and its Appendix C, Table 2's history ablation, an AI use statement (Gemini 3.8 Flash for writing and grammar), the discovered ConvDiv kernel, and the figure and appendix numbering: v1's Figure 3 (Lasso) is v2's Figure 4, v1's Figure 4 (kernels) is Figure 3, v1's Figures 5 and 6 are Figures 6 and 7, and v1's Appendices A, B and C are v2's B.3, D and E.
      • This page under v1 (25 October): the toy scored candidates by v1's Eq. 1 only (β1 = 0.002, β2 = 0.01 by default); its winner found nearly the recorded best (98%) with 29 of 110 probes per world on the default history (26 to 31 per world), and raising β2 made the fixed policy win outright. Both still hold in the toy's v1 mode.

      Why it matters (beyond the paper)

      Automated discovery loops have become a standard tool: AlphaEvolve (Novikov et al. 2025), and SimpleTES, which reports results on 28 problems across quantum compilation, astrodynamics, scientific algorithms, kernels and mathematics with one open model and spends 51,200 generations per problem by default (Ye et al. 2026, Table 1). Once the loop works, the open question is how to spend its budget, and that is a policy that is usually hand-written.

      Dream-RSI's contribution is to notice that every finished run is free training data for that policy, usable without touching model weights and without new evaluations. That is off-policy evaluation from logged data, an old idea in reinforcement learning, applied to the meta layer of a discovery loop; the classic risk of model-based methods, a policy that exploits the model where the model is wrong (Moerland et al. survey), takes a specific form here: the record is exact but incomplete, so the bias is toward doing less of what was recorded rather than toward hallucinated rewards.

      It is one of three auto-research papers on this knowledge base that differ mainly in where the loop's memory lives (see Connections).

      Connections

      • Third of the week's three auto-research papers, with Agora: Git as Shared Memory for Collective AutoResearch and SoL-Pi: Recursively Scaling Auto-Research Loops for Efficient Agent Harness.
      • GPU kernel engineering as one of the four demonstration domains puts it next to Topic: cuda-and-gpu-programming and next to Φ-Bench's finding that kernel and hardware work is where frontier models score worst (Hardware and Edge: 5.4% for the best model).
      • NeoHorse-1 pursues recursive self-improvement in the weights: interactions served through its routing harness become a post-training curriculum for the model. Dream-RSI keeps every model fixed and changes only the exploration code. Like NeoHorse-1, it never turns its own loop off component by component, and its loop is judged on one run.
      • JIT-Agent and HarnessDev also change the layer around a fixed agent, and v2's harness task does exactly that; HarnessDev found that the score a creator could see moved the same way as the held-out score in only 34 of 64 version changes, the same generalisation question Dream-RSI's in-sample selection, and its harness result scored on the selection suite, leave open.
      • EnvHarness (cited by Dream-RSI as Huang et al. 2026b) builds worlds for agents to learn in; here the world is the agent's own past.