mlsanityData to 13 Oct 2026

DYNAMAX: Dynamic computing for Transformers and Mamba based architectures

arXiv 2504.20922 ↗First posted 29 Apr 2025cs.CL cs.AI cs.LGcited by 3

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

  1. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec

Other references · 33

  1. 2017Attention Is All You Needcited by 60,106
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,231
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  6. 2015Distilling the Knowledge in a Neural Networkcited by 10,180
  7. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,247
  8. 2020Longformer: The Long-Document Transformercited by 3,393
  9. 2023Mistral 7Bcited by 3,123
  10. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,949
  11. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,925
  12. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,215
21 more
  1. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,954
  2. 2020Linformer: Self-Attention with Linear Complexitycited by 1,469
  3. 2018CoQA: A Conversational Question Answering Challengecited by 681
  4. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 652
  5. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 592
  6. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 359
  7. 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 330
  8. 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 305
  9. 2022Confident Adaptive Language Modelingcited by 302
  10. 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 247
  11. 2019Depth-Adaptive Transformercited by 230
  12. 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
  13. 2024The Unreasonable Ineffectiveness of the Deeper Layerscited by 221
  14. 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 209
  15. 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendationscited by 201
  16. 2023Scaling Autoregressive Multi-Modal Models: Pretraining and Instruction Tuningcited by 168
  17. 2023Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decodingcited by 80
  18. 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
  19. 2023Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Studycited by 63
  20. 2020CascadeBERT: Accelerating Inference of Pre-trained Language Models via Calibrated Complete Models Cascadecited by 47
  21. 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024A Survey of Mamba
  2. 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Model
  3. 2024Early Exit Is a Natural Capability in Transformer-based Models: An Empirical Study on Early Exit without Joint Optimization
  4. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Models
  5. 2025Differential Mamba
  6. 2024An Empirical Study of Mamba-based Language Models
  7. 2024Venturing into Uncharted Waters: The Navigation Compass from Transformer to Mamba
  8. 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba