potentialpaper

Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference

Sangyun Lee, Sean Michael McLeish, Tom Goldstein, Giulia Fanti

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We develop a sleep-like consolidation mechanism for LLMs where their attention cache is transferred into model weights.

Abstract. Transformer-based large language models are increasingly used for long-horizon tasks; however, their attention mechanism scales poorly with context length. To handle this, we study a sleep-like consolidation mechanism in which a model periodically converts recent context into persistent fast weights before clearing its key-value cache. During the sleep, the model performs N offline recurrent passes over the accumulated context and updates the fast weights in its state-space model (SSM) blocks through a learned local rule. During inference, this shifts extra computation to the sleep while preserving the latency of wake-time prediction. We test our method on controlled synthetic tasks, including cellular automata and multi-hop graph retrieval, as well as a realistic math reasoning task, on which SSM-attention hybrid models fail. We then show that increasing sleep duration N for our models improves performance, with the largest gains on examples that require deeper reasoning. Code available at https://github.com/sangyun884/llm-sleep

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

I have read the authors' response and the reviewer discussion. The paper proposes a “sleep” consolidation mechanism for hybrid attention-SSM models, where the model performs additional recurrent passes over the accumulated context before clearing the attention cache, with the goal of consolidating information into persistent fast weights. The main claim is that long-context performance can be limited not only by state capacity but also by the computation available to consolidate information into that state. Across Rule 110, Depo, and GSM-Infinite, the paper finds that additional sleep passes generally improve performance, particularly on harder examples requiring deeper reasoning, while keeping wake-time prediction to a single forward pass.

The reviewers found the idea well motivated and the experimental design useful for studying the compute-versus-capacity question. In particular, Rule 110 and Depo provide controlled ways to increase the required computation, and the same qualitative trend (more sleep passes helping more on harder examples) appears across different tasks and model settings. Reviewers also mentioned that disentangling storage capacity from the compute required to consolidate evicted context is very practical for long-context tasks.

The main concerns were whether the improvements come specifically from the proposed consolidation mechanism rather than simply from additional compute (EyGB, TfGu), whether the method works when the model does not know in advance what information will later be useful (EyGB, Hgj7), and whether some of the smaller improvements are robust across random seeds (TfGu). Hgj7 also requested an ablation with the opposite recurrence allocation, where the context is processed once and additional recurrence is performed only after the context has been evicted.

The rebuttal addressed several of these concerns with useful new experiments. The authors extended the N=1 baseline training and found that additional epochs did not improve performance, reported multi-seed results for Rule 110 and GSM-Infinite, and added a sliding-window eviction setting. They also ran the requested recurrence-allocation ablation. This supports the argument that recurrence during consolidation, while the high-fidelity attention context is still available, is important. The multi-seed experiments also show that the overall improvement from additional sleep passes is consistent.

Overall, the rebuttal substantially strengthened the paper and provided useful evidence addressing the main concerns raised in the reviews. Therefore, I recommend acceptance.

Final justification

The meta-review already includes the final justification.

Area Chair sTM8 · Meta-reviewOpenReview ↗
Final justification
The meta-review already includes the final justification.
Read meta-review
Meta-review

I have read the authors' response and the reviewer discussion. The paper proposes a “sleep” consolidation mechanism for hybrid attention-SSM models, where the model performs additional recurrent passes over the accumulated context before clearing the attention cache, with the goal of consolidating information into persistent fast weights. The main claim is that long-context performance can be limited not only by state capacity but also by the computation available to consolidate information into that state. Across Rule 110, Depo, and GSM-Infinite, the paper finds that additional sleep passes generally improve performance, particularly on harder examples requiring deeper reasoning, while keeping wake-time prediction to a single forward pass.

The reviewers found the idea well motivated and the experimental design useful for studying the compute-versus-capacity question. In particular, Rule 110 and Depo provide controlled ways to increase the required computation, and the same qualitative trend (more sleep passes helping more on harder examples) appears across different tasks and model settings. Reviewers also mentioned that disentangling storage capacity from the compute required to consolidate evicted context is very practical for long-context tasks.

The main concerns were whether the improvements come specifically from the proposed consolidation mechanism rather than simply from additional compute (EyGB, TfGu), whether the method works when the model does not know in advance what information will later be useful (EyGB, Hgj7), and whether some of the smaller improvements are robust across random seeds (TfGu). Hgj7 also requested an ablation with the opposite recurrence allocation, where the context is processed once and additional recurrence is performed only after the context has been evicted.

The rebuttal addressed several of these concerns with useful new experiments. The authors extended the N=1 baseline training and found that additional epochs did not improve performance, reported multi-seed results for Rule 110 and GSM-Infinite, and added a sliding-window eviction setting. They also ran the requested recurrence-allocation ablation. This supports the argument that recurrence during consolidation, while the high-fidelity attention context is still available, is important. The multi-seed experiments also show that the overall improvement from additional sleep passes is consistent.

Overall, the rebuttal substantially strengthened the paper and provided useful evidence addressing the main concerns raised in the reviews. Therefore, I recommend acceptance.

