betaFeedback

WorksComputer Science

Sample-Efficient In-Context Adaptation via Sleep

Abstract

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 NN 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 NN) 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=2N=2 and N=4N=4 match the no-sleep baseline's loss using 2.10×2.10\times and 2.39×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.

Introduction

The ability to learn and generalize from limited experience, or sample efficiency, is a cornerstone of intelligence [12]. Human learning is extremely sample efficient: a generous upper estimate of linguistic exposure over ten years is only 1.4 billion tokens [9].

Yet within that time, a teenager can become a professional mathematician, chess player, rocket scientist, or a programmer, among many other professions. Can language models learn from new experience as efficiently as humans? In contrast with pre-training, where language models are many orders of magnitude less sample-efficient than humans, language models learn with much better efficiency via in-context adaptation: at deploy-time, language models can adapt their behavior based on its preceding input (also known as “context”), such as material published after their training-data cutoff, user preferences, and environment feedback. Yet, a substantial gap still remains between their sample efficiency and that of humans [45].

Model scaling improves sample efficiency at a high cost. One way to improve the sample efficiency of in-context adaptation is to increase model size. Kaplan et al. [33] show that per-token loss decreases following a predictable power law, and larger models achieve a faster decrease in loss as context accumulates.1 This observation is later validated at scale by Brown et al. [8] on several in-context adaptation benchmarks.

However, larger models increase both training and inference costs. Inference cost is particularly limiting because it recurs with every use, whereas training cost can be amortized over

^1Carnegie Mellon University ^2Yale University ^3Microsoft Research. Correspondence to: Sangyun Lee <[email protected]>. the model’s deployment lifetime. For instance, doubling the model depth doubles KV cache size and weight size, and approximately doubles per-token decoding latency. Demand for inference is growing rapidly, with inference-time compute soon projected to dominate the compute market; for instance, OpenAI reported that they process more than 20 trillion tokens per day ([58]) in March 2026, which is about 2.5 times its reported volume six months earlier ([57]).3 This cost also matters during reinforcement-learning post-training, where rollout generation accounts for much of the computation. Larger models also have a larger memory footprint, limiting the hardware on which they can run. For instance, Kimi K3 (Kimi Team et al., [37]) has 2.8 trillion parameters, and its released weights do not fit in the GPU memory of a node with eight NVIDIA B200s without additional quantization.

Sleep as a mechanism for in-context adaptation. We introduce a transformer-based model architecture that learns more effectively from context without increasing the model size. As shown in Figure 1, the model periodically goes to sleep (Lee et al., [40]), using recurrent forward passes over a chunk of context to iteratively refine its key-value cache, thereby achieving better in-context adaptation. While Lee et al. [40] have shown that sleep improves long-range reasoning on synthetic datasets, (a) they do not evaluate in-context adaptation on general, non-synthetic datasets, focusing instead on reasoning about evicted context, and (b) their experiments are on hybrid state-space model (SSM)-attention models. Our paper adapts the sleep idea to transformer architectures and, more importantly, demonstrates its efficacy for in-context adaptation on general tasks.

Figure 1. During the wake phase, our model decodes tokens at a normal speed without using any depth recurrence. Once the sleep boundary is reached (i.e., once the sleep window is full), the model performs additional recurrent passes over the window tokens to refine the KV cache. It then resumes decoding at a normal speed. This is done both during training and at inference time.

Result: In-context sample efficiency. Figure 2 demonstrates in-context adaptation performance as a model processes more context, tested on a 1.2B parameter model trained on 32B tokens on DCLM (Li et al., 2024) with different sleep durations NN. We observe that across tasks of different nature and complexity, from algorithmic in-context adaptation tasks to next-token prediction on unseen code, models that sleep exhibit markedly better in-context sample efficiency than models that do not, and this gap increases with a longer sleep duration NN. In the leftmost panel, we see that at a 16k context token cap, a model with N=2N = 2 and N=4N = 4 sleep duration achieves equal next-token prediction loss with 16k prefix tokens with 2.10× and 2.39× less context, respectively. As shown in the middle and the rightmost panels, sleep models have higher loss/lower accuracy than the no-sleep baseline in the first window, when little context is available and predictions rely more on knowledge stored in the weights. Their advantage grows as context accumulates over successive sleep phases, suggesting that using sleep during the training and inference yields a model that adapts better to new context and relies less on memorized knowledge.

Figure 2. Longer sleep (i.e., a larger NN) leads to better in-context adaptation. Left: Mean next-token prediction loss on the final 256 tokens from an out-of-distribution (OOD) code dataset with varying prefix length. Models with sleep reach losses of models with no sleep at faster rates, and the sample efficiency gain increases as context grows. Middle: Loss per token position on the OOD code dataset. Sleep models have higher loss than the no-sleep baseline in the first window, and loss improves steeply at sleep boundaries (shown as vertical dashed lines). Right: On a few-shot learning task (selective recall), models with longer sleep duration are significantly better than those with less or no sleep.

Result: Performance-efficiency Pareto frontier. Compared to a no-sleep variant, the model adds less than 2% to the parameter count, with no increase in KV-cache size. Additionally, since the recurrent passes are performed offline during sleep, it incurs no additional wake-time latency overhead. Overall, including sleep-time overhead, end-to-end decoding latency increases by less than 3% with one sleep iteration and 8% for three sleep iteration with 128k prefix for 1.2B models, allowing us to achieve Pareto-frontier compared to other looped transformer baselines (§ 5.3).

aggregate, our results suggest that sleep may be a promising direction for improving in-context adaptation abilities of transformers, while incurring limited additional overhead in terms of inference latency.

Background and related work

Attention

Attention [78] is a sequence-mixing operation where token representations are mixed according to query-key similarity. For the token representation hth_t at timestep tt, define

qt=WQht,kt=WKht,vt=WVht,(1)q_t = \mathbf{W}_{Q}h_t,\qquad k_t = \mathbf{W}_{K}h_t,\qquad v_t = \mathbf{W}_{V}h_t, \tag*{(1)}

where qtq_t, ktk_t, vt∈Rdv_t \in\mathbb{R}^{d} are column vectors, and WQ,WK,WV\mathbf{W}_{Q},\mathbf{W}_{K},\mathbf{W}_{V} are learned projection matrices. For generating an output vector oto_t for the tt-th token, self-attention stores all previous keys ktk_t and values vtv_t in K1:t=[k1,…,kt]T∈Rt×d\mathbf{K}_{1:t} = [k_1,\ldots,k_t]^{\mathsf{T}} \in\mathbb{R}^{t \times d} and V1:t=[v1,…,vt]T∈Rt×d\mathbf{V}_{1:t} = [v_1,\ldots,v_t]^{\mathsf{T}} \in\mathbb{R}^{t \times d}, then computes

ot=V1:tTsoftmax⁡(K1:tqtd).(2)o_t = \mathbf{V}_{1:t}^{\mathsf{T}}\operatorname{softmax}\left(\frac{\mathbf{K}_{1:t}q_t}{\sqrt{d}}\right). \tag*{(2)}

Here, K1:t\mathbf{K}_{1:t} and V1:t\mathbf{V}_{1:t} are called the key-value (KV) cache. For parallel computation, let Q1:t=[q1,…,qt]T\mathbf{Q}_{1:t} = [q_1,\ldots,q_t]^{\mathsf{T}} and O1:t=[o1,…,ot]T\mathbf{O}_{1:t} = [o_1,\ldots,o_t]^{\mathsf{T}} and compute

O1:t=softmax⁡(Q1:tK1:tTd+M)V1:t,(3)\mathbf{O}_{1:t} = \operatorname{softmax}\left(\frac{\mathbf{Q}_{1:t}\mathbf{K}_{1:t}^{\mathsf{T}}}{\sqrt{d}}+\mathbf{M}\right)\mathbf{V}_{1:t}, \tag*{(3)}

where softmax is applied row-wise and M\mathbf{M} is an additive causal mask.

Sample efficiency

Prior work attempts to improve the data efficiency of language-model pre-training by increasing training epochs, model scaling, and ensembles of independently trained models [47, 48, 54, 35]. We instead study sample efficiency during in-context adaptation by scaling computational depth.

In-context adaptation and computational depth

Kaplan et al. [33] analyze the next-token prediction loss at each token position and show that bigger models have steeper in-context adaptation curves. Although we have yet to fully understand why this happens (rather than, for instance, having a curve with the same slope but only a different offset), existing evidence suggests that some in-context adaptation algorithms benefit from sufficient computational depth. For example, the standard induction head circuit [55], which performs associative in-context recall, can emerge only when two or more attention operations are composed. kk-hop induction appears to require at least log⁡k\log k compositions of attention [64]. Function vectors [28, 77], a more complex form of in-context adaptation, can emerge when the model has enough depth to extract and apply the task vector. Von Oswald et al. [81] show that transformers with multiple layers can emulate multi-step gradient descent in linear regression tasks. These observations motivate the hypothesis that increasing computational depth is key for sophisticated in-context adaptation algorithms to emerge. However, token generation latency grows linearly with the number of layers, limiting how far the model depth can be increased.

Depth-recurrent models

