Non-Commutative Dynamics in Linear Recurrent Models

This direction is split into other directions: non-commutative state dynamics. Its last version stays readable and citable here.

Version 1 of 154 papers90 conceptsfrozen 2026-10-04

Modern sequence modeling has seen a massive shift toward Linear Recurrent Neural Networks (LRNNs) and State-Space Models (SSMs) like Mamba and S4. These models are celebrated because they bridge a critical gap: they offer the parallelizable training of Transformers while maintaining the linear-time inference of traditional RNNs.

However, this efficiency comes from a specific structural choice: the use of diagonal state-transition matrices. Recent research has revealed that this choice creates a fundamental "expressivity gap," preventing these models from solving tasks that require complex state-tracking, such as tracking chess moves, executing code, or solving parity problems.

The Commutativity Bottleneck

To understand why diagonal matrices are limiting, we must look at how they update their internal state. In a standard linear recurrence, the state $h_t$ is updated by multiplying the previous state $h_{t-1}$ by a transition matrix $A$. If $A$ is diagonal, each dimension of the hidden state evolves independently.

The mathematical consequence is commutativity. In a diagonal system, the order of inputs doesn't change the final state in the same way it does in a dense system. As Aleksandar Terzic and colleagues demonstrate in On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languages, diagonal SSMs are mathematically restricted to emulating commutative (Abelian) automata.

If a task requires non-commutative logic—where the specific sequence of operations matters, such as nested parentheses in code or complex permutations—a single diagonal layer simply cannot represent it. Mehran Shakerinava and Sarath Chandar prove in The Expressive Limits of Diagonal SSMs for State-Tracking that while stacking multiple layers can theoretically help, diagonal models remain fundamentally unable to represent non-solvable group structures regardless of depth.

The Problem with Positive Eigenvalues

Beyond the diagonal structure, many efficient SSMs restrict their transition eigenvalues to the positive real range $[0, 1]$ to ensure stability. While this prevents the model from "exploding," it also prevents it from "flipping."

As Julien Siems and Riccardo Grazzi point out in Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues, a model restricted to positive eigenvalues cannot represent oscillatory dynamics. It can only model decaying exponentials. This makes it impossible for the model to solve a simple "parity" task (counting whether a bit has appeared an even or odd number of times), as parity requires the state to oscillate between two values. By simply allowing negative eigenvalues in the range $[-1, 1]$, these researchers found that models like Mamba suddenly gain the ability to solve complex state-tracking and modular arithmetic tasks.

Bridging the Gap with Dense and Structured Transitions

To overcome these limits without losing the speed of linear models, researchers are exploring new ways to parameterize the transition matrix $A$:

  1. Selective Dense Transitions: Aleksandar Terzic introduced the SD-SSM (Selective Dense State-Space Model), which uses dense transition matrices to capture non-commutative logic. This allows a single layer to achieve perfect length generalization on regular languages that stump diagonal models (/work/on-the-expressiveness-and-length-generalization-of-selective).
  2. Fixed-Point and Implicit Recurrence: Sajad Movahedi and Antonio Orvieto proposed Fixed-Point RNNs (FP-RNNs). These models treat a dense recurrence as the fixed-point of a diagonal one, allowing the model to adaptively trade off computation time for the expressivity needed to solve complex logic (/work/fixed-point-rnns-interpolating-from-diagonal-to-dense).
  3. Structured Sparsity: To maintain the $O(N)$ scaling of diagonal models, Terzic also developed PD-SSM, which uses a structured sparse transition matrix (a product of a permutation $P$ and a diagonal $D$). This provides the non-commutative "mixing" of a dense model with the efficiency of a diagonal one (/work/structured-sparse-transition-matrices-to-enable-state).

Why It Works: The Intuition of Rotation

The core intuition behind this research direction is that memory is not just storage; it is transformation.

A diagonal model "stores" information by decaying it or gating it. A non-commutative or complex-valued model "transforms" information by rotating it. Nadav Cohen and colleagues prove in Provable Benefits of Complex Parameterizations for Structured State Space Models that complex-valued parameters allow models to represent periodic patterns and long-range dependencies far more efficiently than real-valued ones.

By moving from simple decay to complex rotations and non-commutative updates, these models transition from being "passive" memory stores to "active" state machines capable of the algorithmic reasoning required for the next generation of large language models.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_non_commutative_dynamics_in_linear_recur_82f87031,
  title = {Non-Commutative Dynamics in Linear Recurrent Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/non-commutative-dynamics-in-linear-recurrent-models/rdr_82f87031f592439cb9e287229ad1cca3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_non_commutative_dynamics_in_linear_recur_82f87031_v1,
  title = {Non-Commutative Dynamics in Linear Recurrent Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/non-commutative-dynamics-in-linear-recurrent-models/rdr_82f87031f592439cb9e287229ad1cca3/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}