# How Depth Growth and Looping Shape In-Context Learning in Language Models

- **ID:** 1464
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2610.31421
- **Authors:** Ferdinand Kapl (Technical University of Munich, Helmholtz AI, Munich, Munich Center for Machine Learning (MCML)), Kaitlin Maile (Google, Paradigms of Intelligence Team), Stefan Bauer (Google, Johannes von Oswald (Google
- **Venue:** arXiv preprint
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **Added:** 2026-11-01
- **Verified:** 2026-11-01
- **Page:** https://papers.projxon.ai/entries/1464

## Summary

Question: do looped and depth-grown language models merely save compute and parameters, or does reusing computation across depth change what the model learns to rely on? The paper tests the hypothesis that (soft) parameter reuse creates a shared inductive bias toward learning from context rather than from weights, studying how in-context learning (ICL) is acquired, retained, and mechanistically supported. Setup: pretrained LMs at 360M, 1.7B, and 3B (main comparison: 36-layer dense reference, all models trained on the same 100B tokens in the same order, matched optimizer-step budget and final inference FLOPs), plus controlled RegBench (unseen formal languages) and Omniglot tasks that pit context against fixed in-weights associations. Methods compared: the dense baseline; LIDAS depth growth (the authors' earlier method: start from 4 layers and periodically duplicate the central 4-layer block, copying weights and AdamW moments without resetting the learning-rate schedule; growth uses shallower networks early, saving an estimated 26% of training FLOPs at 3B and 22% at 360M/1.7B); and a looped model (Loop 10-8x2-10: 36 layer applications but only 28 unique layers, ~2.45B unique parameters at the 3B scale). Findings: (1) Context use - grown and looped models show larger early-to-late token-loss reductions than dense, and the grown model also reaches lower absolute late-token loss; both beat dense on few-shot GSM8K at every shot count, with the LIDAS gap widening as demonstrations increase, ending about +7 points above baseline at 8 shots (~19% vs ~12% strict exact match, per the review thread); on RegBench both predict unseen formal languages more accurately, the advantage emerging within the first string. (2) Acquisition and retention - on Omniglot tasks where a fixed class-label solution competes, grown and looped models retain higher ICL accuracy (about 0.75-0.80 vs ~0.70 for dense late in training) alongside lower in-weights accuracy, and when labels are reassigned in every sequence they acquire ICL earlier than the dense reference. (3) Mechanism - tracing the 12 strongest final induction heads in the 3B LIDAS model backward through training, 10 descend from just two heads (L2H9 and L2H10) in the initial 4-layer network; duplication clones these circuits across depth at 4-layer intervals, and in the looped model the same heads fire periodically across passes through the shared block. Ablating the top-20% induction-ranked heads drops 19-task few-shot F1 by 0.08 in dense vs 0.18 in LIDAS vs 0.28 in Loop, with correspondingly larger late-token-loss increases - causal evidence that grown/looped models rely more heavily on induction heads, though function-vector heads remain important. Caveats: pretraining at all three scales uses a single random seed; the looped model gives up unique capacity and trails dense slightly on MMLU (38.32% vs 39.15%); and the RegBench looped gains used width d=256 vs d=128 for the dense baseline, which skews that comparison. No author code released (training builds on Hugging Face's public nanotron framework). Joins the catalog's looped-models cluster as its mechanism paper: depth reuse propagates early induction heads across layers, which is why grown and looped models lean on context - complements ID 1548's looped-LM training recipes and ID 928's looped-MoE scaling laws. Author-thread additions (Kapl, 2026-11-04): the backbone is SmolLM3, pretrained from scratch; at 3B the grown and looped models beat the dense baseline on all long-context benchmarks tested (RULER, HELMET, NoLiMa) while matching it on the short-context suite. Induction heads emerge in opposite order - top-down in the baseline, bottom-up in grown/looped models - and end stronger (higher prefix-matching score); ablating them raises FineWeb-Edu NLL by an amount that grows with token position for grown/looped models but stays flat for the baseline. On the Garg et al. random-linear-regression task the grown model shows better in-context prediction alongside MORE memorization, so the context-over-weights bias is task-dependent for growth (the looped model shows less in-weights learning and higher accuracy there).

## Research notes

- License: paper CC BY 4.0 (license icon on the arXiv record); code: none released by the authors - flagged. Shared via @che_shr_cat X thread 2026-10-31 (status 2116654841183506714); full review: https://arxiviq.substack.com/p/how-depth-growth-and-looping-shape First author's own launch thread: @KaplFer, 2026-11-04 (status 2117991138011578806). Series works cited in that thread: arXiv 2512.08819, arXiv 2602.16490.

## Similar entries

- [One Model to Loop Them All: Elastic Latent Recurrence for Language Models](https://papers.projxon.ai/entries/1346) (paper, #1346)
- [Context Language Models](https://papers.projxon.ai/entries/793) (paper, #793)
- [Learning to Learn a Language](https://papers.projxon.ai/entries/1288) (paper, #1288)
- [Closing the Loop: Practical Training Recipes for Looped Language Models](https://papers.projxon.ai/entries/1239) (paper, #1239)
- [Towards Looped Models Done Right — Part II: Rethinking at Fixed Points](https://papers.projxon.ai/entries/871) (paper, #871)
- [Sparse Layers are Critical to Scaling Looped Language Models](https://papers.projxon.ai/entries/1085) (paper, #1085)
