mlsanityData to 7 Oct 2026

Skip a Layer or Loop It? Learning Program-of-Layers in LLMs

arXiv 2606.06574 ↗First posted 4 Jun 2026cs.LGcited by 6

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

  1. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
  2. 2018Universal Transformerscited by 613
  3. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  4. 2015Neural Module Networkscited by 375
  5. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
  6. 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
  7. 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 314
  8. 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
  9. 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
  10. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 242
  11. 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
  12. 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
15 more
  1. 2023Looped Transformers are Better at Learning Learning Algorithmscited by 135
  2. 2024LaCo: Large Language Model Pruning via Layer Collapsecited by 124
  3. 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 120
  4. 2024DART-Math: Difficulty-Aware Rejection Tuning for Mathematical Problem-Solvingcited by 92
  5. 2024Looped Transformers for Length Generalizationcited by 91
  6. 2025Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinkingcited by 56
  7. 2022You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Modelcited by 42
  8. 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30
  9. 2024Mixture of Nested Experts: Adaptive Processing of Visual Tokenscited by 25
  10. 2025Adaptive Layer-skipping in Pre-trained LLMscited by 24
  11. 2025Skip a Layer or Loop it? Test-Time Depth Adaptation of Pretrained LLMscited by 14
  12. 2023Calc-X and Calcformers: Empowering Arithmetical Chain-of-Thought through Interaction with Symbolic Systemscited by 13
  13. 2025Dr.LLM: Dynamic Layer Routing in LLMscited by 10
  14. 2021DACT-BERT: Differentiable Adaptive Computation Time for an Efficient BERT Inferencecited by 9
  15. 2024Router-Tuning: A Simple and Effective Approach for Enabling Dynamic-Depth in Transformerscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025DASH: Input-Aware Dynamic Layer Skipping for Efficient LLM Inference with Markov Decision Policies
  2. 2025When Fewer Layers Break More Chains: Layer Pruning Harms Test-Time Scaling in LLMs
  3. 2025Less is More: Improving LLM Reasoning with Minimal Test-Time Intervention
  4. 2025TL;DR: Too Long, Do Re-weighting for Efficient LLM Reasoning Compression
  5. 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning
  6. 2026Probe and Skip: Self-Predictive Token Skipping for Efficient Long-Context LLM Inference
  7. 2025Leveraging the true depth of LLMs
  8. 2025R-Capsule: Compressing High-Level Plans for Efficient Large Language Model Reasoning