paper-with-me

홈 › Papers

Mamba: Linear-Time Sequence Modeling with Selective State Spaces

2023-12-01 · Albert Gu, Tri Dao

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. Many subquadratic-time architectures such as linear attention, gated convolution and recurrent models, and structured state space models (SSMs) have been developed to address Transformers' computational inefficiency on long sequences, but they have not performed as well as attention on important modalities such as language. We identify that a key weakness of such models is their inability to perform content-based reasoning, and make several improvements. First, simply letting the SSM parameters be functions of the input addresses their weakness with discrete modalities, allowing the model to selectively propagate or forget information along the sequence length dimension depending on the current token. Second, even though this change prevents the use of efficient convolutions, we design a hardware-aware parallel algorithm in recurrent mode. We integrate these selective SSMs into a simplified end-to-end neural network architecture without attention or even MLP blocks (Mamba). Mamba enjoys fast inference (5$\times$ higher throughput than Transformers) and linear scaling in sequence length, and its performance improves on real data up to million-length sequences. As a general sequence model backbone, Mamba achieves state-of-the-art performance across several modalities such as language, audio, and genomics. On language modeling, our Mamba-3B model outperforms Transformers of the same size and matches Transformers twice its size, both in pretraining and downstream evaluation.

📄 PDF Abstract BibTeX arXiv:2312.00752

Code (35)

radarFudan/mamba 공식 구현 pytorch
state-spaces/mamba 공식 구현 pytorch
AmazingDay1/TAME pytorch
Jiaxin-Ye/DepMamba pytorch
KyanChen/RSMamba pytorch
Leeroo-AI/mergoo pytorch
aiot-mlsys-lab/famba-v pytorch
anzeyimana/deepkin pytorch
areffarhadi/mamba-asr pytorch
catalpaaa/demansia pytorch
haiyang-w/tokenformer pytorch
havenhq/mamba-chat pytorch
human9000/nd-mamba2-torch pytorch
hustvl/vim pytorch
irmvlab/point-mamba pytorch
jindongjiang/slotssms pytorch
johnma2006/mamba-minimal pytorch
jsie7/ssm-benchmark pytorch
kaviezhang/meshmamba pytorch
khfs/DuplexMamba jax
lab-emi/cleanumamba pytorch
lmd0311/pointmamba pytorch
mzeromiko/vmamba pytorch
nus-hpc-ai-lab/dyvm pytorch
shendb2022/htd-mamba pytorch
thearkaprava/ms-temba pytorch
tommyip/mamba2-minimal pytorch
vvvm23/mamba-jax jax
weitunglin/pixmamba pytorch
weiwang31/icemamba pytorch
xi-j/mamba-asr pytorch
zhangyezhuo/mamca pytorch
zhu-0108/mts-unmixers pytorch
zyphra/blackmamba pytorch
zzmtsvv/mamba-interface jax

Tasks

2D Pose EstimationCommon Sense ReasoningComputational EfficiencyLanguage ModelingLanguage ModellingLong-range modelingMambaSentence CompletionState Space Models

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.…
Multi-Head Attention 설명 없음
Attention 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Speech-Mamba: Long-Context Speech Recognition with Selective State Spaces Models

2024-09-27 · Xiaoxue Gao, Nancy F. Chen

Current automatic speech recognition systems struggle with modeling long speech sequences due to high quadratic complexity of Transformer-based models. Selective state space models such as Mamba has performed well on lon…

Automatic Speech RecognitionMambaspeech-recognitionSpeech Recognition+1

HMamba: Hyperbolic Mamba for Sequential Recommendation

2025-05-14 · Qianru Zhang, Honggang Wen, Wei Yuan, Crystal Chen 외

Sequential recommendation systems have become a cornerstone of personalized services, adept at modeling the temporal evolution of user preferences by capturing dynamic interaction sequences. Existing approaches predomina…

MambaRecommendation SystemsSequential Recommendation

MambaLRP: Explaining Selective State Space Sequence Models

2024-06-11 · Farnoush Rezaei Jafari, Grégoire Montavon, Klaus-Robert Müller, Oliver Eberle

Recent sequence modeling approaches using selective state space sequence models, referred to as Mamba models, have seen a surge of interest. These models allow efficient processing of long sequences in linear time and ar…

Language ModelingLanguage ModellingMamba

MODE: Efficient Time Series Prediction with Mamba Enhanced by Low-Rank Neural ODEs

2026-01-01 · Xingsheng Chen, Regina Zhang, Bo Gao, Xingwei He 외 arxiv

Time series prediction plays a pivotal role across diverse domains such as finance, healthcare, energy systems, and environmental modeling. However, existing approaches often struggle to balance efficiency, scalability, …

Computational EfficiencyTime Series Prediction

On the Expressivity of Selective State-Space Layers: A Multivariate Polynomial Approach

2025-02-04 · Edo Cohen-Karlik, Itamar Zimerman, Liane Galanti, Ido Atad 외

Recent advances in efficient sequence modeling have introduced selective state-space layers, a key component of the Mamba architecture, which have demonstrated remarkable success in a wide range of NLP and vision tasks. …

Mamba