1 comment
Authors · CommentOpenReview ↗

We thank the reviewers and AC for their constructive feedback. During the rebuttal, we conducted several new experiments and substantially revised the manuscript to address each piece of feedback:

  • Compute versus consolidation [EyGB, TfGu]: We trained the N=1 baseline with additional epochs for a fairer FLOPs comparison. Subsequent epochs did not improve performance over what we report in the paper. We also clarify a deeper or wider baseline would increase the inference-time cost due to additional fast weight capacity, larger model size, and increased token generation cost, whereas increasing N in our method affects only the offline consolidation phase. The purpose of our work is to understand additional ways to spend compute offline, hence we feel increasing training epochs is the most applicable baseline.

  • Fast-weight-update ablation [TfGu]: We clarified that disabling fast-weight updates under hard eviction removes the mechanism by which evicted information can persist. Instead, we added a new sliding-window eviction experiment, where performance continues to improve with additional sleep passes.

  • Query-agnostic consolidation [EyGB, Hgj7]: For GSM-Infinite, when the question is withheld until after the context, sleep does not improve performance. We now explicitly document this failure case and clarify that GSM-Infinite has adversarial random filler tokens making this a confounded failure case. We highlight that the question does not need to be perfectly known to the model, as suggested by the Depo experiment.

  • Alternative recurrence allocation [Hgj7]: We extended the discussion around the multiple uses of recurrence in language models and explained the specific novelty of our work.

  • Robustness and uncertainty [TfGu]: During the rebuttal period we reran rule 110 over seven random seeds and GSM-Infinite over three random seeds, reporting means and standard errors. The improvement from additional sleep passes remains consistent.

  • Related work [TfGu]: We added and discussed InfiniteICL and Temp-LoRA, clarifying how their parameter-update mechanisms differ from our sleep-time fast-weight consolidation.

  • Capacity limitations [TfGu]: We clarified that our method does not eliminate finite-state capacity constraints. Rather, it uses additional offline computation to improve how the available capacity is allocated without advance knowledge of which context will later be relevant.

Again, we thank you all for your help improving our current draft.

Reviewer TfGuOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper explores whether SSM-attention hybrid models can continue reasoning after the context has been evicted from the KV cache. The conventional wisdom is that fixed-size fast weights limit storage capacity, but the authors disagree. They demonstrate that if the amount of information needing to be stored is kept constant and only the reasoning depth is increased, vanilla hybrid models still fail. Therefore, the bottleneck for long contexts is actually compute, not storage/capacity. Their proposed solution is to add a "sleep" consolidation phase. At each cache eviction boundary, the model runs N additional recurrent offline passes over the current window to refine the fast weights in the SSM before flushing the cache. Because predictions still only require a single forward pass, the latency upon "waking up" remains unchanged; the extra overhead is entirely paid offline. Gradients flow directly through the refined fast weights. The tests were run on three tasks: the Rule 110 cellular automaton (where the rollout steps, t, equal the depth), Depo k-hop retrieval, and GSM-Infinite using a pre-trained model. The results are quite consistent: more loops yield better performance, and the effect is most pronounced on harder problems.

Strengths and weaknesses

strengths

  1. The experimental design is relatively clean.
  2. The choice of the Rule 110 task is quite clever for testing sequential computation. Furthermore, the central finding (more loops yield better results on harder problems) holds consistently across three very different tasks.
  3. Disentangling storage capacity from the compute required to consolidate evicted context is a highly practical and likely correct way to view long-context bottlenecks.
  4. The paper is mostly well-written with a smooth logical flow.

