Manuscript Offprint

arXiv:2610.13341

Understanding Mamba-3 Through Oscillatory Dynamics

Shutian Liang, Yue Song

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Mamba-3 introduces input-dependent rotations into recurrent state updates, but their contribution beyond state retention remains unclear. We interpret these rotations as underdamped second-order dynamics, providing a framework for investigating the role of oscillation in sequence modeling. Controlled comparisons show that underdamped dynamics outperform non-oscillatory damping regimes on state-tracking tasks, while language-model pretraining demonstrates benefits for long-context prediction and length generalization. Interventions in pretrained models further establish the importance of learned phase, and state analysis suggests that rotation regulates how retained information combines with incoming updates. Taken together, these findings identify underdamped dynamics as a useful mechanism for recurrent computation and suggest that oscillation supports long-context processing by regulating how information accumulates. The project and code are available at https://shutian-liang.github.io/oscillationmamba/.

1 INTRODUCTION

State-space models (SSMs) process sequences through recurrent updates to a hidden state (Gu et al., 2021). Their dynamical structure enables linear-time sequence processing and constant-memory autoregressive inference, while structured algorithms support parallel training. These properties make SSMs an efficient alternative to attention-based models (Vaswani et al., 2017). In selective SSMs such as Mamba-1 (Gu & Dao, 2023) and Mamba-2 (Dao & Gu, 2024), input-dependent updates determine what information enters and leaves the state, while multiplicative decay controls how much of the existing state is retained.

Mamba-3 (Lahoti et al., 2026) adds input-dependent rotation to this state evolution through complex-valued transitions. Unlike conventional rotary positional embeddings in Transformers (Su et al., 2024), whose angles follow a prescribed positional schedule, Mamba-3 learns phase increments from the input. As illustrated in Fig. 1, these rotations change the direction of the retained state, turning pure decay into spiraling evolution under fixed coefficients. This geometric distinction raises a natural computational question: what do learned rotations contribute beyond state retention, particularly over long contexts?

We investigate this question by interpreting Mamba-3's decay–rotation transition as an underdamped second-order system. In this representation, decay sets damping envelopes, while rotation produces oscillatory phase evolution. The connection provides a unified framework for comparing underdamped, critically damped, and overdamped dynamics. Our analysis characterizes how these regimes differ in mode persistence and state geometry, and controlled state-tracking experiments show a clear advantage of underdamped dynamics. Since all three variants retain coupled second-order states, the comparisons highlight the computational contribution of the oscillatory regime.

Our language-modeling experiments examine whether this contribution extends to the use of contextual information. In pretrained Mamba-3 models, removing phase rotation affects context-dependent prediction on LAMBADA (Paperno et al., 2016) much more strongly than factual relation prediction (Hernandez et al., 2024). We further train oscillatory and non-oscillatory models from scratch to assess how rotation affects learned long-context capabilities. Experimental results show that oscillatory models achieve lower PG-19 perplexity (Rae et al., 2019) beyond the training context length at both evaluated scales, with downstream gains on LongBench-E (Bai et al., 2024) at the larger scale.

∗^{*}Denotes corresponding author.

(a) Transition Geometry

(b) Temporal Dynamics

(c) Dynamical-System Interpretation

Mamba-2: ht=ρht−1h_t = \rho h_{t-1}

Figure

Mamba-3: ht=ρR(θ)ht−1h_t = \rho R(\theta) h_{t-1}

h˙+2ζω0h˙+ω02h=0\dot{h} + 2\zeta\omega_0\dot{h} + \omega_0^2h = 0

Figure 1: A geometric perspective on Mamba-3's recurrent dynamics. (a) Mamba-2 scales the retained state, while Mamba-3 additionally rotates it. (b) With fixed coefficients and no input, decay-rotation produces a spiraling trajectory. (c) This geometry motivates our interpretation of Mamba-3 as an underdamped second-order system with oscillatory dynamics.

To understand how oscillation contributes to these gains, we examine how learned phase shapes recurrent computation through interventions in pretrained Mamba-3 models. Removing, reversing, or shuffling phase increments substantially degrades long-context prediction. Phase removal also increases alignment between retained history and incoming updates, together with larger state norms, suggesting that rotation moderates constructive accumulation. Interventions on writing and readout further reveal the importance of compatible phase coordinates for accessing retained information.

Our main findings are:

• Underdamped dynamics provide a useful interpretation of Mamba-3. The second-order representation connects its learned rotations to oscillation and enables damping-regime comparisons that demonstrate the benefit of underdamping for state tracking.

• Oscillation benefits long-context language modeling. Controlled pretraining shows improved length generalization at both evaluated scales (187M and 444M), with downstream long-context gains emerging at the larger scale.

• Learned phase regulates recurrent state accumulation. Phase interventions establish its importance for long-context prediction, while state analysis suggests that rotation moderates constructive accumulation between retained history and incoming updates.

Together, these findings suggest that effective recurrent memory in SSMs depends on both how much information is retained and how that information is transformed as new inputs arrive. More broadly, this dynamical perspective motivates oscillatory dynamics as a design dimension for sequence architectures, with extensions to linear-attention and other recurrent models (Appendix A). We further discuss state dynamics as a design principle in our blog post, Back to Dynamics.

References (47)