Depth-recurrence (or “looping”) is one major pathway to increasing depth without increasing the number of parameters [15, 24, 18, 67, 5]. Recent work applies depth recurrence to language models through pre-training [23, 92] or retrofitting pretrained models [51]. Other studies examine design choices that improve optimization and performance [60, 31, 66, 83] (Schwettmann et al. 2026). Although depth recurrence reduces parameter memory, its decoding latency and KV cache memory grow linearly with the number of loops. Inspired by methods that share KV cache across layers in non-recurrent transformers [7, 72, 87], prior work has proposed sharing the KV cache across loops either in a training-free manner [92, 23] or with training [79, 4] (Wu et al. 2025). Among these approaches, Vendrell et al. [79] is closest to ours. We discuss their approach in § 3 and compare it with ours in § 5.3.

Sleep

Several machine learning methods [26, 74, 29, 43 Behrouz et al.] (Ha & Schmidhuber 2018; Mnih et al. 2015; Gers et al. 2005) use offline processing phases inspired by the role of biological sleep in animal learning [62, 50]. Recently, Lee et al. [40] proposed a sleep-like depth-recurrence mechanism where the model converts recent context into fast weights before clearing its key-value cache. Once the context size reaches the sleep window size WW, the model goes to sleep, during which it performs N−1N-1 additional depth-recurrent steps to iteratively refine fast weights, providing enough computational depth for learning. After sleep, the model evicts context tokens and resumes decoding at normal latency, incurring no additional cost between sleeps. On synthetic tasks, they show that increasing sleep duration NN improves the model’s ability to retrieve and reason about evicted context. However, Lee et al. [40] conducted experiments on synthetic datasets explicitly designed to evaluate reasoning over evicted context, and it is unclear whether this same mechanism can (a) improve in-context adaptation (rather than just reasoning) of language models trained on web text, and (b) do so even without context eviction. In this paper, we study whether this mechanism can be scaled to transformer pre-training to improve general in-context sample-efficiency.

Motivated by the memory consolidation process in the brain, Oomerjee et al. [56] add a lightweight adapter network to a frozen language model to refine its KV cache after the frozen model predicts each chunk of tokens. The adapter is trained to minimize the next-token prediction loss on the following chunk, without backpropagating losses from later chunks through the current refinement, as they use truncated backpropagation through time. They train the adapter on supervised reasoning traces and observe that it improves performance on downstream reasoning tasks. Sleep also refines the KV cache, but instead of introducing a lightweight adapter, we use the main network itself to iteratively refine the cache through depth recurrence, increasing computational depth and the expressivity of the update. We also do not truncate gradients across windows. Our focus is the sample efficiency of in-context adaptation, and whether increasing NN can yield further sample efficiency gains while accounting for inference cost.

Amortizing training compute during inference

When inference demand is large, spending more compute during training can be worthwhile because that cost is amortized over the model’s deployment lifetime. One approach is to train smaller models well beyond the Chinchilla-optimal token budget [65]. For example, Qwen2-0.5B is pretrained on 12T tokens [88], approximately 1,200 times the Chinchilla-optimal token budget. However, the supply of useful training data limits how far overtraining can extend [80, 35, 73]. This motivates methods that spend more computation per training example while preserving inference cost.

Recent temporal-recurrence architectures illustrate this approach [10, 84, 32]. They use additional parallel refinement steps during training to approximate recurrent computations across token positions. During autoregressive decoding, the preceding token’s recurrent state is already available, so each new token requires only one forward pass. These methods therefore spend additional training compute while retaining approximately the decoding cost of a standard Transformer.

Sleep follows a similar philosophy: it spends approximately NN times the training compute of the no-sleep baseline to learn more effective in-context adaptation but concentrates additional compute into periodic offline phases, leaving wake-time decoding latency unchanged. In § 5.3, we show that the resulting end-to-end decoding overhead is marginal in our benchmark.

Method

We adapt sleep Lee et al. [40] to attention-only Transformer models trained on natural language, with the aim of improving in-context sample efficiency. Lee et al. [40] let the model periodically revisits a window of context to refine its fast weight. Since we use attention-only transformers, we instead refine their KV cache during sleep. Unlike Lee et al. [40], we retain the full context without evicting tokens. We provide pseudocode for a toy example in Figure 4.

One-layer transformer forward pass with sleep

Figure 4. One-layer transformer forward pass with sleep.

Wake–sleep cycle. During the wake phase, the model autoregressively decodes tokens with a single forward pass per token (Figure 1). After every WW tokens, it sleeps: it performs N−1N-1 additional depth-recurrent forward passes over the completed window to refine its KV cache. Each token therefore receives NN forward passes in total, including the initial wake pass. After sleep, decoding resumes at its normal speed until the next window is complete.

Training through sleep. Figure 3 shows how this computation is organized for parallel training within each window. The model is recurrent in depth and block-recurrent in time. For each window of WW tokens, we apply the standard language modeling loss only to the first-loop output. The remaining N−1N-1 steps refine the cache without changing the current window’s predictions. Their effect on the loss comes from subsequent windows, whose predictions attend to the refined cache. Figure 4 shows how the forward pass works during training for a 1-layer transformer model. After forward pass, we backpropagate through the entire computation (including NN recursions) and update the model parameters. Since refinement steps at l≥2l \ge2 do not need to obey causality within the current window, we use bidirectional attention during sleep. In Figure 4, we see that during sleep, the mask M is not applied to the attention. During training, after the forward pass finishes, we backpropagate through the entire computation (including recursions) and update the model parameters.

Figure 3. Training transformers with sleep. The first loop of the language model is used to produce the next-token predictions. Additional loops (“sleep”), performed only at chunk boundaries, are used refine the completed window’s KV cache.

Attention Residuals. To support signal propagation through depth recurrence, we use Attention Residuals (AttnRes) Kimi Team et al. [38] with block size four. Following Su [71], we compute depth-wise attention weights using a subset of the hidden coordinates. Rather than keeping the routing dimension constant across model sizes, we allocate 1/161/16 of the hidden dimension to routing. We select these architectural choices using the N=1N=1 baseline, where they improve validation loss, and transfer them to the sleep models.

Gated cache refinement. Each refinement step produces candidate keys and values, which we combine with the previous cache through a GRU-style gated update. Specifically, for the sleep window size WW and window index ii, let K(i−1)W+1:iWnew,V(i−1)W+1:iWnew\mathbf{K}^{\mathrm{new}}_{(i-1)W+1:iW},\mathbf{V}^{\mathrm{new}}_{(i-1)W+1:iW} denote the candidates from the current step and K(i−1)W+1:iW,V(i−1)W+1:iW\mathbf{K}_{(i-1)W+1:iW},\mathbf{V}_{(i-1)W+1:iW} the retained cache for the ii-th window. We first compute an elementwise retention gate (omitting window indices for readability):

αK=σ([Knew,K]θα,K+bα,K),(4)\boldsymbol{\alpha}_{K}=\sigma\left(\left[\mathbf{K}^{\mathrm{new}},\mathbf{K}\right]\boldsymbol{\theta}_{\alpha,K}+\mathbf{b}_{\alpha,K}\right), \tag*{(4)}

where θα,K∈RdKV×2dKV\boldsymbol{\theta}_{\alpha,K}\in\mathbb{R}^{d_{KV}\times2d_{KV}} and bα,K∈RdKV\mathbf{b}_{\alpha,K}\in\mathbb{R}^{d_{KV}} are learned parameters, dKVd_{KV} is the total width of the KV heads, [⋅,⋅][\cdot,\cdot] denotes concatenation along the feature dimension, and σ\sigma is the sigmoid function. We then update

K←(1−αK)⊙Knew+αK⊙K,(5)\mathbf{K}\leftarrow(1-\boldsymbol{\alpha}_{K})\odot\mathbf{K}^{\mathrm{new}}+\boldsymbol{\alpha}_{K}\odot\mathbf{K}, \tag*{(5)}

where ⊙\odot denotes elementwise multiplication. We apply the same update to values using separate gate parameters. As shown in Figure 4, this gating does not affect the attention output in the current window, as it affects K,V\mathbf{K},\mathbf{V} but not Knew,Vnew\mathbf{K}^{\mathrm{new}},\mathbf{V}^{\mathrm{new}}. Unlike gating that modulates the forward pass activations Vendrell et al. [79], our gate controls what is retained in the cache independently of the forward-pass dynamics, which are controlled by AttnRes. In Figure 9, we show that adding a separate gating mechanism on top of AttnRes for retained KV cache is crucial. The gating increases the number of parameters by less than 2%.

Figure 9. Loss comparison, with and without KV gating. Circles highlight sharp boundary spikes without gating; learned KV write gates substantially reduce them. d768/TP30 models are used.

Connection with looped transformers In Figure 4, if we instead use final loop outputs O1:3N\mathbf{O}^{N}_{1:3} (with a causal mask enabled) and O4:6N\mathbf{O}^{N}_{4:6} to compute L\mathcal{L}, this becomes block-recurrently looped transformers with KV cache sharing, similar to Vendrell et al. [79] but with our gating. We call this block-recurrent loops. If we further make WW the same as the sequence length, we recover the standard looped transformers Dehghani et al. [15] (gating does not affect the loss in this case). We call these full-context loops. In § 5.3, we compare our method against these baselines.

Experimental setup

