hn.today

LoopCD: Decoding Looped Transformers Better for Almost Free

arxiv.org3 points0 comments
Screenshot of LoopCD: Decoding Looped Transformers Better for Almost Free

Looped Transformers save parameters by repeatedly running the same block, producing intermediate representations at each recurrent pass. Although each intermediate state can predict the next token, conventional decoding uses only the final, most-computed state. LoopCD turns the earlier, weaker prediction into a guide for decoding: it contrasts that prediction with the final one, without requiring additional training, an auxiliary model, or external data. The method has two forms. LoopCD-Logits compares predictions in logit space and requires one extra output pass; LoopCD-Hidden performs the contrast in hidden-state space, avoiding extra output computation.

Experiments across four families of looped Transformers show consistent improvements at full recurrent depth. For example, LoopCD-Logits raises Ouro-2.6B-Thinking’s AIME 2024 pass@1 from 61.88% to 73.33%, while LoopCD-Hidden raises Huginn’s HumanEval pass@1 from 22.56% to 31.71%. The gains can also be traded for lower inference cost: models can use half as many recurrent loops and still match or outperform full-depth, unguided baselines. This cuts forward-pass computation by 22.5% to 48.2%. The central claim is that intermediate recurrent states, usually discarded during generation, provide useful internal guidance for improving both decoding quality and efficiency.

Read on arxiv.org0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.