LoopSkim: Lossless Multi-Depth Speculative Decoding for Looped Language Models

Muhan Xiao, Shijian LiarXiv 2026 · arXiv

TL;DR

LoopSkim is a novel speculative decoding method designed specifically for "looped" language models (like Ouro and Raven) that reuse weight-shared blocks. By using the model's internal recurrent loops as intermediate verifiers, LoopSkim catches incorrect draft tokens early, nearly doubling the speedup of previous state-of-the-art methods while remaining mathematically lossless.

What Problem Does This Paper Address?

Looped Language Models (looped LMs) are an emerging architecture where a single transformer block is applied multiple times (loops) to each token. This allows a small model (e.g., 2.6B parameters) to match the reasoning capabilities of much larger models (e.g., 12B parameters) by simply "thinking longer" (running more loops).

However, this depth comes at a cost: latency. Standard autoregressive decoding is slow because every single loop must finish for one token before the next one can even begin.

Existing solutions like speculative decoding try to hide this latency by using a small "drafter" model to guess several tokens ahead, which a large "verifier" model then checks in parallel. But in looped LMs, previous methods (like LoopSpec) typically only verify tokens at the very final loop. If a draft token is wrong, the system doesn't realize it until the end of the pipeline, wasting a massive amount of computation on all the loops that followed the error.

Methods

The authors introduce LoopSkim, which turns the looped LM’s own architecture into a hierarchy of verifiers.

1. Multi-Depth Speculation

Instead of waiting for the final loop ($R$) to verify a token, LoopSkim checks draft tokens at intermediate depths (e.g., after loop 1, 2, 4, 8, etc.).

  • Admission Check: Draft tokens enter the pipeline and are immediately checked after the first few loops.
  • Check and Replace: If an intermediate readout contradicts a draft token, that token is replaced immediately at that specific depth. The pipeline then restarts from the corrected token, preventing the "error" from propagating into deeper, more expensive loops.

2. Lossless Sampling via Fixed Draws

Speculative decoding is easy for greedy search but tricky for stochastic sampling. To ensure the output is identical to standard decoding (lossless), LoopSkim uses Fixed Draws. They pre-determine the random noise (Gumbel noise) for every possible token at every position. This ensures that if a shallow loop and a deep loop have similar probability distributions, they will likely pick the same token, making intermediate checks highly reliable.

3. Drafting Sources

LoopSkim uses two sources for draft tokens:

  • N-gram Chain: A simple, training-free method that looks for repeating patterns in the previous context (similar to Prompt Lookup Decoding).
  • Optional Draft Head: A single, lightweight transformer layer trained to predict the model's own intermediate states, providing a more "intelligent" second chain of guesses.

Datasets

The researchers evaluated LoopSkim across a wide variety of benchmarks:

  • Reasoning & Math: GSM8K, MATH500, BBH, SVAMP, OlympiadBench.
  • Coding: HumanEval+, MBPP+, BigCodeBench.
  • General Knowledge & Language: MMLU-Pro, Spec-Bench, PG-19 (for long context).

The models tested included Ouro (1.4B and 2.6B) and Raven (Llama, OLMo, and TinyLlama variants), with loop counts ranging from 4 to 32.

Key Insights and Ideas

  • Depth is Free Verification: In a looped LM, draft tokens have to pass through every intermediate depth anyway to reach the final layer. LoopSkim realizes that reading out the model's "opinion" at these intermediate steps costs almost nothing extra but provides a massive efficiency gain.
  • Early Exit for Errors: On the Raven-Llama model (32 loops), LoopSkim catches incorrect tokens after an average of only 6.7 loops. This means the system stops wasting work on a bad guess roughly 80% earlier than previous methods.
  • The Power of "Fixed Noise": By fixing the Gumbel noise per position, the authors proved that speculative decoding can be perfectly lossless even with multiple stages of verification and different drafting sources.

Key Results

  • Significant Speedups: Without any training, LoopSkim achieves an average speedup of 1.73× over the previous state-of-the-art (LoopSpec).
  • Draft Head Boost: Adding the optional one-layer draft head pushes the average speedup to 1.99×.
  • Universal Improvement: The method provided a speedup on every single model and task tested, including both greedy decoding and sampling.
  • Hardware Efficiency: On high-end hardware like the NVIDIA H200, LoopSkim reached raw throughputs of over 900 tokens/second on Ouro-1.4B.

Limitations and Future Work

  • Compute vs. Latency: LoopSkim is a "latency-optimized" approach. It achieves faster wall-clock time by running more loops in parallel (4.7× to 7.7× more total loops than standard decoding). While this is great for user experience, it uses more total GPU energy per token.
  • Batch Size Sensitivity: As batch sizes increase, the "spare capacity" of the GPU diminishes. The authors noted that settings (like the number of draft tokens) need to be tuned based on the batch size to maintain optimal performance.
  • Long Contexts: While still faster than baselines, the relative advantage of LoopSkim narrows slightly as the context window grows very large (e.g., 32K tokens), likely due to the increasing overhead of attention mechanisms.
  • Future Integration: The authors suggest that integrating LoopSkim into production-grade inference engines (like vLLM) is a logical next step for the community.

Summary updated

Abstract

Looped language models such as Ouro and Raven apply one weight-shared block several times per token, so autoregressive decoding (AR) runs every loop of every token in sequence. Pipelined self-speculative decoders overlap these loops by drafting tokens from shallow readouts and verifying them at full depth. Yet every loop of a looped LM ends in a readout of the next token, and draft tokens pass through every depth anyway, so each depth can check them without an extra pass. We introduce LoopSkim, in which the depth of the pipeline is the verifier. Draft tokens copied from the context, as in prompt lookup decoding, enter after the first loops, any later readout that contradicts one replaces it at that depth, and only full-depth readouts commit tokens. LoopSkim fixes the random draws of every position in advance, so each check compares two tokens and decoding stays lossless in exact arithmetic under sampling for any number of checks and draft chains. Without training, its speedup over AR averages 1.73x that of LoopSpec across greedy decoding and sampling, and its checks between the first loops and full depth speed it up on every model. An optional draft head adds a second chain and raises this average to 1.99x.
BibTeX
@misc{xiao2026loopskim,
  author = {Muhan Xiao and Shijian Li},
  title = {{LoopSkim: Lossless Multi-Depth Speculative Decoding for Looped Language Models}},
  year = {2026},
  eprint = {2611.19896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.19896},
}
Figure