# Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories

- **ID:** 487
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2606.03979
- **Authors:** Ali Behrouz, Farnoosh Hashemi, Adel Javanmard, Vahab Mirrokni
- **Venue:** arXiv / Google / Cornell
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **License:** CC BY 4.0
- **License family:** Permissive (auto-classified)
- **Tags:** sleep, nested-learning, knowledge-seeding, dreaming, continual-learning, google, hope
- **Topics:** continual learning, memory consolidation, nested learning
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/487

## Summary

Sleep replaces train/test with wake/sleep: Knowledge Seeding distills a smaller self into newly unlocked lower-frequency CMS/MoE experts (on-policy GKD plus RL imitation), then Dreaming generates SEAL-style self-edits with a random extra expert. Nested Learning Hope backbone. Class-incremental CLINC/Banking/DBpedia; long-context RULER/LongHealth/QASPER; CTNL dual-language translation; BABILong; Qwen3-8B AIME-24 79.2 vs OPSD 76.6; SQuAD incorporation above SEAL; ARC few-shot 80% vs SEAL 72.5. No official code on the abs page.

## Attributes

- **Purpose:** Add an offline sleep phase that consolidates short-term in-context memory into expanded long-term parameters and self-improves via dreaming
- **Scale:** Llama-3B/8B and Qwen3-1.7B/8B; CLINC/Banking/DBpedia class-incremental; RULER/LongHealth/QASPER; BABILong to 10M tokens; SQuAD n=1 and CPT n=200; ARC 8 held-out tasks
- **Used for:** Unknown
- **Time period:** 2026-06-02 (arXiv 2606.03979 v1); authors note an OpenReview version from Sep 2025
- **Author type:** human

## From the source (fetched 2026-10-03)

- **Published:** Jun 2, 2026 (arXiv)
- **Last revised:** Jul 10, 2026 (arXiv)
- **arXiv categories:** cs.LG, cs.AI (arXiv)
- **Author comment:** A version of this work has been publicly available from September 2025 on OpenReview (arXiv)
- **Citations:** 3 (1 influential) (Semantic Scholar)
- **References:** 139 (Semantic Scholar)

## Abstract

The past few decades have witnessed significant advances in the design of machine learning algorithms, from early studies on task-specific shallow models to more general deep Large Language Models (LLMs). Despite showing promising results in tasks that require instant prediction or in-context learning, existing models lack the ability to continually learn and effectively transfer their temporal in-context knowledge to their long-term parameters. Inspired by human learning process, we introduce a ''Sleep'' paradigm that allows the models to continually learn, distill their short-term fragile memories into stable long-term knowledge with replay, and recursively improve themselves with ''Dreaming'' process. In more detail, sleep consists of two stages: (1) Memory Consolidation: an upward distillation process, called Knowledge Seeding, where the memories of a smaller-self are distilled into a larger network to provide more capacity while preserving the knowledge. As a proof of concept, we present a new Generalized Distillation process for {Knowledge Seeding} (i.e., the combination of on-policy distillation with Reinforcement Learning (RL)-based imitation learning); (2) Dreaming: a self-improvement phase, where the model uses RL to generate a curriculum of synthetic data to rehearse new knowledge and refine existing capabilities without human supervision. Our experiments on long-horizon, continual learning, knowledge incorporation, and few-shot generalization tasks support the importance of the sleep stage.

## Research notes

- Primary: arxiv abs (CC BY 4.0, cs.LG). Google / Cornell; correspondence alibehrouz/adeljavanmard/mirrokni@google.com and sh2574@cornell.edu. Discord posted AlphaXiv 2606.03979; canonical abs recorded. HF paper page 29 upvotes, org google (HF author list omits Javanmard; arxiv list used). No official code on abs. Uses existing CLINC/Banking/DBpedia/SQuAD/ARC/RULER; no new standalone corpus, so no datasets_local row.

## Cites, within this collection

- [Titans: Learning to Memorize at Test Time](https://papers.projxon.ai/entries/550) (paper 2025, #550)
- [PiSSA: Principal Singular Values and Singular Vectors Adaptation of Large Language Models](https://papers.projxon.ai/entries/722) (paper 2024, #722)
- [STaR: Bootstrapping Reasoning With Reasoning](https://papers.projxon.ai/entries/912) (paper 2022, #912)
- [Nested Learning: The Illusion of Deep Learning Architecture](https://papers.projxon.ai/entries/1109) (paper 2025, #1109)

## Similar entries

- [Continual Learning via Sparse Memory Finetuning](https://papers.projxon.ai/entries/540) (paper, #540)
- [Can a Language Model Learn Facts Continually in Its Weights?](https://papers.projxon.ai/entries/469) (paper, #469)
- [The Atlas Neuron (Arth Singh: continual learning with no backprop, no replay, no task labels)](https://papers.projxon.ai/entries/817) (post, #817)
- [Continual Graph Memory for Mathematical Research Agents](https://papers.projxon.ai/entries/1264) (paper, #1264)
- [Agent Memory Repo (Cognition) — open spec for persistent agent memory](https://papers.projxon.ai/entries/1269) (code, #1269)
- [Cadence: an architecture for a continuous and efficient stream of intelligence](https://papers.projxon.ai/entries/1052) (paper, #1052)
