DYNAMAX: Dynamic computing for Transformers and Mamba based architectures
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
also in 1 more
Abstract (arXiv)
Early exits (EEs) offer a promising approach to reducing computational costs and latency by dynamically terminating inference once a satisfactory prediction confidence on a data sample is achieved. Although many works integrate EEs into encoder-only Transformers, their application to decoder-only architectures and, more importantly, Mamba models, a novel family of state-space architectures in the LLM realm, remains insufficiently explored. This work introduces DYNAMAX, the first framework to exploit the unique properties of Mamba architectures for early exit mechanisms. We not only integrate EEs into Mamba but also repurpose Mamba as an efficient EE classifier for both Mamba-based and transformer-based LLMs, showcasing its versatility. Our experiments employ the Mistral 7B transformer compared to the Codestral 7B Mamba model, using data sets such as TruthfulQA, CoQA, and TriviaQA to evaluate computational savings, accuracy, and consistency. The results highlight the adaptability of Mamba as a powerful EE classifier and its efficiency in balancing computational cost and performance quality across NLP tasks. By leveraging Mamba's inherent design for dynamic processing, we open pathways for scalable and efficient inference in embedded applications and resource-constrained environments. This study underscores the transformative potential of Mamba in redefining dynamic computing paradigms for LLMs.
Key facts. Cited by 3 papers in the map (data through 13 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 35 of its 46 references that are in the map. First posted on arXiv 29 Apr 2025.
Builds on
35 of 46 references.
Closest ancestors · 2
Same direction, newest first
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
Other references · 33
- 2017Attention Is All You Needcited by 60,106
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,231
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
- 2015Distilling the Knowledge in a Neural Networkcited by 10,180
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,247
- 2020Longformer: The Long-Document Transformercited by 3,393
- 2023Mistral 7Bcited by 3,123
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,949
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,925
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,215
21 more
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,954
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,469
- 2018CoQA: A Conversational Question Answering Challengecited by 681
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 652
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 592
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 359
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 330
- 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 305
- 2022Confident Adaptive Language Modelingcited by 302
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 247
- 2019Depth-Adaptive Transformercited by 230
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
- 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 221
- 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 209
- 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendationscited by 201
- 2023Scaling Autoregressive Multi-Modal Models: Pretraining and Instruction Tuningcited by 168
- 2023Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decodingcited by 80
- 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
- 2023Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Studycited by 63
- 2020CascadeBERT: Accelerating Inference of Pre-trained Language Models via Calibrated Complete Models Cascadecited by 47
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024A Survey of Mamba
- 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Model
- 2024Early Exit Is a Natural Capability in Transformer-based Models: An Empirical Study on Early Exit without Joint Optimization
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Models
- 2025Differential Mamba
- 2024An Empirical Study of Mamba-based Language Models
- 2024Venturing into Uncharted Waters: The Navigation Compass from Transformer to Mamba
- 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba