{"slug": "language-models-need-sleep-learning-to-self-modify-and-consolidate-memories", "title": "Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories", "summary": "A paper posted to arXiv on 2 June 2026 and revised 10 July 2026 proposes a \"Sleep\" paradigm that lets large language models continually learn by distilling short-term in-context memories into long-term parameters. The two-stage approach, from author Ali Behrouz, combines \"Memory Consolidation\" — a Knowledge Seeding process pairing on-policy distillation with reinforcement-learning-based imitation learning to move a smaller model's memories into a larger network — with a \"Dreaming\" self-improvement phase in which the model uses RL to generate synthetic-data curricula without human supervision. Experiments on long-horizon, continual learning, knowledge incorporation and few-shot generalization tasks support the importance of the sleep stage, the authors report.", "body_md": "# Computer Science > Machine Learning\n\n  [Submitted on 2 Jun 2026 (\n\n[v1](https://arxiv.org/abs/2606.03979v1)), last revised 10 Jul 2026 (this version, v2)]\n# Title:Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories\n\n[View PDF](https://arxiv.org/pdf/2606.03979)\n\n[HTML (experimental)](https://arxiv.org/html/2606.03979v2)\n\nAbstract: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.\n    \n\n## Submission history\n\nFrom: Ali Behrouz [\n[view email](https://arxiv.org/show-email/8d432d4f/2606.03979)]\n\n**Tue, 2 Jun 2026 17:56:55 UTC (2,961 KB)**\n\n[\\[v1\\]](https://arxiv.org/abs/2606.03979v1)\n**[v2]** Fri, 10 Jul 2026 17:52:03 UTC (2,961 KB)\n\n### References & Citations\n\nLoading...\n\n# Bibliographic and Citation Tools\n\nBibliographic Explorer \n\n*(*[What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))\nConnected Papers \n\n*(*[What is Connected Papers?](https://www.connectedpapers.com/about))\nLitmaps \n\n*(*[What is Litmaps?](https://www.litmaps.co/))\nscite Smart Citations \n\n*(*[What are Smart Citations?](https://www.scite.ai/))\n# Code, Data and Media Associated with this Article\n\nalphaXiv \n\n*(*[What is alphaXiv?](https://alphaxiv.org/))\nCatalyzeX Code Finder for Papers \n\n*(*[What is CatalyzeX?](https://www.catalyzex.com))\nDagsHub \n\n*(*[What is DagsHub?](https://dagshub.com/))\nGotit.pub \n\n*(*[What is GotitPub?](http://gotit.pub/faq))\nHugging Face \n\n*(*[What is Huggingface?](https://huggingface.co/huggingface))\nScienceCast \n\n*(*[What is ScienceCast?](https://sciencecast.org/welcome))\n# Demos\n\n# Recommenders and Search Tools\n\nInfluence Flower \n\n*(*[What are Influence Flowers?](https://influencemap.cmlab.dev/))\nCORE Recommender \n\n*(*[What is CORE?](https://core.ac.uk/services/recommender))\nIArxiv Recommender\n\n*(*[What is IArxiv?](https://iarxiv.org/about))\n# arXivLabs: experimental projects with community collaborators\n\narXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.\n\nBoth individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.\n\nHave an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).", "url": "https://wpnews.pro/news/language-models-need-sleep-learning-to-self-modify-and-consolidate-memories", "canonical_source": "https://arxiv.org/abs/2606.03979", "published_at": "2026-10-31 05:53:27+00:00", "updated_at": "2026-10-31 06:18:30.401159+00:00", "lang": "en", "topics": ["machine-learning", "large-language-models", "ai-research", "artificial-intelligence"], "entities": ["arXiv", "Ali Behrouz", "Knowledge Seeding", "Sleep paradigm"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/language-models-need-sleep-learning-to-self-modify-and-consolidate-memories", "markdown": "https://wpnews.pro/news/language-models-need-sleep-learning-to-self-modify-and-consolidate-memories.md", "text": "https://wpnews.pro/news/language-models-need-sleep-learning-to-self-modify-and-consolidate-memories.txt", "jsonld": "https://wpnews.pro/news/language-models-need-sleep-learning-to-self-modify-and-consolidate-memories.jsonld"}}