weaknesses

  1. The reliance on single-run evaluations seems like it could be a limitation. Small metric improvements (e.g., Jet op8 going from 0.351 to 0.388) might potentially be drowned out by random seed noise, especially since automaton tasks inherently seem to exhibit 10% to 30% variance. This looks like it could affect the reliability of the core findings.
  2. The use of a hard cache eviction boundary (completely flushing every L tokens without any overlap) seems to act more as an extreme stress test rather than perhaps reflecting how realistic long-context systems retain state.
  3. The core premise of converting short-term context into long-term parameter updates looks highly relevant to recent work that the authors might want to consider citing. Specifically, the InfiniteICL framework (https://arxiv.org/abs/2504.01707) and Temp-LoRA (https://arxiv.org/abs/2401.11504) both seem to explore internalizing context into temporary model parameters during inference rather than relying solely on the KV cache.
Questions
  1. The comparison of a fixed token budget at N=1 versus N=k loops suggests the "sleep" mechanism works, but it probably does not account for the extra FLOPs spent. Could you perhaps compare this against a hybrid model that lacks recurrence but spends the equivalent extra compute (e.g., deeper, wider, or more layers)? It seems important to rule out the possibility that these gains are largely driven by the extra compute.
  2. The paper L2M: Mutual Information Scaling Law for Long-Context Language Modeling (https://arxiv.org/abs/2503.04725) identifies a minimum required growth rate for the history state, which appears to establish a theoretical lower bound on the memory capacity needed to capture long-range dependencies. This capacity bottleneck argument looks like it might contradict your conclusion that long-context bottlenecks are fundamentally about compute rather than storage capacity. Could you add a paragraph commenting on this? Does this difference likely stem from different theoretical assumptions, distinct architectural setups, or perhaps evaluating under different scaling regimes?
  3. Could you possibly provide an ablation study that keeps the recurrent sleep passes but freezes or disables the fast weight updates? This would likely help clarify whether the refining of the weights is the critical driver of performance, or if the benefit mostly comes from the recurrent processing itself.
Limitations

Mostly addressed. However, one point was missed: "single-run evaluations" and "lack of a compute-matched baseline" should be more explicitly stated.

Final justification

Raising score to 4 following the authors's rebuttal.

Formatting concerns

None.

3 comments
Authors · CommentOpenReview ↗

Thank you for your feedback. We appreciate that you highlight our clean experimental design and that disentangling storage capacity from the compute required to consolidate evicted context is highly practical. To action your feedback, we conducted several new experiments (GSM-Infinite and Rule 110 with more seeds and the sliding-window eviction).

The reliance on single-run evaluations seems like it could be a limitation. Small metric improvements (e.g., Jet op8 going from 0.351 to 0.388) might potentially be drowned out by random seed noise, especially since automaton tasks inherently seem to exhibit 10% to 30% variance. This looks like it could affect the reliability of the core findings.

To address your feedback, we trained models with different random seeds on the Rule 110 and GSM-Infinite datasets. We report the mean and standard error below. Indeed, Rule 110 shows some variance across seeds, partly because we use a fixed t=32 value without any curriculum learning. Nevertheless, it exhibits the same trend as our main results. GSM-Infinite results on the other hand are generally robust to seed noise.

N Mean Accuracy
1 0.188287101 ± 0.010891938
2 0.328306418 ± 0.039898912
3 0.339643539 ± 0.048502068
4 0.380022368 ± 0.045229236

Table. Average accuracy and standard error on Rule 110 over 7 random seeds with different numbers of recursion NN after 5B training tokens.

N op2 op4 op6 op8
1 0.678 ± 0.149 0.768 ± 0.101 0.281 ± 0.074 0.124 ± 0.026
2 0.841 ± 0.006 0.886 ± 0.003 0.414 ± 0.007 0.168 ± 0.007
4 0.842 ± 0.003 0.923 ± 0.006 0.530 ± 0.008 0.230 ± 0.003

Table. Average accuracy and standard error on GSM-Infinite across 3 random seeds with different numbers of recursion NN after 815 training steps using the Ouro model. Unfortunately, because of the short rebuttal period, we did not have time to run the 1,000 training steps used in the paper across multiple seeds.

The use of a hard cache eviction boundary (completely flushing every L tokens without any overlap) seems to act more as an extreme stress test rather than perhaps reflecting how realistic long-context systems retain state.

To address this feedback, we trained models identically to Section 6.3 (GSM-Infinite) but with sliding window eviction instead of hard eviction. We use a sliding window size of 512 (instead of 2000) and Ouro 1.4B so that the sliding window size is several times smaller than the entire context length. Similarly to other results, here we see gains as we increase the number of loops. Interestingly, here the sleep not only helps high ops but also op2 and op4. We believe that this is because the window size is smaller than in the hard eviction case (2000 vs 512), so even op2 requires the model to maintain information across multiple contexts.

N / op 2 4 6 8
1 0.596 0.839 0.251 0.116
2 0.823 0.892 0.265 0.118
4 0.905 0.926 0.320 0.137

Table: GSM-Infinite final accuracy for each op and loop count N. Ouro with sliding window eviction.

The core premise of converting short-term context into long-term parameter updates looks highly relevant to recent work that the authors might want to consider citing.

Thank you for highlighting these related works; we have added these to our draft.

Authors · CommentOpenReview ↗

The comparison of a fixed token budget at N=1 versus N=k loops suggests the "sleep" mechanism works, but it probably does not account for the extra FLOPs spent. Could you perhaps compare this against a hybrid model that lacks recurrence but spends the equivalent extra compute (e.g., deeper, wider, or more layers)? It seems important to rule out the possibility that these gains are largely driven by the extra compute.

We agree that a FLOP-matched non-recurrent baseline would help isolate whether the gains arise specifically from sleep-time recurrence or simply from additional computation. Our goal in this work is to demonstrate a different way of allocating compute: increasing computation during the sleep phase while keeping other factors such as the parameter count, fast-weight size, and the per-token generation cost unchanged. A deeper or wider baseline would increase the inference-time cost due to additional fast weight capacity, larger model size, and increased token generation cost, whereas increasing (N) in our method affects only the offline consolidation phase. Our results therefore show that additional sleep-time compute can improve long-context performance without increasing online inference cost, although they do not establish that our method is uniquely better than every possible FLOP-matched architecture. We have clarified this limitation in the revised draft.

Could you possibly provide an ablation study that keeps the recurrent sleep passes but freezes or disables the fast weight updates? This would likely help clarify whether the refining of the weights is the critical driver of performance, or if the benefit mostly comes from the recurrent processing itself.

Under hard eviction, disabling the fast-weight updates removes the only mechanism by which information from the evicted context can persist. The resulting model therefore has no access to the information required to answer the query.

The paper L2M: Mutual Information Scaling Law for Long-Context Language Modeling (https://arxiv.org/abs/2503.04725) identifies a minimum required growth rate for the history state, which appears to establish a theoretical lower bound on the memory capacity needed to capture long-range dependencies. This capacity bottleneck argument looks like it might contradict your conclusion that long-context bottlenecks are fundamentally about compute rather than storage capacity.

Thank you for this nuanced question. We begin by clarifying we do not intend to imply that compute is the only thing that matters for long-context. We agree that our method is also not free from finite state capacity, and there will always be some tasks with some sequence length on which our model fails. However, we do believe it is a practical and novel method to access longer contexts. To address your feedback, we have clarified this in our conclusions.

We believe that your feedback has significantly improved our updated draft, which now includes additional experiments and evaluations. We would be grateful for any corresponding updates to your score. Please feel free to let us know if there are any other questions or concerns we can address!

Area Chair sTM8 · CommentOpenReview ↗

Dear Reviewer TfGu,

Thank you for your review.

As the discussion period is ending soon, could you please take a look at the authors’ rebuttal and let us know whether it addresses your concerns? Your feedback would be very helpful and would give the authors a chance to provide any final clarification if needed.

Best regards,

AC

Reviewer Hgj7OpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper presents a recurrent reasoning/memorization method to help LLM based on state-space models (SSM) to integrate important information about the context in the state weights (fast weights), allowing it to reason and answer questions about that context even when it is removed from the context window, potentially rendering models much more efficient.

Authors present a set of synthetic and existing tasks, where the model is presented with some information in context then made to perform a number (NN) of recurrent passes over this context (sleep phase). During this phase, the model is supposed to reason about the context and extract important data from it, storing it in its fast weight. After that, the context is removed, and the model is asked question about it. Authors show that this sleep phase allows model to answer complex reasoning questions about flushed out context, and that increasing the number of sleep phases increases the model performance on various tasks, specifically some that require deeper reasoning (for instance, predicting the state of a cellular automaton after tt updates).

Strengths and weaknesses

Overall, the method and experiments are clearly explained, and I had no problem following the paper's reasoning throughout. The idea which is applied is reasonably novel and the authors show, through various evaluations, that it produces promising results.

Strengths:

  • The 'LLM Sleep' idea is very well contextualized and motivated
  • The Cellular Automaton and Depo experiments clearly show that the LLM Sleep method is effective at extracting and storing important information from the context for later use.
  • Authors both test the 'LLM sleep' idea when pretraining from scratch, as well as in finetuning experiments (for GSM-infinite), showing it helps also in the latter settings, which gives a bit more confidence in its potential applications in more realistic problems.

Weaknesses:

  • No comparison to the opposite: instead of sleep, reason in the forward pass. Seems like a natural ablation. In this case, the model would store the important context data in its fast weight, and do the deep reasoning at inference time. Comparing this natural alternative would have been great, both in terms of performance and trade-offs.
  • Cellular and Depo experiments are maybe over-tuned to the strengths of the 'LLM Sleep' method. For both, they are tasks where it is known a priori to the model exactly what data must be extracted from the context; As such, it may not be surprising that allowing the model to preprocess this data increases its performance on the benchmark. (In Depo's case, it is true the the query is unknown, but the model knows that the question will be of the type 'x hop after node', so it can structure it's 'stored' data accordingly).
  • Similarly, while GSM-infinite is a bit more realistic, the authors still provide the question before the context, such that the model is already aware of what needs to be kept and discarded in the context. Providing results without giving the question beforehand would have been informative. Indeed, in real-life tasks, it's often unclear what information should be kept and discarded from the context beforehand. In that regard, all of the studied evaluations are unrealistic. Therefore, as it stands, it's unclear if the LLM Sleep mechanism can help in cases where it is not clear a priori what should be kept and discarded from the context.

Now I give brief justification for my ratings:

Quality:

  • The paper is technically sound, and the claims supported by experiments. Due to some missing ablation and slight overfitting of the benchmarks to the strengths of the proposed architecture changes, I will keep it at 'good'.

Clarity:

  • I had no problem understanding all implementation details and experiments.

Significance:

  • While the paper shows some promise in the examples that they evaluate, I feel it is not enough for me to be confident that this method will be impactful in the community. It lacks some more standard and general benchmarks which stress-test the method in cases where it's not necessarily advantaged (i.e. tasks where it's not clear what part of the context will be important). I would say it has potential to be significant, but I cannot yet conclude with confidence from the evaluations.

Originality:

  • The method is original and well-contextualized in previous works. It draws clear inspiration from other recursive architectures, but it utilizes it in a novel way.
Questions
  • Would it be possible to compare with the 'opposite' method, where the context is only allowed a single forward pass, but then the model gets several passes (recursion) before outputting the answer (without access to the context)? In the cellular automaton case for example, it's not implausible to me that the model could store the initial state in its fast weights, and then do the necessary post-processing to output the answer afterwards. This method might be advantageous whenever the 'question' is not known beforehand.
  • Are there results (e.g. for GSM-infinite), where the LLM-Sleep method is evaluated WITHOUT a priori knowledge of what will be asked? Typically, it would be interesting to have the GSM-Infinite results in the case where the query is not given before the context, to measure how the model is able to retain important information a priori. This would make it clear whether the 'LLM sleep' method is advantageous in general, or just in a subset of situations.
  • What are the trade-offs between having a consolidation phase vs an 'unfolding' phase when the model needs to output the answer? It would be nice to at least bring that up, if experiments comparing them are not immediately possible. It is not obvious to me why having a 'consolidation' phase is necessarily better than having a 'unfolding' phase, where the looping is done before outputting the answer.
  • I think this is too much to ask in this short time, but I would have loved to see whether there is any uplift in capabilities in realistic long context tasks, especially compared to traditional method like context compaction/memory. This can be mentioned in future work.
Limitations

I feel the limitation section is a bit lacking. The authors only mention the computational limitations in training and inference, but do not mention the more obvious limitation in the set of benchmarks over which their method is evaluated.

I think it is important to underline that the benchmarks used to evaluate the method are tasks that inherently favour recurring over context, since the LLM already knows the question that will be asked and hence which part of the context is important. It should be underlined that in realistic settings, we usually don't know a priori which part of the context will be useful, and that this may impact the advantage that 'LLM sleep' confers to capabilities.

Final justification

I'm happy to maintain my score of (5) accept. My main concerns was about some of the evaluations being favorable to the specific 'LLM sleep' method the authors use. While they concede that some work remains to fully test the efficacy of this method in more realistic contexts, I consider the method as presented valuable, with enough validation to show that it might be promising.

Formatting concerns
3 comments
Authors · CommentOpenReview ↗

Thank you for your feedback. We appreciate that you find our work well motivated and that our experiments clearly show that the LLM Sleep method is effective at extracting and storing important information from the context for later use.

Cellular and Depo experiments are maybe over-tuned to the strengths of the 'LLM Sleep' method. ... it's unclear if the LLM Sleep mechanism can help in cases where it is not clear a priori what should be kept and discarded from the context.

Thank you for this insightful observation! Indeed, we observed that in GSM-Infinite, when the question is not given prior to the context, sleep does not improve performance. This is because procedurally generated random filler tokens are indistinguishable from the real context when the question is not given to the model. This does not mean that the question should be perfectly known to the model, as suggested by the Depo experiment: although the model can know that the question will be of the type 'x hops after node' as you mentioned, the value of x is unknown to the model. To action this feedback, we have added this to our discussion section.

in real-life tasks, it's often unclear what information should be kept and discarded from the context beforehand.

Natural language prefixes often contain statistical cues about which features are likely to matter in the future. These statistical cues are absent from GSM-Infinite, whose random filler tokens are adversarially designed to act as distractors. Future work should explore to what extent the sleep mechanism helps in natural language settings.

We additionally tested a more realistic sliding-window eviction setting in which the model is allowed to retain a cache of recent tokens. Specifically, we trained models identically to Section 6.3 (GSM-Infinite) but with sliding window eviction instead of hard eviction. We use a sliding window size of 512 and Ouro 1.4B and see gains as we increase the number of loops. Interestingly, here the sleep not only helps high ops but also op2 and op4. We believe that this is because the window size is smaller than in the hard eviction case (2000 vs 512), so even op2 requires the model to maintain information across multiple contexts.

N / op 2 4 6 8
1 0.596 0.839 0.251 0.116
2 0.823 0.892 0.265 0.118
4 0.905 0.926 0.320 0.137

Table: GSM-Infinite final accuracy for each op and loop count N. Ouro with sliding window eviction.

It is not obvious to me why having a 'consolidation' phase is necessarily better than having a 'unfolding' phase, where the looping is done before outputting the answer.

We agree with you that prediction-time recurrence may be needed in some circumstances, and do not claim that offline recurrence is always better. The benefit of offline recurrence is that the model can operate at low latency when the context window is not full. One could combine the two, leading to a model that uses sleep when the context is full, and also uses prediction-time recurrence for predicting some difficult tokens.

Would it be possible to compare with the 'opposite' method, where the context is only allowed a single forward pass, but then the model gets several passes (recursion) before outputting the answer (without access to the context)?

Thank you for this interesting idea. However, this is not as straightforward as it appears, because after the first forward pass, the SSM block contains non-causal information, so it does not allow for standard teacher forcing training. We note that, for our model, this is beneficial, since state refinement can utilize non-causal bidirectional information. We believe some version of this proposed method can work, because it is well known that inference-time looping can improve sequence modelling; however, this would no longer be a natural ablation to our model.

I think this is too much to ask in this short time, but I would have loved to see whether there is any uplift in capabilities in realistic long context tasks, especially compared to traditional method like context compaction/memory.

We agree that this is important future work. Context compaction relies on the model's ability to summarize its own context, and thus is not directly applicable to our from-scratch training settings. To address this feedback, we have updated our future work section with more details on this.

We believe that your feedback has improved our updated draft. Do you have any other questions or concerns we can address?

Reviewer Hgj7 · CommentOpenReview ↗

Thank you for this insightful observation! Indeed, we observed that in GSM-Infinite, when the question is not given prior to the context, sleep does not improve performance. This is because procedurally generated random filler tokens are indistinguishable from the real context when the question is not given to the model. This does not mean that the question should be perfectly known to the model, as suggested by the Depo experiment: although the model can know that the question will be of the type 'x hops after node' as you mentioned, the value of x is unknown to the model. To action this feedback, we have added this to our discussion section.

Thank you, yes this is important context

Thank you for this interesting idea. However, this is not as straightforward as it appears, because after the first forward pass, the SSM block contains non-causal information, so it does not allow for standard teacher forcing training. We note that, for our model, this is beneficial, since state refinement can utilize non-causal bidirectional information. We believe some version of this proposed method can work, because it is well known that inference-time looping can improve sequence modelling; however, this would no longer be a natural ablation to our model.

Could you expand on the main blockage to this? To be specific, my idea would be to make one forward pass on the context, evict it, then make several forward passes on the 'question' tokens before starting to output the answer. For instance, in the Cellular Automaton example, do a single forward pass on the CA initial state, then do several forward passes on the | token before letting the model output the answer. In the depo case, do a single forward pass on the graph data, then do several forward passes on the | {1 hop after a: tokens before letting the model answer. I believe there is no obstacle to this?

We agree that this is important future work. Context compaction relies on the model's ability to summarize its own context, and thus is not directly applicable to our from-scratch training settings. To address this feedback, we have updated our future work section with more details on this.

Sounds good. To be clear, I meant comparing to un-trained context compaction, and see how a LLM sleep phases compare to simply using model compaction when needing to reduce the context size (instead of simple eviction of tokens).

Authors · CommentOpenReview ↗

Could you expand on the main blockage to this? To be specific, my idea would be to make one forward pass on the context, evict it, then make several forward passes on the 'question' tokens before starting to output the answer. For instance, in the Cellular Automaton example, do a single forward pass on the CA initial state, then do several forward passes on the | token before letting the model output the answer. In the depo case, do a single forward pass on the graph data, then do several forward passes on the | {1 hop after a: tokens before letting the model answer. I believe there is no obstacle to this?

Thanks for the clarification of your proposed method. We thought you were suggesting looping over the four answer tokens (so the model uses N forward passes to predict each), which makes parallel training hard as it breaks causality. Based on what you have clarified, we ran the experiment on Rule 110, and this follows the exact setup you suggested: the model receives 4 states, refines the fast weight once, evicts them, receives "|", refines the fast weight twice, evicts it, and performs prediction with one forward pass. The results are below.

Mean accuracy ± stderr
NL1 (ours) 0.1882 ± 0.0108
NL2 (ours) 0.3283 ± 0.0399
NL2 (proposed ablation) 0.1719± 0.0115

Table. Average accuracy and standard error on Rule 110 over 7 random seeds.

We see the result is close to the NL1 baseline and underperforms NL2 (ours). Our theory is that SSMs struggle to store context bit-by-bit (pure SSMs struggle with information recall tasks, see e.g., https://arxiv.org/abs/2512.17351), hence recursion after evicting the states from attention context makes it hard to precisely simulate the automata. This aligns with our intuition that attention memory provides high-fidelity short-term information which helps the model to effectively consolidate the fast weight before eviction.

Sounds good. To be clear, I meant comparing to un-trained context compaction, and see how a LLM sleep phases compare to simply using model compaction when needing to reduce the context size (instead of simple eviction of tokens).

Apologies, can you please clarify what you mean by "untrained compaction"? We cite a few papers on context compression and are happy to extend our related works to allow discussion around this point. We believe the difference is that current paraphrasing compaction methods shorten what remains in the attention context, whereas our method transfers evicted context into weight-based memory. We believe these two orthogonal approaches can potentially be combined.

Reviewer EyGBOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies whether hybrid attention-SSM models can reason about context that has already left the KV cache. The authors argue the real bottleneck is not memory size but the compute needed to fold evicted context into the model's fast weights, and they propose a sleep phase that runs N extra recurrent passes to refine those weights before the cache is cleared, keeping prediction to a single forward pass. On a cellular automaton task, a multi-hop graph task, and the GSM-Infinite math benchmark with two small pretrained models, more sleep passes improve accuracy, mostly on the harder, deeper-reasoning cases.

Strengths and weaknesses

Strengths

1.The cellular automaton rollout depth and the Depo hop count act as dials that raise the required computation without changing how much must be memorized, which lets the authors test the compute-versus-capacity claim directly rather than through a proxy.

2.This work keeps inference to one forward pass, which matters for real deployment, and the idea sits naturally within existing work on looped and depth-recurrent models.

3.The same qualitative pattern shows up in three quite different places. More sleep passes help most on the hardest examples whether the model is trained from scratch on a toy task, fine-tuned from a pretrained hybrid, or fine-tuned from a pretrained looped model, which makes the central trend reasonably believable.

Weakness:

  1. Some of the headline gains on GSM-Infinite are small in absolute terms, for example Jet op8 moving from 0.351 to 0.388. The large relative figures such as the reported 47 percent come from low baselines, so it is hard to tell whether the effects are robust.

  2. More sleep passes raise training cost roughly linearly, yet no baseline gives the single-loop model the same total compute, so the gains could partly reflect extra compute rather than the consolidation mechanism. Related methods such as test-time training and learned context compression are discussed but never compared against empirically.

  3. The method improves but does not solve any hard case, reaching only about 30 percent on the t = 32 automaton and barely moving on 16-hop Depo. The realistic experiments use 1.4B to 2B models, and the broad framing and title sit some distance from what is demonstrated.

Questions
  1. Section 7 notes that training cost grows roughly linearly with N, and the learning rate is tuned only on the N = 1 model. How does an N = 1 baseline given the same total training compute, meaning more tokens, compare to the looped runs. This is the comparison needed to show that sleep passes beat simply training longer.

  2. In Section 6.3 the six-loop Jet gain on op6 is from 0.742 to 0.812, while the four-loop Ouro gain on op6 is from 0.419 to 0.615. What explains the much larger Ouro effect. Is it Ouro's smaller fast-weight capacity, its depth-recurrent pretraining, or its lower starting accuracy leaving more room to improve.

  3. Section 6.3 places the question before the long context, letting the model consolidate selectively, whereas Depo uses query-agnostic consolidation. How does the method behave on GSM-Infinite when the query is not available at consolidation time. Confirming the query-agnostic result holds at this scale would strengthen the generality claim.

Limitations

yes

Final justification

After considering the rebuttal and discussion, I am keeping my rating at 4. The multi-seed results and new ablation strengthen the main empirical finding. However, the matched-compute baseline remains incomplete, the small Jet gain is still unverified across seeds, and general query-agnostic consolidation has not been demonstrated.

Formatting concerns

N/A

4 comments
Authors · CommentOpenReview ↗

Thank you for your feedback. We appreciate that you highlight our experiments, which test our compute-versus-capacity claims directly.

Some of the headline gains on GSM-Infinite are small in absolute terms, for example Jet op8 moving from 0.351 to 0.388. The large relative figures such as the reported 47 percent come from low baselines, so it is hard to tell whether the effects are robust.

We note, as you do in your review, that the gains of our new architecture consistently appear over all three tasks and over two pretrained models. We believe this provides good evidence that our claims and their effects are robust. Moreover, on GSM-Infinite the gains are larger on op6 (0.742 vs 0.812), and op8 with Ouro (0.209 vs 0.272).

More sleep passes raise training cost roughly linearly, yet no baseline gives the single-loop model the same total compute, so the gains could partly reflect extra compute rather than the consolidation mechanism.

Section 7 notes that training cost grows roughly linearly with N, and the learning rate is tuned only on the N = 1 model. How does an N = 1 baseline given the same total training compute, meaning more tokens, compare to the looped runs. This is the comparison needed to show that sleep passes beat simply training longer.

In this work, we aim to show a proof of concept that novel architectures can be used to improve long context modelling without increasing inference time latency outside the sleep phase. Our experimental setup is in a data-constrained regime, to model the real-world situation of limited high-quality data. To address this feedback, during the rebuttal period, we continued training the Ouro nl1 baseline from Figure 4(b) for more epochs, but its accuracy did not improve. We have included these results and motivation in our updated draft. Another way to match the training cost is to make the baseline model N times deeper. But this not only increases the number of parameters by N but also increases the fast weight memory size and the cost of generating each token by N during inference.

Related methods such as test-time training and learned context compression are discussed but never compared against empirically.

Thank you for raising this important distinction between our pretraining-targeted architectural improvement and prior work. Prior context compression methods shorten what remains in the attention context, whereas our method transfers evicted context into weight-based memory. We believe they are orthogonal to our approach. Note that methods such as Eyuboglu et al. require a pre-trained model for generating synthetic question and answer pairs, so they are inapplicable to our from-scratch experiments. TTT-e2e performs only one gradient descent step for each context chunk and thus cannot scale its serial compute as we do.

The method improves but does not solve any hard case, reaching only about 30 percent on the t = 32 automaton and barely moving on 16-hop Depo.

While it is correct that for both the automaton and Depo tasks the models do not reach 100% accuracy within our training budget, we emphasize how much of an improvement over the baseline our architecture is for both tasks on the hardest cases.

In Section 6.3 the six-loop Jet gain on op6 is from 0.742 to 0.812, while the four-loop Ouro gain on op6 is from 0.419 to 0.615. What explains the much larger Ouro effect. Is it Ouro's smaller fast-weight capacity, its depth-recurrent pretraining, or its lower starting accuracy leaving more room to improve.

Thank you for the detailed question. We agree that all these reasons contribute to the difference in performance. We also note that Jet only recurs middle blocks, whereas Ouro recurs the entire model. This means that Ouro uses more FLOPs during both training and inference for the same N.

Authors · CommentOpenReview ↗

Section 6.3 places the question before the long context, letting the model consolidate selectively, whereas Depo uses query-agnostic consolidation. How does the method behave on GSM-Infinite when the query is not available at consolidation time. Confirming the query-agnostic result holds at this scale would strengthen the generality claim.

Indeed, we observed that in GSM-Infinite, when the question is not given prior to the context, sleep does not improve performance. This is because procedurally generated random filler tokens are indistinguishable from the real context when the question is not given to the model. This does not mean that the question should be perfectly known to the model, as suggested by the Depo experiment: although the model can know that the question will be of the type 'x hops after node' as you mentioned, the value of x is unknown to the model. To address this feedback, we have added this to our discussion section. We believe that natural language prefixes often contain statistical cues about which features are likely to matter in the future. These statistical cues are absent from GSM-Infinite, whose random filler tokens are adversarially designed to act as distractors. Future work should explore to what extent the sleep mechanism helps in natural language settings.

In response to your feedback, we have made significant efforts to improve our draft, and we have also included new experiments which we think have improved the quality of our work. We would greatly appreciate it if you would consider raising your score accordingly. Do you have any other questions we can address?

Reviewer EyGB · CommentOpenReview ↗

Thank you for the rebuttal and the new experiments. The multi-seed results and the extended N=1 baseline training are helpful additions. However, the robustness of the small Jet op8 gain is still untested across seeds, a FLOP-matched baseline is still missing, and the finding that sleep does not help when the question is unknown in advance limits the generality of the method. My concerns on significance therefore remain, and I will keep my score at 4.

Authors · CommentOpenReview ↗

Thank you for the response.

However, the robustness of the small Jet op8 gain is still untested across seeds.

We are currently running the multi-seed experiments for Jet, but they are unlikely to be completed within the discussion period. The following are the multi-seed results for the Ouro model we ran in response to the other reviewer:

N op2 op4 op6 op8
1 0.678 ± 0.149 0.768 ± 0.101 0.281 ± 0.074 0.124 ± 0.026
2 0.841 ± 0.006 0.886 ± 0.003 0.414 ± 0.007 0.168 ± 0.007
4 0.842 ± 0.003 0.923 ± 0.006 0.530 ± 0.008 0.230 ± 0.003

Table. Average accuracy and standard error on Rule 110 over 7 random seeds with different numbers of recursion N after 5B training tokens.

We see that when the model is initialized from the fixed base model, seed noise is quite small on this dataset. We appreciate your understanding of the limited time available and hope that this will provide a sense of seed variability on this dataset.

a FLOP-matched baseline is still missing

We have already provided results for the NL1 baseline trained for additional epochs to match the training FLOPs; this did not improve performance. We are currently running a looped-transformer baseline with approximately matched training FLOPs. We will include this result as a reference, although the model is not directly comparable to our method: it has unlimited attention memory, lacks fast weights, and requires more computation per generated token. We can also evaluate a model that is N times deeper or one trained on N times more data. Although these results could be informative, we believe that neither provides an apples-to-apples comparison with our method, which maintains a constant parameter count, fixed fast-weight cache size, and fixed prediction cost and does not require N times more training data.

Additionally, in response to the reviewer Hgj7, we ran an ablation to see if performing recursion outside the consolidation phase can also improve performance: the model receives 4 states, refines the states once, evicts them, receives "|", refines the state twice, evicts it, and performs prediction with one forward pass. The result is below.

Mean accuracy ± stderr
NL1 (ours) 0.1882 ± 0.0108
NL2 (ours) 0.3283 ± 0.0399
NL2 (proposed ablation) 0.1719± 0.0115

Table. Average accuracy and standard error on Rule 110 over 7 random seeds.

We see the performance is close to that of the NL1 baseline and underperforms NL2 (ours). Our theory is that SSMs struggle to store context bit-by-bit (pure SSMs struggle with information recall tasks, see e.g., https://arxiv.org/abs/2512.17351), hence recursion after evicting the states from attention context makes it hard to precisely simulate the automata. This aligns with our intuition that attention memory provides high-fidelity short-term information which helps the model to effectively consolidate the fast weight before eviction.

the finding that sleep does not help when the question is unknown in advance limits the generality of the method.

"sleep does not help when the question is unknown in advance" is not generally true; it is only specific to GSM-Infinite dataset, whose random distractor tokens are adversarially designed to minimize the retrieval-augmented models' accuracy, as noted in the original paper: "to maximize the chance that RAG cannot retrieve the essential graph". In the Depo experiment, we showed that sleep does help in a query-agnostic setting, where the model does not know in advance which (node, hop count) combination, among 75 nodes and 16 possible hop counts, will be queried.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…