Sleeping on it: how AI agents learn between sessions

AI agents forget their work when a session ends. Two recent publications, from Google and from Anthropic, answer with an idea taken from neuroscience: let the agent dream. This page explains both, and how σ‑Bench tests the idea on research with high-frequency market data.

People say “sleep on it” for a reason. A hard problem often looks different in the morning, although nobody worked on it overnight. Neuroscience has an explanation. While we are awake, the brain records experience quickly and in detail. While we sleep or rest, it replays what happened, keeps what matters and builds it into long-term knowledge [6].

AI systems have no night. A language model is trained once and then frozen. What it learns during a conversation is gone when the conversation ends. An AI agent, a model that works on a task by itself for hours with the help of tools, starts each new session like an employee on the first day.

In 2026 two research groups described a remedy, and both took it from sleep. Researchers at Google let an agent replay its own past search for a solution and rewrite the rules by which it searches; they call the method Dream-RSI [1]. Anthropic gives the agent a memory made of text and lets it dream over its work logs between sessions [2]. The two differ in what is consolidated: how to search in one, what is known in the other. The principle is the same: do the work first, consolidate it later, away from the task.

This page explains the two approaches in plain language, sets them side by side, and names what neither has shown yet. The last section describes how σ‑Bench puts that open question to a test.

AWAKE ONLY Session 1 starts from zero Session 2 starts from zero Session 3 starts from zero nothing is kept nothing is kept AWAKE AND ASLEEP Session 1 starts from zero Session 2 starts with what was kept Session 3 starts with more sleep sleep
Figure 1 Without a sleep phase every session starts from zero. With one, what a session learned is consolidated and handed to the next.

A system that never sleeps cannot keep what it learns

A language model stores what it knows in its weights: billions of numbers that are set during training and fixed afterwards. This is why a model has a knowledge cutoff, a date after which it knows nothing.

There are two obvious ways to teach a finished model something new, and both fail in a well-known way. The first is to change the weights. Training the model further on new material tends to damage what it already knew, an effect researchers call catastrophic forgetting. The second is to use the context. The model can read new material during a conversation and use it at once, but the space for it, the context window, is limited, and when the session ends the material is gone.

Agents inherit the problem. An agent that spent six hours finding out which approaches fail on a dataset will try the same approaches again in its next session, unless something carries the lesson over.

Dreaming about how to search: Google’s Dream-RSI

Google’s method starts from an agent that searches. Asked for a better program, such an agent runs hundreds of cycles of proposing a change and testing it. A set of rules, its exploration policy, decides which attempts to build on, how many to try side by side and when to stop. A better policy finds better programs for the same effort, but testing a new policy for real means running the whole search again.

Dream-RSI avoids that [1]. A finished search is a tree of attempts whose scores are all stored. Another policy would have walked the same tree differently: other branches, another order, an earlier stop. What it would have found can be read off the stored scores, without running the agent again. In this sense the agent dreams: it replays its own history instead of acting.

The method alternates two phases. Awake, the agent searches with its current policy and records the tree. Asleep, it writes new versions of the policy as code, replays every version on all stored trees and keeps the best, which may be the old one. Only the policy changes. The model, the task and the way programs are scored stay fixed.

In the authors’ experiments the method reached the same speed of GPU code with roughly half the search effort of a fixed policy, or code up to twice as fast for a similar effort, and it improved results on other search problems as well [1]. Paper and code are public, which is why σ‑Bench can run the method unchanged.

Awake search phase Current rules the exploration policy Search tree every attempt and its score Asleep dream phase: no new attempts STEP 1 Rewrite the rules 1 new rule versions, as code 2 written by the agent itself 3 the old rules stay in the race STEP 2 Replay on the past 1 each version walks the stored trees 2 scores are read, nothing is run 3 the best version is kept Stored search trees: the agent’s own history next round
Figure 2 Dream-RSI in one picture. Awake, the agent searches by its current rules and stores every attempt. Asleep, it rewrites the rules and tests each version on the stored attempts, without running anything. Drawn after Zheng et al. (2026).

Dreaming about what is known: Anthropic’s agent memory

Anthropic’s article is about what an agent knows [2]. Its subject is agent memory: knowledge that an agent gained from experience and keeps between sessions as text. The definition leaves out changes to the model’s weights on purpose, and also what a model picks up inside a single conversation.