Pretraining and learning rates. We pretrain on DCLM Li et al. (2024) with a context length of 4,096. tokens. We build upon the SmolLM-2 (Allal et al., [3]) architecture and tokenizer, varying width and depth following the Marin (Marin Community) scaling ladder (Table 1). We use Kimi-style Muon (Liu et al., [44]), which ties the learning rates of the Muon and AdamW parameter groups. Following Marin, we linearly warm up the learning rate over the first 1% of optimizer updates, then linearly decay it to 5% of its peak value over the remaining updates. Learning rates are tuned for the N=1N = 1 baseline and reused for models with sleep. In some of our sweeps, the best-performing learning rate differs across loop counts, so this transfer may leave our sleep models undertuned.

Width (dd)Layers (LL)Non-embed. / total (M)Batch (Mi tokens)
512622.93 / 48.100.5
768869.46 / 107.210.5
102412182.95 / 233.281
128014331.02 / 393.931
153616548.35 / 623.842
2048181096.20 / 1196.864

Table 1. Model configurations for N=1N=1, with tied embeddings. N>1N>1 adds approximately 2% non-embedding parameters.

We use labels such as 1.2B/32B to denote a configuration with 1.2B-parameter model trained on 32B tokens. We also interchangeably use d2048/TP30, where d2048 denotes a hidden width of 2,048 and TP30 denotes a pretraining budget of 30 tokens per non-embedding parameter. See Section A.1 for more details.

Evaluation

We start by presenting our main results on negative log-likelihood evaluations (§ 5.1). We then proceed to few-shot learning tasks, where the model should infer hidden rules from in-context demonstrations (§ 5.2). In § 5.3, we discuss additional experimental results including inference cost profile, ablation studies, and comparison with other looped baselines.

Negative log-likelihood evaluation

Our development was largely guided by next-token negative log-likelihood (NLL) evaluation. Although multiple choices or generative evaluations such as MMLU or MATH are common, they can be highly sensitive to minor details such as formatting and scoring rules (Sclar et al., [69]), and widely used ones are prone to contamination. Moreover, benchmarks can be too hard for small models and thus fail to provide informative guidance at those scales (Heineman et al., [27]). On the other hand, NLL evaluation provides a smooth signal, is less prone to minor variations such as formatting, and aligns well with downstream capabilities (Du et al., 2024; Gadre et al., [21]), especially when the evaluation corpus is carefully decontaminated and selected for quality. In our setting, we leverage the fact that our training datasets, DCLM and ProLong, were released before 2025, to collect long-context data released in 2025 or later for testing purposes. arXiv2025arXiv2025 contains arXiv papers released in 2025 and extracted into Markdown.4 Additionally, we created Repo2025, which contains 13 popular GitHub repositories whose earliest commits date to 2025. These datasets let us test how well the model can adapt to scientific text and unfamiliar codebases; it is of course likely that both arXiv2025 and Repo2025 include AI-generated text, so our evaluation may not be fully uncontaminated. Dataset construction is described in Section B.

NLL Results. Figure 5 plots loss against token position, averaged within 256-token windows. Loss decreases as more context becomes available. Our main finding is that beyond the first few hundred tokens, models that are trained and tested with sleep achieve lower loss than the N=1N = 1 (no sleep) baseline; the gap grows with context length, and longer sleep produces larger gains.

Figure 5. Next-token prediction loss as context accumulates. The upper panels of each subplot show LNL_N, the loss for a model with NN loops. Each point shows the mean next-token loss across evaluation sequences within a non-overlapping 256-token position bin. Lower panels show LN−L1L_N - L_1, the difference from the no-sleep baseline. The evaluation dataset combines arXiv2025 and Repo2025. We show three configurations: d1536/TP30 (or 600M/16B), d2048/TP30 (or 1.2B/32B), and d2048/TP90 (or 1.2B/98B). We observe similar trends on held-out ProLong dataset. Full plot can be found in Figure 13.

The middle panel of Figure 2 shows this behavior at finer resolution, using a 10-token running mean. The loss difference becomes more negative immediately after sleep boundaries, showing that sleep is the driving factor of the loss gap. The loss difference typically drops sharply at sleep boundaries and then rises within each window. We also sometimes observe similar trends in few-shot learning tasks (Figure 15). We speculate that sleep pre-computes useful representations for upcoming tokens. Since near-future tokens are easier to anticipate, the model may learn to devote more computation to preparing for them, making the benefit largest immediately after sleep and smaller farther into the window.

Figure 15. In-context adaptation on five algorithmic word tasks. The top row shows the average accuracy over all tasks, where x-axis is normalized between 0 and 1. Vertical dotted lines show median sleep boundaries, and the shaded areas around them represent the 1st–99th percentile range (as boundaries can occur at different demonstration counts across examples). Sleep boundaries are omitted for the plots that average over multiple formats (selective recall and symbol removal).

How much context does a model need to reach the same prediction loss? The right panel of Figure 2 shows loss on the same final 256 tokens of Repo2025 sequences as we vary the preceding context, using the d2048/TP30 models after 16k extension. N=2N = 2 and N=4N = 4 require 2.10×\times and 2.39×\times fewer prefix tokens, respectively, to match N=1N = 1’s measured loss at its longest context.

Few-shot learning tasks

Setup. Although the NLL evaluation provides a robust predictor of in-context adaptation ability, we additionally evaluate on several few-shot learning tasks to complement our NLL results. CoQA (Reddy et al., [63]) is a standard benchmark (Radford et al., [61]; Brown et al., [8]; Chowdhery et al., [13]) where the model answers questions about a passage through a conversation. Unlike other evaluations, this is a generative evaluation. Here, we use greedy decoding and report F1. For 1-, 2-, and 4-shot results, we average the scores over two fixed demonstration sets shared across models. Algorithmic word tasks test whether sleep improves models’ ability to infer the correct algorithmic rule from in-context demonstrations and apply it correctly. We consider five tasks: word reversal, cyclic rotation, selective recall, symbol removal, and latest assignment. For character manipulation tasks, we separate characters with spaces to reduce dependence on word tokenization. We report the probability of the correct answer, computed from teacher-forced token probabilities, averaged over all subtasks. We also evaluate on three tasks from the widely used (Abdin et al., [1]; Kimi Team et al., [36]; Zen et al., 2026) ICL subset of HELMET dataset (Yen et al., [90]): TREC-coarse, TREC-fine (Li & Roth, 2002), and NLU (Liu et al., [46]). These are text classification tasks with 6, 50, and 68 labels, respectively, for TREC-coarse, TREC-fine, and NLU. For each sequence, we randomly assign numeric labels to classes and keep the mapping fixed throughout, so the model can infer the label meanings from in-context demonstrations. As in the algorithmic tasks, we report the probability of the correct answer averaged over all subtasks. Finally, we evaluate in-context sentiment classification on SST-2, replacing negative and positive with foo and bar, respectively, following Wei et al. [85]. These labels do not reveal their sentiment meanings, so the model must learn the mapping from demonstrations. Learning new association solely from context can be surprisingly hard: Wei et al. [85] shows that even GPT-3 achieves around 60% accuracy with 32 demonstrations. For a detailed explanation of the tasks used, see Section B.

Few-shot learning results. Figure 6 presents the results for d2048/TP30 (or 1.2B/32B). These results show that models with sleep outperform the N=1N = 1 baseline on few-shot learning across all four datasets. In Section A.6, we find that the similar trend holds for d1536/TP30 (or 600M/16B) and d2048/TP90 (or 1.2B/98B) configurations. For CoQA, the advantage is also present without prepended demonstrations because even zero-shot CoQA prompts can exceed the first sleep boundary at 256 tokens. In algorithmic tasks, the N=1N = 1 baseline often plateaus, while models with sleep continue to improve as demonstrations accumulate. In SST-2, the N=1N = 1 baseline’s gains diminish as context accumulates, while models with sleep continue to benefit from additional examples. All models struggle to even achieve 50% accuracy initially, showing that even identifying a valid answer set in-context can be challenging for small models on this task.

Figure 6. Few-shot learning performance as demonstrations accumulate. We evaluate on four few-shot learning tasks, CoQA, algorithmic word tasks, HELMET-ICL, and SST-2. The d2048/TP30 (or 1.2B/32B) model is used, where we see longer sleep duration leads to significant improvements as the number of demonstration increases. Other configurations follow similar trends (Section A.6).

We sometimes see that N=2N = 2 is tied with N=4N = 4 or even outperforms it, e.g., in CoQA and SST-2, at certain demonstration counts. This is consistent with the fact that for d2048/TP30, the gap between N=2N = 2 and N=4N = 4 is smaller than that between N=1N = 1 and N=2N = 2 on the NLL evaluation, and that an individual few-shot learning task does not necessarily reflect a model’s general ability to adapt in context.

Additional analyses

Inference cost profile. Figure 7 measures inference cost for N=1,2,4N = 1, 2, 4 using d2048 (or 1.2B) models with W=256W = 256. We use BF16 weights, batch size 8, and CUDA graphs for decoding on an RTX 6000 Ada GPU.

