Skip a Layer or Loop It? Learning Program-of-Layers in LLMs
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) perform inference by following a fixed depth and order, non-recurrent execution of all layers. We reveal the wide existence of training-free, flexible, dynamic program-of-layers (PoLar), where pretrained layers can be packed as modules and then skipped or looped to form a customized program for each input. For most inputs, substantially shorter program executions can achieve the same or better accuracy, while incorrect predictions of the original LLM can be corrected by alternative programs with fewer layers. These observations indicate that inference admits multiple valid latent computations beyond the standard forward pass. To efficiently achieve PoLar in practice, we propose a lightweight PoLar prediction network, which learns to generate execution programs that dynamically skip or repeat pretrained layers for each input. Experiments on mathematical reasoning benchmarks demonstrate that PoLar consistently improves accuracy over standard inference and prior dynamic-depth methods, often while executing fewer layers, and that these gains persist under out-of-distribution evaluation. Our results suggest that fixed-depth execution captures only a narrow subset of an LLM's latent reasoning capacity.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 27 of its 30 references that are in the map. First posted on arXiv 4 Jun 2026.
Builds on
27 of 30 references.
References · 27
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
- 2018Universal Transformerscited by 613
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2015Neural Module Networkscited by 375
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
- 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 314
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
- 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 242
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
15 more
- 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
- 2024LaCo: Large Language Model Pruning via Layer Collapsecited by 124
- 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 120
- 2024DART-Math: Difficulty-Aware Rejection Tuning for Mathematical Problem-Solvingcited by 92
- 2024Looped Transformers for Length Generalizationcited by 91
- 2025Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinkingcited by 56
- 2022You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Modelcited by 42
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30
- 2024Mixture of Nested Experts: Adaptive Processing of Visual Tokenscited by 25
- 2025Adaptive Layer-skipping in Pre-trained LLMscited by 24
- 2025Skip a Layer or Loop it? Test-Time Depth Adaptation of Pretrained LLMscited by 14
- 2023Calc-X and Calcformers: Empowering Arithmetical Chain-of-Thought through Interaction with Symbolic Systemscited by 13
- 2025Dr.LLM: Dynamic Layer Routing in LLMscited by 10
- 2021DACT-BERT: Differentiable Adaptive Computation Time for an Efficient BERT Inferencecited by 9
- 2024Router-Tuning: A Simple and Effective Approach for Enabling Dynamic-Depth in Transformerscited by 8
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Loop the Loopies!cited by 4
- 2026Reachability Is Not Realization: Tracing the Sources of LLM Benchmark Gainscited by 1
- 2026Programs-of-Layers in LLMs through the Lens of Cortical Areascited by 1
- 2026When Less Compute Is More: Adaptive Early Exit Improves Pretrained Outlier Detectioncited by 0
- 2026What Makes Recurrence Effective in Looped Language Models?cited by 0
- 2026Input-Blind Controls Produce Substantial Oracle Headroom for Layer Programs in Multiple-Choice Evaluationcited by 0
- 2026Input-Blind Controls Produce Substantial Oracle Headroom for Layer Programs in Multiple-Choice Evaluation7 Oct 2026
- 2026What Makes Recurrence Effective in Looped Language Models?29 Sep 2026
- 2026When Less Compute Is More: Adaptive Early Exit Improves Pretrained Outlier Detection26 Sep 2026
- 2026Programs-of-Layers in LLMs through the Lens of Cortical Areas25 Sep 2026
- 2026Reachability Is Not Realization: Tracing the Sources of LLM Benchmark Gains4 Aug 2026
- 2026Loop the Loopies!17 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2025DASH: Input-Aware Dynamic Layer Skipping for Efficient LLM Inference with Markov Decision Policies
- 2025When Fewer Layers Break More Chains: Layer Pruning Harms Test-Time Scaling in LLMs
- 2025Less is More: Improving LLM Reasoning with Minimal Test-Time Intervention
- 2025TL;DR: Too Long, Do Re-weighting for Efficient LLM Reasoning Compression
- 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning
- 2026Probe and Skip: Self-Predictive Token Skipping for Efficient Long-Context LLM Inference
- 2025Leveraging the true depth of LLMs
- 2025R-Capsule: Compressing High-Level Plans for Efficient Large Language Model Reasoning