The article sorts this memory into four layers, from raw to refined. At the bottom are the transcripts, the full log of a session: nothing is missing and nothing is sorted, so the agent has to search it. Above them are the memory notes, what the agent wrote down while it worked because it seemed important at that moment. From notes and transcripts the agent can build memory representations, for example a wiki whose linked pages collect what is known about one subject. At the top sits the injected context, a small selection that is placed in front of the agent at the start of every session, without it having to look.

Session Next session Dreaming between sessions Transcripts the full log, searched when needed Memory notes written by the agent while it works Memory representations built from notes, for example a wiki Injected context loaded into every session
Figure 3 The four layers of agent memory, and dreaming, the pass between sessions that works on all of them. Redrawn after Anthropic (2026), Figure 1.

Notes written during the work have a weakness. The agent must decide what matters before it knows what happens next, and a note that is wrong will be read, and believed, by every later session. Anthropic’s answer is a second pass, made offline. Between sessions the agent re-reads its transcripts and reorganises its memory. The article calls this dreaming , following earlier work on sleep-time compute [3]. It describes five things dreaming can do.

It can correct. Notes are checked against the transcript, which records what really happened. In a game of Pokémon one wrong note about a landmark sent the agent in circles until the run ended. After a dreaming pass had corrected the note, the agent took the right way and reached the next city.

It can build. Dreaming turns scattered notes into representations such as a wiki. On a company archive of about 350,000 files, the share of graded points the agent could earn from its wiki alone rose from 13% to 48% as dreaming grew from 2 sessions to 128.

It can promote. The most useful notes move up to the layer every session sees. That layer is kept small, because a long preamble is followed less reliably and one wrong line in it misleads every session.

It can focus. When dreaming is told what the memory is for, it organises the memory around that goal. In a legal task, better instructions for building the wiki raised the number of required facts it contained from 41 of 57 to all 57.

And it can fill gaps. A pass over many sessions finds patterns and loose ends that no single session could see.

Memory alone already helps, and newer models use it better. On a benchmark in which an agent answers a series of database questions [5], a memory folder raised the mean score of Claude Opus 5.5 from 0.655 to 0.838. An older model, Claude Sonnet 4.6, gained almost nothing (0.330 to 0.364): its notes were untested guesses, and it often did not read them. Newer models also write less. Playing Pokémon, an older model produced 413 memory files and earned one badge. A newer one kept ten files and earned four.

Memory against no memory mean score on a series of database questions A wiki built by dreaming share of graded points on a company archive 0 0% 0.5 1.0 100% without memory with memory .66 .84 Opus 5.5 .64 .83 Sonnet 5.5 .56 .83 Opus 5 .38 .70 Opus 4.7 .31 .61 Sonnet 5 .33 .36 Sonnet 4.6 54% 61% wiki + search 53% 53% search only 13% 48% wiki only after 2 sessions after 128 sessions DATA: ANTHROPIC (2026), FIGURES 3 AND 10
Figure 4 Two measurements from Anthropic’s article, redrawn from its published numbers. Left: with a memory folder every model scores higher, all but the oldest by a wide margin. Right: an agent answers more from its wiki the longer it has dreamed, and the wiki helps most together with search.

The article is just as clear about the limits. Where a single text search finds the answer, a wiki adds nothing. A wiki can grow larger than the documents it describes, and then it summarises nothing. Dreaming costs computing time. And a memory that nobody checks collects errors.

Two kinds of dreaming

Set side by side, the two methods divide the work in the same way and differ in what the dream works on.

Question Dream-RSIGoogle Agent memory with dreamingAnthropic
What is consolidated The rules for searching What the agent knows
While awake The agent searches; every attempt and its score is stored The agent works; the session is logged and it writes notes
While asleep New rule versions are replayed on the stored attempts and the best is kept The logs are re-read; notes are corrected, organised and indexed
What the next round starts with A better way to search Better notes, and an index in front of the agent
Published as A paper with code An article with documentation and a recipe
Main risks Rules fitted to past searches that do not carry over Wrong or bloated notes that are carried forward
Figure 5 Two kinds of dreaming. Both leave the model itself unchanged, so both can be run on any model.

