Looped language models can spend more computation on a prediction by running the same model through additional loops, without increasing the number of unique parameters. Earlier self-speculative decoding used shallow loops to draft one token and deeper loops to verify it. This work argues that shallow loops can predict several future tokens at once, making them more effective drafters and enabling faster inference.
The authors introduce Floodgates, which appends a block of mask tokens to the input and uses low-rank adaptation to train the model to draft those tokens in parallel. A deeper-loop pass then verifies the draft, preserving lossless decoding. Tests across seven models, five benchmarks, varied batch sizes, and both greedy and sampled generation found Floodgates to be the fastest lossless decoding method in most tested settings, with speedups reaching 7.5 times. The analysis attributes this performance to all-depth training: shallow loops can make use of computation from the full-depth model by conditioning on a deep prefix cache generated during verification.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.