Balcony: A Lightweight Approach to Dynamic Inference of Generative Language Models
Not on the map. Why?
Abstract (arXiv)
Deploying large language models (LLMs) in real-world applications is often hindered by strict computational and latency constraints. While dynamic inference offers the flexibility to adjust model behavior based on varying resource budgets, existing methods are frequently limited by hardware inefficiencies or performance degradation. In this paper, we introduce Balcony, a simple yet highly effective framework for depth-based dynamic inference. By freezing the pretrained LLM and inserting additional transformer layers at selected exit points, Balcony maintains the full model's performance while enabling real-time adaptation to different computational budgets. These additional layers are trained using a straightforward self-distillation loss, aligning the sub-model outputs with those of the full model. This approach requires significantly fewer training tokens and tunable parameters, drastically reducing computational costs compared to prior methods. When applied to the LLaMA3-8B model, using only 0.2% of the original pretraining data, Balcony achieves minimal performance degradation while enabling significant speedups. Remarkably, we show that Balcony outperforms state-of-the-art methods such as Flextron and Layerskip as well as other leading compression techniques on multiple models and at various scales, across a variety of benchmarks.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 26 of its 38 references that are in the map. First posted on arXiv 6 Mar 2025.
Builds on
26 of 38 references.
References · 26
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2023Qwen Technical Reportcited by 3,273
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
14 more
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
- 2018Slimmable Neural Networkscited by 301
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2019Universally Slimmable Networks and Improved Training Techniquescited by 219
- 2024LaCo: Large Language Model Pruning via Layer Collapsecited by 124
- 2021Dynamic Slimmable Networkcited by 83
- 2023MatFormer: Nested Transformer for Elastic Inferencecited by 79
- 2023Sorted LLaMA: Unlocking the Potential of Intermediate Layers of Large Language Models for Dynamic Inferencecited by 7
- 2024NutePrune: Efficient Progressive Pruning with Numerous Teachers for Large Language Modelscited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2026Don't Drop Dropout: Optimizing Layer Sparsity for Efficient LLM Training and Inference4 Sep 2026
- 2026Ruyi2 Technical Report26 Feb 2026
- 2026LoRA-Drop: Temporal LoRA Decoding for Efficient LLM Inference5 Jan 2026
- 2025Dynamic Rebatching for Efficient Early-Exit Inference with DREX17 Dec 2025