Skip to content

The Attention Within: Consensus Dynamics in Selective State Space Models

Sep 2026 · arXiv.org · Vol abs/2609.17997 · 1 citation · 31 references
Computer Science Engineering Mathematics

TL;DR

It is shown that the resemblance between SSMs and transformers does run deeper: the recurrence at the core of SSMs aggregates tokens just as attention does, and the evolution of tokens across layers as an ordinary differential equation.

Abstract

Selective state space models (SSMs) have recently emerged as a compelling alternative to transformers, combining competitive performance with substantially improved inference efficiency. At each SSM layer, a sequence of hidden states are propagated by a recurrence, mixing information of different tokens. Despite using a different mechanism, this mixing plays a role analogous to attention in transformers. In fact, recent works have shown that the two architectures may be closer than they first appear, as this recurrence admits a formulation akin to linear attention. In transformers, attention is known to drive the tokens to cluster, i.e., to reach consensus, collapsing in the limit to a single direction. Thus, we ask: does the recurrence at the core of SSMs drive the tokens to consensus, as attention does in transformers? To answer this question, we take a dynamical systems perspective on SSMs, modeling the evolution of tokens across layers as an ordinary differential equation. By exploiting input-to-state stability arguments, we establish local exponential stability of the consensus equilibria and characterize their domain of attraction for time-varying weight matrices, a setting not addressed by previous results. We thereby show that the resemblance between SSMs and transformers does run deeper: the recurrence at the core of SSMs aggregates tokens just as attention does. Numerical experiments on a pretrained Mamba-2 model point to the output gate as the component that regulates the extent of this consensus, preventing the tokens from reaching it in full.

View source

Similar papers

On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models

It is shown that this gating mechanism causes SSMs to first learn an in-weights"memorization"solution, while delaying, or even preventing, convergence to a correct in-context learning solution, and that gating is often beneficial for improving generalization to long sequence lengths.

W. Tong, Aryo Lotfi, Emmanuel Abbé et al. · 1 citation
Preprint Oct 2026

Distributed Learning with Selective State Space Models: Architecture-Aware Convergence Analysis

Modern state space models (SSMs), such as Mamba2, provide a compelling alternative to transformers by combining linear-time sequence modeling with recurrent state-space dynamics. However, the behavior of SSMs in distributed learning settings remains poorly understood. In particular, the existing standard federated lear...

Adam Piaseczny, Md Kamran Chowdhury Shisher, Shi-Qiang Wang et al. · 0 citations

Reinforcement Learning with Complex (valued) Memories

This work revisits Unitary recurrent networks (uRNNs) and proposes three different versions of uRNNs as drop-in replacements for recurrent PPO architectures, and demonstrates that the simple recurrence and the added degree of freedom from the phase of the complex representations enable significant gains over baselines...

Sathya Kamesh Bhethanabhotla, E. Gavves, André Biedenkapp · 0 citations

A Comparative Analysis of Attention versus State-Space Models for In-Context Learning

Transformers and state-space models (SSMs) are two prominent sequential learning architectures, yet their comparison remains largely empirical and existing theoretical analyses are typically task-specific or architecturally restricted. In this paper, we develop belief geometry, a unified analytical framework for compar...

Enes Arda, Semih Cayci, Atilla Eryilmaz · 0 citations
#machine learning Preprint Oct 2026

When Dynamic Scaling Fails: A Scale-State Feedback Governs Recurrent-State Quantization in Linear-Attention and SSM LLMs

Linear-attention and state-space LLMs carry long context in a fixed-size recurrent state, and quantizing that state is the natural way to cut its cost during long decode. Unlike a weight tensor, the state is rewritten at every step, so a quantizer applied at each step sits inside the recurrence and its errors compound....

Yu-Hang Jiang · 0 citations

dQwen3.5: Hybrid-Attention Diffusion Language Models

This work investigates whether hybrid backbones can become effective DLMs by adapting Qwen3.5 at 0.8B, 2B, 4B, and 9B scales, and finds that they can be efficient starting points for adaptation.

Anton Xue, Litu Rout, Aditya Akella et al. · 1 citation

Related blog posts

MIT News · Artificial Intelligence Sep 29, 2026

Who we become when we talk to machines

Professor Sherry Turkle’s new book, “Artificial Intimacy,” offers a withering critique of chatbots and the antisocial dynamics she believes they encourage.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.