Figure 7. Inference cost profile comparison between N=1,2,4N = 1, 2, 4: (a) cumulative decoding latency, excluding time to first token. (b) peak memory allocation, (c) time to first token relative to N=1N = 1. All panels are measured using a 1.2B model with W=256W = 256, batch size 8, and 1,024 generated tokens on an RTX 6000 Ada GPU. We see that a model with longer sleep incurs a proportionally higher time to first token, but otherwise incurs no additional overhead during wake-time decoding, and only minimally increases overall memory footprint and cumulative latency at decoding stage.

Figure 7(a) shows that sleep adds no decoding latency between sleep boundaries. The additional latency is concentrated in periodic spikes, when the model refines the completed window’s KV cache. Sleep processes the window’s tokens in parallel, and its cost is amortized over subsequent decoding steps. As a result, with a 128k token prefix, end-to-end cumulative decoding time (excluding time to first token) increases by only 2.6% for N=2N = 2 and 7.6% for N=4N = 4. Figure 7(b) shows that memory overhead is also small: at the longest prompt length, peak memory increases by about 1% for N=4N = 4 (mainly due to AttnRes cache and KV gating). The main latency trade-off is prefilling: time to first token scales approximately with NN, as shown in Figure 7(c). This additional computation lets the model process its context more deeply before generating a response, improving the sample efficiency of in-context adaptation.

Training overhead. As with other looped transformer baselines, our model incurs approximately N×N\times training FLOPs over the no-sleep baseline (KV gating FLOPs are negligible). The sleep window size WW does not change the FLOPs, but it affects parallelism. Using too small of a WW can lead to poor GPU utilization, so unless otherwise mentioned, we use W=256W = 256 to ensure that training is FLOPs-bound.

Comparison with other looped models. We compare our method against two looped baselines we discussed in § 3: block-recurrent loops and full-context loops. For that, we train d1024/TP30 models with N=1N = 1, 2, and 4.

Figure 8 shows the final 256-token losses as a function of the cumulative decoding time relative to N=1N = 1 on ProLong and Repo2025. Unlike both looped baselines, which require NN steps to generate each token, our models do not incur wake time latency overhead and instead hide that additional FLOPs to sleep phases. Since sleep is FLOPs intensive, it achieves superior cumulative decoding latency compared to these looped baselines which incur NN times longer latency. Moreover, sleep could be flexibly scheduled during otherwise idle periods, such as while awaiting tool results or user input, without harming interactivity.

Figure 8. Loss on the final 256 tokens of 4k-token sequences for 230M-parameter models on ProLong and Out-of-distribution code datasets. NN is the number of loops. Our models achieve comparable loss to looped transformer baselines (see § 3 for descriptions) with better latency and memory footprint. Decoding time is the cumulative latency for generating 1k tokens after a 128k-token prefix (excluding prefill). Circle area is proportional to KV-cache size per token.

Figure 10 compare the in-context adaptation curves of these methods. We can see that full-context loops start from a lower position than our method, but eventually fall behind it, despite having N×N\times larger KV cache and being much slower in decoding. We believe this is because full-context loops do not use block-recurrence and thus their computational depth do not grow in temporal dimension. Block-recurrent loops show steeper learning curves than full-context loops and outperform sleep at most token positions at the cost of increased decoding latency, but sleep eventually outperforms it at later positions. We hypothesize that this is because

Figure 10. Learning curve comparison for sleep, block-recurrent loops, and full-context loops. Loss per token is measured on Repo2025 using d1024/TP30 models with N=2N = 2 (left) and N=4N = 4 (right). Upper panels show loss, and lower panels show the loss difference from the shared N=1N = 1 baseline.

sleep allows recurrent computation to focus on preparing the KV cache for predicting distant future tokens, whereas block-recurrent loops must use recurrence for immediate next-token prediction as well as cache preparation, potentially creating competition between these two roles ([53]). This result is surprising because these baselines incur approximately 3.7× more decoding latency, and full-context loops costs 4× more KV cache memory on top of that (see Figure 8); nevertheless, when there is enough context for the model to adapt, sleep appears to outperform them eventually.

KV gating. KV gating separates what the model computes during sleep from what it retains for subsequent windows. Later loops can develop features useful for refinement without forcing those features to replace the existing cache. Without gating, the final-loop KV overwrites earlier representations, potentially displacing low-level features that subsequent windows may need.

Although AttnRes could limit cache changes by letting the query vector attend to previous-loop representations rather than current-loop updates, this also constrains the features being generated. Consistent with this interpretation, the lower panel of Figure 9 shows that boundary spikes persist without KV gating even when AttnRes is used. Gating suppresses these spikes and improves loss at later positions. A useful analogy is the observation that people often cannot recall REM sleep ([14]), implying that it is useful to have the separation of generating neural activities from what is retained in memory.

Changing WW during inference. Figure 11 shows that the model tolerates moderate changes to WW at test time, with some smaller windows even improving loss without retraining. This flexibility may partly arise from document packing during training: if attention largely ignores tokens before the preceding <eos>, the model effectively learns to refine within-document segments shorter than WW. Randomizing WW during training could further support flexible sleep schedules, allowing the model to sleep while awaiting tool results or user input and thereby reduce interruptions during interaction. We leave such adaptive training and scheduling strategies to future work.

Loss versus test-time window

Figure 11. Changing the sleep window at test time. Repo2025 loss on the final 256 tokens of 4,096-token sequences for the d1536/TP30 model with N=4N = 4, trained with W=256W = 256. W=192W = 192 achieves the lowest loss among the tested windows.

Other ablations. In Section A, we present additional experiments on standard tasks from lm-eval-harness, recurrence layout, effect of bidirectional attention during sleep, and window size ablation.

Conclusion

We study periodic context refinement via depth recurrence, or sleep, as a way to improve in-context sample efficiency of transformer language models without increasing model size. Across NLL and few-shot evaluations, we show that models with sleep make more effective use of their context and that longer sleep duration NN improves results further.

Our experiments are not iso-FLOPs. We instead match training tokens, and sleep requires approximately NN times the training computation of the no-sleep baseline per training token. This trade-off is attractive when inference demand is large enough to amortize the additional training cost. Also, our method makes prefill approximately NN times slower. Therefore, we expect the benefit to be the greatest in a decoding-heavy scenario.

When a model has enough context and time to adapt, the slope of its learning curve may matter more than what it already knows. Our results strongly suggest that the performance gap between models with and without sleep will continue to widen as the context accumulates. Future work should scale this work to larger, more capable models to investigate if this trend persists at longer context and after post-training, and by investigating other opportunities for language models to improve on in-context adaptation.

Acknowledgement

We thank Zhengyang Geng for valuable contribution to the initial phase of this project during his time at CMU, Sean McLeish for comments on the draft, and Yelong Shen for discussions.

Additional setup, analyses, and discussions

Additional experimental setup

We build upon the SmolLM-2 (Allal et al., [3]) architecture and tokenizer, varying width and depth following the Marin (Marin Community) scaling ladder. The models are dense, global-attention only Transformers with grouped-query attention (Ainslie et al., [2]) and SwiGLU activations (Shazeer, [70]). We tie the embedding and unembedding weights, use NoPE (Kazemnejad et al., [34]) in every fourth layer, and include Inkling-style residual short convolutions (Thinking Machines Lab, [76]).

To support signal propagation through depth recurrence, we use Attention Residuals (Kimi Team et al., [38]) with block size four. Following Su [71], we compute depth-wise attention weights using a subset of the hidden coordinates. Rather than keeping the routing dimension constant across model sizes, we allocate 1/16 of the hidden dimension to routing. We select these architectural choices using the N=1N = 1 baseline, where they improve validation loss, and transfer them to the sleep models. Table 2 shows that these combined result in improved performance on the standard lm-eval-harness tasks compared to an external Transformer++ baseline. Unless otherwise stated, models with sleep recur the full Transformer stack except for embedding and unembedding layers every W=256W = 256 tokens.

MetricSleep (Ours): ≈1.2B, 32.89B tokensSleep (Ours): ≈1.2B, 98.66B tokensTransformer++
N=1N = 1N=2N = 2N=4N = 4N=1N = 1N=4N = 41.3B, 100B tokens
LAMBADA PPL ↓6.216.376.435.255.5618.32
LAMBADA60.2059.1759.2963.9062.9342.60
HellaSwag*58.2358.6358.7164.2562.6550.23
PIQA73.8374.0573.5674.9274.7670.02
ARC-E68.0166.2067.4770.8870.6668.83
ARC-C*33.2832.5932.3437.5435.4135.10
WinoGrande60.1461.2559.9162.3561.0953.51
Average ↑58.9558.6558.5562.3161.2553.38

Table 2. Zero-shot downstream evaluation on the standard lm-eval-harness tasks. Accuracy is reported in percent; * denotes length-normalized accuracy. Average is the unweighted mean of the six accuracy metrics, excluding LAMBADA perplexity.

Following Marin’s fitting approach, we obtain the heuristic

η=0.97082 T−0.308625 d−0.687709 B0.5,\eta= 0.97082\,T^{-0.308625}\,d^{-0.687709}\,B^{0.5},

where η\eta is the learning rate, TT is the total number of training tokens, dd is the hidden dimension, and BB is the global batch size in tokens. The fit uses sweeps for d512, d768, and d1024 at TP30, TP60, TP150, and TP300, together with sweeps for d1280/TP30 and d1536/TP30. We extrapolate this heuristic to d2048/TP90.

