Researchers have introduced a decoding technique that they say can accelerate text generation from looped language models by as much as 7.5 times while preserving the output that the underlying model would otherwise produce.

The method, called Floodgates, applies speculative decoding to models that reuse the same parameters across repeated computational loops. A shallow pass acts as a fast drafter, proposing multiple future tokens at once, while a deeper pass verifies those proposals. Accepted tokens can then be emitted together, reducing the number of costly sequential generation steps.

In conventional autoregressive generation, a language model normally produces one token after another. Each new token depends on the preceding sequence, creating a serial bottleneck even when powerful hardware is available. Speculative decoding attempts to ease that bottleneck by having a cheaper process guess upcoming tokens and letting the full model check them. If the guesses match what the verifier would have selected, the system advances through several positions without changing the final output.

Floodgates is designed specifically for looped models, whose computation can be adjusted by changing how many times data passes through a shared set of parameters. The researchers append a block of mask tokens and train the shallow portion through low-rank adaptation to fill those positions in parallel. Because the drafter still uses the model's full parameter set, despite running fewer loops, it can make useful forecasts without requiring a separate small model.

The paper reports experiments across seven models, five benchmarks, multiple batch sizes and both greedy and sampled decoding. The authors describe Floodgates as the fastest lossless method in most of those tests, with the best case reaching 7.5 times the baseline generation speed. “Lossless” in this context means the acceleration does not alter the verified sequence, rather than referring to model accuracy or factual reliability.

Their analysis attributes the result partly to all-depth training. A shallow drafter can condition on information stored in the deep prefix cache created during verification, allowing less computation to make stronger predictions about the next block of tokens. That relationship between shallow drafting and deeper cached context is central to the reported gains.

The result is presented in an arXiv paper and should be understood as a research claim rather than a universal performance guarantee. Actual gains can depend on the model, hardware, batch size, workload and how frequently speculative tokens are accepted. The technique also targets looped architectures, so the headline speedup cannot automatically be transferred to every production language model. Even with those limits, the work offers a concrete route for reducing inference time without accepting different generated output, an increasingly important objective as AI services face growing computing and latency demands.