In-Context Stochastic Gradient Descent with Hybrid Mamba-2 and Linear Self-Attention Model
Zhijie Wang, Shuai Li
ICLR 2026 submission
Abstract. State space models (SSMs) have gained popularity as an alternative to Transformers by mitigating the quadratic computational cost associated with self-attention. However, despite their widespread adoption, the theoretical principles underlying their ability to perform in-context learning (ICL) remain poorly understood. In this work, we theoretically analyze the widely used Mamba-2 model (Dao et al. 2024) and demonstrate that a single-layer Mamba-2 can simulate one step of gradient descent, while a hybrid architecture combining Mamba with a Transformer (Mamba TF) can perform mini-batch stochastic gradient descent. Our experimental results support these theoretical findings.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…