In our initial d2048/TP90 experiments, we observed large RMS magnitudes in activations. To control their scale, we add normalization after both the attention and MLP outputs while retaining the existing pre-normalization, yielding sandwich normalization. We also set the peak learning rate to 0.7× the heuristic prediction. Both N=1N = 1 and N=4N = 4 in the reported TP90 comparison use these modifications. We were unfortunately unable to run N=2N = 2 for d2048/TP90 because our compute access was terminated.

Long-context extension. For the d2048/TP30 checkpoints, we extend the context length to 16,384 tokens through an additional 3.3B tokens of training using YaRN (Peng et al., [59]). We linearly decay the learning rate from 0.05× to 0.01× the base learning rate during this stage. This stage uses a mixture of 70% DCLM and 30% ProLong (Gao et al., [22]). From ProLong, we use the thestackv1, book, and textbooks subsets to obtain contiguous sequences.

Short-context tasks

Table 2 shows short-context evaluation results. All evaluated tasks are shorter than W=256W = 256 tokens, so models do not use any sleep. As expected, results are similar to the baseline (if anything, models with sleep obtain slightly lower accuracies). This shows that indeed advantage of sleep comes from better in-context adaptation, not from the model already memorizing more knowledge or skills than the baseline. Transformer++ results are from Yang et al. [89]; this model is trained on 100B FineWeb-Edu tokens. Our models achieve better performance likely because of several differences, such as Muon, AttnRes, and heavy use of short convolution layers. These improvements allow us to conduct meaningful experiments even at small scales.

Recurrence layout

We first compare which layers to recur while holding logical depth fixed. Table 3 shows that recurring more layers with fewer loops achieves lower ProLong loss. At logical depth 20, recurring eight layers twice outperforms recurring four layers three times. At logical depth 36, recurring the entire network three times outperforms recurring only the middle eight layers four times. These results motivate our choice to recur the entire network.

Table 3. ProLong validation loss for d1024/TP300 models trained with a 4k-token context window. Layout denotes prelude–recurrent layers × loops–coda. 0–12–0 is the no-sleep baseline. Bold denotes the layout with lower loss for each logical depth.

LayoutAvg. lossLast-1k lossLogical depth
0–12–02.0841.97112
4–4 × 3–42.0571.94020
2–8 × 2–22.0531.93420
2–8 × 4–22.0431.92536
0–12 × 3–02.0351.91036

Table 3.

This is contrary to findings in depth-recurrence literature, where looping the middle part achieves better performance in iso-FLOPs comparison [66, 83] and is thus a standard practice [23, 51, 68]. We hypothesize that this difference arises because, unlike looped models that retain separate KV caches for different loops, sleep repeatedly refines the same cache. Information from successive sleep recurrence must therefore share a fixed cache capacity, potentially creating a trade-off between preserving earlier information and incorporating later refinements. At the same logical depth, a larger recurrent block provides more space for sleep to retain and refine information across loops.

Bidirectional attention during sleep

During sleep, self-attention does not need to be causal because refinement steps do not contribute to predictions for tokens in the current window. We compare causal and bidirectional attention during sleep. Table 4 shows that bidirectional refinement achieves slightly lower loss on all three validation metrics.

Table 4. Causal-masking ablation for d1536/TP30 models with N=2N = 2, W=256W = 256, and 4k training context. The causal mask is varied only during sleep.

Causal mask during sleepProLong Avg.ProLong Last-1kDCLM Avg.
With1.9781.8612.687
Without1.9771.8582.680

Table 4.

Window size ablation

Table 5 shows the benefit of using smaller WW. Decreasing WW makes sleep more frequent, increasing the computational depth to process a sequence. However, reducing WW also reduces the number of tokens processed in parallel and thus can negatively impact the model FLOPs utilization (MFU). Therefore, we mostly use W=256W = 256 in our experiments so the forward pass can remain close to being FLOPs-bound.

WWDCLM trainProLong avg.Last-1k
2563.15922.43302.3062
5123.17142.46262.3404
10243.17722.46982.3489

Table 5. Window-size ablation for d768/TP30 models with N=2N = 2.

Few-shot learning tasks

Figure 13 to Figure 15 and Figure 17 show results on NLL, CoQA, algorithmic word tasks, and HELMET-ICL, respectively for three different configurations: d1536/TP30, d2048/TP30, and d2048/TP90. We see that models with sleep improve faster as demonstrations accumulate.

Figure 13. Next-token prediction loss as context accumulates. Upper panels show LNL_N, the loss for a model with NN loops, averaged within 256-token windows. Lower panels show LN−L1L_N - L_1, the difference from the no-sleep baseline.

Figure 17. In-context adaptation on three HELMET-ICL tasks. The top row shows the average accuracy divided by the random baseline’s accuracy over all tasks, where x-axis is normalized between 0 and 1. Vertical dotted lines show median sleep boundaries, and the shaded areas around them represent the 1st–99th percentile range.

Discussion on test-time training

Tandon et al. [75] propose a test-time training method called TTT-E2E where the model performs gradient descent on next-token loss within context. TTT-E2E originally aims to preserve the model’s long-context ability after sliding-window token eviction, but since its sliding window size is 8k and test-time update happens every 1k tokens, we can also examine its loss improvement over the Transformer baseline before eviction to see if it can improve in-context adaptation. In Figure 12, we show the plot digitized from Figure 6 (left) of Tandon et al. [75], where we display loss curves of their Transformer baseline and TTT-E2E. We restrict the x-axis to positions up to 8K, before token eviction. TTT-E2E improves loss over the baseline, but the gap remains approximately constant over this range, unlike our Figure 2 and Figure 5, where the gap grows as context accumulates. We also see that the advantage is already present before the first test-time update. Why does this happen? This comparison between transformer and TTT-E2E in Figure 12 is not matched in terms of the size of per-sequence inference state, because unlike sleep, which updates the same KV cache that is used by a vanilla transformer, TTT-E2E introduces additional context-specific fast-weight states that are learned from context tokens in a sequence and thus cannot be shared across other independent sequences in a batch. Having larger per-sequence inference state increases decoding latency through additional memory traffic because decoding is already memory-bound, while also improving in-context adaptation ability as noted by the authors. For example, in their 3B parameter model, we estimate their in-context memory overhead (size of KV cache and fast weights combined) to be more than 1.5×1.5\times that of the Transformer baseline, which has only the KV cache. We obtain this estimate as follows. Their 3B model has 32 layers, and they update the final 8 layers’ SwiGLU parameters in-context. Their SwiGLU hidden and intermediate widths are 2,560 and 5,632, respectively, and the updated state is stored in 32-bit precision. So in total, their SwiGLU state occupy 8⋅5632⋅2560⋅3⋅48 \cdot5632 \cdot2560 \cdot3 \cdot4 bytes, or approximately 1.29GB. On the other hand, their KV cache is stored in 16-bit precision, and since they do not use GQA, the size is 32⋅2560⋅2⋅2⋅8192=2.532 \cdot2560 \cdot2 \cdot2 \cdot8192 = 2.5GB for 8k context. So TTT-E2E incurs roughly 51.6% larger per-sequence inference state size at 8k. Moreover, TTT-E2E only performs a single in-context gradient step, whereas we show that increasing sleep duration leads to better performance.

Figure 12. Plot extracted from Figure 6 of Tandon et al. [75]. The top panel shows the next-token loss per token position, comparing their Transformer baseline and the proposed TTT-E2E. The bottom panel shows loss differences. Vertical dashed lines mark test-time updates every 1k tokens.

Why does sleep benefit from accumulated context in loss whereas TTT-E2E does not? One reason could be that sleep can be seen as a form of black-box meta learning method ([30, 39, 17, 82]), where the model can execute flexible learned updates to train the KV cache without relying on a prescribed inner-loop loss function or update rule. On the other hand, TTT-E2E relies on prescribed inner loss (next-token loss) and update rule (gradient descent), which makes it more similar to MAML ([20]) than the black-box meta-learning approaches and may limit the flexibility of its updates when learning from few examples. Aligned with this intuition, Eyuboglu et al. [19] find that using next-token loss as an inner loss for TTT can improve memorization but does not benefit other tasks such as mathematical reasoning as much.

In-context adaptation tasks

NLL eval

Repo2025 We use the following repositories:

In total, these are 41,238,528 tokens. We pack these to suitable lengths while ensuring each sequence is from one repository.

arXiv2025 We use huggingface.co/datasets/SlowGuess/Arxiv_2025_OCR, a collection of arXiv papers released in 2025 extracted as a markdown format. We additionally remove Markdown image links. We keep every paper with at least 32,768 tokens, take its first 32,768 tokens, and split into eight independent 4k rows. These are 42,860,544 tokens in total.

Algorithmic word tasks

Here, we provide three-shot examples of each word task. Words used here are from the 10,000 most common English words 5. We further filtered to words that are one token both with and without a leading space.

Selective copying

Input: updated echo ships [chair] spread sk bridge infrared
Output: chair
Input: rc gc spring [account] thin exists psi coat
Output: account
Input: pk af focused tuning checked shop word [birds]
Output: birds
Input: math though star sharing [egg] lab when rotation
Output:
Few-shot CoQA plots

Figure 14. Few-shot CoQA.

