Looped Models are Fast Multi-Token Predictors: Floodgates
Summary (Overview)
- Floodgates is a novel self-speculative decoding method for looped language models that achieves up to 7.5× acceleration over autoregressive decoding, outperforming all prior lossless decoding methods.
- The method adapts a single loop iteration via low-rank adapters (LoRA) to draft multiple future tokens in parallel from mask tokens, while attending to the deep prefix cache (final-loop key-value cache) computed during verification.
- Floodgates leverages two key insights: (1) all-depth training of looped models makes shallow loops predictive of several future tokens, and (2) conditioning on the deep prefix cache allows the shallow drafter to access full-depth computation "for free."
- The method includes elastic drafting, which uses additional passes of the pretrained loop to refine drafts on deep models (32+ loops), and an adaptive verification budget for high-throughput batched serving.
- Evaluated across 7 looped models and 5 benchmarks (GSM8K, MATH-500, HumanEval+, MBPP+, BBH), Floodgates is the fastest lossless method in most settings under both greedy and sampled decoding.
Introduction and Theoretical Foundation
Background: The Autoregressive Bottleneck
Autoregressive (AR) transformer language models generate text sequentially, where each token's hidden state must attend to all previous tokens' hidden states. This creates a serialized bottleneck in generation speed. However, due to local regularities in natural language, many upcoming tokens are predictable, which speculative decoding exploits.
The Drafter Capacity Problem
Standard speculative decoding uses a fast drafter (either a separate small network or a subset of layers) to propose tokens that the full model verifies. However, these drafters suffer from a fundamental limitation:
"The drafters are usually prevented from using the full knowledge encoded in all layers of the model, leading to a limited verification rate of their drafts."
Looped Language Models as a Solution
Looped language models process each token through a shared block of layers repeatedly:
where is the hidden state at loop , and denotes the context (keys and values) at loop . The deep prefix cache represents the model's full-depth representation of all earlier tokens.
Key Theoretical Insights
- All-depth supervision: Looped models are trained with losses at every loop depth:
This pressures each future token to be predicted as early as possible, encouraging shallow hidden states to carry information about future tokens.
- Deep prefix cache access: The shallow drafter can attend to the final-loop cache (computed during verification) "for free," providing full-depth context representations without additional computation.
Methodology
Drafting Mechanism
Floodgates appends mask tokens (learnable vectors ) after the current token and runs the shared block once over all slots in parallel:
The draft distributions are read out with the output head .
Training Objective
The drafter is trained with a cross-entropy objective applied tokens ahead:
where:
- comes from the model's own generations
- (exponentially decaying weights prioritizing earlier positions)
- are low-rank adapters (LoRA) active only during drafting
- The base model weights and output head remain frozen (ensuring lossless decoding)
Elastic Drafting
For deep models (32+ loops), Floodgates refines drafts through iterative passes:
Each pass costs only effective loops per position. The number of elastic passes is a hyperparameter selected on held-out problems.
Adaptive Verification Budget (Batched Serving)
For concurrent serving, Floodgates selects the optimal number of drafts to verify:
where estimates acceptance probability for slot of sequence .
Empirical Validation / Results
Main Results (Batch Size One)
Table 1: Speedup over plain decoding on A100 (greedy decoding)
| Model | Method | GSM8K | MATH-500 | HumanEval+ | MBPP+ | BBH |
|---|---|---|---|---|---|---|
| Ouro 1.4B | Floodgates | 5.04× | 4.69× | 4.83× | 3.01× | 4.40× |
| LoopSpec | 2.77× | 2.81× | 3.10× | 2.83× | 2.86× | |
| DAS | 1.91× | 2.07× | 2.59× | 2.06× | 2.16× | |
| Ouro 2.6B | Floodgates | 5.56× | 6.04× | 5.57× | 3.39× | 5.07× |
| LoopSpec | 3.06× | 3.10× | 3.33× | 3.09× | 3.10× | |
| Recurrent Llama 3.2 | Floodgates | 5.04× | 6.97× | 6.91× | 5.84× | 6.62× |
| LoopSpec | 4.61× | 6.11× | 6.03× | 5.41× | 5.65× | |
| DAS-Wave | 4.56× | 5.98× | 5.92× | 5.19× | 5.84× | |
| Huginn 3.5B | Floodgates | 4.48× | 6.21× | 6.18× | 5.06× | 5.70× |
| DAS-Wave | 4.23× | 5.38× | 5.45× | 4.57× | 5.20× |
Key findings:
- Floodgates is the fastest lossless method on every model and task under greedy decoding
- On 4-loop Ouro models: accepts 4.6–9.0 tokens/step, decoding 3.0–6.0× faster (no prior method exceeds 3.4×)
- On 32-loop models: accepts 19–29 tokens/step with elastic drafting, reaching 4.5–8.2× speedup
- Under sampling: fastest in 16 of 24 settings (LoopSpec wins on some Recurrent models)
Ablation: All-Depth Supervision and Full-Parameter Sharing
Table 3: Floodgates vs. separate drafters on Ouro 1.4B
| Drafter | Params. | Depth | GSM8K | MATH-500 |
|---|---|---|---|---|
| Separate, 1 layer | 56M | 1% | 2.55× | 2.85× |
| Separate, 4 layers | 210M | 4% | 3.70× | 4.09× |
| Separate, DFlash | 278M | 5% | 4.32× | 4.05× |
| Floodgates | 61M | 25% | 5.48× | 5.54× |
Floodgates uses 4.5× fewer trained parameters than DFlash yet achieves 27% higher speedup, because it leverages all pretrained parameters of the target model.
Ablation: Deep Prefix Cache Conditioning
Table 4: Final-loop cache vs. first-loop cache
| Benchmark | Final loop | First loop |
|---|---|---|
| Recurrent Llama 3.2 | ||
| GSM8K | 4.93× (5.9) | 4.35× (5.2) |
| MATH-500 | 6.47× (7.8) | 5.89× (7.1) |
| Ouro 1.4B | ||
| GSM8K | 5.04× (7.5) | 4.42× (6.6) |
| MATH-500 | 4.69× (7.0) | 4.05× (6.1) |
The deep prefix cache provides 10–32% faster decoding across benchmarks.
Elastic Drafting Across Verifier Depths
- On shallow verifiers (4–16 loops): single-pass drafting () is fastest
- On deep verifiers (32–64 loops): speedup peaks at 16–24 elastic passes
- Floodgates outperforms DAS-Wave by 63–89% at 4 passes, 37–49% at 8 passes
High-Throughput Batched Serving
- On Ouro 1.4B: 2.1× plain decoding throughput at largest batch (5,805 tokens/s)
- On Ouro 2.6B: 2.7× plain decoding throughput (2,827 tokens/s)
- Adaptive verification budget improves throughput by 19% (Ouro 1.4B) and 54% (Recurrent Llama 3.2) at largest batch sizes
Theoretical and Practical Implications
Theoretical Implications
-
All-depth training creates multi-token predictive states: The paper demonstrates that supervising every loop depth encourages shallow hidden states to encode information about future tokens, not just the immediate next token.
-
Deep prefix cache enables full-depth computation access: A single shallow loop can leverage the model's complete computation by attending to the final-loop cache, effectively decoupling drafting cost from parameter access.
-
Looped models resolve the drafter capacity tradeoff: In dense models, drafters must choose between speed (few parameters) and accuracy (many parameters). Looped models break this tradeoff by reducing computation (fewer loops) while keeping all parameters.
Practical Implications
-
Lossless acceleration: Floodgates preserves the exact output distribution of the target model, making it safe for production deployment.
-
Memory efficiency: Unlike pipelined methods (LoopSpec, WaveFront) that require multiple per-depth prefix caches, Floodgates reads only the final-loop cache once per step, making it suitable for concurrent serving.
-
Minimal training overhead: Only low-rank adapters (61M params vs. 278M for DFlash) are trained, with the base model frozen.
-
Compatibility with cross-loop cache sharing: Floodgates can be combined with shared-cache techniques, scaling batch sizes from 16 to 320 on Huginn 3.5B.
Conclusion
Floodgates demonstrates that looped language models are naturally suited for fast multi-token generation once their shallow loops are trained to look ahead. The key contributions are:
- A simple self-speculative decoding framework that adapts a single loop via low-rank adapters to draft multiple tokens in parallel
- Elastic drafting for deep models that optimizes the cost-acceptance tradeoff
- Adaptive verification budgets for high-throughput batched serving
The findings suggest that all-depth training and deep prefix conditioning are essential for effective multi-token drafting, and that looped architectures may be a promising direction for building faster inference systems without sacrificing model quality.
Future directions could include:
- Extending Floodgates to other looped architectures
- Exploring adaptive elastic drafting budgets during decoding
- Investigating whether all-depth supervision could be improved to further enhance multi-token prediction at shallow depths
Related papers
- CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies
Distilling a long-horizon policy from teacher actions alone, without chain-of-thought, transfers successfully via an empty reasoning block plus KL replay regularization, enabling closed-teacher distillation.
- You don't need long context
Compaction and selective input reading let frontier models match full-context accuracy on long-context benchmarks while cutting context length and cost by up to 233x.
- When Every Rollout Fails: Splicing Learner-Conditioned Options into Long-Horizon Agent RL
SPLICE recovers learning signal from all-fail RL groups by splicing local proposal-model options into failed trajectories, beating GRPO by up to 9.8 points with 17.5% less computation.