paper-with-me

홈 › Papers

The Hidden Attention of Mamba Models

2024-03-03 · Ameen Ali, Itamar Zimerman, Lior Wolf

The Mamba layer offers an efficient selective state space model (SSM) that is highly effective in modeling multiple domains, including NLP, long-range sequence processing, and computer vision. Selective SSMs are viewed as dual models, in which one trains in parallel on the entire sequence via an IO-aware parallel scan, and deploys in an autoregressive manner. We add a third view and show that such models can be viewed as attention-driven models. This new perspective enables us to empirically and theoretically compare the underlying mechanisms to that of the self-attention layers in transformers and allows us to peer inside the inner workings of the Mamba model with explainability methods. Our code is publicly available.

📄 PDF Abstract BibTeX arXiv:2403.01590

Code (1)

ameenali/hiddenmambaattn 공식 구현 pytorch

Tasks

Mamba

Similar Papers 제목 키워드 기반

2Mamba2Furious: Linear in Complexity, Competitive in Accuracy

2026-02-19 · Gabriel Mongaras, Eric C. Larson arxiv

Linear attention transformers have become a strong alternative to softmax attention due to their efficiency. However, linear attention tends to be less expressive and results in reduced accuracy compared to softmax atten…

Hybrid Mamba for Few-Shot Segmentation

2024-09-29 · Qianxiong Xu, Xuanyi Liu, Lanyun Zhu, Guosheng Lin 외

Many few-shot segmentation (FSS) methods use cross attention to fuse support foreground (FG) into query features, regardless of the quadratic complexity. A recent advance Mamba can also well capture intra-sequence depend…

Few-Shot Semantic SegmentationMamba

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

Cross-attention Inspired Selective State Space Models for Target Sound Extraction

2024-09-07 · Donghang Wu, Yiwen Wang, Xihong Wu, Tianshu Qu

The Transformer model, particularly its cross-attention module, is widely used for feature fusion in target sound extraction which extracts the signal of interest based on given clues. Despite its effectiveness, this app…

Computational EfficiencyMambaState Space ModelsTarget Sound Extraction

Learning to (Learn at Test Time): RNNs with Expressive Hidden States

2024-07-05 · Yu Sun, Xinhao Li, Karan Dalal, Jiarui Xu 외

Self-attention performs well in long context but has quadratic complexity. Existing RNN layers have linear complexity, but their performance in long context is limited by the expressive power of their hidden state. We pr…

16k8kMambaSelf-Supervised Learning