Looped language models can vary how much computation they spend on each prediction by running their shared model through a different number of loops. This enables self-speculative decoding: a shallow pass drafts tokens quickly, while a deeper pass checks them and preserves the original model’s exact output. The work argues that shallow passes can do more than guess one next token: they can draft several future tokens at once. Its method, Floodgates, appends a block of mask tokens to the input and uses low-rank adaptation to train the model to predict those positions in parallel. The deeper model then verifies the draft, so acceleration does not require sacrificing output fidelity.
Tests across seven models, five benchmarks, multiple batch sizes, and both greedy and sampled generation found Floodgates to be the fastest lossless decoding approach in most cases, with speedups reaching 7.5 times. The researchers attribute this performance to how looped models are trained at all depths. Although the drafter runs only shallow loops, it can exploit computation from deeper loops through a cached representation of the prefix that is evaluated during verification. That connection lets the shallow pass make useful multi-token predictions without separately running a full-sized draft model, addressing a key bottleneck in generating text with looped models.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.