[p]Letting GPT-2 “sleep”: generative replay from a frozen snapshot kept 58% of old facts vs 6% with no replay[p]

Reddit r/MachineLearning Papers

Summary

An experiment shows that sleep-inspired generative replay from a frozen snapshot of GPT-2 preserves 58% of previously learned facts after fine-tuning, versus 6% with no replay, while replaying from the model currently being trained fails (9%) as its dreams degenerate into false facts.

I tested whether a sleep-inspired replay trick reduces catastrophic forgetting in a small language model, and compared where the “dreams” come from. Setup GPT-2 (124M), full fine-tuning Set A: 120 made-up facts (like “The capital of Guthe is Brira”), trained to 98% recall Set B: 120 new made-up facts, 120 training steps for every condition Sleeping conditions use 25% of each batch for replay instead of new facts Recall = model produces the exact first word of the answer 3 seeds (different facts, order and dreams) Result No replay: 6% Dreaming once, before learning: 40% Dreaming from a frozen saved copy: 58% Dreaming repeatedly from the model being trained: 9% (its dreams turned into false facts) Full write-up with figures: https://evo-quest.github.io/can-ai-learn-to-sleep/ Happy to share the code if anyone wants to rerun it. Next I’m planning Qwen2.5-0.5B with LoRA, and replaying general text alongside the facts. Feedback and suggestions welcome.
Original Article

Similar Articles

Forking: Sudden Overfitting Under Replay

arXiv cs.LG

The paper discovers "forking," a generalization failure in NanoGPT autoresearch where training and validation loss sharply diverge at epoch boundaries when models with an over-encoding n-gram memory branch are trained under data replay. It mechanistically explains the phenomenon and cautions about unintended side effects of techniques produced by autoresearch agents.

Dreaming: Better memory for a more helpful ChatGPT

OpenAI Blog

OpenAI is rolling out 'Dreaming,' a new background memory synthesis system for ChatGPT that automatically curates and updates memories from chat history, addressing staleness, correctness, and scalability issues. The update is initially available to Plus and Pro users in the US, with broader rollout planned.

Sleep for Continual Learning (24 minute read)

TLDR AI

Google researchers propose a 'Sleep' paradigm for continual learning that consolidates short-term in-context knowledge into long-term model parameters via distillation and replay. A 'Dreaming' stage uses reinforcement learning to generate synthetic curricula for self-improvement.

Frozen in Time: How a Physics Foundation Model Forgets Under Sim-to-Real Adaptation

arXiv cs.LG

This paper studies catastrophic forgetting in the scientific foundation model Walrus-1.3B during two-stage sim-to-real adaptation, finding that finetuning on simulated flow data can increase one-step errors up to 35x, and shows that replaying just 1% of simulated data recovers most lost performance while retaining adaptation to experimental dynamics.

Proof Before Reuse: showing agents only what later sessions reproduced keeps a poisoned skill out of procedural memory [R]

Reddit r/MachineLearning

A small case study on poisoning in agent procedural memory shows that a 'proof before reuse' rule—serving a learned skill only after two later sessions reproduce it, showing only the reproduced lines—keeps poisoned skills out of memory (0/30 exposure vs 3/30 for naive memory and 30/30 for replay), with all data, code, and per-session records released.