← Home

EPFL's Floodgates speeds up AI text generation by up to 7.5× without changing output

Looped language models generate text by running the same block of layers repeatedly — each pass through the block is called a "loop," and increasing the number of loops increases computation without adding new parameters. This is a form of test-time compute: more loops mean more thinking for the same model, without the cost of training a bigger one. But it also means more waiting. For a 32-loop model, producing a single token requires 32 sequential forward passes, and each one must finish before the next token can begin.

On November 25, a team from EPFL, the University of Maryland, and KAIST published "Looped Models are Fast Multi-Token Predictors" on arXiv, introducing Floodgates — a self-speculative decoding method that transforms a shallow loop into a parallel multi-token drafter. Instead of generating one token at a time, Floodgates predicts several future tokens simultaneously, then verifies the entire block in a single forward pass of the full model. The authors report speedups up to 7.5× over standard autoregressive generation, with zero change to the model's output.

How Floodgates works

Floodgates builds on speculative decoding, a technique already used in production systems. Standard speculative decoding works by having a fast "drafter" model propose several tokens, which a slower "verifier" model then checks in parallel. If the tokens match, they are all accepted; if a mismatch occurs, generation stops at the point of disagreement and continues from there.

Self-speculative decoding eliminates the need for a separate drafter by deriving it from the target model itself. For looped models, this is natural: a shallow loop (fewer iterations of the recurrent block) is fast, while a deep loop (more iterations) is thorough. Previous methods like EAGLE and LoopSpec used shallow loops as drafters, but each draft contained only a single token — the loop was fast, but still serial.

Floodgates changes what the shallow loop does. The method appends a configurable block of mask tokens (placeholder positions) to the already-generated prefix. Draft-only low-rank adapters (LoRA) are activated, and a single shallow iteration predicts all masked positions in parallel. The full-depth model then verifies the entire draft in one forward pass, accepting tokens up to the first mismatch.

Because the LoRA adapters are deactivated during verification, the verifier parameters remain unchanged. The output is lossless: bitwise identical to what the model would produce without Floodgates. This property is critical for production deployments where output consistency is a hard requirement — regulatory compliance, code generation, or any application where deterministic behavior must be preserved.

The elastic drafting extension addresses a tension between cost and acceptance. On deep models (e.g., 32-loop configurations), a single loop iteration is cheap but produces a less accurate draft. Floodgates adds additional passes of the pretrained loop to refine the draft — each pass is an "elastic" iteration that improves accuracy at the cost of more time. The researchers found that 24 elastic passes on a 32-loop model yielded 19–29 accepted tokens per step, achieving up to 7.5× speedup, with a peak of 8.2× on one specific configuration.

Results across models and benchmarks

The authors evaluated Floodgates on seven looped models across five benchmarks: GSM8K (math), MATH-500 (math), HumanEval+ (coding), MBPP+ (coding), and BBH (reasoning). Tests were run on NVIDIA A100-80GB GPUs at batch size 1 (single-request latency) and at increasing batch sizes (server throughput).

On the Ouro 1.4B model (24 recurrent layers, 4-loop configuration), Floodgates accepted 7.5 tokens per step under greedy decoding — compared to 3.5 for LoopSpec, the prior fastest lossless method. Speedup reached 5.04× over plain decoding, versus 2.77× for LoopSpec. On Ouro 2.6B (48 recurrent layers), the pattern was similar: Floodgates was the fastest method under greedy decoding across all five benchmarks.

The advantage was largest on shallower models. On 4-loop models, a single iteration costs only a small fraction of a full decoding step, so using it to draft multiple tokens is highly efficient. On 32-loop models, each iteration is more expensive, so elastic drafting becomes necessary to maintain a high acceptance rate — but the deep prefix cache (KV states from the final loop computed during verification) helps the shallow drafter use full-depth context for free, contributing up to 1.3× additional acceleration.

