Understanding and Mitigating Bottlenecks of State Space Models through the Lens of Recency and Over-smoothing
Peihao Wang, Ruisi Cai, Yuehao Wang, Jiajun Zhu, Pragya Srivastava, Zhangyang Wang, Pan Li
TL;DR
The paper analyzes State Space Models ($SSMs$) as scalable alternatives to transformers for long sequences, uncovering a fundamental recency bias and a depth-driven over-smoothing bottleneck. It provides both theoretical results, including an exponential decay bound on token influence and smoothing bounds, and extensive empirical validation across $SSM$ families such as $S4$ and $Mamba$. The authors propose a practical polarization technique that reserves two channels in the state-transition matrices, setting one to 1 and the other to 0, to simultaneously preserve historical information and slow smoothing. This polarization improves associative recall of long-range tokens and enables deeper architectures to better utilize extended contexts, with releases of source code to facilitate adoption and further research.
Abstract
Structured State Space Models (SSMs) have emerged as alternatives to transformers. While SSMs are often regarded as effective in capturing long-sequence dependencies, we rigorously demonstrate that they are inherently limited by strong recency bias. Our empirical studies also reveal that this bias impairs the models' ability to recall distant information and introduces robustness issues. Our scaling experiments then discovered that deeper structures in SSMs can facilitate the learning of long contexts. However, subsequent theoretical analysis reveals that as SSMs increase in depth, they exhibit another inevitable tendency toward over-smoothing, e.g., token representations becoming increasingly indistinguishable. This fundamental dilemma between recency and over-smoothing hinders the scalability of existing SSMs. Inspired by our theoretical findings, we propose to polarize two channels of the state transition matrices in SSMs, setting them to zero and one, respectively, simultaneously addressing recency bias and over-smoothing. Experiments demonstrate that our polarization technique consistently enhances the associative recall accuracy of long-range tokens and unlocks SSMs to benefit further from deeper architectures. All source codes are released at https://github.com/VITA-Group/SSM-Bottleneck.
