paper-with-me

홈 › Papers

DYNAMAX: Dynamic computing for Transformers and Mamba based architectures

2025-04-29 · Miguel Nogales, Matteo Gambella, Manuel Roveri

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.

📄 PDF Abstract BibTeX arXiv:2504.20922

Code (0)

등록된 구현이 없습니다.

Tasks

MambaTriviaQATruthfulQA

Methods 이 논문이 사용한 방법론

Mamba Foundation models, now powering most of the exciting applications in deep learning, are almost universally based on the Transformer architecture and its core attention module.…

Similar Papers 제목 키워드 기반

Characterizing the Behavior of Training Mamba-based State Space Models on GPUs

2025-08-25 · Trinayan Baruah, Kaustubh Shivdikar, Sara Prescott, David Kaeli arxiv

Mamba-based State Space Models (SSM) have emerged as a promising alternative to the ubiquitous transformers. Despite the expressive power of transformers, the quadratic complexity of computing attention is a major impedi…

Text Generation

PPG-Based Affect Recognition with Long-Range Deep Models: A Measurement-Driven Comparison of CNN, Transformer, and Mamba Architectures

2026-04-28 · Karim Alghoul, Hussein Al Osman, Abdulmotaleb El Saddik arxiv

Photoplethysmography (PPG) is increasingly used in wearable affective computing due to its low cost and ease of integration into consumer devices. Recent advances in deep learning have introduced long-range sequence mode…

A2Mamba: Attention-augmented State Space Models for Visual Recognition

2025-07-22 · Meng Lou, Yunxiang Fu, Yizhou Yu arxiv

Transformers and Mamba, initially invented for natural language processing, have inspired backbone architectures for visual recognition. Recent studies integrated Local Attention Transformers with Mamba to capture both l…

Semantic SegmentationInstance SegmentationObject Detection

A Comprehensive Survey of Mamba Architectures for Medical Image Analysis: Classification, Segmentation, Restoration and Beyond

2024-10-03 · Shubhi Bansal, Sreeharish A, Madhava Prasath J, Manikandan S 외

Mamba, a special case of the State Space Model, is gaining popularity as an alternative to template-based deep learning approaches in medical image analysis. While transformers are powerful architectures, they have drawb…

MambaMedical Image AnalysisState Space ModelsSurvey

State Space Models are Strong Text Rerankers

2024-12-18 · Zhichao Xu, Jinghua Yan, Ashim Gupta, Vivek Srikumar

Transformers dominate NLP and IR; but their inference inefficiencies and challenges in extrapolating to longer contexts have sparked interest in alternative model architectures. Among these, state space models (SSMs) lik…

Long-Context UnderstandingMambaRerankingState Space Models+1