Deterministic Strided Looping: Breaking the Compute–Accuracy Frontier in Recurrent-Depth Transformers
Looped (recurrent-depth) Transformers expand effective reasoning depth without increasing parameter count by repeatedly applying a shared middle block of layers. However, naive full-block looping incurs linear serial latency, degrades gradient flow across deeply unrolled graphs, and suffers from fixed-point representational stagnation on later passes. We introduce Deterministic Strided Looping, a router-free execution framework that skips core layers according to fixed, statically compilable stride schedules across recurrent passes. We evaluate our framework across two distinct looped paradigms—a standard gated looped Transformer and a hybrid local/global-attention Mini-Inkling architecture with prelude-reset message gating—on both synthetic multi-hop pointer chasing (N=16, up to H=10 hops) and natural language modeling (TinyStories). Across 3-seed evaluations, deterministic striding strictly dominates full 3-pass looping and iso-compute 2-pass controls. In standard looped Transformers, a Coarse-to-Fine schedule reduces core operations by 38.9% (11 vs. 18 ops) and inference latency by 28.2%, while improving mean 8-hop accuracy by +21.5% over full 3-pass looping and +41.9% over iso-compute 2-pass looping. In Mini-Inkling, Global-Safe Phase-Shifted Striding cuts core operations by 22.2% (14 vs. 18 ops) while boosting mean 8-hop accuracy by +15.4% and peak 10-hop accuracy by +27.0% (76.0% vs. 49.0%). On TinyStories language modeling, coarse_to_fine is the only looped schedule to outperform the 1-pass baseline (9.55 vs. 9.73 validation perplexity), beating full 3-pass looping (9.80 PPL) at +15.2% higher inference throughput. Mechanistic diagnostics across both domains reveal why: whereas full 3-pass looping collapses into near-identity updates by Pass 3 (cosine similarity 0.965–0.971), strided schedules break pass-to-pass symmetry (0.672–0.819) and sustain +20.1% higher core gradient norms.
Authors
- Faheem Sarwar (ORCID: https://orcid.org/0000-0002-5210-3840)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24637767
- Primary Topic
- Topic Modeling
- Type
- preprint