Manuscript Offprint

arXiv:2611.24576

Late Entry in Looped Language Models

Ziqi Jin, Jiaxi Li, Weiwen Xu, Aixin Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Looped language models deepen reasoning at a compact parameter count by iterating a shared layer stack TT times per token, turning recurrence depth directly into sequential decoding latency. Conventional early-exit decoding halts after initial passes without cache completion, truncating cached key-value states of past tokens to shallow depth. We study the opposite strategy, late entry, where new tokens skip initial passes and enter directly into the final K<TK<T passes over a deep context cache. Once lightweight fine-tuning resolves hidden-state norm mismatch at the entry boundary, deep cached context substitutes for skipped token-local passes, allowing late entry to outperform matched early exit across model families and pass budgets. To turn this asymmetry into wall-clock speedups without stalling to build deep caches, candidate blocks verify through only the final KK passes on the critical path while previously committed tokens complete passes 1→T1\to T alongside subsequent steps at zero extra serial calls. Projecting these finished TT-pass wake states inside the existing output GEMM (Wake verification, governed by logit-margin tolerance τ∈[0,∞]\tau\in[0,\infty]) unifies greedy-exact TT-pass decoding (τ=0\tau=0, matching K=TK=T block decoding within bf16 reduction order), margin-gated verification (τ>0\tau>0), and non-rollback lossy late entry (τ=∞\tau=\infty) inside a single static CUDA graph. On Ouro-2.6B (T=4T=4), K=2K=2 Wake reaches 5.2×\times greedy-exact speedup at τ=0\tau=0 (+26% over K=4K=4 block decoding on GSM8K) and 6.8×\times at τ=∞\tau=\infty (+16.9 points over trained early exit at matched speed). Scaling test-time recurrence across T∈{8,16,32,64}T\in\{8,16,32,64\} on Huginn-3.5B cuts K=T/4K=T/4 rollbacks 21.5×\times with depth, driving greedy-exact (τ=0\tau=0) speedups to 6.1×\times (T=32T=32) and 8.4×\times (T=64T=64, +153% over K=64K=64 block) and τ=∞\tau=\infty speedups to 10.6 to 12.5×\times.

Project: xalp.net/late-entry ⋅\cdot Code: github.com/Xalp/LateComer ⋅\cdot Models: hf.co/Xalphinions

Figure 1: Early exit vs. late entry in looped language models. (a) Full depth ( ): runs all T=4T=4 passes. (b) Early exit ( ): halts after pass 11, truncating context KV caches to shallow depth. (c) Late entry ( ): skips passes 11 to 33 on the new token (clips) and enters pass 44 over a full-depth context cache completed in parallel (Section 3). (d) Unified Wake and late-entry frontier (GSM8K, B=8B=8, single H100): reusing completed TT-pass wake states lifts throughput beyond the K=TK=T block baseline with greedy-exact fidelity at τ=0\tau=0 (5.2×\times, +26% on Ouro-2.6B; 6.1 to 8.4×\times, +82% to +153% on Huginn-3.5B across T=32→64T=32\to 64) and reaches 6.8×\times and 10.6×\times (12.5×\times on MBPP) at τ=∞\tau=\infty.

1 Introduction

Looped language models scale test-time compute without increasing model size by passing each token repeatedly through a shared Transformer stack for TT recurrent passes (Dehghani et al., 2019; Geiping et al., 2025; Zhu et al., 2025). During autoregressive decoding, however, running all TT passes per generated token turns recurrence depth directly into sequential latency. When each new token is restricted to K<TK<T serial passes, which passes should it execute? As shown in Figure 1, conventional early exit without cache completion (Schuster et al., 2022) runs the first KK passes and halts (Figure 1b), leaving past key-value (KV) caches truncated at shallow depth KK so all future tokens attend to immature context states. We explore the opposite choice, late entry, which skips initial passes and feeds each new token’s embedding directly into the final KK passes over a deep context KV cache (Figure 1c).

