Dream-RSI: Recursive Self-Improvement through Evolving Worlds
Table of Contents
Open Table of Contents
- Historical Background
- The Exploration Problem
- The Core Insight of Dream-RSI
- History as a Replay Simulator
- The Dreaming Process
- Dream-RSI Architecture
- The Recursive Self-Improvement Loop
- Why This Is Different from Standard Reinforcement Learning
- Off-Policy Evaluation
- Why Exploration Is the Bottleneck
- Experimental Domains
- Algorithm Engineering
- Mathematical Optimization
- GPU Kernel Engineering
- A Simplified Mathematical View
- The Evolving Worlds Perspective
- Dream-RSI vs. Traditional Fine-Tuning
- System-Level vs. Model-Level Self-Improvement
- Relationship to Experience Replay
- Relationship to World Models
- Computational Efficiency
- Limitations
- A General Architecture for Recursive Agent Improvement
- Applications
- Broader Significance
- Conclusion
- Further Reading
Introduction
Dream-RSI is a framework for recursive self-improvement (RSI) in autonomous AI agents.
The work, Dream-RSI: Recursive Self-Improvement through Evolving Worlds, was released in September 2026 by researchers from Google, Google DeepMind, the University of Maryland, and the University of Virginia.
The central problem is not simply making an AI agent better at solving a single task.
Instead, the question is:
How can an AI agent improve the strategy it uses to discover solutions?
For long-horizon discovery problems, an agent may need to perform thousands of proposal-and-evaluation cycles.
A typical process looks like:
The difficulty is that the quality of an exploration strategy may only become visible after many iterations.
Consequently, directly optimizing the exploration policy online can be extremely expensive.
Dream-RSI introduces a different approach.
Instead of repeatedly evaluating exploration strategies in the real environment, it uses previously collected discovery histories as replay simulators.
The agent can then “dream” inside these historical worlds, evaluate alternative exploration strategies, improve them, and deploy the improved strategy back into the real search process.
This creates a recursive loop:
The important idea is that history itself becomes a reusable computational environment.
Historical Background
Recursive self-improvement has long been discussed in artificial intelligence.
Traditional machine learning generally follows:
An improved model requires additional data, optimization, or architectural changes.
Agentic systems introduce another dimension:
Here, improving the model is not necessarily the only way to improve the system.
The strategy used by the agent can also become an optimization target.
This leads to a hierarchy:
Object-Level Optimization
Improve the solution to a task.
Meta-Level Optimization
Improve the strategy used to search for solutions.
Recursive Self-Improvement
Use the results of previous optimization processes to improve the optimization strategy itself.
Dream-RSI focuses primarily on this meta-level exploration problem.
The Exploration Problem
Consider an autonomous coding agent searching for an optimized program.
Suppose the agent explores a tree:
where each node represents a candidate program or discovery state.
A simplified search process is:
At each state, the agent must decide:
- Which branch should be explored?
- How many candidates should be generated?
- Which candidates should be evaluated?
- When should exploration stop?
- Should computational resources be concentrated on promising branches?
These decisions define an exploration policy.
Let the policy be:
where represents the parameters or logic controlling exploration.
The objective is to maximize the final discovery quality:
The problem is that evaluating may require executing the entire discovery process again.
If a single discovery process requires thousands of expensive agent calls, then optimizing online becomes extremely costly.
The Core Insight of Dream-RSI
Dream-RSI makes a key observation:
A completed discovery process already contains a large amount of information about the search space.
Suppose an agent previously explored:
Root
/ \
A B
/ \ / \
A1 A2 B1 B2
| |
A2a B2a
The tree contains:
- exploration decisions,
- generated candidates,
- execution results,
- evaluation scores,
- successful branches,
- unsuccessful branches,
- relationships between discoveries.
Instead of discarding this information after the search finishes, Dream-RSI turns it into a replay simulator.
The historical tree becomes a world in which alternative exploration policies can be tested.
History as a Replay Simulator
The concept can be represented as:
where:
- is a discovery state.
- is an exploration decision.
- represents the observed outcome.
- is the resulting state.
Traditional online optimization would execute:
Dream-RSI instead evaluates:
Because the outcomes of historical branches have already been recorded, many alternative decisions can be evaluated without rerunning the expensive underlying agent or evaluator.
This transforms historical data from passive logs into an active optimization environment.
The Dreaming Process
The name Dream-RSI comes from the idea that the agent can improve itself by “dreaming” inside historical worlds.
A simplified process is:
Real World
|
v
Online Discovery
|
v
Discovery History
|
v
Replay Simulator
|
v
Dreaming
|
v
Improved Exploration Policy
|
v
Real World
The important distinction is that the dreaming phase does not need to repeatedly execute the original expensive discovery process.
Instead, the agent explores a previously recorded search space.
Dream-RSI Architecture
The framework can be divided into several components.
1. Coding Agent
The underlying coding agent performs the actual discovery process.
Importantly, Dream-RSI does not require modifying the underlying coding agent.
The framework introduces a lightweight orchestration layer around it.
2. Exploration Policy
The orchestration layer determines how exploration is performed.
It can control:
- Branching.
- Parallel exploration.
- Candidate selection.
- Search allocation.
- Stopping decisions.
Formally:
The policy determines which action should be taken at each discovery state.
3. Discovery History
The system records the discovery process.
A history may contain:
This history becomes reusable after the online search finishes.
4. Replay Simulator
The discovery history is transformed into a replayable environment.
Instead of evaluating a new strategy against the real environment, the strategy can traverse the historical search tree.
The simulator therefore provides relatively cheap feedback:
5. Policy Improvement
Candidate exploration strategies are evaluated inside the replay simulator.
The system can then select or refine better strategies.
Conceptually:
The improved policy is subsequently deployed online.
The Recursive Self-Improvement Loop
The full Dream-RSI process can be written as:
At iteration :
Step 1: Online Exploration
Use the current policy:
to perform discovery.
Step 2: Record the Search
Store the resulting discovery tree:
Step 3: Build Replay Simulators
Convert the historical discovery process into a reusable simulator.
Step 4: Dream
Evaluate alternative exploration strategies inside the simulator.
Step 5: Improve
Produce a better exploration policy:
Step 6: Redeploy
Use for the next real discovery process.
This creates a feedback loop:
Why This Is Different from Standard Reinforcement Learning
Dream-RSI has similarities to reinforcement learning, but the optimization problem is different.
In conventional RL, an agent typically learns a policy through interactions with an environment:
where is an observed trajectory.
Dream-RSI instead focuses on optimizing the exploration process itself.
The historical discovery tree becomes an offline environment.
This resembles a combination of:
- Offline reinforcement learning.
- Model-based reinforcement learning.
- Experience replay.
- Search algorithms.
- Meta-learning.
- Program optimization.
- Agent orchestration.
However, the key abstraction is particularly important:
The system does not necessarily need to learn a neural world model.
The already observed search tree provides the environment.
Off-Policy Evaluation
One of the major advantages of the approach is off-policy evaluation.
Suppose historical data was generated using:
Dream-RSI wants to evaluate:
without executing the entire discovery process again.
This gives:
The historical data therefore becomes useful for evaluating policies that were not originally responsible for generating the trajectory.
This is especially valuable when evaluation is expensive.
Why Exploration Is the Bottleneck
In many agentic systems, generating one candidate is not the fundamental problem.
The harder problem is deciding where to search next.
Consider a discovery tree containing thousands of possible branches.
A fixed strategy might repeatedly allocate resources according to a predefined rule.
For example:
Explore A
Explore B
Explore C
Explore D
...
But as the search space grows, fixed strategies become increasingly inefficient.
The agent needs to learn:
Which branch?
How deeply?
How many samples?
When to stop?
When to backtrack?
This is a meta-search problem.
The search space therefore has two levels:
Dream-RSI primarily targets the second layer.
Experimental Domains
The authors evaluate Dream-RSI in several discovery settings.
The reported experiments cover:
- Algorithm engineering.
- Mathematical optimization.
- GPU kernel engineering.
The project reports that Dream-RSI can improve discovery quality and reduce discovery cost in several settings.
Algorithm Engineering
Algorithm engineering treats the coding agent as a mechanism for discovering improved algorithms or implementations.
The search process can involve:
A poor exploration policy may spend large amounts of computation on unproductive branches.
According to the project’s reported results, Dream-RSI achieved:
- faster downstream runtime.
- lower discovery compute.
- fewer calls than the reported SimpleTES comparison.
The project notes that these results were obtained without gradient updates to the underlying coding agent.
This distinction is important.
The system improves how the agent searches, rather than directly retraining the underlying model.
Mathematical Optimization
Mathematical optimization provides another natural environment.
A discovery system may explore candidate solutions:
and evaluate:
The challenge is allocating search resources efficiently.
A better exploration policy can potentially identify useful regions of the search space with fewer evaluations.
The Dream-RSI project reports competitive or improved results across its mathematical optimization experiments.
GPU Kernel Engineering
GPU kernel optimization is particularly suitable for this framework because candidate programs can be automatically benchmarked.
A simplified search loop is:
The objective could be:
subject to correctness constraints.
According to the project repository, all four evaluated kernels were improved, with:
higher performance at an equal budget, and:
fewer generations at equal performance in the reported experiments.
A Simplified Mathematical View
Dream-RSI can be described using three functions.
Discovery
where:
- is the exploration policy.
- is the discovery environment.
- is the resulting history.
Dreaming
The historical search process is used to estimate the performance of an alternative policy.
Improvement
The resulting policy is then deployed:
This produces new historical data:
The system therefore creates an evolving collection of reusable discovery worlds.
The Evolving Worlds Perspective
The word “worlds” in Dream-RSI is significant.
A conventional agent interacts with a single external environment.
Dream-RSI instead maintains a growing collection of historical environments:
Each world represents a previously observed discovery process.
The policy can therefore be evaluated across multiple historical worlds:
As more real-world exploration occurs:
The simulator pool becomes richer.
This gives recursive improvement a data-generating mechanism:
Dream-RSI vs. Traditional Fine-Tuning
It is useful to distinguish Dream-RSI from conventional model training.
Traditional fine-tuning:
Dream-RSI:
The underlying coding model can remain unchanged.
This makes the approach an example of system-level self-improvement rather than conventional parameter-level self-improvement.
System-Level vs. Model-Level Self-Improvement
There are at least two distinct ways an AI system can improve itself.
Model-Level Improvement
Modify model parameters:
Examples include:
- Fine-tuning.
- Reinforcement learning.
- Distillation.
- Continued pretraining.
System-Level Improvement
Keep the underlying model fixed but improve:
- Search strategy.
- Tool usage.
- Planning.
- Resource allocation.
- Exploration policy.
- Agent orchestration.
Dream-RSI primarily operates at the second level.
This is important because system-level optimization can potentially improve behavior without requiring expensive retraining of a frontier model.
Relationship to Experience Replay
Experience replay is a familiar concept in reinforcement learning.
A replay buffer stores:
and allows an agent to reuse historical experience.
Dream-RSI extends the idea from individual transitions toward structured discovery histories.
Instead of merely replaying:
state → action → reward
the system can replay an entire search structure:
Discovery
/ \
Branch A Branch B
/ \ / \
A1 A2 B1 B2
The structure itself becomes valuable.
This makes the approach closer to search-tree replay than conventional experience replay.
Relationship to World Models
World models attempt to construct an internal model of an environment.
Conceptually:
An agent can then simulate future trajectories inside:
Dream-RSI takes a different route.
Rather than necessarily learning a generalized world model, it directly reuses realized historical search trajectories:
Therefore, Dream-RSI can be viewed as a form of empirical world modeling over the already explored search space.
The limitation is equally clear:
The simulator knows about what has already been observed.
It cannot automatically represent arbitrary unseen branches.
Computational Efficiency
The main motivation for Dream-RSI is computational efficiency.
Suppose online evaluation costs:
and historical replay costs:
with:
Then evaluating candidate policies gives:
Traditional approach:
Dream-RSI:
If:
the savings can become substantial.
This is especially important for agentic systems where each evaluation may require:
- LLM inference.
- Tool calls.
- Code execution.
- Compilation.
- GPU computation.
- External simulators.
Limitations
The approach also introduces important limitations.
Limited Coverage
A replay simulator only contains previously observed branches.
If a new policy selects a branch that was never explored, the historical simulator cannot necessarily provide the true outcome.
Therefore:
Distribution Shift
The new policy may behave differently from the policy that generated the historical data.
This creates an off-policy distribution gap:
As the policies diverge, historical data may become less representative.
Simulator Staleness
Old discovery histories may become less useful as the agent discovers new regions of the search space.
This motivates continuously expanding the simulator pool.
Evaluation Bias
A policy optimized entirely against historical worlds may learn to exploit artifacts of those worlds.
Therefore, online validation remains necessary.
A practical system should maintain:
rather than relying exclusively on replay.
A General Architecture for Recursive Agent Improvement
Dream-RSI suggests a broader architecture for autonomous research agents.
┌──────────────────────┐
│ Exploration Policy │
└──────────┬───────────┘
│
v
┌──────────────────────┐
│ Online Discovery │
└──────────┬───────────┘
│
v
┌──────────────────────┐
│ Discovery Histories │
└──────────┬───────────┘
│
v
┌──────────────────────┐
│ Replay Simulator Pool│
└──────────┬───────────┘
│
v
┌──────────────────────┐
│ Dreaming │
└──────────┬───────────┘
│
v
┌──────────────────────┐
│ Policy Improvement │
└──────────┬───────────┘
│
└──────────────┐
│
v
Online Discovery
This architecture separates:
- Task solving
- Search orchestration
- Experience collection
- Offline policy evaluation
- Meta-level improvement
That separation is one of the most interesting aspects of the framework.
Applications
The same principle could potentially be applied to many autonomous discovery systems.
Scientific Discovery
An AI scientist could record:
- Hypotheses.
- Experiments.
- Failed experiments.
- Successful experiments.
- Parameter configurations.
Historical experiments could then become replayable scientific search environments.
Program Synthesis
For program synthesis:
Historical synthesis trees could be reused to optimize search strategies.
Compiler Optimization
Compiler optimization naturally produces large search spaces.
A system could explore:
and reuse previous optimization trajectories to improve the search policy.
GPU Kernel Optimization
GPU kernel search is particularly compatible with this framework because performance can be objectively measured.
The loop becomes:
Mathematical Discovery
Mathematical research can be represented as a branching search process:
Historical proof attempts could potentially become reusable search trajectories.
Broader Significance
The most important idea in Dream-RSI is not a new neural network architecture.
It is a change in how we think about experience.
Traditional machine learning often treats experience as data:
Dream-RSI treats experience as an executable search environment:
This distinction is fundamental.
A log records what happened.
A simulator allows alternative decisions to be evaluated against what happened.
Therefore:
Conclusion
Dream-RSI proposes a framework for recursive self-improvement based on a simple but powerful idea:
An agent’s previous discovery history can become a world in which the agent learns how to explore better.
The framework separates the underlying coding agent from the exploration strategy and introduces a lightweight orchestration layer.
Its recursive loop is:
This approach addresses an important bottleneck in autonomous AI systems: optimizing long-horizon exploration without repeatedly paying the full cost of online evaluation.
Rather than continuously retraining the underlying model, Dream-RSI improves the system at the level of search strategy.
The broader research direction is therefore not simply:
but:
As autonomous agents move toward scientific discovery, program synthesis, algorithm design, and engineering optimization, this distinction may become increasingly important.
Dream-RSI provides one concrete framework for studying this problem: use the accumulated history of discovery to construct evolving worlds in which better exploration policies can be developed.
Further Reading
Paper
- Dream-RSI: Recursive Self-Improvement through Evolving Worlds — Tong Zheng et al., 2026.
Project
- Dream-RSI project and interactive demonstration.
- Official GitHub repository.
Related Topics
- Reinforcement Learning.
- Offline Reinforcement Learning.
- Experience Replay.
- World Models.
- Meta-Learning.
- Autonomous AI Agents.
- Program Synthesis.
- Recursive Self-Improvement.
Citation
@article{zheng2026dreamrsi,
title = {Dream-RSI: Recursive Self-Improvement through Evolving Worlds},
author = {Zheng, Tong and Wu, Xidong and Zhang, Zheng and
He, Zhankui and Zhang, Chaoyi and Coleman, Benjamin and
Wei, Ruoqiao and Bai, Di and Liu, Haolin and Liu, Rui and
Wang, Xue and Zhuan, Yue and Kang, Wang-Cheng and
Xiang, Renkai and Huang, Heng and Cheng, Xinwu and Guo, Yunsong},
journal = {arXiv preprint arXiv:2609.14858},
year = {2026}
}
References
- Zheng, T. et al. Dream-RSI: Recursive Self-Improvement through Evolving Worlds, 2026.
- Dream-RSI official project repository.
- Dream-RSI citation metadata and project information.