Get the latest tech news

Looped Models are Fast Multi-Token Predictors


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.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of researchers

researchers

Photo of output

output

Photo of AI text generation

AI text generation

Related news:

News photo

Researchers Find Deterministic Subexponential-time Algorithm for Discrete Logarithm

News photo

This reclining AI robot mimics human skin, breathes beside you, and scans your face to build a digital clone — and researchers just tested it in Dubai

News photo

Researchers find 3.6 billion usernames, passwords and documents in unsecured databases