TL;DR
"Late Entry" is a novel decoding strategy for looped language models that skips initial processing passes for new tokens, entering directly into the final layers. By attending to a fully-computed "deep" context cache, these models achieve up to 8.4× speedups with exact greedy equivalence and over 12× speedups in lossy modes, significantly outperforming traditional early-exit methods.
What Problem Does This Paper Address?
Looped language models (like Ouroboros or Huginn) achieve high reasoning capabilities with a small parameter footprint by passing each token through the same stack of Transformer layers multiple times ($T$ passes). However, this recurrence depth translates directly into sequential decoding latency: more passes mean slower generation.
The standard way to speed this up is early exit, where the model stops after $K < T$ passes. The fatal flaw of early exit is that it leaves the Key-Value (KV) cache "shallow." Future tokens then attend to immature, partially-processed context, leading to a rapid decline in accuracy. The authors ask: if we only have a budget of $K$ passes per token, is it better to run the first $K$ passes or the last $K$ passes?
Methods
The authors propose Late Entry, the inverse of early exit. Instead of running the first few passes and stopping, new tokens skip the initial passes and enter the loop at pass $T-K+1$, attending to a "deep" context cache that has already completed all $T$ passes.
The system relies on two key components:
- Lightweight Fine-tuning (Stage-2 SFT): Raw token embeddings have much smaller norms than the hidden states emitted by middle layers. A brief fine-tuning stage aligns the late-entry passes to accept raw embeddings directly.
- Wake Verification Pipeline: To ensure accuracy, the system uses a pipelined approach. While a new token is "tentatively" accepted after just $K$ passes, its full $T$-pass state is computed in the background ("the wake") during subsequent decoding steps. If the "wake" state reveals that the $K$-pass guess was wrong, the model rolls back and corrects it.
Because modern GPUs are often memory-bandwidth bound during decoding, these background "wake" passes can often be computed at near-zero extra wall-clock cost by "piggybacking" on the memory reads required for the next token's critical path.
Datasets
The authors evaluated their approach across six diverse benchmarks:
- GSM8K: Grade school math word problems.
- IFEval: Instruction following evaluation.
- MATH500: Competition-level math problems.
- MBPP: Python programming tasks.
- BBH: Big-Bench Hard reasoning tasks.
- MMLU-Pro: A more robust version of the Massive Multitask Language Understanding benchmark.
Testing was performed on the Ouro-1.4B/2.6B ($T=4$) and Huginn-3.5B ($T=32$ to $64$) model families.
Key Insights and Ideas
- Context Depth > Token Depth: The most striking finding is an asymmetry in processing. A single pass over a "deep" (4-pass) context cache is more accurate than two passes over a "shallow" (2-pass) context. Deep context effectively "substitutes" for missing local computation.
- Error Localization: Discrepancies between $K$-pass late entry and full $T$-pass decoding are not random. They are heavily concentrated in the "uncertain tail"—the roughly 6% of tokens where the model has low confidence. For the other 94% of tokens, late entry is virtually indistinguishable from full-depth processing.
- The "Wake" is Free: On high-end hardware like the NVIDIA H100, forwarding 32 parallel tokens takes only ~9% longer than forwarding a single token. This "spare" capacity allows the model to verify previous tokens in the background without slowing down the generation of the current one.
Key Results
- Greedy-Exact Speedups: On Ouro-2.6B ($T=4$), using $K=2$ with Wake verification achieves a 5.2× speedup while remaining bit-for-bit identical to standard decoding.
- Scaling with Depth: On the deeper Huginn-3.5B ($T=64$), the speedup reaches 8.4× for exact decoding.
- Lossy Frontiers: If perfect exactness isn't required ($\tau = \infty$), speedups climb to 6.8× on Ouro and 10.6×–12.5× on Huginn, significantly outperforming trained early-exit baselines at matched speeds.
- Efficiency: The method reduces rollbacks by 21.5× compared to standard block decoding as model depth increases.
Limitations and Future Work
- Fine-tuning Required: Late entry isn't "plug-and-play" for off-the-shelf models; it requires a one-time Stage-2 fine-tuning to handle the embedding-to-middle-layer transition.
- Greedy Focus: The current Wake verification logic is optimized for greedy decoding. Extending this to stochastic sampling (e.g., via speculative rejection sampling) is identified as future work.
- Shallow Recurrence: At very low $T$ (e.g., $T=8$), rollback rates are higher, though they "collapse" toward zero as $T$ increases, making this technique most effective for very deep looped models.
Summary updated