LoopCoder-v2: Only Loop Once for Efficient Test-Time Computation Scaling
On the map: Efficient LLM inference and serving → Efficient reasoning and agent inference
Abstract (arXiv)
Looped Transformers scale latent computation by repeatedly applying shared blocks, but sequential looping increases latency and KV-cache memory with the loop count. Parallel loop Transformers (PLT) alleviate this cost through cross-loop position offsets (CLP) and shared-KV gated sliding-window attention, making loop count a practical design choice. We therefore study PLT loop-count selection through a gain--cost view: an extra loop may refine representations, but CLP also introduces a positional mismatch at each loop boundary. We instantiate this study by training LoopCoder-v2, a family of 7B PLT coders with different loop counts, from scratch on 18T tokens, followed by matched instruction tuning and evaluation. Empirically, the two-loop variant delivers broad gains over the non-looped baseline across code generation, code reasoning, agentic software engineering, and tool-use benchmarks, improving SWE-bench Verified from 43.0 to 64.4 points and Multi-SWE from 14.0 to 31.0 points. In contrast, variants with three or more loops regress, revealing a strongly non-monotonic loop-count effect. Our diagnostics show that loop 2 provides the main productive refinement, while later loops yield diminishing, oscillatory updates and reduced representational diversity. Because the CLP-induced mismatch remains roughly fixed as refinement gains shrink, the offset cost increasingly dominates. This gain--cost trade-off explains PLT's saturation at two loops and provides diagnostics for loop-count selection.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Efficient reasoning and agent inference, one of 12 directions in Efficient LLM inference and serving. Builds on 18 of its 19 references that are in the map. First posted on arXiv 16 Jun 2026.
Builds on
18 of 19 references.
Closest ancestors · 1
Same direction, newest first
- 2026Memory-Efficient Looped Transformer: Decoupling Compute from Memory in Looped Language Models8 May
Other references · 17
- 2018Universal Transformerscited by 647
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
- 2023Looped Transformers as Programmable Computerscited by 237
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 78
- 2025Latent Chain-of-Thought? Decoding the Depth-Recurrent Transformercited by 27
- 2025Parallel Loop Transformer for Efficient Test-Time Computation Scalingcited by 24
- 2026How Much Is One Recurrence Worth? Iso-Depth Scaling Laws for Looped Language Modelscited by 24
- 2026Stabilizing Recurrent Dynamics for Test-Time Scalable Latent Reasoning in Looped Language Modelscited by 21
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2026LoopUS: Recasting Pretrained LLMs into Looped Latent Refinement Modelscited by 15
- 2025Two-Scale Latent Dynamics for Recurrent-Depth Transformerscited by 13
5 more
- 2026Solve the Loop: Attractor Models for Language and Reasoningcited by 13
- 2026Loop as a Bridge: Can Looped Transformers Truly Link Representation Space and Natural Language Outputs?cited by 8
- 2026LT2: Linear-Time Looped Transformerscited by 7
- 2026Hierarchical vs. Flat Iteration in Shared-Weight Transformerscited by 4
- 2026CART: Context-Anchored Recurrent Transformer -- A Parameter-Efficient Architecture with Learned Stabilitycited by 4
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Improving Test-Time Scaling with Adaptive Looped Transformerscited by 1
- 2026Penelope: Localized Latent Recurrence for Efficient Structured Reasoningcited by 0
- 2026WaveFront Decoding: Parallelized Self-Speculative Decoding for Looped Language Modelscited by 0
- 2026Decoding Looped Transformers Better for (Almost) Freecited by 0
- 2026Decoding Looped Transformers Better for (Almost) Free1 Oct 2026
- 2026Improving Test-Time Scaling with Adaptive Looped Transformers28 Sep 2026
- 2026WaveFront Decoding: Parallelized Self-Speculative Decoding for Looped Language Models19 Sep 2026
- 2026Penelope: Localized Latent Recurrence for Efficient Structured Reasoning28 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026Looped Transformers as Optimizers
- 2026Looped Latent Attention: Cross-Loop KV Compression for Looped Transformers
- 2026The Surprising Effectiveness of Shared Memory in Looped Transformers
- 2026Stability and Generalization in Looped Transformers
- 2026SMELT: Scaling Laws for Compute-Matched MoE Looped Transformers
- 2026FlashLoop: Fast and Memory-Efficient Looped Transformers via Lazy Updates
- 2026T-LoopFormer: Token-Level Elastic-Depth Looped Transformers for Latent Reasoning with Dynamic Routing
- 2025LOOPRAG: Enhancing Loop Transformation Optimization with Retrieval-Augmented Large Language Models