A third line of work, also from Google, puts sleep inside the model itself: in a sleep phase the model rewrites a part of its own weights [7]. That needs access to the weights and cannot be run on models that are offered only as a service, so σ‑Bench leaves it aside.

What neither has shown yet

Nearly all the evidence so far comes from tasks where progress is measured exactly: a game with a fixed goal, questions with one correct answer, documents with a list of facts to find, programs whose speed a machine can check. There the truth is available, and a dream can be checked against it.

Much professional work is different. A research analyst spends weeks on a question that has no answer key. The data are noisy, and a result that looks good today may be luck. For work of this kind three questions are open. Does sleep still help when the agent cannot easily tell a tested finding from a lucky one? A memory preserves mistakes as faithfully as insights. Is an agent that sleeps better than one that simply tries again, for the same computing time? And does the answer hold across models from different makers?

How σ‑Bench tests it

σ‑Bench is an independent benchmark built around these questions. It gives AI agents the kind of work a quantitative researcher at a bank or a fund does, and it compares ways of working instead of ranking many models.

The agents receive market data licensed from LSEG: every trade and quote in eight currency futures at CME, recorded tick by tick, together with the volatilities and forward points that banks quote for the same currencies. The tasks ask for what such data is used for in practice, for example to forecast whether the next order is a buy or a sell, to forecast volatility, or to execute an order at the lowest cost. None has a perfect solution. The instruction is to do as well as possible.

Three properties of the data make this a hard test for sleep. It is too large for one sitting: the archive holds more than half a billion rows and grows every night, so an agent cannot read it and has to run experiments for hours and decide what is worth keeping. It is noisy and high-dimensional: there are many variables and the patterns are faint, so it is easy to find something that is not there, and a memory has to separate tested findings from lucky ones. And it is sealed: the data cannot be found on the internet, and the final score is computed on days the agent never sees.

σ‑Bench compares three ways of working on the same task with the same data. In the first, one-shot, the agent works from zero and nothing is carried over; this is the baseline. In the second, memory dreaming, it works in several sessions and between them re-reads its logs and rewrites its notes, as in Anthropic’s article [2]. The third, strategy dreaming, is Dream-RSI, run with Google’s published code [1]. The seven-task one-shot baseline began on 20 November 2026. Harness², also from Google, improves the agent’s tools and procedures instead [4]. It does not sleep, so σ‑Bench has set it aside for now.

One-shot from zero, nothing kept Memory dreaming notes rewritten between sessions Strategy dreaming rules rewritten between rounds sealed exam working session dream phase sealed exam on unseen days
Figure 6 The three ways of working that σ‑Bench compares, on the same task with the same data. Every row ends in the same sealed exam. The rows describe the experimental design.

Both kinds of dreaming keep the model weights fixed. Holding the model and the task constant lets us ask what its notes or its search rules contribute. The results page records which methods have run.

The work the agents are given is organised like the research of a quantitative fund: seven stations, from raw data to the executed trade, each with its own question. The second pillar of this site explains this assembly line and why σ‑Bench is built on it, and the third describes the data.

References

  1. T. Zheng et al. “Dream-RSI: Recursive Self-Improvement through Evolving Worlds.” arXiv:2609.14858, 2026. Code: github.com/google-research/dream-rsi.
  2. L. Martin. “The components of agent memory.” Anthropic, 6 November 2026.
  3. K. Lin, C. Snell, Y. Wang, C. Packer, S. Wooders, I. Stoica and J. E. Gonzalez. “Sleep-time Compute: Beyond Inference Scaling at Test-time.” arXiv:2504.13171, 2025.
  4. Xu et al. “Harness²: Recursive Agent Harnessing for an Open World.” arXiv:2610.14224, 2026.
  5. “Continual Learning Bench (CL-Bench) 1.0.” 2026.
  6. J. L. McClelland, B. L. McNaughton and R. C. O’Reilly. “Why there are complementary learning systems in the hippocampus and neocortex.” Psychological Review 102(3), 1995.
  7. A. Behrouz, F. Hashemi, A. Javanmard and V. Mirrokni. “Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories.” arXiv:2606.03979, 2026.

σ‑Bench is an independent project. It is not affiliated with Google, Anthropic, OpenAI, LSEG or CME Group. The sections on the two publications are the author’s summary. Figures 2, 3 and 4 are drawn after them, and any error in the summary is the author’s.