Expected answer is egg. This example uses [chair] to mark the target word chair. We explored seven total formatting methods:

# word

Input: updated echo ships # chair spread sk bridge infrared
Output: chair

Asterisk: * word

Input: updated echo ships * chair spread sk bridge infrared
Output: chair

[word]

Input: updated echo ships [chair] spread sk bridge infrared
Output: chair

(word)

Input: updated echo ships (chair) spread sk bridge infrared
Output: chair

keep / ignore

Input: ignore updated; ignore echo; ignore ships; keep chair; ignore spread; ignore sk;
      ignore bridge; ignore infrared
Output: chair

select / skip

Input: skip updated; skip echo; skip ships; select chair; skip spread; skip sk; skip
      bridge; skip infrared
Output: chair

yes / no

Input: no updated; no echo; no ships; yes chair; no spread; no sk; no bridge; no infrared
Output: chair

As shown in Figure 18, the subtle choice of formatting leads to a large variation in performance, which further motivated us to focus on NLL evaluation as a more reliable signal.

Figure 18. Selective recall accuracy with respect to the number of demonstrations depending on the formatting choice. 1.2B N=1,2,4N = 1, 2, 4 models trained on 32B tokens are used.

Figure 16. SST-2, where instead of using positive/ labels, the labels are replaced by {foo, bar}, so the model must learn the correct correspondence between these placeholders and the correct semantic labels via in-context demonstrations. Vertical dotted lines show median sleep boundaries, and the shaded areas around them represent the 1st–99th percentile range.

Reversal

Input: g r o w n
Output: n w o r g
Input: w h e r e
Output: e r e h w
Input: r e p a i r
Output: r i a p e r
Input: m e d
Output:

Expected answer is d e m.

Latest assignment

Context:
gender is watching. scores is experienced. scores is confirmed. super is solved.
Input: scores
Output: confirmed
Context:
balls is asp. balls is oven. cr is icon. cm is units.
Input: balls
Output: oven
Context:
bound is rep. mess is dollar. bound is crime. suggest is other.
Input: bound
Output: crime
Context:
align is pleasant. align is local. pub is gt. should is city.
Input: align
Output:

Expected answer is local. This task tests whether the model can keep tracking of state overriding.

Symbol removal

Input: p 4 l 4 a 4 n 5 e 1 s
Output: p l a n e s
Input: p 8 e 9 r 5 c 6 e 2 p 6 t 9 i 0 o 4 n
Output: p e r c e p t i o n
Input: p 7 o 0 p 1 u 6 l 2 a 2 t 8 i 2 o 2 n
Output: p o p u l a t i o n
Input: u 4 n 2 d 4 e 5 r 4 s 9 t 5 a 1 n 1 d
Output:

Expected answer is u n d e r s t a n d. Unlike Brown et al. [8], we insert spacing between each character, because the goal here is to test whether a model can recognize a symbol manipulating rule and execute it correctly, and we do not want to couple this with the effects of tokenizers and learned word embeddings. Instead of inserting random digits, we can also insert special characters such as ., !, and / following Brown et al. [8]. As shown in in Figure 19, this choice leads to a large variance in accuracy, again motivating us to rely more on NLL evaluations.

Figure 19. Symbol removal accuracy with respect to the number of demonstrations depending on the formatting choice. 1.2B N=1N = 1, 2, 4 models trained on 32B tokens are used. Vertical dotted lines show median sleep boundaries, and the shaded areas around them represent the 1st–99th percentile range.

Cyclic rotation

Input: a p t
Output: a p t
Input: r s y e a
Output: y e a r s
Input: f a c e s u r
Output: s u r f a c e
Input: l e s c y c
Output:

Expected answer is c y c l e s. Every demonstration in this sequence rotates right by three letters. Unlike Brown et al. [8], we insert spacing between each character. Each sequence randomly samples the shift and shares it across demonstrations so the model can infer the shift from demonstrations.

HELMET-ICL

Here, we take three tasks from the widely used (Abdin et al. [1]; Kimi Team et al. [36]; Zeng et al. [91]) ICL subset of HELMET dataset (Yen et al. [90]): TREC-coarse, TREC-fine (Li & Roth (2002)), and NLU (Liu et al. [46]). These are text classification tasks with 6, 50, 68 labels respectively for TREC-coarse, TREC-fine, and NLU. An example demonstration of TREC-coarse:

What are some tips for building a fire in a fireplace ?
label: 4

How many Canadians emmigrate each year ?
label: 3

What do the letters CE stand for on so many products , particularly electrical , purchased now ? label: 5

Why do movie and TV stars get paid so much ? label: 2

What building are British monarchs crowned in ? label: 1

Name the creator of ‘‘ The Muppets ’’ . label: 0

How far is it from Denver to Aspen ? label: 3

Demonstrations like this are presented to the model multiple times so the model can infer the classification rule.

SST-2 nonsemantic

Input: seagal ran out of movies years ago , and this is just the proof . Output: foo Input: like the rugrats movies , the wild thornberrys movie does n’t offer much more than the series , but its emphasis on caring for animals and respecting other cultures is particularly welcome . Output: bar Input: this is cruel , misanthropic stuff with only weak claims to surrealism and black comedy . Output:

Expected answer is foo. Here, the model has to infer that foo means negative, and bar means positive. This task is introduced in Wei et al. [85] to decouple the model’s in-context adaptation ability from learned semantic prior.