At first glance, skipping initial passes seems destined to fail: on off-the-shelf Ouro-1.4B and Ouro-2.6B (T=4T=4) (Zhu et al., 2025), feeding raw embeddings into a late pass breaks predictions immediately because late passes expect normalized hidden states from earlier passes. Once lightweight fine-tuning aligns late passes to accept raw embeddings, however, a clear asymmetry emerges between token depth and context depth: one final pass over a four-pass context matches full-depth predictions more closely than two initial passes over a two-pass context (+10++10+ accuracy points in sequential decoding). Under identical training data, hyperparameters, and steps, spending KK serial passes at the end of the recurrence consistently outperforms spending them at the beginning across both Ouro scales (T=4T=4; Section 2) and 3232-pass middle-recurrent Huginn-3.5B (T=32T=32; Section 4.4), showing that deep cached context retains much of the benefit of recurrent depth.

Turning this finding into wall-clock speedups requires building deep context states without stalling generation. In late-entry block decoding paired with Wake verification (Section 3), parameter-free candidate blocks (Liu et al., 2026a; Jin et al., 2026) execute only the final KK passes on the critical path to emit a tentatively accepted frontier and provisional KV states, while earlier tentative tokens complete true passes 11 through TT as piggybacked batch rows at zero extra serial calls (using spare per-call batch capacity in memory-bound decoding rather than reducing FLOPs). Because that wake finishes exact causal TT-pass states L=⌈T/K⌉L=\lceil T/K\rceil steps later, projecting them inside the same output GEMM (Wake verification, Section 3.4) promotes matching tokens into a permanently verified TT-pass prefix and rolls back rare mismatches, unifying greedy-exact (τ=0\tau=0), margin-gated (0<τ<∞0<\tau<\infty), and lossy (τ=∞\tau=\infty) decoding in one CUDA graph.

Key Takeaway In looped language models, deep cached context substitutes for token-local early passes. Whereas existing looped speculative decoders (Ha and Kim, 2026; Cho et al., 2026; Li et al., 2026; Liu et al., 2026c) accelerate drafting via shallow initial passes while keeping full TT-pass verification on every accepted token, Late Entry + Wake Verification compresses critical-path verification itself to the final K<TK<T passes over a pipelined full-depth cache and reuses completed 1→T1\to T wake states in the same output GEMM to preserve TT-pass greedy equivalence (τ=0\tau=0) or trade controlled margin tolerance (τ>0\tau>0) for higher throughput.

Our study is organized around three concrete contributions:

  • Pass-allocation asymmetry and error localization. Across Ouro-1.4B, Ouro-2.6B (T=4T=4), and Huginn-3.5B (T=32T=32), adapted late entry consistently outperforms matched early exit; fp32 interventions trace this gain to pass-coherent context (K,V)(K,V) pairs and show that K<TK<T discrepancies concentrate inside the 6%6\% uncertain tail (Section 2).
  • Unified Late Entry + Wake Verification pipeline. We pair KK-pass critical-path block verification with cross-step 1→T1\to T cache completion and same-GEMM Wake verification, proving exact TT-pass greedy equivalence and finite-step termination at τ=0\tau=0 while spanning margin-gated (τ>0\tau>0) and lossy (τ=∞\tau=\infty) regimes in one engine (Proposition 1; Sections 3 and 3.4).
  • Scaling across benchmarks, recurrence depths, and hardware load. Across 21,40321{,}403 examples on Ouro-2.6B (T=4T=4) and T∈{8,16,32,64}T\in\{8,16,32,64\} (36→26036\to 260 effective layers) on Huginn-3.5B, Wake verification delivers 5.2×\times to 8.4×\times greedy-exact (τ=0\tau=0) speedups and up to 12.5×\times lossy (τ=∞\tau=\infty) speedups as K=T/4K=T/4 rollbacks drop 21.5×21.5\times with depth, while an LpL_{p} Roofline law calibrated strictly on K=4K=4 predicts unseen K<4K<4 multi-request throughput across C∈[1,32]C\in[1,32] at 8.3% MAPE (Sections 4 and 4.7).

References (30)