---
title: "Sample-Efficient In-Context Adaptation via Sleep"
source: "arXiv AI/CL/LG（论文）"
source_tier: "t2"
url: "https://arxiv.org/abs/2611.32802v1"
permalink: "https://feed.astralor.com/items/itm_ba4ee0132694ef5cf72b03dc"
published: "2026-11-24T15:24:19.000Z"
score: 58
channel: "tech"
tags: ["推理效率","Sample-Efficient In-Context Adaptation","Sleep The","Prior","SSM-attention","Notably"]
---

# Sample-Efficient In-Context Adaptation via Sleep

## At a glance

The ability to learn and generalize from limited experience, or sample efficiency, is a cornerstone of intelligence. How can we build language models that turn a few user interactions, a few snippets of unfamiliar code,…

## Key points

- The ability to learn and generalize from limited experience, or sample efficiency, is a cornerstone of intelligence.
- How can we build language models that turn a few user interactions, a few snippets of unfamiliar code, or a handful of experimental results provided in context into knowledge that generalizes?
- Prior work has found that sleep, a process where the model performs $N$ recurrent forward passes to refine its representations of a chunk of context, can improve long-context reasoning (specifically, within SSM-attentio…

## Full text

The ability to learn and generalize from limited experience, or sample efficiency, is a cornerstone of intelligence. How can we build language models that turn a few user interactions, a few snippets of unfamiliar code, or a handful of experimental results provided in context into knowledge that generalizes? Prior work has found that sleep, a process where the model performs $N$ recurrent forward passes to refine its representations of a chunk of context, can improve long-context reasoning (specifically, within SSM-attention hybrid models). We study whether this method also improves in-context adaptation on general, non-synthetic tasks for transformer language models. To this end, we pre-train language models up to 1.2B-parameters on up to 100B tokens with sleep mechanisms. Notably, longer sleep (i.e., using a larger number of recurrent forward passes $N$) enables the model to learn faster in-context on multiple few-shot algorithmic, question-answering tasks, while also achieving lower next-token prediction loss on out-of-distribution evaluations. On held-out code, models with $N=2$ and $N=4$ match the no-sleep baseline's loss using $2.10\times$ and $2.39\times$ fewer tokens in-context, respectively. More broadly, we view our work as a step toward building models that have better tradeoffs between in-context adaptation and decoding latency.

---

Verify against the original before citing; curated by Astral Feed: https://feed.astralor.com/items/itm_ba4ee0132694ef5cf72b03dc
