Loop Deeper or Branch Wider? Final-Loop Mixtures for Looped Language Models
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…
- arXiv
- 2612.04683
- Authors
- Jonathan Williams, Wenhao Chai, Esin Türeci, Karthik R. Narasimhan
- Categories
- cs.CL · cs.LG