Revealing and Mitigating the Local Pattern Shortcuts of Mamba

Large language models (LLMs) have advanced significantly due to the attention mechanism, but their quadratic complexity and linear memory demands limit their performance on longcontext tasks.Recently, researchers introduced Mamba, an advanced model built upon State Space Models (SSMs) that offers linear complexity and constant memory.Although Mamba is reported to match or surpass the performance of attention-based models, our analysis reveals a performance gap: Mamba excels in tasks that involve localized key information but faces challenges with tasks that require handling distributed key information.Our controlled experiments suggest that the inconsistency arises from Mamba's reliance on local pattern shortcuts across model scales (10M to 1.4B), which enable Mamba to remember local key information within its limited memory but hinder its ability to retain more dispersed information.Therefore, we introduce a global gate module into the Mamba model to address this issue.Experiments on extensive synthetic tasks, as well as real-world tasks, demonstrate the effectiveness of our method.Notably, with the introduction of only 4M extra parameters, our approach enables the Mamba model (130M) to achieve a significant improvement on tasks with distributed information, increasing its performance from below 5% to 80%.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.629
Primary Topic
Agriculture and Rural Development Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Revealing and Mitigating the Local Pattern Shortcuts of Mamba

Lili Yao, Zecheng Tang, Min Zhang, Juntao Li et al.
Agriculture and Rural Development Research
article

Revealing and Mitigating the Local Pattern Shortcuts of Mamba

Lili Yao, Zecheng Tang, Min Zhang, Juntao Li, Wangjie You
article en

Abstract

Large language models (LLMs) have advanced significantly due to the attention mechanism, but their quadratic complexity and linear memory demands limit their performance on longcontext tasks.Recently, researchers introduced Mamba, an advanced model built upon State Space Models (SSMs) that offers linear complexity and constant memory.Although Mamba is reported to match or surpass the performance of attention-based models, our analysis reveals a performance gap: Mamba excels in tasks that involve localized key information but faces challenges with tasks that require handling distributed key information.Our controlled experiments suggest that the inconsistency arises from Mamba's reliance on local pattern shortcuts across model scales (10M to 1.4B), which enable Mamba to remember local key information within its limited memory but hinder its ability to retain more dispersed information.Therefore, we introduce a global gate module into the Mamba model to address this issue.Experiments on extensive synthetic tasks, as well as real-world tasks, demonstrate the effectiveness of our method.Notably, with the introduction of only 4M extra parameters, our approach enables the Mamba model (130M) to achieve a significant improvement on tasks with distributed information, increasing its performance from below 5% to 80%.

National Science Foundation, National Natural Science Foundation of China, Government of Jiangsu Province, Natural Science Foundation of Jiangsu Province
Climate action
Openalex Percentile: Top 84%
Agriculture and Rural Development Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.