NeurIPS 2026QuestionsPapersAreasAboutMarkdown

First-Token Attraction in Mamba Dynamics

Trinh Nguyen, Duy-Tung Pham, Minh-Khoi Nguyen-Nhat, Hoang-Son Do, Tan Nguyen, Thieu Vo

NeurIPS page · Open on the map

Category: Interpretability & Model Adaptation › Transformer Dynamics Theory · Type: theory · Keywords: token dynamics, Mamba models, analytical framework, exponential convergence, first-token attraction, sequence modeling

Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Transformer Dynamics

Summary

We develop an analytical framework that reveals how the first token attracts subsequent tokens in deep Mamba dynamics, proving exponential convergence and validating with experiments on Falcon-Mamba-7B.

Explained to a 5-year-old

In some computer programs that read words, the first word can pull the other words toward it. The researchers studied a kind of model that works with many numbers instead of simple rules. They used a clever idea with a high-dimensional box and a timing argument to understand this pulling. They proved that the pulling gets stronger and faster as the model gets deeper. They tested their theory on a large model and saw that the first word indeed dominated later words.

Explained to a 5-year-old, longer

Some computer programs read sequences of words, like sentences. In these programs, the first word sometimes has a special power over the rest of the words. The authors wanted to understand why this happens and how strong it is. They looked at a model that uses many numbers and interactions instead of simple rules. They created a special container that stays unchanged while the model runs. They also used a precise timing trick to see when the model leaves this container. Using these tools, they showed that the first word’s direction pulls later words toward it. They proved that this pulling grows exponentially fast as the model gets deeper. They also found that the effect spreads to other kinds of sequence models, like state-space models and time-series models. To check their ideas, they ran experiments on a large pre-trained model and observed the predicted behavior. The results showed that the concentration on the first token increased with depth and dominated in later layers. This helps us better understand how deep sequence models behave and why early tokens can have such a strong influence.

For a technical reader

The paper analyzes how tokens evolve in deep Mamba models, focusing on the influence of the first token. It introduces a high-dimensional invariant box and an exit-time argument to recover sign-definiteness, enabling rigorous convergence proofs. Experiments on a large Mamba model confirm that deeper layers exhibit stronger concentration on the first token, validating the theoretical predictions.

Problem

Analyzing token dynamics in deep sequence models that use full matrix-valued interaction coefficients is difficult because existing techniques rely on positivity assumptions that do not hold in these models.

Method

The approach constructs a high-dimensional invariant box and employs a sharp exit-time argument to recover an effective sign-definiteness property, enabling the characterization of limit points and derivation of exponential convergence rates for token trajectories.

Results

The experiments confirm that token concentration on the first token grows with model depth and becomes dominant in deeper layers.

Contributions

We provide a novel analytical framework that recovers sign-definiteness for matrix-valued interactions, characterize limit points of token dynamics, prove exponential convergence rates, and demonstrate the first-token attraction phenomenon across various sequence models.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction