ALL INTELLIGENCE
Hacker News AIT2·Models

New Decoding Method Speeds Looped Language Model Inference 7.5x

Original title: Researchers make AI text generation up to 7.5x faster without changing output
78AI Score

Researchers introduce Floodgates, a self-speculative decoding method for looped language models that appends a block of mask tokens and uses low-rank adaptation to draft several future tokens in parallel with shallow loops, then verifies them with deep loops, accelerating inference without changing outputs. Across seven models, five benchmarks, various batch sizes, and both greedy and sampled decoding, it is the fastest lossless decoding method in most cases, reaching up to 7.5x speedup. The gain stems from all-depth training of looped models, letting the shallow drafter condition on deep prefix cache computed during verification.

Full Report

Abstract:Looped language models can adapt computation for predicting a token without a proportional rescaling in unique model parameters by adjusting the number of loops. This property has been used for self-speculative decoding, taking shallow loops as fast drafters and deep loops as verifiers, which is effective since drafting still uses full parameters. In this paper, we show that shallow loops can be also predictive of several future tokens and leverage this to drastically accelerate the inference of looped language models. To that end, we present Floodgates, a simple self-speculative decoding method that appends a block of mask tokens as a suffix and learns via low-rank adaptation to draft these tokens in parallel. Across seven models, five benchmarks, a range of batch sizes, and both greedy and sampled decoding, Floodgates is the fastest lossless decoding method in most cases, attaining up to 7.5x acceleration. Through analysis, we show that this speedup is enabled by all-depth training of looped models, with the shallow drafter's ability to leverage full-depth computation by conditioning on deep prefix cache evaluated during verification.