Mamba-3's Oscillatory Rotations Beat Pure Decay Beyond 2K Tokens
A new analysis frames Mamba-3's rotating state updates as damped oscillators, showing phase, not just decay, drives long-context gains.
- New analysis interprets Mamba-3's rotations as underdamped second-order dynamics with decay plus phase.
- Underdamped regimes beat non-oscillatory damping on state-tracking tasks like parity and modular arithmetic.
- Oscillatory variants show lower perplexity at long contexts on PG-19, CodeParrot, MATH-Hard, TriviaQA, SlimPajama.
- Zeroing learned phase in pretrained models degrades accuracy, confirming phase values themselves matter.
- State geometry shows ~180 degree rotations for parity, ~120 degrees for mod-3, matching task group structure.
- Builds on the original Mamba-3 architecture using data-dependent RoPE for complex-valued state transitions.
Mamba-3’s Rotations Behave Like Damped Oscillators
Mamba-3 added input-dependent rotations to recurrent state updates, expanding the sequence computations that diagonal state space models can represent. Earlier Mamba-2-style transitions mainly scaled stored state down at each step. Their real, positive transition values support fading memory but exclude periodic state changes required for tasks such as parity and modular counting.
A new analysis, Understanding Mamba-3 Through Oscillatory Dynamics, examines how trained models use this capability. The paper finds that Mamba-3 combines rotation with decay to create underdamped oscillations. Controlled tasks produce phase structures aligned with their underlying arithmetic, while language-model experiments connect oscillation to stronger extrapolation beyond the training context.
Rotation gives memory a phase
In simplified terms, a Mamba-2-style transition multiplies the recurrent state by a scalar between zero and one. Each token therefore weakens previous state before adding new information. Mamba-3 introduces a complex-valued transition whose angle can depend on the current input.
The implementation avoids explicitly storing complex states. It expresses the transition through data-dependent rotary positional embedding, or RoPE, operations applied to the model’s B and C projections. The B projection controls how input enters the recurrent state, while C controls how that state contributes to the output.
A complex transition can be written as
This story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.