paper-with-me

홈 › Papers

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

2026-05-25 · Sangyun Lee, Sean McLeish, Tom Goldstein, Giulia Fanti arxiv

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 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 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 a regular transformer as well as 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.

📄 PDF Abstract BibTeX arXiv:2605.26099

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Sleep-time Compute: Beyond Inference Scaling at Test-time

2025-04-17 · Kevin Lin, Charlie Snell, Yu Wang, Charles Packer 외

Scaling test-time compute has emerged as a key ingredient for enabling large language models (LLMs) to solve difficult problems, but comes with high latency and inference cost. We introduce sleep-time compute, which allo…

Sleep Model -- A Sequence Model for Predicting the Next Sleep Stage

2023-02-17 · Iksoo Choi, Wonyong Sung

As sleep disorders are becoming more prevalent there is an urgent need to classify sleep stages in a less disturbing way.In particular, sleep-stage classification using simple sensors, such as single-channel electroencep…

ClassificationEEGElectrocardiography (ECG)Electroencephalogram (EEG)+2

SleepGuardian: An RF-based Healthcare System Guarding Your Sleep from Afar

2019-08-12

The ever accelerating process of urbanization urges more and more population into the swelling cities. While city residents are enjoying an entertaining life supported by advanced informatics techniques like 5G and cloud…

Cloud ComputingEdge-computing

Automatic Micro-sleep Detection under Car-driving Simulation Environment using Night-sleep EEG

2020-12-10 · Young-Seok Kweon, Gi-Hwan Shin, Heon-Gyu Kwak, Minji Lee

A micro-sleep is a short sleep that lasts from 1 to 30 secs. Its detection during driving is crucial to prevent accidents that could claim a lot of people's lives. Electroencephalogram (EEG) is suitable to detect micro-s…

EEGElectroencephalogram (EEG)

SIESTA: Efficient Online Continual Learning with Sleep

2023-03-19 · Md Yousuf Harun, Jhair Gallardo, Tyler L. Hayes, Ronald Kemker 외

In supervised continual learning, a deep neural network (DNN) is updated with an ever-growing data stream. Unlike the offline setting where data is shuffled, we cannot make any distributional assumptions about the data s…

Computational EfficiencyContinual LearningGPU