Computer Science > Computation and Language
Title:Loop Deeper or Branch Wider? Final-Loop Mixtures for Looped Language Models
Abstract:Looped language models reuse one block of layers several times per token, thus the usual way to give them more compute is running another loop. Unfortunately, each extra loop helps less as models get deeper. Going from two to three loops lowers perplexity by 4.9% in our 150M-parameter model but by only 1.1% at 500M. We ask whether this compute is better spent branching wider than looping deeper. Our final-loop mixture runs the last loop twice in parallel, from the usual hidden state and from a learned offset of it, and mixes the two next-token predictions with a learned gate. A mixture with $L$ loops costs as much to train per token as a plain model with $L+1$ loops, so we compare the two directly, trained on the same 10B tokens of FineWeb-Edu. Across models with 150M to 500M parameters, the mixture is better in 5 of 6 in-distribution and all 6 out-of-distribution settings, and its lead grows with depth. In a control at 150M and 250M, it also beats a plain $(L+1)$-loop model grown from the same checkpoint with the same weight on its final prediction. Because its two branches run side by side, the mixture needs 14-29% less time per generated token than the deeper model at batch size one, with the same key-value cache. The mixture's gains come mostly from rare, hard-to-predict words, which lifts accuracy on language-modeling and cloze benchmarks.
| Subjects: | Computation and Language (cs.CL) ; Machine Learning (cs.LG) |
|---|---|
| Cite as: | arXiv:2612.04683 [cs.CL] |
| (or arXiv:2612.04683v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2612.04683 arXiv-issued DOI via DataCite (pending registration) |
Submission history
Access Paper:
- HTML (experimental)
Additional Features
- Audio Summary
Current browse context:
References & Citations
- Google Scholar
- Semantic Scholar
BibTeX formatted citation
Bookmark
Bibliographic and Citation Tools
Code, Data and Media Associated with this Article
Demos
Recommenders and Search Tools
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.