Under sampled decoding (temperature > 0), Floodgates led in most cases but not all. LoopSpec was faster on Recurrent TinyLlama and on four tasks in the Recurrent Llama 3.2 family. At the largest batch size that fit in memory, Floodgates reached 1.9× the throughput of the strongest baseline — confirming that the advantage carries over to multi-request serving.

A comparison with alternative drafter architectures was instructive. Single-loop drafting outperformed drafting with a separate smaller network (EAGLE, DFlash) using 4.5× fewer trained parameters on Ouro 1.4B, and outperformed drafting with the first layers of a non-looped model (Llama 3.2, LayerSkip). The authors argue this supports the value of drafting with all model parameters rather than a subset.

What this means for AI infrastructure

Inference speed is arguably the most visible bottleneck in consumer AI products. When a ChatGPT or Claude response takes several seconds to generate, user experience suffers — and so does the economics of serving millions of requests. A 3× reduction in per-request latency means either serving three times as many users on the same hardware, or spending one-third as much on compute for the same workload.

Floodgates is particularly interesting because it is orthogonal to model size. Whether a model has 1 billion or 32 billion parameters, faster generation reduces the time users wait. The method does not require retraining the base model — only training lightweight LoRA adapters for the drafter, which is significantly cheaper than full fine-tuning.

But the method has a fundamental limitation: it only works with looped (recurrent-depth) models. The majority of frontier models — including Llama, GPT, and Claude — use standard transformer architecture with unique, non-repeating layers. Looping the same block N times is a form of test-time compute that trades serial depth for parameter efficiency, but it is not the architecture of choice for large-scale commercial models. The Ouro checkpoints tested in this paper come from ByteDance and are research-grade models, not production deployments.

This raises a broader question about where inference acceleration is heading. The field has pursued three main strategies: model compression (quantization, distillation, pruning), architectural innovation (Mamba, Mixture-of-Experts, recurrent depth), and decoding algorithms (speculative decoding, Floodgates). Each approach solves part of the problem. Compression reduces per-token compute but often degrades quality. Architectural innovation can improve both speed and quality but requires redesigning the model from scratch. Decoding algorithms improve speed without touching the model at all — but most existing methods require a separate drafter model or only work with specific architectures.

Floodgates sits at the intersection of these strategies: it is a decoding algorithm that leverages a specific architecture (looped models) to achieve what independent drafters cannot, using fewer parameters.

What the results don't say

Three caveats are essential context.

First, the models tested have at most 2.6 billion parameters. No one has reported Floodgates results on models above 10 billion parameters — the scale where most real-world applications operate. The deep prefix cache alone grows proportionally with model size and loop count, and at some point it competes with GPU memory for concurrent requests.

Second, sampled decoding results are mixed. The method does not win everywhere under sampling, and on several tasks LoopSpec is faster. For applications that use high-temperature sampling (creative writing, open-ended dialogue), the practical benefit may be smaller than the greedy-decoding numbers suggest.

Third, no independent replication has been published. The drafter checkpoints are on Hugging Face and the code is on GitHub, which is a necessary precondition for verification but not a guarantee that results will hold. In the fast-moving field of inference acceleration, independent confirmation is the difference between a promising result and a production-ready one.

The deeper insight

Beyond the speed numbers, Floodgates reveals something about how looped models work internally. The authors attribute the success to "all-depth training": because looped models are trained to predict correctly at every depth, each shallow hidden state carries information about future tokens that deeper states would normally produce. The deep prefix cache then gives the shallow drafter access to the full-context computation that verification has already paid for.

In other words, the ability to predict multiple tokens ahead is not something you add to a looped model — it is something you unlock by training every depth to be useful. This suggests that the latent capacity for multi-token prediction may be present in many model families, and the challenge is finding the right training objective to surface it. Whether a non-looped architecture could benefit from a similar approach — training early layers to predict future positions rather than just the next token — remains an open question.

Sources: arXiv, DEV Community, alphaXiv

✓ Independent sources cross-checked and verified before publishing