Transformers that periodically 'sleep' replay inputs to cut in-context tokens needed by up to 2.39x

scaling01 · x · 2026-11-25

A paper by Sangyun Lee, Giulia Fanti, Xiaodong Liu et al. introduces a 'sleep' mechanism for transformers: when the context boundary is reached, the model pauses decoding and performs N extra recurrent forward passes over the current window to refine its KV cache, then resumes. Pre-training 1.2B-parameter models on up to 100B tokens with sleep yields faster in-context adaptation on multi-shot algorithmic and QA tasks; on held-out data, N=2 and N=4 match the no-sleep baseline loss with 2.10x and 2.39x fewer in-context tokens. Framed as a step toward closing the sample-efficiency gap between LLMs and humans.

Original post →

More from Research

Research channel →