References

  1. [1]Abdin, M., Aneja, J., Behl, H., Bubeck, S., Eldan, R., Gunasekar, S., Harrison, M., Hewett, R. J., Javaheripi, M., Kauffmann, P., et al. Phi-4 technical report. arXiv preprint arXiv:2412.08905, 2024.arxiv.org/abs/2412.08905
  2. [2]Ainslie, J., Lee-Thorp, J., De Jong, M., Zemlyanskiy, Y., Lebrón, F., and Shanghai, S. Gqa: Training generalized multi-query transformer models from multi-head checkpoints. In Proceedings of the 2023 conference on empirical methods in natural language processing, pp. 4895–4901, 2023.
  3. [3]Allal, L. B., Lozhkov, A., Bakouch, E., Bláquez, G. M., Penedo, G., Tunstall, L., Marafoti, A., Kydlíček, H., Lajarín, A. P., Srivastav, V., et al. Smollm2: When smol goes big–data-centric training of a small language model. arXiv preprint arXiv:2502.02737, 2025.
  4. [4]Bae, S., Kim, Y., Bayat, R., Kim, S., Ha, J., Schuster, T., Fisch, A., Harutyunyan, H., Ji, Z., Courville, A., et al. Mixture-of-recursions: Learning dynamic recursive depths for adaptive token-level computation. Advances in Neural Information Processing Systems, 38:96572–96617, 2026.
  5. [5]Bansal, A., Schwarzschild, A., Borgnia, E., Emam, Z., Huang, F., Goldblum, M., and Goldstein, T. End-to-end algorithm synthesis with recurrent networks: Extrapolation without overthinking. Advances in Neural Information Processing Systems, 35:20232–20242, 2022.
  6. [7]Brandon, W., Mishra, M., Nrusimha, A., Panda, R., and Ragan-Kelley, J. Reducing transformer key-value cache size with cross-layer attention. Advances in Neural Information Processing Systems, 37:86927–86957, 2024.arxiv.org/abs/2405.12981
  7. [8]Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.arxiv.org/abs/2005.14165
  8. [9]Brysbaert, M., Stevens, M., Mandera, P., and Keuleers, E. How many words do we know? practical estimates of vocabulary size dependent on word definition, the degree of language input and the participant’s age. Frontiers in psychology, 7:1116, 2016.
  9. [10]Cai, Z., Zhu, X., Dong, Y., He, Y., and Arora, S. T^2mlr: Transformer with temporal middle-layer recurrence. arXiv preprint arXiv:2607.15178, 2026.arxiv.org/abs/2607.15178
  10. [12]Chollet, F. On the measure of intelligence. arXiv preprint arXiv:1911.01547, 2019.arxiv.org/abs/1911.01547
  11. [13]Chowdhery, A., Narang, S., Devlin, J., Bosma, M., Mishra, G., Roberts, A., Barham, P., Chung, H. W., Sutton, C., Gehrmann, S., et al. Palm: Scaling language modeling with pathways. Journal of machine learning research, 24 (240):1–113, 2023.arxiv.org/abs/2204.02311
  12. [14]Crick, F. and Mitchison, G. The function of dream sleep. Nature, 304(5922):111–114, 1983.pubmed.ncbi.nlm.nih.gov/6866101
  13. [15]Dehghani, M., Gouws, S., Vinyals, O., Uszkoreit, J., and Kaiser, Ł. Universal transformers. arXiv preprint arXiv:1807.03819, 2018.arxiv.org/abs/1807.03819
  14. [17]Duan, Y., Schulman, J., Chen, X., Bartlett, P. L., Sutskever, I., and Abbeel, P. RL^2: Fast reinforcement learning via slow reinforcement learning. arXiv preprint arXiv:1611.02779, 2016.
  15. [18]Elbayad, M., Gu, J., Grave, E., and Auli, M. Depth-adaptive transformer. arXiv preprint arXiv:1910.10073, 2019.arxiv.org/abs/1910.10073
  16. [19]Eyuboglu, S., Ehrlich, R., Arora, S., Guha, N., Zinsley, D., Liu, E., Rudra, A., Zou, J. Y., Mirhoseini, A., and Re, C. Cartiridges: Lightweight and general-purpose long context representations via self-study. In International Conference on Learning Representations, volume 2026, pp. 42642–42687, 2026.arxiv.org/abs/2506.06266
  17. [20]Finn, C., Abbeel, P., and Levine, S. Model-agnostic meta-learning for fast adaptation of deep networks. In International conference on machine learning, pp. 1126–1135. PMLR, 2017.arxiv.org/abs/1703.03400
  18. [21]Gadre, S. Y., Smyrnis, G., Shankar, V., Gururangan, S., Wortsman, M., Shao, R., Mercat, J., Fang, A., Li, J., Keh, S., et al. Language models scale reliably with over-training and on downstream tasks. In International Conference on Learning Representations, volume 2025, pp. 67661–67682, 2025. 6arxiv.org/abs/2403.08540
  19. [22]Gao, T., Wettig, A., Yen, H., and Chen, D. How to train long-context language models (effectively). In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 7376–7392, 2025. 6
  20. [23]Geiping, J., McLeish, S., Jain, N., Kirchenbauer, J., Singh, S., Bartoldson, B., Kailkhura, B., Bhatele, A., and Goldstein, T. Scaling up test-time compute with latent reasoning: A recurrent depth approach. Advances in Neural Information Processing Systems, 38:41340–41391, 2026. 3, 17arxiv.org/abs/2502.05171
  21. [24]Graves, A. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016. 3arxiv.org/abs/1603.08983
  22. [26]Hafner, D., Lillicrap, T., Ba, J., and Norouzi, M. Dream to control: Learning behaviors by latent imagination. arXiv preprint arXiv:1912.01603, 2019. 3
  23. [27]Heineman, D., Hofmann, V., Magnusson, I., Gu, Y., Smith, N., Hajishirzi, H., Lo, K., and Dodge, J. Signal and noise: A framework for reducing uncertainty in language model development. Advances in Neural Information Processing Systems, 38:17073–17114, 2026. 6
  24. [28]Hendel, R., Geva, M., and Globerson, A. In-context learning creates task vectors. In Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 9318–9333, 2023. 3
  25. [29]Hinton, G. E., Dayan, P., Frey, B. J., and Neal, R. M. The "wake-sleep" algorithm for unsupervised neural networks. Science, 268(5214):1158–1161, 1995. 3
  26. [30]Hochreiter, S., Younger, A. S., and Conwell, P. R. Learning to learn using gradient descent. In International conference on artificial neural networks, pp. 87–94. Springer, 2001. 18
  27. [31]Huang, B., Shi, C., Chen, J., Wen, S., Liu, Z., Xing, E., and Ma, X. Towards looped models done right, part i: Topology, input injection, recurrent-state design. arXiv preprint arXiv:2610.23036, 2026a. 3
  28. [32]Huang, Z., He, X., Ren, L., Wang, Y., Peng, B., Cheng, H., Wang, S., He, P., Gao, J., Lee, Y. J., et al. Latent recurrent transformer: Architecture exploration, training strategies, and scaling behavior. arXiv preprint arXiv:2605.26797, 2026b. 4
  29. [33]Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and Amodei, D. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. 1, 3arxiv.org/abs/2001.08361
  30. [34]Kazemnejad, A., Padhi, I., Natesan Ramamurthy, K., Das, P., and Reddy, S. The impact of positional encoding on length generalization in transformers. Advances in Neural Information Processing Systems, 36:24892–24928, 2023. 16
  31. [35]Kim, K., Kotha, S., Liang, P., and Hashimoto, T. Pre-training under infinite compute. In International Conference on Learning Representations, volume 2026, pp. 74596–74636, 2026. 3, 4arxiv.org/abs/2509.14786
  32. [36]Kimi Team, Zhang, Y., Lin, Z., Yao, X., Hu, J., Meng, F., Liu, C., Men, X., Yang, S., Li, Z., et al. Kimi linear: An expressive, efficient attention architecture. arXiv preprint arXiv:2510.26692, 2025. 7, 25
  33. [37]Kimi Team, Bai, T., Bai, Y., Bao, Y., Cai, J., Cai, X., Cao, P., Cao, Y., Chai, Z., Charles, Y., et al. Kimi k3: Open frontier intelligence. arXiv preprint arXiv:2607.24653, 2026a. 2
  34. [38]Kimi Team, Chen, G., Zhang, Y., Su, J., Xu, W., Pan, S., Wang, Y., Wang, Y., Chen, G., Yin, B., et al. Attention residuals. arXiv preprint arXiv:2603.15031, 2026b. 5, 16
  35. [39]Kirsch, L., Harrison, J., Sohl-Dickstein, J., and Metz, L. General-purpose in-context learning by meta-learning transformers. arXiv preprint arXiv:2212.04458, 2022. 18arxiv.org/abs/2212.04458
  36. [40]Lee, S., McLeish, S., Goldstein, T., and Fanti, G. Do language models need sleep? offline recurrence for improved online inference. arXiv preprint arXiv:2605.26099, 2026. 2, 3, 4, 5
  37. [43]Lin, K., Snell, C., Wang, Y., Packer, C., Wooders, S., Stoica, I., and Gonzalez, J. E. Sleep-time compute: Beyond inference scaling at test-time. arXiv preprint arXiv:2504.13171, 2025. 3arxiv.org/abs/2504.13171
  38. [44]Liu, J., Su, J., Yao, X., Jiang, Z., Lai, G., Du, Y., Qin, Y., Xu, W., Lu, E., Yan, J., et al. Muon is scalable for llm training. arXiv preprint arXiv:2502.16982, 2025. 6arxiv.org/abs/2502.16982
  39. [45]Liu, K., Mang, Q., Peng, B., Chai, W., Li, H., Pimpalgaonkar, S., Zettlemoyer, L., Dimakis, A., and Cheung, A. When agents slow down: Understanding llm agents’ test-time strategies via elo-per-token analysis. arXiv preprint arXiv:2609.15309, 2026.arxiv.org/abs/2609.15309
  40. [46]Liu, X., Eshghi, A., Swietojanski, P., and Rieser, V. Benchmarking natural language understanding services for building conversational agents. In Increasing naturalness and flexibility in spoken dialogue interaction: 10th international workshop on spoken dialogue systems, pp. 165–183. Springer, 2021.arxiv.org/abs/1903.05566
  41. [47]Lovelace, J., Belardi, C., Kundurthy, S., Sudhakar, S., and Weinberger, K. Q. Prescriptive scaling laws for data constrained training. arXiv preprint arXiv:2605.01640, 2026.arxiv.org/abs/2605.01640
  42. [48]Mandal, B., Berman, S., Vegesna, A., and Dahal, S. q0: Primitives for hyper-epoch pretraining. arXiv preprint arXiv:2606.03938, 2026.arxiv.org/abs/2606.03938
  43. [50]McClelland, J. L., McNaughton, B. L., and O’Reilly, R. C. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review, 102(3):419, 1995.
  44. [51]McLeish, S., Li, A., Kirchenbauer, J., Kalra, D. S., Bartoldson, B. R., Kailkhura, B., Schwarzschild, A., Geiping, J., Goldstein, T., and Goldblum, M. Teaching pretrained language models to think deeper with retrofitted recurrence. arXiv preprint arXiv:2511.07384, 2025.arxiv.org/abs/2511.07384
  45. [53]Monea, G., Godey, N., Brantley, K., and Artzi, Y. The state-prediction separation hypothesis. arXiv preprint arXiv:2607.01218, 2026.arxiv.org/abs/2607.01218
  46. [54]Muennighoff, N., Rush, A., Barak, B., Le Scao, T., Tazi, N., Piktus, A., Pyysalo, S., Wolf, T., and Raffel, C. Scaling data-constrained language models. Advances in Neural Information Processing Systems, 36:50358–50376, 2023.arxiv.org/abs/2305.16264
  47. [55]Olsson, C., Elhage, N., Nanda, N., Joseph, N., DasSarma, N., Henighan, T., Mann, B., Askell, A., Bai, Y., Chen, A., et al. In-context learning and induction heads. arXiv preprint arXiv:2209.11895, 2022.arxiv.org/abs/2209.11895
  48. [56]Oomerjee, A., Fountas, Z., Bou Ammar, H., and Wang, J. Bottlenecked transformers: Periodic kv cache consolidation for generalised reasoning. In International Conference on Learning Representations, volume 2026, pp. 43350–43368, 2026.arxiv.org/abs/2505.16950
  49. [57]OpenAI. OpenAI DevDay 2025. https://openai.com/devday/2025/, October 2025. Event held October 6, 2025.
  50. [58]OpenAI. OpenAI raises $122 billion to accelerate the next phase of AI. https://openai.com/index/accelerating-the-next-phase-ai/, March 2026. Published March 31, 2026.
  51. [59]Peng, B., Quesnelle, J., Fan, H., and Shippole, E. Yarn: Efficient context window extension of large language models. In International Conference on Learning Representations, volume 2024, pp. 31932–31951, 2024.arxiv.org/abs/2309.00071
  52. [60]Prairie, H., Novack, Z., Berg-Kirkpatrick, T., and Fu, D. Y. Parcae: Scaling laws for stable looped language models. arXiv preprint arXiv:2604.12946, 2026.arxiv.org/abs/2604.12946
  53. [61]Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
  54. [62]Rasch, B. and Born, J. About sleep’s role in memory. Physiological reviews, 2013.DOI
  55. [63]Reddy, S., Chen, D., and Manning, C. D. Coqa: A conversational question answering challenge. Transactions of the Association for Computational Linguistics, 7:249–266, 2019.arxiv.org/abs/1808.07042
  56. [64]Sanford, C., Hsu, D., and Telgarsky, M. Transformers, parallel computation, and logarithmic depth. arXiv preprint arXiv:2402.09268, 2024.arxiv.org/abs/2402.09268
  57. [65]Sardana, N., Portes, J., Doubov, S., and Frankle, J. Beyond chinchilla-optimal: Accounting for inference in language model scaling laws. arXiv preprint arXiv:2401.00448, 2023.arxiv.org/abs/2401.00448
  58. [66]Saunshi, N., Dikkala, N., Li, Z., Kumar, S., and J Reddi, S. Reasoning with latent thoughts: On the power of looped transformers. In International Conference on Learning Representations, volume 2025, pp. 14855–14881, 2025.arxiv.org/abs/2502.17416
  59. [67]Schwarzschild, A., Borgnia, E., Gupta, A., Huang, F., Vishkin, U., Goldblum, M., and Goldstein, T. Can you learn an algorithm? generalizing from easy to hard problems with recurrent networks. Advances in Neural Information Processing Systems, 34:6695–6706, 2021.arxiv.org/abs/2106.04537
  60. [68]Schwethelm, K., Rueckert, D., and Kaissis, G. How much is one recurrence worth? iso-depth scaling laws for looped language models. arXiv preprint arXiv:2604.21106, 2026. 3, 17
  61. [69]Sclar, M., Choi, Y., Tsvetkov, Y., and Suhr, A. Quantifying language models’ sensitivity to spurious features in prompt design or: How i learned to start worrying about prompt formatting. In International Conference on Learning Representations, volume 2024, pp. 25055–25083, 2024. 6arxiv.org/abs/2310.11324
  62. [70]Shazeer, N. GLU variants improve transformer. arXiv preprint arXiv:2002.05202, 2020. 16arxiv.org/abs/2002.05202
  63. [71]Su, J. Low-rank attention residuals. arXiv preprint arXiv:2607.09694, 2026. 5, 16arxiv.org/abs/2607.09694
  64. [72]Sun, Y., Dong, L., Zhu, Y., Huang, S., Wang, W., Ma, S., Zhang, Q., Wang, J., and Wei, F. You only cache once: Decoder-decoder architectures for language models. Advances in Neural Information Processing Systems, 37: 7339–7361, 2024. 3arxiv.org/abs/2405.05254
  65. [73]Sutskever, I. Sequence to sequence learning with neural networks: What a decade. NeurIPS 2024 Test of Time Award Talk, December 2024. URL https://www.youtube.com/watch?v=1yBvgrshZJzs. December 13, 2024, Vancouver, Canada. 4
  66. [74]Sutton, R. S. Dyna, an integrated architecture for learning, planning, and reacting. ACM Sigart Bulletin, 2(4):160–163, 1991. 3DOI
  67. [75]Tandon, A., Dalal, K., Li, X., Koceja, D., Rød, M., Buchanan, S., Wang, X., Leskovec, J., Koyejo, S., Hashimoto, T., et al. End-to-end test-time training for long context. arXiv preprint arXiv:2512.23675, 2025. 18, 19arxiv.org/abs/2512.23675
  68. [76]Thinking Machines Lab. Inkling: Our open-weights model. https://thinkingmachines.ai/news/introducing-inkling/, July 2026. Published July 15, 2026. 16
  69. [77]Todd, E., Li, M., Sen Sharma, A., Mueller, A., Wallace, B., and Bau, D. Function vectors in large language models. In International conference on learning representations, volume 2024, pp. 17282–17333, 2024. 3arxiv.org/abs/2310.15213
  70. [78]Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems, 2017. 3arxiv.org/abs/1706.03762
  71. [79]Vendrell, V. C., Masdemont, A. P., Grillo, N., Ros-Giralt, J., Behboodi, A., and Massoli, F. V. Memory-efficient looped transformer: Decoupling compute from memory in looped language models. arXiv preprint arXiv:2605.07721, 2026. 3, 5arxiv.org/abs/2605.07721
  72. [80]Villalobos, P., Ho, A., Sevilla, J., Besiroglu, T., Heim, L., and Hobbhahn, M. Will we run out of data? limits of llm scaling based on human-generated data. arXiv preprint arXiv:2211.04325, 2022. 4arxiv.org/abs/2211.04325
  73. [81]Von Oswald, J., Niklasson, E., Randazzo, E., Sacramento, J., Mordvintsev, A., Zhmoginov, A., and Vladymyrov, M. Transformers learn in-context by gradient descent. In International Conference on Machine Learning, pp. 35151–35174. PMLR, 2023. 3arxiv.org/abs/2212.07677
  74. [82]Wang, J. X., Kurth-Nelson, Z., Tirumala, D., Soyer, H., Leibo, J. Z., Munos, R., Blundell, C., Kumaran, D., and Botvinick, M. Learning to reinforcement learn. arXiv preprint arXiv:1611.05763, 2016. 18arxiv.org/abs/1611.05763
  75. [83]Wang, S., Zhang, G., Luo, K., Wu, Y., Liu, S., Liu, J., Huang, W., Yan, S., and Li, J. Smelt: Scaling laws for compute-matched moe looped transformers. arXiv preprint arXiv:2609.01343, 2026a. 3, 17arxiv.org/abs/2609.01343
  76. [84]Wang, X., Cai, Z., Zhan, Z., Dong, H., Fan, Y., de Rosa, G., Pearce, T., and Langford, J. Full-bandwidth transformer. arXiv preprint arXiv:2608.08888, 2026b. 4arxiv.org/abs/2608.08888
  77. [85]Wei, J., Wei, J., Tay, Y., Tran, D., Webson, A., Lu, Y., Chen, X., Liu, H., Huang, D., Zhou, D., et al. Larger language models do in-context learning differently. arXiv preprint arXiv:2303.03846, 2023. 8, 26arxiv.org/abs/2303.03846
  78. [87]Wu, H. and Tu, K. Layer-condensed kv cache for efficient inference of large language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 11175–11188, 2024. 3arxiv.org/abs/2405.10637
  79. [88]Yang, A., Yang, B.-S., Hui, B., Zheng, B., Yu, B.-W., Zhou, C., Li, C.-P., Li, C.-Y., Liu, D., Huang, F., Dong, G., Wei, H.-R., Lin, H., Tang, J.-L., Wang, J.-L., Yang, J., Tu, J.-H., Zhang, J.-W., Ma, J.-X., Yang, J.-X., Xu, J., Zhou, J.-R., Bai, J.-Z., He, J.-Z., Lin, J.-Y., Dang, K., Lu, K.-M., Chen, K.-Y., Yang, K., Li, M., Xue, M., Ni, N., Zhang, P., Wang, P., Peng, R., Men, R., Gao, R.-Z., Lin, R.-J., Wang, S.-J., Bai, S., Tan, S.-N., Zhu, T., Li, T.-H., Liu, T., Ge, W.-B., Deng, X., Zhou, X.-H., Ren, X.-Z., Zhang, X., Wei, X., Ren, X., Liu, X.-J., Fan, Y., Yao, Y., Zhang, Y.-C., Wan, Y., Chu, Y.-F., Liu, Y.-Q., Cui, Z., Zhang, Z.-R., Guo, Z.-F., and Fan, Z.-W. Qwen2 technical report. arXiv, abs/2407.10671, 2024. URL https://api.semanticscholar.org/CorpusID:271212307.arxiv.org/abs/2407.10671
  80. [89]Yang, S., Kautz, J., and Hatamizadeh, A. Gated delta networks: Improving mamba2 with delta rule. In International Conference on Learning Representations, volume 2025, pp. 29687–29707, 2025. 16arxiv.org/abs/2412.06464
  81. [90]Yen, H., Gao, T., Hou, M., Ding, K., Fleischer, D., Izsak, P., Wasserblat, M., and Chen, D. Helmet: How to evaluate long-context models effectively and thoroughly. In International Conference on Learning Representations, volume 2025, pp. 98914–98965, 2025. 7, 25arxiv.org/abs/2410.02694
  82. [91]Zeng, A., Lv, X., Hou, Z., Du, Z., Zheng, Q., Chen, B., Yin, D., Ge, C., Huang, C., Xie, C., et al. Glm-5: from vibe coding to agentic engineering. arXiv preprint arXiv:2602.15763, 2026. 7, 25arxiv.org/abs/2602.15763
  83. [92]Zhu, R.-J., Wang, Z., Hua, K., Zhang, T., Li, Z., Que, H., Wei, B., Wen, Z., Yin, F., Xing, H., et al. Scaling latent reasoning via looped language models. arXiv preprint arXiv:2510.25741, 2025. 3arxiv.org/abs/2510.25741

Paper details

vlnc:W_6r57cbk9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents