What Makes Recurrence Effective in Looped Language Models?
Organizations: The Chinese University of Hong Kong · MBZUAI
Abstract
Looped language models (LoopLMs) increase computational depth through parameter sharing, offering a path to scale inference computation without adding parameters. However, it remains unclear when additional recurrence is beneficial and how architectural choices affect its effectiveness. Through controlled experiments, we systematically examine (1) when recurrence helps, (2) where it should be applied, and (3) how its conditioning affects performance. Our evaluation covers inference budgets below, within, and beyond the training horizon under knowledge and reasoning tasks. (1) We find that recurrence can improve reasoning beyond the training horizon while degrading knowledge performance, but harder reasoning instances do not consistently benefit more. (2) Performance also depends on how distinct layers and recurrent iterations are allocated, showing that effective depth alone is insufficient to predict behavior. Non-recurrent output layers improve robustness to under-unrolling, while the preferred placement of input and output layers varies with inference budget. (3) Finally, we find that conventional initial-state injection offers limited robustness to varying recurrence depth. We therefore propose history-state injection as an alternative, and show that channel-wise history-state injection combined with timestep conditioning offers a low-cost and more effective design, better preserving knowledge under extended unrolling while improving robustness across inference budgets. Overall, our results clarify when recurrent computation helps, where it fails, and offer practical guidelines for designing LoopLMs across variable inference budgets.
Figures & tables
Appendix figures & tables27 assets
Supplementary material from the paper’s appendix.
Appendix
| Architecture | Parameters | Q/KV heads | |||||
| Llama3.1-1B | 20 | 1,007,482,368 | 128,256 | 1,536 | 5,376 | 12/3 | 128 |
| Qwen3-0.6B | 28 | 596,049,920 | 151,936 | 1,024 | 3,072 | 16/8 | 128 |
| Backbone | Parameters | BaseLoop | CoreLoop | ||
| Llama3.1-1B | 20 | 2 | 455,351,808 | , | |
| Llama3.1-1B | 20 | 4 | 516,699,648 | , , | |
| Llama3.1-1B | 20 | 5 | 547,373,568 | , , | |
| Llama3.1-1B | 20 | 10 | 700,743,168 | , , , , , | |
| Qwen3-0.6B | 28 | 4 | 218,507,264 | , , |
| Models | Global batch | Steps | W/S/D updates | Tokens | |
| Llama3.1-1B BaseLoop and CoreLoop variants | 1,824 | 5,394 | 270/4,585/539 | 20.15B | |
| Qwen3-0.6B BaseLoop and CoreLoop variants | 2,048 | 2,860 | 143/2,431/286 | 12.00B |
| Task | Brief Description |
| SciQ Welbl et al. (2017) | Science facts; locating evidence in a support passage |
| ARC-Easy Clark et al. (2018) | Elementary science knowledge and simple causal attribution |
| PIQA Bisk et al. (2020) | Object affordances, material properties, outcomes of actions |
| Task | Brief Description |
| ARC-Challenge Clark et al. (2018) | Multi-step inference over harder science items |
| WinoGrande Sakaguchi et al. (2020) | Coreference resolution requiring commonsense |
| OpenBookQA Mihaylov et al. (2018) | Combining a retrieved science fact with additional knowledge |
| HellaSwag Zellers et al. (2019) | Plausible event continuation; temporal and causal structure |
| CommonsenseQA Talmor et al. (2019) | ConceptNet-style relational reasoning over use, location |
| ProofWriter Tafjord et al. (2021) | Entailment under natural-language facts and rules |
| Subtask | Brief Description |
| disambiguation_qa | Resolves pronoun antecedents and identifies cases that remain genuinely ambiguous. |
| salient_translation_error_detection | Classifies salient semantic errors in German-to-English translations, such as altered entities, numbers, negation, or omitted content. |
| reasoning_about_colored_objects | Answers attribute, spatial-relation, and counting questions about colored objects described in natural language. |
| causal_judgement | Determines commonsense causal attribution and whether an action or outcome was intentional. |
| date_understanding | Infers calendar dates from relative temporal expressions and performs date arithmetic. |
| hyperbaton | Selects the sentence exhibiting the grammatically natural ordering of English adjectives. |
| Model | ARC-E | ARC-C | SciQ | MMLU | HELLA | OBQA | PIQA | RACE | WINO | CSQA | Avg. |
| AdamW | |||||||||||
| nonloop (12 1) | 59.30 | 25.68 | 81.50 | 26.06 | 33.64 | 22.00 | 67.52 | 31.67 | 51.46 | 20.64 | 41.95 |
| nonloop (3 1) | 53.41 | 20.90 | 74.30 | 23.10 | 29.04 | 18.40 | 63.38 | 27.56 | 50.99 | 20.31 | 38.14 |
| BaseLoop (3 4) | 56.23 | 23.81 | 77.00 | 23.00 | 31.05 | 21.40 | 64.20 | 30.33 | 53.28 | 19.49 | 39.98 |
| LoopFormer (3 4) | 56.73 | 23.89 | 77.90 | 24.59 | 30.97 | 20.00 | 64.64 | 29.28 | 51.62 | 19.98 | 39.96 |
| Ouro (3 4) | 55.85 | 22.87 | 77.90 | 23.03 | 30.74 | 18.00 | 63.82 | 29.95 | 52.49 | 19.57 | 39.42 |
| Configuration | Method | Overall | Knowledge | Reasoning | Overall | Knowledge | Reasoning |
| BaseLoop | 36.83 | 61.10 | 27.73 | 34.58 | 50.37 | 28.66 | |
| Scalar | 37.26 | 62.33 | 27.85 | 34.90 | 53.64 | 27.87 | |
| Channel-wise | 37.54 | 60.98 | 28.75 | 35.01 | 53.41 | 28.10 | |
| Residual Channel-wise | 37.02 | 60.46 | 28.23 | 32.52 | 41.39 | 29.19 | |
| Dense | 36.66 | 59.23 | 28.19 | 29.96 | 32.78 | 28.90 | |
| Configuration | Method | Overall | Knowledge | Reasoning | Overall | Knowledge | Reasoning |
| BaseLoop | 36.85 | 58.70 | 28.66 | 37.31 | 57.30 | 29.81 | |
| Scalar | 36.27 | 58.00 | 28.12 | 35.71 | 56.89 | 27.77 | |
| Channel-wise | 35.87 | 58.01 | 27.57 | 35.59 | 56.56 | 27.73 | |
| Residual Channel-wise | 36.77 | 57.88 | 28.85 | 32.73 | 42.49 | 29.07 | |
| Dense | 35.18 | 55.95 | 27.39 | 30.30 | 33.15 | 29.24 | |
| Parameterization | Injection | Overall | Knowledge | Reasoning | Overall | Knowledge | Reasoning | Overall | Knowledge | Reasoning |
| – | BaseLoop | 36.80 | 59.44 | 28.31 | 36.59 | 57.33 | 28.81 | 35.60 | 52.29 | 29.34 |
| Scalar | Initial-state | 36.16 | 58.35 | 27.84 | 36.34 | 56.05 | 28.95 | 35.69 | 52.10 | 29.53 |
| History ( ) | 36.45 | 59.41 | 27.84 | 35.74 | 57.67 | 27.51 | 34.69 | 52.23 | 28.12 | |
| History ( ) | 36.46 | 58.83 | 28.07 | 36.78 | 59.18 | 28.38 | 35.75 | 55.83 | 28.22 | |
| History ( ) | 36.61 | 58.90 | 28.25 | 36.80 | 59.41 | 28.32 | 37.24 | 59.18 | 29.01 | |
| Configuration | Method | Overall | Knowledge | Reasoning | Overall | Knowledge | Reasoning |
| BaseLoop | 37.87 | 62.80 | 28.52 | 37.11 | 52.11 | 31.49 | |
| Loop Gating | 37.99 | 63.32 | 28.49 | 37.43 | 56.17 | 30.41 | |
| Branch Gating | 37.99 | 62.39 | 28.84 | 37.23 | 56.60 | 29.97 | |
| AdaLN | 38.58 | 62.65 | 29.56 | 37.91 | 59.68 | 29.75 | |
| NonLoop | 39.83 | 65.38 | 30.25 | – | – | – | |
| Configuration | Method | Overall | Knowledge | Reasoning | Overall | Knowledge | Reasoning |
| BaseLoop | 36.85 | 58.70 | 28.66 | 37.31 | 57.30 | 29.81 | |
| Loop Gating | 36.16 | 57.51 | 28.16 | 35.18 | 57.07 | 26.97 | |
| Branch Gating | 36.62 | 58.20 | 28.53 | 36.64 | 58.01 | 28.63 | |
| AdaLN | 35.97 | 58.44 | 27.54 | 35.35 | 56.54 | 27.41 | |
| BaseLoop | 36.80 | 59.44 | 28.31 | 36.59 | 57.33 | 28.81 | |