Manuscript Offprint
arXiv:2611.03101Diagonal Equivalence in State Space Models: Characterization, Retrieval Rank, and Selective Extensions
Abstract
We classify real and complex state-space models (SSMs) with linear transitions, distinguishing fixed-basis diagonal equivalence from input-output equivalence and tracking coefficient-conditioning windows under coordinate changes. We characterize diagonal equivalence through commuting transition families whose members are diagonalizable over the chosen field. With time-shared token-local matrix maps, we identify this class's state-mediated kernels with unnormalized scalar-mode linear attention with multiplicative masks. Mamba 3's multiple-input, multiple-output (MIMO) construction lifts one value per local interface; SSD-MIMO routes independent values for local retrieval rank above one. HybridMamba combines Mamba 1's per-coordinate decay, Mamba 2-style heads and Mamba 3's complex rotations and two-endpoint writes, mixing real and rotating state blocks with different decay laws. They recover Mamba 1–3 single-input, single-output (SISO) configurations as exact special cases. On five large H100 bfloat16 workloads, our fused GPU kernels improve geometric-mean training time over official Mamba 1/3 in matched SISO recoveries, with Mamba 2 near parity at SSM-core scope. Memory tradeoffs depend on the baseline and metric: saved-for-backward versus peak allocation. In small-model multi-token recall experiments, both designs outperform Mamba 1–3 on the hardest tier; higher routing ranks perform best in gated or phase-diverse configurations. In single-seed language models with about 500M parameters, both improve on Mamba 1/2 in test loss at 2B tokens, but the routing gains do not translate into lower language-model loss. Our best configurations approach Mamba 3 SISO through 10B tokens while remaining behind it and Mamba 3 MIMO in language-model loss.
1 Introduction
Selective state-space models (SSMs) process sequences through a fixed-size recurrent state, with transition, write and read maps conditioned on a bounded window of inputs. They offer an alternative to the quadratic token interactions of dense self-attention (Vaswani et al., 2017; Dao et al., 2022; Dao, 2024). The state update remains affine in the state. Which state-space models are diagonal-equivalent, meaning that one fixed basis diagonalizes their transitions for every input and step? When can a model outside this class nevertheless admit an input-output-equivalent diagonal realization, and what coefficient-conditioning windows does that require? How can selective models within the class be extended?
For the fixed-basis question, the criterion is precise: over or , the entire realized transition family admits one diagonalizing basis exactly when its members commute pairwise and each is diagonalizable (Theorem 8). A transition need not be supplied as a diagonal matrix; what matters is one basis that works for every input and step. Noncommuting pairs therefore rule out diagonal equivalence for nondegenerate DeltaNet, DeltaProduct and RWKV-7 configurations, even when individual transitions are diagonalizable (Yang et al., 2024b; 2025; Siems et al., 2025; Peng et al., 2025). A defective transition obstructs diagonalization over both fields; over , nonreal eigenvalues provide an additional obstruction.
LLM-based tools were used for manuscript revision, implementation assistance and consistency checks. The author reviewed the final content and takes responsibility for it.
Scalar interfaces: one value per state
SSD-MIMO: shared vector, sibling states

Figure 1: Local value routing, illustrated at equal total state width 4N. Left: four scalar interfaces, with and . Right: one SSD-MIMO group at supplies the same vector to four sibling states, with and , then combines their vector readouts as , with scalar sibling weights . Both yield four output coordinates; parameter sharing and computation need not match; coefficient generation and feedthrough are omitted.
By this criterion, many widely used SSMs and gated linear recurrences, selective or not, are diagonal-equivalent (Table 1). The structured state space sequence model (S4) used a time-invariant SSM evaluated by convolution (Gu et al., 2022a) and belongs to this class when its learned transition is diagonalizable. Diagonal state spaces (DSS), diagonal S4 (S4D) and simplified state space layers (S5) developed diagonal and scan-based formulations (Gupta et al., 2022; Gu et al., 2022b; Smith et al., 2023). Mamba introduced input-dependent selection (Gu & Dao, 2024), Mamba 2 scalar-transition state space duality (SSD) (Dao & Gu, 2024), and Mamba 3 complex dynamics with a revised write rule (Lahoti et al., 2026). Further examples include the linear recurrent unit (LRU) (Orvieto et al., 2023), retention network (RetNet) (Sun et al., 2023), gated linear attention (GLA) (Yang et al., 2024a), matrix long short-term memory (mLSTM) (Beck et al., 2024), real-gated LRU (RG-LRU) (De et al., 2024), hierarchically gated recurrent network with state expansion (HGRN2) (Qin et al., 2024) and adaptive unitary state space model (AUSSM) (Karuvally et al., 2025). In a fixed diagonalizing basis, their recurrence cores therefore differ mainly in how they parametrize per-coordinate decay, phase, writes and reads.
Why the fixed basis matters. We study recurrences of the form
At one local interface in real state coordinates, , and , with , , and . Thus counts supplied input features and counts local outputs; is the scalar, single-input, single-output (SISO) interface; gives a multiple-input, multiple-output (MIMO) interface, without requiring . The coefficient maps may depend on a wider conditioning input than .
Within the characterized class, one fixed change of coordinates turns the state evolution into independent diagonal recurrences and transforms the writes and reads accordingly. This fixed-basis property is stronger than input-output equivalence: with invertible transitions, a prefix-dependent change of state coordinates yields identity transitions and preserves outputs, but may require the full input prefix in the coefficient maps (Lemma 10). A fixed change of basis preserves the original conditioning window. Affine composition admits parallel scans for states and gradients even with non-diagonal transitions; diagonal structure makes the transition compositions coordinatewise, avoiding dense matrix products. Scalar transitions shared across state coordinates also yield a common history mask and the chunked matrix-multiply form of SSD (Dao & Gu, 2024); general diagonal transitions may require separate masks per coordinate, and coefficient sharing and map costs decide which form is efficient. With time-shared token-local maps, the state-mediated (write-state-read) kernels are exactly those of the masked linear attention class defined here. The correspondence preserves the complete output, including the initial-state contribution and direct feedthrough (Theorem 24).
Our taxonomy records transition families, input windows and local interfaces, complementing dynamical-system (Sieber et al., 2024), structured linear controlled differential equation (Walker et al., 2025) and test-time regression (Wang et al., 2025) formulations.
Two axes within the class. Our designs extend different parts of this common structure (Figure 1; Section 5). SSD-MIMO routes multiple independent values through MIMO interfaces, with decay shared across state coordinates within each scan head; Mamba 3's implemented MIMO construction instead lifts one supplied scalar per subsystem. HybridMamba (HM) combines per-coordinate decay, head sharing, complex rotation and the two-endpoint write through SISO interfaces. Neither design combines full MIMO routing with independently selected per-coordinate decay. These are distinctions in local interfaces and transition structure, rather than a whole-architecture expressivity ordering.
Evidence and contributions. Multi-query, multi-key, variable-length associative recall (MQMKVAR) combines multi-query associative recall (MQAR)'s layout (Arora et al., 2023a) with the multi-token keys and variable-length values of Mechanistic Architecture Design (MAD)'s fuzzy in-context recall (Poli et al., 2024), introducing controlled prefix and substring overlap to test recall under ambiguous keys (Figure 2). We evaluate three difficulty tiers, routing width, gates and transition mixtures. Our contributions are:
-
A structural framework and taxonomy. We distinguish fixed-basis diagonal equivalence from input-output equivalence and give a head-organized taxonomy of SSMs over and by transition families, coefficient-conditioning windows, and local state and interface widths (Section 3). Applying classical simultaneous diagonalization, we identify the diagonal-equivalent class and its obstructions. We place many established architectures within this class, including models formulated with non-diagonal transitions. We track how moving frames change coefficient windows, bound local retrieval rank and characterize token-local masked-linear-attention representations (Sections 2–4).
-
Two designs with validated baseline recovery. We introduce SSD-MIMO to route multiple independent values through each local interface, and HybridMamba to combine per-coordinate decay, head sharing, complex rotations and two-endpoint writes within one model. Explicit parameter maps recover Mamba 1, Mamba 2 and Mamba 3 SISO in exact arithmetic. Copied-weight tests check outputs, input gradients and parameter gradients against the official implementations, with finite-precision agreement and its limits reported in Section 5.6.
-
Optimized GPU kernels. Our native kernels support the two designs' real and complex dynamics, read/write gates, variable initial states and differentiable state continuation. SSD-MIMO supports SISO and MIMO interfaces, including unequal input and output widths (). For SISO baseline recoveries on H100 with bfloat16 (bf16), we outperform the official Mamba 1 and Mamba 3 implementations in geometric-mean training speed at both scan and full-mixer scope across five workloads varying batch size, sequence length and inner model width. Our Mamba 2 recovery is near parity with the official implementation at scan scope but slower at full-mixer scope on average; individual shapes can reverse these speed comparisons. Section 5.5 reports per-shape times and memory.
-
Multi-token recall findings. On MQMKVAR's multi-token, overlapping-key tasks, both designs outperform the Mamba 1–3 baselines on the hardest tier in our small-model setting. Routing two or four independent values per local interface gives SSD-MIMO its strongest results on the hardest tier; HybridMamba mixtures lead on the intermediate tier. These gains occur in configurations with write gates or differing sibling phases; their causal roles are not isolated. Section 6.1 defines the tiers and reports the shared learning-rate sweep and baseline budget differences.
-
Language-modelling findings. In approximately 500M-parameter models trained on FineWeb-Edu (Penedo et al., 2024), both SSD-MIMO and HybridMamba improve on Mamba 1 and Mamba 2

Figure 2: MQMKVAR recall combines MQAR (Arora et al., 2023a) with MAD's fuzzy recall (Poli et al., 2024). Dashed outlines mark , a proper prefix of ; dotted outlines mark the longer key's suffix . Queries match keys from their first token. By convention, proper-prefix queries start their targets at the first padding token , which confirms key completion; other answers start at their last key token. Targets align with the input positions predicting them; “-” and all context positions carry no loss. Earlier answers never enter the query input. “…” elides context entries, queries and variable-length, loss-masked padding gaps between queries. Results: Section 6.1; protocol: Appendix E.1.
in test loss at 2B tokens under the same training recipe. HybridMamba with 75% complex dynamic rows stays near Mamba 3 SISO through 10B tokens, slightly behind on loss; the tested SSD-MIMO configurations also remain close, while Mamba 3 MIMO has the lowest loss. The recall gains from wider routing described above do not translate into lower language-model loss in these experiments. These comparisons use one training seed per configuration; downstream outcomes and the role of routing are discussed in Section 6.2.
Relation to prior analysis. The fixed-basis criterion is classical simultaneous diagonalization (Horn & Johnson, 2013, Sec. 1.3), and the local rank bound is the matrix-product rank inequality; held-input discretization and affine scans use variation of constants (Teschl, 2012, Ch. 3) and prefix composition (Blelloch, 1993, Sec. 1.4). S5 diagonalizes a multidimensional-input/output system (Smith et al., 2023, Sec. 3), and Sieber et al. (2024, Sec. 3) compare recurrent architectures in one representation.
Recurrent/attention correspondences include the recurrent evaluation of linear attention (Katharopoulos et al., 2020), SSD's structured and scalar-mask forms (Dao & Gu, 2024, Secs. 3–5) and its extension to diagonal SSMs with a necessary and sufficient condition for a 1-semiseparable masked-attention dual (Hu et al., 2025), implicit attention with surrounding gates and convolutions (Zimerman et al., 2024, Sec. 3), GateLoop's cumulative transitions (Katsch, 2023, Sec. 3.3) and Mamba 3's complex-to-rotary equivalences (Lahoti et al., 2026, Props. 2–4). Order restrictions from commuting dynamics are known for diagonal controlled differential equations (Cirone et al., 2024, Thm. 4.3), a simultaneously diagonalizable, zero-forcing automaton encoding (Terzić et al., 2025, Prop. 1) and finite-precision group tracking (Shakerinava et al., 2026, Sec. 4).
Building on these results, we make explicit the whole realized transition family, state field, conditioning window and supplied-value interface. We distinguish a fixed basis from a prefix-dependent frame, and a kernel factorization from one with token-local generating maps. Our interior-swap test excludes shared token-local scalar-mode representations of a given observable kernel.
Implementation. We implement SSD-MIMO and HybridMamba in a PyTorch library with fused Triton/Gluon GPU kernels (Tillet et al., 2019). The code is publicly available at https://github.com/d-rochau/0rbitSSM. The SSD-MIMO scan extends the SSD decomposition used by Mamba 2/3 to routed contractions, rotation and the two-endpoint write; one backward kernel is modelled on Mamba 3's. The per-coordinate scan extends Mamba 1's selective scan to rotation and mixed decay laws. Tuned for NVIDIA Hopper and Blackwell, the kernels are timed against Mamba on an H100 (Section 5.5). All scans support differentiable initial/final states in whole-sequence, continued and step evaluation, including training through states carried across segments.
2.1 Continuous-time formulation, zero-order hold (ZOH), and discretization
We abbreviate ordinary differential equation as ODE and rotary positional embedding as RoPE.
Throughout this section, is the state field, while denote the external-input dimension, the combined state dimension, and the combined output dimension of one dynamical system. Inputs and outputs are real even when the state is complex, and we write and componentwise. Section 3 partitions the state into subsystems of width , giving , and uses for each subsystem's read width (Definition 20); Sections 2.3–2.5 concern one general system: is its real state width, its write-feature width and its output width; Section 2.3 realifies complex state coordinates into real coordinates.
To relate the complex and real cases, we use the realification , also used in Section 2.3, defined by . It is a real-linear bijection preserving the Euclidean norm, with viewed as a real vector space. For a complex scalar , with , define its real matrix representation by
For a matrix , define : each scalar entry is replaced by its block. Then
This entrywise block map preserves compatible products, ; for square , the exponential power series therefore gives .
Definition 1. Fix an initial time and an initial state . An admissible input is a measurable signal that is bounded on every compact time interval. A continuous-time SSM over has continuous coefficient maps and , and a Borel-measurable readout . For each admissible input, its state and output satisfy
Here is the hidden-state trajectory, the forcing, and the output signal. Both and may depend nonlinearly on the input. The state differential equation is affine in , with linear homogeneous part. Solutions are understood in the Carathéodory sense: is locally absolutely continuous and its differential equation holds almost everywhere.
The locally integrable coefficients and state-Lipschitz bound give a unique Carathéodory state trajectory and measurable output (Remark 26 in Appendix A.1, following Teschl, 2012, pp. 41–42); for , the same argument applies to through
Definition 2. Let , write for finite and , and take tokens in . Choose strictly increasing finite times and set for . When , assume , equivalently . The zero-order hold of the token sequence on this grid is the input
For finite , set for .
A continuous selective step gives ; Theorem 3 applies on each resulting grid. For , if all tokens lie in a compact set , then , so as .
Each compact time interval meets only finitely many holds, so the held input is admissible; its coefficients are piecewise constant, and the state is continuously differentiable inside each hold interval and continuous across boundaries. Token is held on and maps to the post-update state
so it is indexed by the end of its interval; the alternative convention holds on and produces . Changing input values only at the hold boundaries, a countable null set, leaves the state trajectory unchanged but may change the output there. The discrete readout pairs with the state it produces; it need not equal , since at a nonterminal boundary the right-continuous hold already takes the next token's value. On each hold interval, the state follows a constant-coefficient linear ODE with coefficients ; subscripted symbols denote the discrete step maps defined next.
For non-commutative matrix products, we write
with the convention that the product over an empty index range equals the identity matrix.
Theorem 3. Assume the continuous-time model of Definition 1 and the zero-order-hold input of Definition 2. There is a unique locally absolutely continuous state trajectory . Define by (5). For let
The series converges for every square matrix , and whenever is invertible. Define the discrete coefficients
Then at every finite index the sampled state and discrete readout satisfy
Define the transfer operator
which propagates the homogeneous state from step to step . The closed form is
The recurrence and closed form are exact under the stated hold and grid assumptions for every positive step size. For these are finite-prefix identities; no convergence of states or infinite matrix products is asserted.
Appendix A.1 proves the result by variation of parameters and telescoping. The matrices in (8) are the standard ZOH matrices presented by Mamba 1 (Gu & Dao, 2024, Equation (4)); its scan implementation combines the exact exponential transition with the forcing approximation identified after (20).
The matrix-form specialization. Many architectures use forcing and readout maps of the matrix form
with , and , subject to Definition 1's regularity assumptions. A linear preprocessing map in can be absorbed into ; nonlinear need not admit a continuous factorization and is covered by the general forcing . With , set
so the discretized forcing is . When is invertible, the equivalent expression is
Define the sequence kernel
It combines the write at step s, the transfer to step t, and the read at step t. Theorem 3 gives the recurrence and closed form
Lowercase , denote the general forcing and uppercase , the matrix-form specialization.
Substituting the closed-form state into the readout gives the data-dependent causal kernel representation
If are independent of the input sequence, the input-output map is linear for and affine for any fixed ; input-dependent coefficients can make it nonlinear.
Quadrature discretizations. Mamba 1-3 use the exponential transition and approximate the forcing integral. To obtain these updates, hold fixed on the interval and choose a continuous forcing with endpoint values for and for . We initialize the earlier forcing sample by . Variation of parameters gives (Appendix A.1)
Approximating this integral by times a weighted average of the integrand's endpoint values gives the discrete update
Here transports the earlier sample; leaves only the current sample at . Following Lahoti et al. (2026), the weighted family is exponential-trapezoidal, with the classical trapezoidal rule at ; is exponential-Euler, used by Mamba 1/2 with write . The latter also follows by retaining the leading term of the exact ZOH forcing coefficient:
For bounded this gives . Mamba 3 selects per head. For the local error orders relative to the chosen continuous forcing, the required smoothness and endpoint-weight conditions, and their relation to the learned gate, see Lahoti et al. (2026, Section 3.1, Remark 3 and Appendices A.2–A.3).
We use Mamba 3's terminology. In the exponential-integrator literature, exponential Euler instead uses the coefficient in (8), and exponential trapezoidal includes a correction (Hochbruck & Ostermann, 2010).
Other schemes. S4's bilinear (Tustin) transform (Gu et al., 2022a;b) approximates the transition as well as the forcing, and therefore changes the transfer operator. We restrict attention to the exponential schemes above.
2.2 Fixed-basis diagonal equivalence
From here on we study discrete state recurrences without requiring a continuous-time origin. Their maps may depend on the step and the input prefix.
A transition with off-diagonal entries in its supplied coordinates may still be diagonal in another fixed basis. The restriction to a fixed basis carries the whole content, since an input-dependent moving frame transforms every realization with invertible transitions into one with identity transitions (Lemma 10).
Definition 4. Fix , dimensions , a horizon and an input-window bound . For , write
A discrete SSM realization over has step maps
defined for every input and run from any initial state through
Write for these realizations; the field superscript is explicit, and an omitted means its fixed contextual value or, if none is specified, the union over allowed dimensions. The window bound applies to all three maps for every state argument of the readout; maps factoring through are identified with their induced window maps, so the classes are nested in . Since , is unrestricted causal dependence, including ; larger bounds add nothing. An realization is streaming; a finite one admits, but does not specify, a streaming continuation (Appendix A.2).
The subscript indexes the step and marks a step map. Fix an arbitrary ; even for an infinite sequence, each step reads only its finite window . Abbreviate the evaluated maps by
These are relative to the fixed input; otherwise we display the diamond-marked maps and their arguments. Thus and , with input dependence explicit. States may be complex, but inputs and outputs remain real. System labels distinguish the maps from evaluated ; omit when clear.
The matrix form writes the input directly, with :
Here for , with , and . Their input dependence is suppressed only in the evaluated notation. The matrix form with input features fixes and a causal map . Write and , giving
The coefficient maps still read the conditioning input ; they need not factor through . The feature construction is included in and ; is an optional abbreviation. Unless stated otherwise, the matrix form below means this feature form; the direct-input case is and .
With finite , a realization runs in memory independent of : the state plus a buffer of the last inputs. At full-prefix dependence , every realization with invertible transitions admits an output-equivalent diagonal realization, even when fixed-basis diagonal equivalence fails (Corollary 11).
The case is token-local: . In matrix form, obey the same window bound. Explicit step dependence remains allowed. Time sharing instead uses one map each for at every step, after fixed boundary padding of a finite window; this may specify a forcing sample rather than a padding token. At window one, write
Here denote discrete updates, distinct from the continuous-time maps of Section 2.1; indexed notation remains valid. Selective maps may depend on the conditioning input, while input-independent maps are included. Class membership does not require time sharing. ZOH updates (8) are token-local. The endpoint-weighted rule (19) keeps token-local transitions, but its write reads through and has window two (one if ).
Linear time-invariant systems. A matrix-form realization with fixed , independent of time and input, is linear time-invariant (LTI) in its driving features ; with zero initial state its input-output map is linear and time-invariant. For , this is LTI in the system input itself. Nonlinear feature generation need not preserve that property. Time sharing alone allows selective or nonlinear maps, while a singleton realized transition family fixes only ; neither condition alone makes the realization LTI.
For , extend the transfer and kernel notation of Section 2.1 to the causal maps above. For and , define the transfer
In the matrix form, define the sequence kernel
Unless stated otherwise, evaluated coefficients, transfers and kernels refer to a fixed arbitrary input , with input arguments displayed only when useful. We write and . Finite induction gives the state and matrix-form output:
(26)
For an LTI realization with zero initial state, , so (26) takes the convolutional form
The realized transition family of a realization is
It discards order and multiplicity and need not be finite.
To discuss a real realization over , we extend its state space from to , retain its real , and set . This defines its complexification ; the realized transition family is unchanged, now read over . Runs from real initial states remain in the invariant subspace and have the original states and outputs.
We write for the diagonal matrices, for the invertible ones, for the spectrum, and for the commutator. A family is abelian if for all , and non-abelian otherwise. A square matrix is defective if some eigenvalue has geometric multiplicity strictly below its algebraic multiplicity; Lemma 12(i) states how diagonalizability depends on defectiveness and, for real matrices, on the field.
Definition 5. For a realization and , define on the same input, state and output spaces and horizon by the maps
(29)
for every , and . Pair each initial state of with for . Two realizations are similar over , written , if for some ; these transformations form a group action, so similarity is an equivalence relation. We call a frame. It is fixed, independent of time and input; time-dependent frames are treated in Lemma 10.
For realizations on the same input/output spaces and horizon, write for the output at step from initial state . They are output-equivalent if an input-independent bijection between their initial-state spaces satisfies
When a correspondence is specified, output equivalence refers to that map; fixed similarity uses . Output equivalence alone imposes no fixed relation between later states.
Definition 6. A realization is diagonal over if every realized transition lies in , and diagonal-equivalent over if it is similar over to a diagonal realization. For window bound and state dimension , define
Such a is a witness for membership, and is a diagonal representative. We omit under the convention of Definition 4; without a specified dimension, this means the union over . The case allows unrestricted causal input dependence. For a real realization , the shorthand means under the complexification defined above, which preserves the window bound and uses complex coordinates.
For fixed field, state dimension and horizon, the window classes satisfy
Lemma 7. Let be a general causal realization and . For every input and initial state , let be its run and the run of from . Then, for every ,
In the matrix form of Definition 4, use the induced coefficients , and . Their kernels and agree: suppressing the fixed input,
Moreover, for every window bound ,
Time sharing is also preserved in both directions. In particular, a diagonal representative retains the window bound, state dimension and any time sharing of the original realization.
Proof. Induction from gives . The general readout then satisfies
For the matrix kernel, the transitions telescope to , giving (31). The fixed maps , and introduce no new input arguments or step dependence; the inverse frame gives the converse for window dependence and time sharing. Composition of fixed frames preserves the existence of a diagonalizing frame, giving the equivalence.
Output equivalence alone need not preserve either class membership or the input-window bound (Corollary 16).
Theorem 8. For , the following conditions are equivalent:
Under these conditions, there is a single with for all . Every such gives the diagonal representative , with and the same outputs for corresponding initial states. For a fixed arbitrary input , write
In the matrix form of Definition 4, its recurrence is
with the feedthrough untouched. Within the declared window class, membership is decided by transitions alone; forcing and readout are otherwise unrestricted.
Proof. For the first equivalence, Definition 6 requires one for which has diagonal transitions on every input and step. By (29), this is exactly for every .
For the second equivalence, a common diagonalizing basis makes every member diagonalizable and every pair commute. Conversely, suppose the members commute and are individually diagonalizable over . Choose spanning ; this is possible with , even if the family is infinite. The finite commuting family has a common diagonalizing basis (Horn & Johnson, 2013, Thm. 1.3.21 and Cor. 1.3.30). Every other member is a linear combination of these matrices, so
Thus the same diagonalizes the entire realized family. Substituting this into (29) gives the stated diagonal representative and (34).
Commutativity is field-independent; diagonalizability is checked over . Appendix A.2 gives the finite-horizon consequences.
For an SSM obtained by ZOH discretization as in Section 2.1, a common eigenbasis of its continuous-time generators is inherited by its discrete transitions: if with diagonal and fixed , then
Thus the resulting discrete realization belongs to , with the same witness . It is also time-shared when its step-size and coefficient laws are shared; a nonuniform prescribed time grid need not have this property.
Remark 9. Let with witness , so that with diagonal . Then
Eigenvalue moduli at most one keep the transfer, and with it the gradients through the carried state, bounded up to the fixed factor . A bounded state under bounded writes needs more: moduli at most some give , whereas with moduli equal to one, constant forcing can grow the state linearly. Practical parameterizations keep moduli at most one: decays with and gates in give moduli below one, and rotations give modulus one. For non-abelian families, moduli alone do not bound products of non-normal factors; delta-rule transitions with unit-norm keys and are symmetric with spectrum in , hence non-expansive.
Fixed and moving frames. Allowing the frame to depend on the prefix changes the question: it can move temporal dependence from the transition into the write and read maps.
Lemma 10. Let have horizon . For each input , let depend only on , with independent of the input. Fix an arbitrary and use the evaluated coefficients and, in the matrix form, ; write . For , set and define the transformed readout by
Then the transformed recurrence and output are
The transformed realization lies in on the same horizon . Here and belong to , while and belong to the transformed realization. Its transfer is ; in the matrix form,
Assume now that every realized transition is invertible, and set , with .
(i) Prefix-frame construction. The choice gives and turns (35) into a diagonal realization with identity transitions:
In the matrix form, . This realization is in ; the prefix products now enter the write and read maps.
(ii) Characterization of diagonalizing frames. Any frame producing diagonal transitions must satisfy
Conversely, any fixed and causal invertible diagonal maps define a diagonalizing frame by (36). The prefix construction chooses , .
Independently of invertibility, a constant diagonalizing frame exists exactly when is simultaneously diagonalizable over (Theorem 8).
Proof. Substitute into to obtain (35). Its readout is unchanged since . Multiplying the transformed transitions cancels adjacent frame factors, giving and the matrix-kernel identity.
For (i), gives ; summing the resulting recurrence gives the stated closed form. For (ii), writing and telescoping gives . Each is invertible because and the frames are invertible, so rearranging gives (36). Conversely, if , , and , then ; the frame is causal and invertible. Finally, setting reduces diagonalization to for every realized transition .
Corollary 11. Every with invertible transitions has the output-equivalent identity-transition realization of Lemma 10(i), on the same horizon . The construction need not preserve a smaller window bound or time sharing. If already, both realizations lie in that full-window diagonal class; this does not make them fixed-frame similar.
Fixed similarity preserves window bounds; a prefix frame guarantees only full-prefix dependence. Thus for unrestricted causal maps () with invertible transitions, noncommutativeity excludes fixed diagonal equivalence but alone gives no input–output expressivity separation. Its identity-transition scan still requires forming and applying at controlled cost and conditioning. See Appendix A.4 for per-coordinate potentials and the accumulator form.
Leaving the class. Negating (33) leaves exactly two exits from the class. Noncommutativeity and, over , nonreal spectrum survive sufficiently small perturbations; defectiveness need not.
Lemma 12. For a realization over with realized transition family :
(i) Individual obstruction — -dependent. If some is not diagonalizable over , then , even when is abelian. For a real matrix,
Thus defectiveness obstructs both fields, whereas nonreal spectrum alone obstructs only real diagonalization. These are individual obstructions; whole-family membership additionally requires pairwise commutativity.
(ii) Pairwise obstruction — field-independent and robust. If is non-abelian, that is, for some , then for both fields. Moreover, the pair has a neighborhood in containing no commuting — hence no simultaneously diagonalizable — pair: noncommutativeity survives every sufficiently small perturbation of the realized transitions.
Proof. The exclusions follow by the contrapositive of Theorem 8. The field criteria in part (i) are standard (Horn & Johnson, 2013, Thm. 1.3.29 and p. 77). The robustness claim in part (ii) holds because the commutator map is continuous and nonzero at .
Remark 13. For a realization with constant transition and readouts continuous in the state, diagonal realizations can approximate its outputs on each fixed finite input run, from each prescribed initial state. Over this holds for every ; a real realization is first complexified. Approximation of a real by real-diagonalizable transitions is possible exactly when has real spectrum; this spectral condition concerns transition approximation, not arbitrary output approximation. The approximants retain the state width over the chosen field, input-window bound and any time sharing. This is finite-run output convergence, not exact fixed similarity, uniform infinite-horizon approximation, or convergence of diagonal coordinates or parameters. The construction is in Appendix A.3.
2.3 Complex-diagonal SSMs and real diagonal evaluation
Definition 14. Specialize Definition 4 to a complex realization with state coordinates, window bound , and diagonal transitions. In its matrix form with input features , it has initial state , output , and recurrence
where , and . The superscript identifies the complex representation. The polar form allows every complex diagonal entry.
For any complex realization with state coordinates, its realification has state , initial state , and maps , and . By (2), it preserves outputs, the window bound and time sharing.
Using the maps and of Section 2.1, define the real write/read blocks and rotation matrix by
(38)
For all ,
Here and .
For and a fixed diagonalizing frame, Theorem 15 gives two real forms with coordinates: a recurrence on rotation-scaling pairs, and a real diagonal recurrence with the rotations folded into the write and read maps, which Mamba 3 calls the RoPE trick (Lahoti et al., 2026).
Theorem 15. Let be a complex realization with state , output , evaluated coefficients and readout . Fix a diagonalizing frame . Its diagonal representative has state , the same outputs , and transition , in the polar notation of Definition 14. Write and for their realifications. The following real realizations have state coordinates and the same outputs for every input and corresponding initial states. Their state correspondences are fixed in (i) and generally moving in (ii).
(i) Realification. Set , including at . The realification , called its rotational real representation, has maps
and recurrence
It is fixed-similar over to , through .
When is in matrix form, has the form (37). Form from its coefficients using (38), retaining the original features and feedthrough (Lemma 7). The pair coordinates then satisfy
For an already-diagonal , one may choose Q = I.
(ii) Real diagonal recurrence. Define
The folded realization has state , initial state and maps
Thus
The frame may depend on the input prefix, while and are fixed. Given , the complex states are recovered by
In matrix form, rotate the write and read blocks of (i) as
With , the recurrence becomes
(43)
Each pair shares one real nonnegative multiplier; no rotation is performed inside the recurrence.
Proof. For general , apply Lemma 7 with and then reify using (2). Preservation of products and inverses, together with , gives the maps and state/output correspondence in (i). The matrix readout specialization follows from . Part (ii) applies the moving-frame identity (35) of Lemma 10 with this . Explicitly, gives
Substitution gives the folded write and read; preserves the initial state. No inverse of a transition is needed.
Relative rotations and RoPE. In matrix form, and from Theorem 15(i)–(ii) have the same sequence kernel on the features. Writing for the complex diagonal transfer,
The read at and write at interact through . Standard RoPE uses prescribed, input-independent frequencies, so its relative angles depend only on (Su et al., 2021); here the increments may depend on the input, making the relative rotation content-dependent, which learned fixed frequencies would not.
Mamba 3 ties the modulus across pairs while retaining per-pair angles (Lahoti et al., 2026); Theorem 15 does not require that tying.
Appendix A.5 gives the fixed real block characterization of complex diagonal equivalence, with scalar coordinates and rotation-scaling pairs at the original real dimension.
Corollary 16. Let be a complex realization of horizon , and let be a diagonal representative. Write and for their realifications, and for the rotation fold in Theorem 15(ii). Then these realizations, related by fixed similarity , realification , complexification and the fold, lie in the classes shown:
All have identical outputs under the initial-state correspondences of the theorem; reproduces these outputs from the corresponding real initial states. If some realized transition of has a nonreal eigenvalue, neither realification belongs to for any window bound . The folded realization need not retain the original window bound or time sharing.
Proof. Square. Theorem 15 defines and gives the fixed real similarity between the realifications; both similarities are invertible. By Lemma 7, keeps the window bound and time sharing of and has diagonal transitions , so . Realification composes every map with the fixed and , which preserve products by (2); it therefore preserves outputs, the window bound and time sharing, so .
Complexification and fold. By Theorem 15(i), and the rotational real representation are fixed-similar through , and so are their complexifications. Its transitions have the form (81) with and , so the complexification of is complex diagonal-equivalent by Corollary 30, hence so is ; complexification keeps the maps and the window bound, so . Theorem 15(ii) gives with real diagonal transitions and causal maps, so . Its window bound and time sharing can be lost: take , , general forcing , and . Its folded forcing , with , depends on every token in the prefix. Choosing instead constant increments makes that forcing position-dependent, showing that time sharing can also be lost.
Exclusion. If has a nonreal eigenvalue , then has the nonreal eigenvalues , so neither realification is real diagonalizable, and Lemma 12(i) excludes for every .
Output equivalence alone thus preserves neither fixed diagonal equivalence over a specified field nor the window bound: in the proof's example , both realifications keep window one, whereas for the fold depends on the entire prefix.
2.4 State space duality for scalar transitions
State space duality (SSD) evaluates a scalar-transition recurrence by masked matrix products (Dao & Gu, 2024). The scalar may vary with the token but is shared across state coordinates, giving one temporal mask and allowing chunkwise general matrix multiplication (GEMM).
Specialize the real matrix form with input features of Definition 4 to , , on a finite restriction of length . For a streaming realization, this may be any finite prefix. Use the evaluated coefficients and features for this restriction, with , and . All maps may use for any window bound , including the unrestricted case . We omit the feedthrough to simplify the formulas; it is a separate additive term with straightforward evaluation and differentiation.
Proposition 17. Let for , so , and set for . The history mask has unit diagonal. Then
(44)
For write-feature coordinate and output coordinate , define and by
Let collect output coordinate , and define
Contracting the read and write matrices first gives form (a):
Alternatively, absorb the features into the writes. Define and by , and . Form (b) computes the states first:
Both associations give the same outputs.
Proof. For , the transfer (24) is . Substituting and omitting feedthrough in (26) proves (44). For form (a), contracting the state coordinate gives
Using for s>t, the proposed matrix output therefore has coordinate
For form (b), aggregating the writes first gives, row by row,
Thus both contraction orders include the same transported initial state and give the same output.
Form (a) has OR read-write contractions sharing one mask; form (b) aggregates the writes first and computes one state sequence shared by all readouts. At this is Mamba 2's scalar-write identity. Here contains the queries, the keys and the values. The unnormalized masked-attention form is
Equation (45) sums this expression with , plus . Its mask is the scalar-transition product; masked linear attention membership additionally requires token-local generating maps (Section 4.2). Normalization is a separate readout (Katharopoulos et al., 2020; Dao & Gu, 2024).
Subsystems sharing reuse one mask; coordinate-dependent decay requires up to masks. A shared modulus lets a complex-diagonal system use one mask after Theorem 15, with folded endpoints whose accumulated angles are scalar prefix sums and may depend on the full prefix. Continuation carries the folded state and these angles. Applying the identities within chunks and carrying the boundary state between them avoids materializing the full mask (Section 5.5). For positive scalar decays, this chunked evaluation applies the rescaling of Corollary 29 with chunk-local cumulative log-decays, avoiding the potentially overflowing global factors .
2.5 Parallel scan and gradients
Work on a finite restriction of length . For a streaming realization, this may be any finite prefix; the loss includes only its steps . The maps retain their declared window bound ; for a finite restriction, any larger bound reduces to .
An associative scan of under returns the inclusive prefixes in combine depth on processors (Kogge & Stone, 1973; Blelloch, 1993; Merrill & Garland, 2016). The forward construction carries (Lemma 19); reverse scanning gives the sensitivities below. Scalar addition and multiplication give the prefix sums and products .
Lemma 18. Consider for , with , and initial state . Treat and as independent inputs to the recurrence. Let depend on the states only through , with differentiable and differentiable in its state argument. Derivatives through the causal coefficient maps and the readout's input dependence are chained separately. Gradients with respect to vectors are row vectors; write for the direct sensitivity of the loss to through its own readout, and for total derivatives along the recurrence. For the real matrix readout , this specializes to . Then:
(i) Forcing. The state and forcing sensitivities agree, , with
For , this is a time-reversed affine recurrence, right-multiplied by where the forward recurrence left-multiplies.
(ii) Transition.
of which only the diagonal survives when is constrained to be diagonal. For the scalar constraint ,
(iii) Initial state.
For the stated loss, the terminal sensitivity is .
If the final state is passed to a later chunk, the sensitivity arriving from that chunk is added to the terminal condition .
Lemma 19. Define a forward operator and a reverse operator on pairs by
Both are associative for arbitrary , and they coincide on pairs whose matrix components are diagonal. Under these operators:
(i) Forward states. With and for , the left-to-right scan recovers the states of (21),
(ii) Reverse gradients. With and for , the right-to-left scan recovers the forcing gradients of (47),
With the forward states, the reverse-scan values give the transition and initial-state gradients (Lemma 18); parameter and input gradients follow by chaining through the coefficient maps, including the readout's direct derivatives. Proofs are in Appendix A.6. The scan constructions use only the associativity of affine composition; the transition matrices need neither commute nor be invertible. A combine costs for dense transitions and for diagonal or scalar ones, excluding the generation of the causal coefficients and readouts, whose cost and parallelism depend on their specified maps. For complex states, apply the lemmas after realification.
3 A unified taxonomy for head-organized SSMs
Architectures partition the S-dimensional state of Section 2 into one or several subsystems. A declared shape records state and interface widths, and a separate annotation records the transition class (Figure 3); the construction specifies the maps and parameter sharing. Table 1 thus compares existing architectures, models outside the diagonal class and our designs (Section 5) by transition class and by interface widths separately.
3.1 Head-organized realizations
Definition 20. Fix , , a horizon and a window bound (default 1 in this section, including the matrix form). A head-organized SSM is a realization in the sense of Definition 4, equipped with a declared partition into heads of subsystems, each with state width over , declared write-feature width and real output width . We set
Write for head and subsystem . The shared system input , , conditions the component maps; subsystem has state and output . For a fixed input , its causal maps follow Definition 4, with evaluations
From the specified initial state , they give
Transition classes and a common window restriction

Shaded portions: window . Whole ellipses (both sides): window .
Figure 3: Transition classes at common field , state dimension (for they coincide) and horizon . Whole ellipses use window bound ; the shaded portions impose on every class, so , and likewise for commuting families. Diagonal equivalence requires, and is guaranteed by, pairwise commutativity and individual diagonalizability over of the entire realized transition family (Theorem 8).
In the matrix form, write for . Set and use
Here , and . All component maps use the declared window; coefficients need not factor through . For finite-window time-shared maps, we write and similarly , with the fixed boundary padding of Section 2. Otherwise the step index and diamond remain. Stacking the subsystem vectors in lexicographic order of (head first) gives
An optional stateless aggregation map , with specified separately, gives ; by default it is the identity on local outputs, with . The combined realization has and maps
All local maps and satisfy the declared window bound and any time-sharing requirement.
Shape describes the declared presentation, though the realization may admit others; time is indexed below and subsystems above. Widths give single-input, single-output (SISO, ), multiple-input, single-output (MISO, ), single-input, multiple-output (SIMO, ), or multiple-input, multiple-output (MIMO, ). The write-feature width is not an invariant of : with gives the direct-input matrix form when the forcing admits ; general forcing need not have this form. Meanwhile, Table 1 uses the smallest exhibited under the reductions below. A convolution inside leaves the one-step feature width unchanged; multi-endpoint writes combine such samples in . Stacked widths are logical, so shared features need not be stored repeatedly. Aggregation may use input-dependent gates, weighted sums and output projections; if nonlinear, it need not preserve matrix-form readout. Section 2 applies to subsystems and their combination at state/output widths and ; is shared, while need not equal . Class membership (e.g., ), time sharing and transition structure are separate from shape and justified by the maps and ties. The field determines coordinate count: realifying a complex presentation changes to ; complexifying a real one to test diagonal equivalence does not change its declared real shape (Section 2.2).
Declared input boundary. The declared input supplies every branch used by the realization. All intervening projections, convolutions and gates are included in its maps, and their temporal dependence is included in .
Exhibited interface reductions. For a fixed state partition, Table 1 uses the smallest exhibited by linear interface reductions. Suppressing , take window-dependent real matrices and . An input factorization , with , and a local output contraction give
These factor the supplied interfaces without absorbing values into coefficient branches, and retain the declared window. The complete aggregation must admit . A nonlinear operation before contraction is allowed only if this factorization still holds: normalization may depend on components that discards. These are exhibited factorizations, not a global minimum over arbitrary feature maps. Nonlinear preprocessing may discard information even at unchanged width; Theorem 21 concerns linear transport of the supplied values with coefficients fixed. Corollary 22 exhibits the Mamba 3 scalar-lift and local-read reductions.
Examples of head grouping. Mamba 2 shares transition, step and write/read vectors across a head's subsystems with different scalar values; output gates lie in , and feedthrough may be head-shared or per-channel. Local widths depend on the declared interface and partition, while need not equal (as in S5). Any regroups the same subsystems without changing their maps or sharing.
Transition classes. For a fixed transition family, changing writes or readout aggregation preserves membership in as long as the new maps keep window ; maps with a larger window move the realization to that larger class. For block-diagonal transitions, , and a transition is diagonalizable exactly when all its blocks are. Theorem 8 therefore applies blockwise. Table 1 uses the nested classes and, for real realizations, , using complexification. The latter denotes failure even over , with the transition column naming the obstruction; annotations omit . Each class refers to the displayed recurrence at the smallest established window among exhibited presentations with the same input boundary, state size and interfaces, not a global minimum. For Mamba 3, this uses the two-endpoint write (19) with rotations in the transition; Theorem 15 folds them into potentially prefix-dependent endpoints. The table thus classifies a presentation, not the computation an implementation runs, and the compared presentations need not be diagonal-equivalent: Mamba 3's kernels evaluate the fold, an output-equivalent realization in (Corollary 16). Taking the smallest window matters, because with a prefix-dependent frame every realization with invertible transitions becomes diagonal (Lemma 10).
3.2 Architecture classification
SSM core. The SSM core comprises the recurrence, maps producing its driving features and coefficients from the core input , and the stateless aggregation of Definition 20. Convolutions and shifts before the recurrence belong to the core; processing only subsystem outputs and the core input, including stacking, combining and output gates, belongs to . Mamba 2/3 compute coefficients and gate from the same input, placing the gate in ; Mamba 1 computes coefficients from its convolved value branch and its gate from a separate branch outside the core (Figure 4). Table 1 uses each model's stated defaults; counts recurrent-state coordinates, separately from buffers used to generate coefficients.
Table 1: SSM cores of published architectures with shapes (Definition 20; counts real state coordinates per subsystem). Each row shows the presentation with the smallest established window, usually the unfolded one; the class argument bounds that window, and all maps are time-shared. : real cores not diagonal-equivalent even over for generic weights (Section 3.2). Input-dep.: input-dependent discrete maps among (driving features and not listed; Appendix B.3). : default short-convolution width (1 if none); : H3's shift width; : number of scalar driving channels; : H3's key/value width per head; : DeltaProduct's updates per token. “Scalar (decay)”: one decay per subsystem. The last group previews our designs (Section 5).
| Model | Declared shape | Class | Input-dep. | Transition structure |
|---|---|---|---|---|
| Mamba 1 (Gu & Dao, 2024) | A, B, C | diagonal | ||
| Mamba 2 (Dao & Gu, 2024) | A, B, C | scalar | ||
| GLA (Yang et al., 2024a) | A, B, C | diagonal | ||
| mLSTM (Beck et al., 2024) | A, B, C | scalar | ||
| RG-LRU (De et al., 2024) | A, B | scalar | ||
| HGRN2 (Qin et al., 2024) | A, B, C | diagonal | ||
| S4 (Gu et al., 2022a) | - | DPLR-derived | ||
| S4D (Gu et al., 2022b) / DSS (Gupta et al., 2022) | - | complex diag. | ||
| GSS (Mehta et al., 2022), DSS core | - | complex diag. | ||
| H3 (Fu et al., 2023), diagonal core | - | complex diag. | ||
| S5 (Smith et al., 2023) | - | complex diag. | ||
| LRU (Orvieto et al., 2023) | - | complex diag. | ||
| RetNet (Sun et al., 2023), unfolded | B, C | complex diag., scalar decay | ||
| Mamba 3 SISO (Lahoti et al., 2026) | A, B, C | complex diag., scalar decay | ||
| Mamba 3 MIMO (Lahoti et al., 2026) | A, B, C | complex diag., scalar decay | ||
| AUSSM (Karuvally et al., 2025) | A, B | complex diag., unitary | ||
| H3 (Fu et al., 2023), shift core | - | nilpotent shift, defective | ||
| DeltaNet (Schlag et al., 2021; Yang et al., 2024b) | A, B, C | identity – rank one, non-abelian | ||
| Gated DeltaNet (Yang et al., 2025) | A, B, C | scaled identity – rank one, non-abelian | ||
| DeltaProduct (Siems et al., 2025) | A, B, C | product of such factors, non-abelian | ||
| RWKV-7 (Peng et al., 2025) | A, B, C | diagonal – rank one, non-abelian | ||
| HybridMamba (§5.4) | A, B, C | complex diag., per-row decay | ||
| SSD-MIMO (§5.3) | A, B, C | complex diag., scalar decay |
a Convolution-free Mamba 3 before the phase fold.
b , with without a convolution and if two-endpoint writes or rows (Section 5.4) are used (either or both), otherwise. Both default configurations use and two-endpoint writes, so .
c Input rank one by Corollary 22 (data-independent scalar lift), with the local read contraction absorbed (). With the optional normalization across subsystems before contraction (off by default), needs all rank outputs: ; the class is unchanged.
d Normalizer as an extra unit-value subsystem; division and output gate in the aggregation .
e Diagonalizable at HiPPO-LegS initialization (distinct eigenvalues ) and generically after training, but not guaranteed; bilinear discretization keeps the eigenvectors.
f Real default; the complex variant (Gu & Dao, 2024, Section 3.6) belongs to (Appendix B.3.2).
g Window from the shift filter on the drive only; are constant.
Windows. Windows include every conditioning branch and are measured on the core input. A width- convolution gives window ; shifting those features one token adds one. A two-endpoint write (Section 2.1) also reuses the previous features, giving or two without convolution. Without these operations, maps are token-local (window one), though the state retains history. If preprocessing feeds only the drive , as with a convolution on the value branch alone, the coefficient maps stay token-local and Theorem 24 takes as the value sequence; coefficients computed from convolved features, as in Mamba 1/2, inherit its window. A two-endpoint write cannot be absorbed this way: enters its write coefficients.
The families below differ by commutativity of the entire realized transition family and individual diagonalizability over (Theorem 8). For diagonal-equivalent SSMs with time-shared token-local maps, the state-mediated kernel is masked linear attention over that field (Theorem 24(i)); nonlinear , such as mLSTM's division, acts afterward. See Appendix B.3 for coefficient laws, constructions and qualifications.
Constant transitions. A singleton transition family commutes, leaving only diagonalizability over . The structured state space sequence model (S4) uses a diagonal plus low rank (DPLR) parameterization and qualifies when its learned transition is diagonalizable (Table 1, footnote e). Diagonal S4 (S4D), diagonal state spaces (DSS), gated state spaces (GSS), simplified state space layers (S5), the linear recurrent unit (LRU) and the retention network (RetNet) use fixed complex bases; DSS's softmax variant fixes the horizon, and RetNet is shown unfolded before rotations move into queries and keys. Linear time-invariant (LTI) cores with token-local drives have window one and, at zero initial state, the causal convolution (27), which S4 evaluates via its kernel (Gu et al., 2022a). H3's diagonal core instead has window (Appendix B.3.1).
Input-dependent real diagonal transitions. Mamba 1/2, gated linear attention (GLA), matrix long short-term memory (mLSTM), real-gated LRU (RG-LRU) and the hierarchically gated recurrent network with state expansion (HGRN2) use real diagonal, including scalar, transitions. Token-dependent coefficients rescale coordinates without changing direction, so both conditions hold in this basis. Appendix B.3.2 constructs mLSTM's extra normalizer subsystem (footnote d) and exact stabilizer rescaling. Although usually described as a linear recurrent neural network (RNN) or gated linear attention (Beck et al., 2025a), mLSTM is thus a real-diagonal SSM here, unlike LSTM and sLSTM, whose gates read the previous hidden state.
Input-dependent rotations. Mamba 3, the adaptive unitary state space model (AUSSM), and our multi-head HybridMamba and multiple-input, multiple-output state space duality (SSD-MIMO) designs (Section 5) use input-dependent rotations on fixed coordinate pairs. Both coordinates share one decay, except in AUSSM, which has none. Rotations on the same pairs commute and share a fixed complex diagonalizing basis, so these cores are complex diagonal-equivalent, in (Appendix B.3.3).
Inside , outside . Hungry Hungry Hippos (H3) has a constant shift that is defective for : a nonzero nilpotent shift has no eigenbasis. DeltaNet, Gated DeltaNet and DeltaProduct apply along each key; non-parallel, non-orthogonal keys yield noncommuting updates, so no common eigenbasis serves all inputs. Receptance weighted key value (RWKV-7) has analogous diagonal-minus-rank-one transitions. Appendix B.3.4 gives attained noncommuting pairs. Their entries hold for generic parameters; degenerate ones, such as a key map with one-dimensional image, can give diagonal-equivalent realizations.
Outside the SSM class . Nonlinear hidden-state feedback makes gated recurrent units (GRUs), long short-term memory (LSTM) and scalar-memory LSTM (sLSTM) non-affine in their specified recurrent state. Full softmax attention keeps a growing key/value history; Hyena (Poli et al., 2023) specifies its long-convolution filter as a learned function of lag over the horizon. These specified architectures do not supply an SSM core of fixed width independent of the horizon. A long convolution is an SSM only if its kernel can be generated by a finite state, with state width independent of the horizon; S4's and H3's kernels are generated this way, whereas a freely learned kernel such as Hyena's generally is not. These are architecture classifications, not input-output separations: unrestricted causal maps can compute from history even when the readout ignores the state (Appendix B.3.5).
4 Retrieval rank and the attention correspondence
4.1 Setup: the retrieval operator
Fix one subsystem of shape with a matrix-form readout, drop its index, and prescribe its initial state independently of the current input sequence. Work in real coordinates, realifying a complex subsystem when needed, so counts real state coordinates. The evaluated maps may have any input-window bound . Use and the closed form (26). For a write , with and , its state-mediated retrieval operator is the kernel of (25):
With the evaluated coefficients held fixed, maps the supplied value at to its contribution to the state-mediated read at . The initial-state contribution is separate: it changes the output but not or the retrieval-rank bounds below.
For the exhibited interface reductions of Section 3.1, write , , and . The effective endpoints and operator are
For an already reduced interface, take , , and . We study the rank of as a linear map on the supplied value space , holding the evaluated coefficients and interface maps fixed.
Theorem 21. Let , and be the effective write, effective read and transfer of one subsystem at a fixed pair . Set . For every , including singular transfers,
For fixed and nonsingular , there exists an unrestricted effective read attaining , the value-routing rank ceiling. Constrained reads retain the bound but need their own attainment witness. In particular, or rank implies rank at most one. No diagonality, commutativity or decay assumption is required.
Proof. The rank-product inequality (Horn & Johnson, 2013, Sec. 0.4.5(c)) gives the first inequality; gives the second. To show that the ceiling is attainable, suppose is nonsingular. The image of then has dimension . Set and choose orthonormal vectors in this image. Take their transposes as the first rows of , with all remaining rows zero. Then has rank , attaining the ceiling.
Ghodsi (2025) counts the attention heads needed to represent a linear SSM by the dimension of its lag operators; Theorem 21 instead bounds the rank of one local interface.
Linear aggregation across subsystems. Let be subsystem indices sharing , with . For an aggregation of Section 3.1 of the form , where uses only the declared input window, set and and . Then factors through , giving
The shared input and linear aggregation are additional assumptions; Corollary 31 gives the block factorization and proof.
Mamba 3's scalar-lift MIMO interface. The following corollary applies Theorem 21 to its scalar value lift and identifies when the local readout also reduces to width one.
Corollary 22. Suppose with and fixed , as in Mamba 3 MIMO. The effective write and feedthrough are and , exhibiting . For any transition sequence, the single-write retrieval operator
has rank at most one. The same per-sample bound holds for the two-endpoint write (19). If the complete aggregation factors through a local contraction with , the effective read and feedthrough are and , exhibiting as well.
Proof. The scalar lift gives , so Theorem 21 applies without any decay or diagonality assumption. For a two-endpoint write, both injections of the sample are columns multiplying that same scalar; after transport, their sum is still an operator. The output contraction preserves this bound, and substitution gives the reduced interfaces.
4.2 Masked linear attention: definition and exact membership
We compare state-mediated kernels with unnormalized masked linear attention, using time-shared token-local features and multiplicative scalar masks. Hu et al. (2025) extend state space duality to real diagonal SSMs, analysed with scalar inputs, and characterize through semiseparable structure when an SSM has a 1-semiseparable masked-attention dual. Theorem 24 states the class equality for realizations with one fixed diagonalizing basis over or , with vector writes and the initial state, and adds an exclusion test for non-abelian kernels. A prefix-dependent Gram factorization alone is insufficient: every invertible transition family admits one (Lemma 10); token locality is therefore an essential restriction (Remark 32).
Use the matrix interfaces of Sections 2.2 and 3.2 at layer scope: state width , conditioning input , supplied features , and output width . Here is the value map, commonly . The matrix below stacks these values; (or the mode covectors ) writes them into memory. For a prescribed initial state independent of the current input sequence,
where and . A nonlinear aggregation is outside this kernel comparison. Locality is relative to the declared input: after temporal preprocessing, must include all coefficient branches. A representation in these processed inputs need not be token-local in the original sequence; swap witnesses must lie in the domain being compared.
The following form covers linear attention (Katharopoulos et al., 2020), decayed retention (Sun et al., 2023), gated linear attention (Yang et al., 2024a), rotary position masks (Su et al., 2021) and the structured masked attention of state space duality (Dao & Gu, 2024, Section 4); in attention notation the values are .
Definition 23. Fix an input sequence , , of horizon , with values . For each mode , choose time-shared token-local maps
the mode's scalar transition, query (output direction) and key (write direction), and write , , . Given an initial memory , independent of the current input sequence, and a feedthrough , the masked linear attention evaluates scalar mode memories and outputs by
where * denotes conjugate transpose. Its kernel is
for , with empty products equal to one; a kernel of this form is a masked linear attention kernel with modes. It is causal by construction.
Each mode is one scalar memory: linear attention with key features and value channels has modes, one per entry of its state matrix (see below).
Unrolling (59) gives
the transported initial memory plus the kernel action, so that recovers the usual attention sum over the supplied tokens. The mask accumulates the mode's transitions; it is not a value map. Constant gives a plain causal mask, decay, input-dependent forgetting and a rotary mask; amplification and sign changes are also allowed. A mask-tie class is a maximal set of modes sharing one transition map , hence one value at every step and one mask ; the shared value may still vary with . Its dimension is its mode count. Modes describe the combined kernel; no architectural head count is prescribed, and a mask-tie class need not coincide with a head.
Theorem 24. Let have time-shared token-local matrix maps and kernel (58).
(i) If and is a fixed diagonalizing basis, the maps
with mode memory and the same value map and feedthrough, define a masked linear attention with S modes and kernel W that reproduces the complete output of , including . Conversely, for every masked linear attention with S modes, the realization with , , , initial state and the same value map and feedthrough lies in and has the same kernel and output; its maps are (62) with Q = I. Hence, for the matrix interfaces above,
(ii) Suppose an input x and strictly interior times witness
where exchanges . Then W is neither a masked linear attention kernel over or with finitely many modes nor a pointwise limit of such kernels.
Appendix B.2 proves the theorem. Part (ii) tests one kernel entry with fixed source and read tokens, not the complete output. Shared scalar masks, including relative-position phases and lag dependence such as , are invariant under interior swaps. For a non-abelian realization, an exposed change , where , at for a swap in the stated domain, excludes its kernel; degenerate endpoints may hide the change, so this test is sufficient, not necessary.
Part (i) and its converse also hold for step-indexed token-local maps and when one fixed basis diagonalizes the realized family. Part (ii) needs time sharing: a single diagonal mode with and unit endpoints detects interior order. The scan-attention identity itself does not require time sharing (Dao & Gu, 2024; Ali et al., 2024; Zimerman et al., 2024; Katsch, 2023).
Matrix form and the attention correspondence. On a sequence of length , let the mask of a mask-tie class have entries for and zero otherwise, stack as the rows of , and collect the mode coordinates over time in the vectors with entries and .
Corollary 25. Take a masked linear attention with modes and mode memory , without feedthrough. Group its modes into mask-tie classes with masks , and let and have the columns and of the modes in class . Then every output coordinate satisfies
(65) where . Each class term is the matrix form (45). Through the modes of Theorem 24(i) with , this also gives the output of every with time-shared token-local matrix maps and no feedthrough; adding restores the general matrix-form output.
Proof. By the converse in Theorem 24(i), the attention is the diagonal realization with transitions . The modes of class form a subsystem with scalar transition , read and write maps given by and , and initial state . Proposition 17, whose argument holds verbatim over , gives its output as the class term, and the output is the sum over classes.
The standard head (46) has , , zero initial memory, , and one mask class . Its mode , , , is entry of the usual memory: set and . Then for and is zero otherwise, so (65) gives . Input-dependent masks per key coordinate, , give gated linear attention (Yang et al., 2024a). Modes permit independent read and write directions, but their masks are causal scalar-transition products, not arbitrary lower-triangular masks. Normalized linear attention (Katharopoulos et al., 2020) divides its masked-linear-attention numerator by a key-only memory; adding that memory as a subsystem makes a diagonal SSM with nonlinear aggregation, as for mLSTM (Section 3.2); only the division lies outside this kernel comparison. Softmax attention instead keeps every past key and value, a shift-register state that grows with the context and is not diagonalizable. Multiple heads use block-supported modes; Appendix B.2 details their concatenation and fixed output projections.
Example: rotary features. For an attention query and key , RoPE (Su et al., 2021) rotates each pair by its absolute position at frequency , giving
One complex mode realizes this score. For time-shared token-local and , set , , and
Since , the real part of the kernel (60) is
(68)
This equals (66); relative position enters only through , with time-shared maps. The converse of Theorem 24(i) gives a complex diagonal SSM with transition , read , and write . Its rotational real representation (Theorem 15(i)) has , , and : Mamba 3's rotation law at constant angle and unit decay. A width-2K head uses pairs with frequencies , giving complex modes per value coordinate and transition . Decay moduli may vary by pair under Theorem 15; Mamba 3 shares them across pairs. An input-dependent angle in place of gives , the rotation law (71) of our designs and Mamba 3 (Lahoti et al., 2026). Folded RoPE rotates by absolute positions and has step-indexed maps; the extension of part (i), not part (ii), applies.
Applications of the classification table. Table 1's cores in with time-shared maps have masked linear attention kernels over ; RetNet's rotational core needs complex modes. Coefficient-branch convolutions and two-endpoint writes read earlier tokens, breaking token locality on original block inputs. A drive-only convolution can instead be absorbed into the values (Section 3.2). Failing these hypotheses neither excludes another masked linear attention representation nor ranks expressivity. Mamba 3's per-sample rank bound is Corollary 22. Folded rotations can make endpoints prefix-dependent, so a real folded scan alone does not establish real masked linear attention; Section 5.1 gives the conditions for our designs.

Figure 4: Shared HybridMamba/SSD-MIMO mixer. Conv1d is one-dimensional convolution; RMSNorm is root-mean-square normalization. Dashed boundaries define the core input separately in each variant: (a) before the value projection, , with coefficients from (default, Mamba 2/3 lineage); (b) after it, , with coefficients from (Mamba 1 lineage). Boxes show step , decay (per coordinate in Mamba 1/HM, or head-shared), angle (with rotation), write and read ; gates, trapezoid weight and potential are omitted. The read adds . B/C normalization is on by default; output root-mean-square (RMS) normalization is off by default and on in the Mamba 2 preset.
5 Extending dynamics and routing within the diagonal-equivalent class
We develop two complementary extensions within the class. SSD-MIMO provides multidimensional local writes and reads with scalar per-scan-head decay, folding rotation into the endpoint maps when present. The multi-head HybridMamba (HM) extends Mamba 1's per-coordinate decay: it combines per-coordinate and per-head laws, with real or complex dynamics, in one row-partitioned state. Appendix C gives the map constructions, state-continuation interface and Mamba specializations; chunk algorithms are in Appendix D. Both designs run on custom fused Triton and Gluon GPU kernels (Section 5.1), with PyTorch reference scans for validation.
5.1 Mixer, SSM core and scan algorithms
Mixer. Both designs use the Mamba-style mixer in Figure 4. Input projects to values and gate ; optional short convolution and a sigmoid linear unit (SiLU) produce the recurrence drive . The core boundary (Section 3.2) depends on the variant: in (a), it includes the value projection, so and coefficients use (default, Mamba 2/3); in (b), it starts after that projection, so and coefficients use (Mamba 1). In case (a), all projections may be packed into one. The core output is multiplied by SiLU() and projected to . Mamba 2's preset also convolves B/C; Mamba 3's bypasses convolution and drive SiLU. Section 5.6's presets recover each block exactly.
Indexing. Both designs split drive width into heads of coordinates, carrying real state coordinates. Subsystem has state rows and drive . SSD-MIMO splits , : each head has groups of siblings, each with its own state and shared drive . A scan head shares one scalar decay (Section 5.3); indexes rotating pairs. Endpoint maps are base projections, optionally gated and then shifted by additive biases (Section 5.2). Coefficient maps share along in HM and
in SSD-MIMO; base write/read projections also share across heads and siblings, which differ in biases, steps and rates. This sharing reduces coefficient-generation costs; the recurrence still updates state coordinates.
Recurrence. The SSM core evaluates the recurrence of Section 2,
per subsystem with state , input and output , where is diagonal or -block diagonal, , , ( in HM), and under Euler forcing or the two-endpoint write (72), which also uses . Section 5.2 gives the class and input window of both designs.
Scan algorithms. Both chunked scans carry state across boundaries (Section 5.5), differing in transition resolution and write/read shapes. Our fused Triton/Gluon kernels (Tillet et al., 2019) accept initial and return final recurrent state, accumulated phase and previous write; the mixer also carries convolution history. All carries and rotations are differentiable, supporting training across segments (Appendix C.2). GPU-specific chunk lengths, tiles and backward schedules change execution, not the recurrence.
SSD-MIMO scan. Each scan head uses , in folded coordinates when rotating (Section 5.3); a chunk is a masked matrix contraction. Each sibling takes inputs through and returns outputs through . Complex blocks fold rotation into these maps with phase per pair (Section 5.2). Intra-chunk work grows with (76): costs about 64 times the term. The scan covers SSD-MIMO, HM's flat rows and Mamba 2/3 SISO presets. Chunk-level kernels form masked read/write scores and evaluate routed contractions, rotation, the two-endpoint write and carry, with dedicated paths. They use Proposition 17's SSD decomposition, as do Mamba 2/3 (Dao & Gu, 2024; Lahoti et al., 2026). Appendices D.1 and D.2 give the routed contractions/chunk factorization and two-endpoint evaluation/numerics.
Per-coordinate scan. Diagonal transitions may vary across all state coordinates. Complex rows use real arithmetic, folding rotation into (Section 5.2) or applying it inside the scan for , where folding costs more. A rotating pair shares decay and phase across its two coordinates: these vary per , with pairs if all rows rotate. Each log decay must sum at most two terms, each a static subsystem/coordinate coefficient times a selected head-shared schedule (Appendix C.1). The scan covers HM's per-coordinate rows and the Mamba 1 preset; Appendix D.3 gives both scans' schedules.
5.2 Transition laws, rotation and the write
Let denote the selected coefficient source. The selected step is the softplus of a projection of . Each law has a negative rate ; the decay applied per step is , except under HM's potential law (below). In Table 2, and are rate-projection weights and biases, is the learned log-rate magnitude, and act denotes the selected rate activation.
Here for and otherwise. For HM potential, and
where is the bias-free potential-projection matrix and sigm is the logistic sigmoid, is finite (default 4), the potential starts at , and is the stored gain logit. Thus . Potential increments telescope: in exact arithmetic their factor on any span is in , and the total decay product is in (Corollary 28). Here is a gain bound, distinct from the SSD channel-group count .
Endpoint maps and gates. Both designs form their write and read maps from base projections of , RMS-normalized along the state axis by default:
Table 2: Decay laws. Rates are negative, so the applied decay lies in (potential law: see text). Heavy-tail selection is the default for the SSD dynamic rate and the HM dynamic and per-head dynamic rates.
| Family/law | Formula | Resolution/default |
|---|---|---|
| SSD dynamic | Default; head/token, optionally sibling; zero-initialized bias | |
| SSD static | Per ; spread rate ladder | |
| HM static | Default; , tied within complex pairs; no rate bias | |
| HM dynamic | Per or head; no bias/floor | |
| HM potential | Bounded selected potential | |
| HM flat dynamic | Head/token; zero-initialized bias | |
| HM flat static | Per head |
where are the write and read gates: a gate activation , by default , of gate projections . SSD-MIMO initializes these projections to zero, so its gates start at one; HM uses uniform fan-in initialization when its optional gates are enabled. is the elementwise product, broadcast along the input or output axis, and are static additive biases. A gate rescales the base map per state row before the bias is added, and the rotation below then acts on the result. Without gates, . Sections 5.3 and 5.4 state which indices gates and biases resolve and when gates are on; Appendix C.1 gives the per-design shapes.
Paired rotation. One rotation law serves both designs on their complex row blocks, with rotating pairs; real rows have identity rotation, including the read offset. In the default interleaved layout, pair is . With the subsystem index suppressed (Sections 5.3 and 5.4 resolve it), pair carries
the rotational real representation of the complex eigenvalue (Theorem 15(i)), where is the projected angle feature and the frequency, with a learned initialized at 3.8, so that starts at . The phase changes by per step whatever the decay rate: in the rate sets only the modulus, so the step is the clock. This is a data-dependent, trainable RoPE, related to selective RoPE (Movahedi et al., 2025): with a constant angle per step it reduces to RoPE (Section 4.2); here the increment depends on the token through and . As in Mamba 3, the rotation is folded into the endpoint maps (Theorem 15(ii)),
where is the rotation of Section 2.3, are the endpoint maps after their additive biases, and holds one static offset per pair. By default both designs apply gate bias rotation, so the ungated score depends on the phase difference alone. The offset is carried on the read side: a write-side offset would enter the score only through , an exact gauge redundancy. Zero phase is the real case; rotation is off by default in both designs.
Discretization. SSD rows and HM per-coordinate and flat dynamic rows default to the two-endpoint rule, while HM flat static rows use exponential Euler; the two-endpoint rule uses a selected per-head weight:
where is the undiscretized write in the state coordinates of , , and is the full transition — decay and rotation — acting on the transported previous write. Exponential Euler is , , used by the exact Mamba 1 and Mamba 2 specializations. The step multiplies the write exactly once (no ), and the read map is never discretized.
Class and window. Before folding, transitions consist of real diagonal rows and rotation-scaling pairs. The latter share a fixed complex diagonalizing basis (Corollary 30). Without complex rows, both designs therefore lie in (Definition 6). With complex rows, the implemented recurrence is the realification of a diagonal complex realization, so the designs lie in , as their rows in Table 1 of Section 3.2 record, and not in if some realized rotation increment lies outside , giving nonreal eigenvalues. The fold of Theorem 15(ii) gives a real diagonal recurrence with window bound ; it need not retain a smaller window because the folded maps carry accumulated phase (Corollary 16). The window comes only from the convolution, the two-endpoint write and the potential, since all other coefficient maps are token-local: a width- convolution gives window , and the two-endpoint write and the potential each reach back one token, so either of them, or both together, add one. Hence by default, without convolution, as for Mamba 3, and with Euler writes, no convolution and no potential rows. In that token-local case, the time-shared state-mediated kernel is a masked linear attention kernel over the class's field (Theorem 24(i)). Gates preserve this: they act before the rotation or, after it, are pair-tied and commute with it (Section 5.4).
5.3 SSD-MIMO: vector-valued local inputs and outputs
With the siblings of Section 5.1, group has the shared drive , and indexes output coordinates. The design has input channels, state coordinates and HGO output channels, hence is width-preserving at the default . The implementation supports and at most one real and one complex row block, which share one decay law. Since the scan work grows with (Section 5.1), is implemented but not recommended; where multi-value routing is wanted, we recommend , the most optimized configuration, or when more values per step are needed. The declared shape is : each sibling receives all supplied channels and writes their linear combination through an map, permitting multiple independent value directions within one subsystem. Coefficient maps may depend on the complete declared input, beyond this local drive. In folded coordinates , the transition is scalar, and the recurrence with the default two-endpoint write (72) and the group readout are
(73)
with , , , and scalar sibling weights . Folding moves the rotation of the previous write into , so only the decay transports it. The skip acts inside the weighted sibling sum and permits . On complex blocks, pair of scan head follows (71) with its decay and step ; biases enter per scan head and never along the group axis . SSD-MIMO can also learn per head and pair or per head, use per-head angle features , and carries the read offsets per head and pair, . The mixer's output gate acts after the sibling sum, on both state and skip contributions, with one factor per group and output coordinate.
At the default sibling weights are , with static weights initialized to and the selected projection to zero. They are shared over and are not softmax-normalized. Static learned mixing remains an option. At the default has no mixing parameters and the reduction is the identity, including when ; the output gate remains.
Variation across siblings. If transitions, writes and initial states agree across , all sibling states coincide, and varying only the read cannot separate them. By default the siblings of a group therefore differ in their steps , hence also in their phases on complex blocks, and on real blocks in write gates () and read gates () of (70) that vary per sibling: the write gate scales every input column of sibling , the read gate resolves output coordinates, both are shared over the groups , and the biases , resolve the scan head. Complex blocks are ungated by default, since their siblings already differ in phase through their steps; gates are pair-tied when enabled. The additive biases are initialized to differ across siblings, and the dynamic rate can optionally vary per sibling. These map gates differ from the mixer output gate (Appendix C.1).
Local transport rank. At fixed coefficient schedules one SSD-MIMO sibling can attain local transport rank (Theorem 21). Among the selective models of Table 1, SSD-MIMO is thus the only one that is MIMO in this rank sense: S5 and LRU attain local rank above one with time-invariant maps, and Mamba 3, including its MIMO variant with its data-independent scalar lift, keeps rank one (Corollary 22). The sibling sum is a linear aggregation over subsystems in the sense of Section 4.1, with aggregation matrices on the shared drive of width . By (57), the whole group's transfer from to therefore has rank at most : summing siblings does not raise the routing rank beyond the supplied width. Several scalar-input subsystems can also attain full aggregate rank, so this local interface distinction is not a whole-model expressivity ordering; comparisons must control state budgets and parameter sharing. Appendix C.1 gives the witness and the group aggregation bound.
5.4 HybridMamba: the hybrid of the Mamba 1–3 laws
HybridMamba generalizes Mamba 1's per-coordinate diagonal decay to multi-head systems with data-dependent complex states: it shares Mamba 3's two-endpoint write and rotation law while keeping per-row decay. Subsystem receives the scalar and carries :
with , and the default two-endpoint write (72), or Euler forcing as in the Mamba 1 preset; is block diagonal, with scalar real rows and rotation-scaling blocks on complex pairs. Thus the declared local widths are and the shape is , as recorded in Table 1. Heads differ through their biases, steps and rates. Static rates may vary over . Rotation ties each pair's modulus and phase. Unlike the complex variant of Mamba 1 (Gu & Dao, 2024, Section 3.6), which drives each mode's decay and phase by the same step , so that each eigenvalue moves along a fixed spiral, HybridMamba selects the phase through input-dependent angle features (71), independently of its decay law. Pair of subsystem carries by (71) with the head step ; the modulus is tied within the pair but may vary over and . HM implements the write and read gates of (70), with head-shared gate features and per-head biases, before or after the rotation, but leaves them off by default (Section 6.1); its post-rotation gates are pair-tied, so they commute with the rotation (Section 5.2). HM's flat rows, which run on the SSD-MIMO scan, rotate as in Mamba 3: fixed, and a head-shared angle feature; rotation settings are global per HM core, so a core with complex flat rows also fixes the frequencies and offsets of its per-coordinate rows. The step is one projection from to the heads by default; when the heads are many and narrow, a Mamba 1-style low-rank bottleneck of rank is cheaper and used instead, and either can be configured. Mamba 1 is the case , with static real rows, Euler writes and Mamba 1's maps (Section 5.6).
State-row mixtures. Partitioning the state rows into blocks gives independent recurrences, a direct sum of block subsystems whose readouts add,
Each block chooses a law and real or paired state, preserving rotation pairs; readouts add without a convexity constraint. The step, the coefficient source and the base B/C projections are shared across blocks, each block reading its own rows. One state can thus mix Mamba 1-style per-coordinate decay, Mamba 2-style per-head decay and Mamba 3-style rotation with the two-endpoint write; the subcomponents behave like their Mamba counterparts but are not exact Mamba 1–3 layers, whose maps and steps would differ. Per-coordinate blocks use the per-coordinate scan; flat blocks use SSD at R = O = 1. Appendices C.2 and C.3 give state continuation, flat rows and exact specializations.
5.5 Computational cost
For batch size B, drive width d and state width N, let W denote SSM-core work and M memory saved for backward, measured in scalar entries. The bounds exclude surrounding projections; M excludes parameters and temporary workspace, counting inputs and outputs only when saved. HM's reverse affine recurrence (Lemma 18) and the adjoints of SSD's local and chunk-state products preserve their respective forward work orders. The bounds W therefore apply to forward and backward separately, including state recomputation (Appendix D.3). Both routes use bounded tiles of length T, with growing with sequence length. Let indicate whether recurrent boundary states are saved or recomputed.
HybridMamba. The coordinate kernel uses Triton/Gluon's hierarchical associative scan: thread-local prefixes, Kogge–Stone-style lane shuffles and inter-warp propagation. The shuffle work is over lanes, with fixed warp width . For bounded tiles, scanning and carrying across chunks costs . Grouping coordinates into heads changes coefficient reuse, not the state recurrences. HM's flat rows use the SSD algorithm below.
With shared coefficients, drive/output tensors (BLd), head clocks (BLH) and base endpoint, rate and angle features (BLN) give storage since . Recurrent checkpoints store a -coordinate state every tokens, where is also the backward tile length; the forward scan still spans . Rotating rows temporarily form folded-map entries, with coordinates on this route and endpoint biases shared across . These maps are recomputed, but phase checkpoints every tokens ( here) remain saved independently of . Thus,
(76a)
SSD-MIMO. Each of scan heads processes its value streams in tiles of width . For each write/read pair , chunk endpoint maps form ; the decay-weighted score then multiplies routed inputs (Appendix D.1). The score is shared across streams, but recomputed for each group tile. The pairs cost per tile and chunk; multiplying by gives . Chunk-state writes multiply matrices; incoming-carry reads multiply matrices. Together they add , with the same order for their adjoints. The scalar boundary-state recurrence and its adjoint cost only , already covered by this term. For and , the score term is Mamba 2's .
Saved sibling drives/readouts cost ; accumulated phases and rotating SISO's folded maps contribute at most . The two-endpoint write saves the local product per token and scan head ( ). Shared endpoint maps contribute for sibling-specific write maps and one read map. Sharing the write map reduces to ; sibling-dependent write gates materialize the extra axis, while per-head biases are applied in the kernel. The general fused route and rotation-free SISO route reconstruct boundary states by default ( ); the specialized rotating SISO backward retains them ( ). Hence,
(76b)
Measured cost. We compare the Mamba recoveries with the official modules on matched functions (Table 3, ratios ours/official), using copied weights and output checks before timing. Measurements use H100 PCIe, bf16, PyTorch 2.14 and Triton 3.8. Kernel scope is aligned within each comparison pair; mixer timings cover the full module. Each side uses its production configuration. We report three-round medians from the first valid comparison-group attempt, with per-group canary spread at most 1.15; whole-run drift is recorded rather than gated. Appendix D.4 gives the protocol and limitations. The main tables share four Large shapes with and one LM shape, . The appendix additionally reports
Table 3: Same-function ours/official ratios (< 1: faster or smaller) over Table 4's five shapes. Panels show forward-and-backward time, peak allocation and retained-for-backward storage for aligned SSM-core kernels and eager full mixers; memory accounting is defined in Table 4. We measure on an H100 PCIe GPU in bf16; Mamba 1 uses , Mamba 2/3 . Final rows give equal-weight geometric means of unrounded per-shape ratios. Table 12 adds four-Large/six-LM summaries, forward-only and graph timings; additional HM shapes use the labelled earlier buffer schedule. Absolute times: Tables 13, 14 and 15.
| Shape | HM / Mamba 1 | SSD / Mamba 2 | SSD / Mamba 3 SISO | |||
|---|---|---|---|---|---|---|
| Kernel | Mixer | Kernel | Mixer | Kernel | Mixer | |
| Forward-and-backward time ratios | ||||||
| Balanced | 0.68 | 0.87 | 0.91 | 1.07 | 0.84 | 0.87 |
| Long | 0.79 | 0.90 | 0.87 | 1.05 | 0.77 | 0.76 |
| Wide | 0.72 | 0.94 | 0.95 | 1.02 | 0.83 | 0.89 |
| Batch | 0.72 | 0.82 | 0.85 | 1.00 | 0.89 | 0.86 |
| LM | 0.83 | 0.94 | 1.52 | 1.48 | 1.17 | 0.95 |
| Geomean (5 shapes) | 0.74 | 0.89 | 1.00 | 1.11 | 0.89 | 0.86 |
| Peak memory ratios | ||||||
| Balanced | 1.09 | 0.86 | 2.56 | 1.27 | 0.95 | 1.01 |
| Long | 1.10 | 0.86 | 2.53 | 1.26 | 0.95 | 1.01 |
| Wide | 1.08 | 0.86 | 2.62 | 1.28 | 0.95 | 1.01 |
| Batch | 1.09 | 0.86 | 2.10 | 1.23 | 0.97 | 1.03 |
| LM | 1.09 | 0.86 | 2.33 | 1.26 | 0.96 | 1.02 |
| Geomean (5 shapes) | 1.09 | 0.86 | 2.42 | 1.26 | 0.96 | 1.01 |
| Retained for backward ratios | ||||||
| Balanced | 1.11 | 1.06 | 0.54 | 1.03 | 0.90 | 1.08 |
| Long | 1.11 | 1.06 | 0.57 | 1.06 | 0.90 | 1.08 |
| Wide | 1.11 | 1.05 | 0.53 | 1.02 | 0.90 | 1.07 |
| Batch | 1.10 | 1.06 | 0.62 | 1.11 | 0.91 | 1.08 |
| LM | 1.11 | 1.06 | 0.57 | 1.06 | 0.90 | 1.08 |
| Geomean (5 shapes) | 1.11 | 1.06 | 0.56 | 1.05 | 0.90 | 1.08 |
six-LM summaries; HM measurements beyond these five shapes retain the earlier backward-buffer schedule and are labelled separately.
Across these five shapes, kernel forward-and-backward time is lower on geometric mean for the Mamba 1 function (, ) and Mamba 3 SISO (), with Mamba 2 at near parity (). The eager full mixers are also faster than Mamba 1/3 (), but slower than Mamba 2 (). Individual shapes can be slower: at the LM shape, Mamba 2 recovery has kernel/mixer ratios 1.52/1.48, and Mamba 3 recovery has 1.17/0.95.
On geometric mean, kernel memory saved for backward is about 44% lower than Mamba 2 and 10% lower than Mamba 3, but 11% higher than Mamba 1. Kernel peak allocation is 4% lower than Mamba 3, 9% higher than Mamba 1 and 2.42× Mamba 2. Full mixers hold 5–8% more memory for backward; their peak allocation is 14% lower than Mamba 1, near Mamba 3 and 26% higher than Mamba 2. Mixer measurements include projections, coefficient preparation and output processing; these comparisons do not isolate the effect of fusion. The memory figures describe the measured scopes, not end-to-end training.
HM reduces backward temporary buffers and their overlapping lifetimes, without reducing memory saved for backward. Relative to the unreduced-buffer schedule, HM-0/75/100 at reduce geometric-mean kernel peak allocation by 48–51% and mixer peak by 35–45% over the five shapes. Mixer training time decreases by 4.2%/0.7% for HM-0/75 but increases by 3.8% for HM-100. At , rotating HM-75/100 mixers are 3.9%/7.8% slower on geometric mean, up to 18% on one shape; the reduced peak therefore comes with a configuration-dependent timing tradeoff (Table 20).
Table 4 reports absolute scan costs across model configurations that generally compute different input–output mappings, rather than matched-function recovery ratios. From R2O2 to R4O4, kernel forward-and-backward time grows 3.92–4.20× for real rows and 4.41–4.81× for complex rows across the five shapes. Model head
Table 4: Absolute forward-and-backward time (ms) at aligned SSM-core scope, with retained-for-backward storage and peak allocation (MiB) at the LM shape. Shapes (B, , L): Balanced (16, 4096, 2048), Long (2, 2048, 32768), Wide (4, 8192, 4096), Batch (128, 1024, 1024), LM (6, 2048, 2048) (tensor sizes: Table 11). We measure on an H100 PCIe GPU in bf16, with and unless indicated ( for Mamba 1). Mamba rows use official kernels. Retained counts unique nonparameter backing storage held for backward, including saved caller inputs/outputs; aliases count once. Peak is the maximum allocation during one forward/backward call above resident parameters, inputs and output cotangent, including output, workspace and new gradients. The metrics overlap and must not be added; neither measures full-model memory. Rows generally compute different mappings, so these are costs rather than recovery ratios. Mamba 3 MIMO's timing metric is explained below.
| Model | Kernel time (ms) | LM (one shape) | |||||
|---|---|---|---|---|---|---|---|
| Balanced | Long | Wide | Batch | Time (ms) | Retained (MiB) | Peak (MiB) | |
| Mamba 1 (official) | 119.5 | 121.1 | 114.2 | 136.4 | 20.70 | 116.0 | 178 |
| Mamba 2 (official) | 9.63 | 10.69 | 8.79 | 11.59 | 2.01 | 104.3 | 239 |
| Mamba 3 SISO (official) | 10.95 | 17.52 | 11.75 | 11.03 | 2.49 | 507.9 | 759 |
| Mamba 3 MIMO R=4 (official)^a | 65.76 | 148.86 | 73.92 | 65.82 | 14.27 | 203.6 | 1618 |
| HM m1exact (P=1) | 70.65 | 83.11 | 72.00 | 70.98 | 15.82 | 201.0 | 284 |
| HM-0, P=64 | 94.98 | 138.9 | 95.44 | 95.51 | 19.30 | 275.5 | 453 |
| HM-75, P=64 | 106.5 | 150.6 | 106.8 | 111.3 | 22.51 | 443.8 | 1043 |
| HM-100, P=64 | 104.9 | 149.0 | 104.1 | 111.2 | 22.09 | 289.8 | 1223 |
| HM-0, P=32 | 94.98 | 141.7 | 95.88 | 95.70 | 19.25 | 284.5 | 464 |
| HM-75, P=32 | 111.9 | 163.3 | 113.8 | 117.7 | 24.15 | 456.4 | 1632 |
| HM-100, P=32 | 111.4 | 163.1 | 112.1 | 120.1 | 23.92 | 299.6 | 2001 |
| SSD m2exact (R=O=1) | 8.66 | 8.99 | 8.35 | 9.67 | 3.04 | 59.2 | 555 |
| SSD m3exact (R=O=1) | 9.18 | 13.51 | 9.76 | 9.76 | 3.12 | 459.0 | 728 |
| SSD R1O1 real | 13.60 | 14.14 | 13.32 | 15.09 | 3.37 | 125.3 | 619 |
| SSD R1O1 complex | 12.44 | 16.76 | 13.34 | 13.09 | 3.16 | 514.5 | 776 |
| SSD R2O2 real | 43.48 | 51.57 | 43.40 | 48.55 | 8.86 | 273.1 | 1050 |
| SSD R2O2 complex | 68.83 | 81.93 | 67.42 | 76.68 | 13.98 | 468.9 | 1442 |
| SSD R4O4 real | 182.7 | 202.4 | 180.0 | 200.2 | 35.38 | 639.5 | 2334 |
| SSD R4O4 complex | 328.0 | 361.7 | 324.3 | 355.1 | 63.71 | 1030.3 | 3125 |
^a Official Mamba 3 MIMO at kernel scope reports summed profiler GPU-kernel time over three calls, excluding the TileLang wrapper's persistent host overhead; the other timing rows report elapsed CUDA-event time. Its eager mixer timing is therefore n/a; its CUDA-graph replay is reported separately.
width is fixed, but kernel head count, kernel width and execution configurations change with rank. These deployed costs do not establish a universal 4× scaling bound or isolate the cause of the complex overhead. A small baseline-tracking ablation with 32-bit floating-point (fp32) input and output is given in Appendix D.5; the main timing and memory results use bf16.
5.6 Recovering the Mamba configurations
Table 5 summarizes the exact mappings of Appendix C.3, where finite-precision agreement is checked separately.
Finite-precision agreement. With copied weights and identical inputs, all tested outputs, input gradients and parameter gradients agree with the official modules within twice the arithmetic-derived tolerance at B = 6, L = 2048: 60/60, 75/75 and 80/80 tensor-seed comparisons for Mamba 1, 2 and 3, respectively, in each of bf16 and fp32. The full matrix uses Blackwell, with an A100 cross-check (Appendix C.4). In bf16 the median ours–official output errors are 3.5 · 10⁻³, 1.4 · 10⁻³ and 4.3 · 10⁻³. At B = 2, L = 16384, Mamba 3's bf16 angle-projection gradient exceeds twice the tolerance in all five seeds (75/80 comparisons pass). fp32 input/output does not imply matched scan arithmetic: official Mamba 3 uses bf16 scan operands, whereas our default uses TensorFloat-32 (tf32) products.
Table 5: Mamba SISO configurations recovered in exact arithmetic after matching coefficients, projections, normalization and initial state.
| Target | Design | Matching settings |
|---|---|---|
| Mamba 1 | HybridMamba | Real static per-coordinate decay; exponential Euler; state-branch coefficients; matched convolution and projections. |
| Mamba 2 | SSD-MIMO | Scalar decay, scalar local interfaces; exponential Euler; joint drive/write/read convolution and output normalization. |
| Mamba 3 SISO | SSD-MIMO | Scalar local interfaces; matched rate law and rotation, two-endpoint write, write/read normalization and biases; convolution-free mixer. |
Gradient accuracy of the rotation. The angle-projection gradient is sensitive to long context and strong forgetting (Appendix C.5). Across nine constructed scenarios, official Mamba 3's median angle-gradient error against 64-bit floating point (fp64) is 1.4–7.4 times ours in bf16 and 14–49 times ours with fp32 input/output; the latter comparison uses different operand precisions. These ratios do not imply that ours always meets tolerance. With tf32 operands, our angle gradient fails at strong forgetting tokens; full-fp32 products pass the nine scenarios but fail a separate, stronger boundary probe. The bf16 long-context stress also has two gradient tensors exceeding tolerance on Blackwell but not in the A100 cross-check. Neither our models nor the official baselines showed training instability attributable to these effects in our experiments.
Trained independently under the same recipe, from independent initializations, the matched Mamba 3 SISO configuration and the reference end within 0.0032 nats of each other at 1B tokens (test loss 3.2335 versus 3.2367, one seed each); this is a training-level check, not a parity test; downstream comparisons and the real-only variant are in Appendix E.4.
6 Experiments
We evaluate complete configurations on recall and language modelling, measuring recall separately from text loss: Zoology links much of efficient LMs' quality gap to in-context recall, and Based shows its tradeoff with recurrent state size (Arora et al., 2023a; 2024a). Our tasks build on Zoology's MQAR and Based's LM recall evaluation; Section 5.5 reports cost.
6.1 Multi-token associative recall (MQMKVAR)
MQMKVAR extends Zoology's MQAR (Arora et al., 2023a) and MAD's fuzzy recall (Poli et al., 2024) with controlled prefix/substring overlap, variable evaluation key lengths, masked ambiguous continuations and padded answer slots (Figure 2; Appendix E.1). No earlier answer enters the input: each value list must be recalled from the context state. Easy uses Zoology's MQAR generator; medium/hard use ours with vocabulary 8192, 32 pairs, key/value lengths up to 12 and sequence length up to 2048 (Table 25). We target confusable multi-token keys, without comparing difficulty to MAD. Easy saturates at three-seed means of 99.9–100% for all configurations, including attention; medium/hard separate them, spanning 22.2–96.9% and 1.1–82.6% (Table 6), the separation MQMKVAR was designed to provide.
Easy/medium share peak learning rate (LR) without per-model tuning (Appendix E.2). Hard adds and for every configuration, three seeds per rate; the table reports each configuration's best eligible rate on this common grid (Appendix E.2).
Parameter budget and configurations. Our non-embedding budgets are within of Mamba 1's (M1) 1,220,352 parameters. Mamba 2/3 (M2/M3) retain upstream head width 64 and expansion 2, restricting to steps of 32: 288 gives 1.158M/1.183M, below the anchor, so we use 320, 16–18% above it. Attention follows Zoology's Figure 2 (Arora et al., 2023a) and meets the M1 size floor. SSD-MIMO RkOk denotes , with real-row gates by default for (Section 5.3); -r/-c means all-real/half-complex rows. R1O1 and HM mixtures are ungated; HM's and “dynamic” denote static per-coordinate decay and input-dependent rate rows. Appendix E.2 gives gate masks, mixtures and per-seed scores.
Table 6: Held-out token accuracy (percent), three-seed mean [min-max]. Easy/medium use peak LR ; hard selects each row's highest mean among rates with three completed seeds. Selected rates and diverged runs (which make a rate ineligible) appear in Appendix E.2. Bold marks the best medium/hard means; easy saturates. Widths are model/inner; r/c denote real/complex.
| Configuration | Non-emb. | Easy | Medium | Hard | Hard LR | |
|---|---|---|---|---|---|---|
| M1 | 1,220,352 | 256 / 512 | 99.9 [99.9–100.0] | 89.3 [88.8–89.7] | 69.6 [67.3–72.8] | |
| M2a | 1,410,300 | 320 / 640 | 100.0 [100.0–100.0] | 91.7 [88.7–97.3] | 42.0 [29.6–66.0] | |
| M3a | 1,438,952 | 320 / 640 | 99.9 [99.6–100.0] | 76.6 [58.1–87.1] | 27.8 [14.3–48.2] | |
| Attention | 1,236,368 | 392 / — | 100.0 [100.0–100.0] | 22.2 [22.2–22.2] | 1.1 [0.4–1.9] | |
| R1O1-r | 1,203,486 | 296 / 576 | 100.0 [100.0–100.0] | 89.6 [89.4–89.7] | 67.0 [63.9–71.7] | |
| R1O1-c | 1,223,070 | 296 / 576 | 99.9 [99.9–100.0] | 89.8 [89.5–90.3] | 69.4 [61.2–79.3] | |
| R2O2-r | 1,217,308 | 248 / 448 | 100.0 [100.0–100.0] | 91.3 [91.0–91.5] | 82.0 [81.1–83.3] | |
| R2O2-r, gates off | 1,206,492 | 312 / 448 | 100.0 [100.0–100.0] | 89.4 [89.3–89.6] | 60.3 [51.0–76.9] | |
| R2O2-c | 1,207,944 | 248 / 512 | 100.0 [100.0–100.0] | 91.1 [90.8–91.5] | 82.6 [82.1–83.5] | |
| R2O2-c, gates off | 1,217,256 | 280 / 512 | 100.0 [100.0–100.0] | 90.4 [89.9–90.8] | 82.2 [81.4–82.6] | |
| R2O2-c, head frequency | 1,195,992 | 248 / 512 | 100.0 [100.0–100.0] | 91.0 [90.5–91.7] | 82.0 [80.9–83.2] | |
| R4O4-r | 1,204,744 | 176 / 384 | 100.0 [100.0–100.0] | 91.5 [91.1–92.0] | 82.0 [80.9–83.4] | |
| R4O4-c | 1,214,248 | 208 / 384 | 100.0 [100.0–100.0] | 90.5 [89.6–91.6] | 82.2 [81.9–82.7] | |
| HM A+dynamic | 1,236,416 | 256 / 512 | 100.0 [100.0–100.0] | 93.5 [91.2–96.0] | 80.6 [79.8–81.4] | |
| HM complex-A mix | 1,237,472 | 256 / 512 | 100.0 [100.0–100.0] | 95.1 [90.9–98.1] | 79.6 [79.1–80.0] | |
| HM complex-dynamic mix | 1,237,472 | 256 / 512 | 100.0 [100.0–100.0] | 96.9 [96.5–97.2] | 80.7 [79.8–81.5] | |
| HM all-A real | 1,236,416 | 256 / 512 | 100.0 [100.0–100.0] | 91.2 [90.3–92.9] | 79.2 [78.2–80.1] | |
| HM all-A complex | 1,200,922 | 256 / 496 | 100.0 [100.0–100.0] | 92.3 [89.5–96.9] | 69.0 [61.4–74.6] |
aUpstream default head width and expansion at the next supported width above the budget.

Figure 5: Hard-tier held-out token accuracy at each swept peak LR, rates increasing from left to right within each configuration. Horizontal lines mark seed means; the selected eligible rate has a thick line and filled seed markers. Mamba 1's 2/3 marks one diverged seed at . The mechanism group shows rank-one SSD and real R2O2 with gates off. HM denotes A+dynamic; r/c denote real/complex.
Local width and recall. Real/complex R2O2 and R4O4 beat all three Mamba baselines on hard at each configuration's best eligible LR, despite M2/M3's 16–18% larger budgets (Table 6). Real R4O4 matches real R2O2 at width 176 versus 248 (29% narrower); complex R4O4 does not improve on R2O2. Thus widening beyond two gives no further hard-tier gain here; on medium, HM's complex mixtures lead.
Gates and sibling diversity. At the shared LR, removing gates strongly hurts real-row hard-tier recall but barely changes the complex configuration (Table 27). The asymmetry persists after selecting each configuration's best eligible LR: real gates-off reaches 60.3 [51.0–76.9], versus 82.0 with gates, whereas complex gates-off reaches 82.2, versus 82.6 for the complex default. For the half-complex default, only real-block gates are removed. Write gates vary real siblings' write directions; complex siblings' selected steps also vary their phases, consistent with the stronger real-row gate effect. This remains a hypothesis: steps and additive biases also differ across siblings (Section 5.3), and budget matching changes model width. At , the highest tested LR, both gates-off configurations fail on all three seeds (at most 3.8), versus gated scores of 77.5 and 61.1 (Table 27).
Routing rank. At each configuration's best eligible LR, ungated R2O2-c reaches 82.2 [81.4–82.6], against 69.4 [61.2–79.3] for R1O1-c, with disjoint seed ranges. For real rows, gated R2O2-r reaches 82.0, but ungated R2O2-r, at 60.3, falls below R1O1-r (67.0) on average. The ungated rank-one HM mixture also reaches 80.6 [79.8–81.4]. These configuration comparisons do not isolate the effect of routing rank (Figure 5).
Attention reference. Attention solves easy but remains low on medium at the shared LR and on hard throughout the sweep, which does not exhaust attention tuning. Replacing only learned absolute positions with RoPE gives low scores on medium/hard (0.7/0.3%, three seeds per tier).
HybridMamba. At the Mamba 1 budget, the three HM mixtures with dynamic rows exceed all three Mamba baselines on medium and hard. On medium, the complex-dynamic mix has the highest mean of all configurations, 96.9 [96.5–97.2]; on hard, the mixtures reach 79.6–80.7, the best within 1.9 points of the best SSD-MIMO configuration. The gains build up from Mamba 1's static design. With the same static per-coordinate decay, HM's maps, two-endpoint write and head organization raise the hard mean from 69.6 to 79.2; dynamic rows add 1.4 points on hard and 2.3 on medium; complex dynamic rows add a further 3.4 on medium and are neutral on hard. Complex rows with only static decay hurt on hard (69.0). Each step changes several settings at once, so the steps are not isolated mechanisms. HM uses neither map gates nor potential rows: earlier studies found gates not worth their width cost at this budget, and potential rows less accurate and stable than dynamic rows (Appendix E.2).
6.2 Language-model pretraining on FineWeb-Edu
We train approximately 500M-parameter models on FineWeb-Edu (Penedo et al., 2024), one seed per arm, one recipe and no per-model tuning. Table 7 reports 2B/10B-token test loss and downstream scores; Figure 6 shows validation loss. Recall-6 averages Based/Just Read Twice's SWDE, FDA, SQuAD, TriviaQA, NQ-1024 and DROP tasks, also reported by Mamba 3 (Lahoti et al., 2026, Table 4). Our needle-in-a-haystack (NIAH) diagnostic is our own implementation of RULER-style single- and multi-key needles (Hsieh et al., 2024) at 512–2048 tokens; Mamba 3 also uses RULER. Appendices E.3 and E.4 give the recipe/configurations and per-task/paired comparisons. Paired bootstraps on shared evaluation items estimate score-difference intervals; significance means Holm-adjusted . These intervals capture finite-evaluation-set uncertainty, not variation across training seeds.
Loss and downstream development. Mamba 3 MIMO leads on loss at both budgets and 10B zero-shot/NIAH means. At 2B, our primary SSD-MIMO arms improve on Mamba 1 by 0.024–0.030 nats and match or slightly improve on Mamba 2 (0.006–0.011 nats), but trail both Mamba 3 variants. At 10B, R2O2-c trails Mamba 3 SISO by 0.011 nats with NIAH 4.0 points higher; R2O2-r loses its early Recall-6 lead over SISO. The baseline ordering agrees with Mamba 2 over Mamba 1 and Mamba 3 over Mamba 2 (Dao & Gu, 2024; Lahoti et al., 2026).
Routing rank on language. SSD-MIMO's MQMKVAR rank advantage does not transfer to language modelling here. Rank-one Mamba 3 MIMO (Corollary 22) beats R2O2-c at 10B on loss (2.6933 versus 2.7101) and NIAH (+4.1 points, significant), with Recall-6 level (27.9 versus 28.0). By our analysis its advantage is not routing rank: each channel mixes head-shared projections for its write/read directions, whereas SISO shares one write/read map per head. This suggests rank one suffices here and richer per-channel coefficients matter more than routing more values; differing decay laws and state geometries prevent an isolated ablation.
Table 7: FineWeb-Edu language modelling, one training seed per model, 504.5–508.0M parameters, at most the Mamba 3 SISO anchor (507.95M) and within 1% below it. The 2B checkpoints are on the constant-LR trajectory; 10B continues from 2B with cosine decay to . Loss is test-shard cross-entropy (nats). Zero-shot (ZS) columns show LAMBADA, HellaSwag, PIQA, ARC-Easy, ARC-Challenge, WinoGrande and OpenBookQA, followed by their average (ZS); HellaSwag and ARC-Challenge use normalized accuracy; Recall-6 and NIAH are in percent. Underlining marks the best value per column and budget, without implying significance. Attention is a context reference trained with the Mamba recipe. HM-x is HybridMamba with complex dynamic rows; the remaining rows are split equally between real static and real dynamic decay (Appendix E.4).
| Model | Loss | Zero-shot accuracy (%) | Retrieval (%) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LAMB. | Hella. | PIQA | ARC-E | ARC-C | Wino. | OBQA | Avg. | Recall-6 | NIAH | ||
| 2B tokens | |||||||||||
| Mamba 1 | 3.0979 | 25.5 | 34.3 | 64.6 | 55.2 | 26.3 | 50.3 | 21.6 | 39.7 | 14.8 | 19.4 |
| Mamba 2 | 3.0793 | 24.9 | 35.0 | 63.2 | 54.0 | 26.2 | 50.6 | 20.4 | 39.2 | 15.8 | 35.8 |
| Mamba 3 SISO | 3.0592 | 27.4 | 35.2 | 63.9 | 55.7 | 26.5 | 51.1 | 19.4 | 39.9 | 16.8 | 25.6 |
| Mamba 3 MIMO | 3.0561 | 27.3 | 34.9 | 64.6 | 55.6 | 27.2 | 49.4 | 20.8 | 40.0 | 16.8 | 27.4 |
| Attention | 3.1439 | 25.3 | 32.8 | 62.8 | 52.0 | 25.4 | 51.2 | 18.4 | 38.3 | 25.0 | 56.8 |
| SSD-MIMO R2O2-r | 3.0736 | 23.5 | 34.3 | 63.3 | 54.6 | 25.8 | 49.8 | 20.2 | 38.8 | 18.3 | 39.0 |
| SSD-MIMO R2O2-c | 3.0682 | 25.2 | 34.7 | 64.6 | 54.7 | 28.2 | 50.9 | 20.2 | 39.8 | 17.0 | 36.8 |
| HM-0 | 3.0745 | 28.7 | 35.0 | 64.3 | 53.9 | 26.5 | 51.9 | 19.2 | 39.9 | 16.2 | 22.6 |
| HM-25 | 3.0701 | 28.2 | 34.8 | 64.5 | 55.0 | 25.3 | 51.9 | 19.2 | 39.8 | 17.0 | 16.3 |
| HM-75 | 3.0639 | 26.7 | 35.1 | 65.2 | 54.5 | 24.9 | 51.1 | 20.4 | 39.7 | 16.9 | 33.7 |
| HM-100 | 3.0698 | 28.3 | 34.7 | 63.7 | 55.2 | 25.6 | 51.1 | 18.8 | 39.6 | 16.9 | 18.5 |
| 10B tokens | |||||||||||
| Mamba 3 SISO | 2.6991 | 36.7 | 44.8 | 68.0 | 64.3 | 30.2 | 52.2 | 25.6 | 46.0 | 27.3 | 38.8 |
| Mamba 3 MIMO | 2.6933 | 38.0 | 45.2 | 68.7 | 64.4 | 31.9 | 53.7 | 23.4 | 46.5 | 27.9 | 46.8 |
| SSD-MIMO R2O2-r | 2.7184 | 36.1 | 43.9 | 68.1 | 65.0 | 30.6 | 51.5 | 23.4 | 45.5 | 27.3 | 36.5 |
| SSD-MIMO R2O2-c | 2.7101 | 36.4 | 44.5 | 67.8 | 64.1 | 31.4 | 53.3 | 25.6 | 46.2 | 28.0 | 42.8 |
| HM-75 | 2.7057 | 38.8 | 44.7 | 69.3 | 62.7 | 29.4 | 52.6 | 25.0 | 46.1 | 27.6 | 37.8 |
HybridMamba. HM improves on its Mamba 1 starting point, as on MQMKVAR. At 2B, HM-75 beats Mamba 1/2 on loss (3.0639 versus 3.0979/3.0793) and Recall-6 (+2.1/+1.0 points); NIAH is 14.2 above Mamba 1 and 2.1 below Mamba 2, all four retrieval-score differences significant. It narrows Mamba 1's loss gap to Mamba 3 SISO from 0.039 to 0.005 nats. At 10B it stays near SISO: 0.007 nats behind (2.7057 versus 2.6991), with ZS/Recall-6/NIAH differences +0.1/+0.2/-1.0 points, none significant; its 2B NIAH lead of 8.1 points disappears. Per-row decay (Section 5.4) is neither a clear advantage nor disadvantage here. Without multi-input routing, HM-75 has our lowest 10B loss but trails Mamba 3 MIMO (0.012 nats; NIAH -9.1 points, significant). Of four tested complex fractions, excluding Mamba 3's 50%, 75% gives the lowest loss and highest NIAH: at 2B its NIAH exceeds HM-0/25 by 11.1/17.3 points; HM-100 loses 15.2 points and 0.006 nats (Table 32). All four beat Mamba 1/2's 2B loss; ZS and Recall-6 means differ by at most 0.3 and 0.8 points. Appendix E.4 gives full scores, paired comparisons and the format check.
Attention context. At 2B, attention leads Recall-6 (25.0) and NIAH (56.8) despite higher loss (3.1439). Against Mamba 3 SISO it gains 8.2 Recall-6 and 31.2 NIAH points and loses 1.6 ZS points, all significant, without attention-specific tuning. Its Recall-6 lead is mainly extraction: SWDE/FDA 37.2/20.9, versus R2O2-r's 16.8/3.9, with the other four tasks closer. The attention–SSM ordering reverses between medium/hard MQMKVAR and LM retrieval, but the references differ in size (two layers/one head versus 29 layers/16 heads), data, objectives and scoring: scale is not isolated. Replacing learned absolute positions with RoPE does not resolve the low MQMKVAR scores in the tested configuration.


Figure 6: Validation-loss curves, one seed per arm, without smoothing: (a) the eleven main-table configurations at constant LR up to 2B tokens, with a 1–2B zoom; (b) the five configurations continued from 2B to 10B with cosine decay. Fixed-window validation losses, distinct from the test-shard losses of Table 7.
7 Conclusion
Fixed diagonal equivalence holds exactly when the realized transitions commute pairwise and are individually diagonalizable over the chosen field; their failures are the two exits (Theorem 8). Many widely used SSMs satisfy this criterion, including Mamba 1–3 and S4 when its learned transition is diagonalizable. In a fixed diagonalizing basis, their cores differ mainly in decay, phase, writes and reads (Table 1). Local retrieval rank is at most for any transfer, attainable with nonsingular transfer and unrestricted reads (Theorem 21). With time-shared token-local matrix maps, diagonal-equivalent state-mediated kernels are exactly masked linear attention: transitions, reads and writes in the fixed diagonalizing basis give its decays, queries and keys (Theorem 24(i)).
SSD-MIMO widens local writes and reads, the taxonomy's only selective model with local rank above one; HybridMamba combines Mamba 1–3 decay laws in one state, extending Mamba 1 to multi-head, data-dependent complex states. Both support input-dependent rotation phases and differentiable carries. At about 1M parameters, SSD-MIMO's R2O2 configurations reach about 82% hard MQMKVAR recall, compared with 67–69% for R1O1, while rank-one HM with per-coordinate decay reaches 80%: rank is one way to pack values into a small state. At about 500M, scalar-input subsystems already supply rank in aggregate (Section 5.3), possibly explaining why multi-rank routing improves neither LM loss nor retrieval over rank-one Mamba 3 MIMO at 10B tokens, where it leads NIAH and matches Recall-6. Local rank one appears sufficient in these comparisons; complex SSD-MIMO stays close to Mamba 3 SISO, and HM remains competitive with Mamba 3, reaching near parity with SISO through 10B tokens but trailing MIMO.
Limitations. Local rank permits more independent values per step, not necessarily better trained models or lower loss. MQMKVAR compares complete configurations differing in geometry, initialization, steps and biases, so phase diversity remains a hypothesis; three seeds at each of three common rates measure sensitivity only within that grid. LM evidence covers one seed per arm, one scale and recipe through 10B tokens; small loss gaps are untested. Tasks needing more values per step may benefit from multi-input routing, but whether MQMKVAR's gain reflects task or small model scale remains untested.
Acknowledgements
The research leading to these results is funded by the German Federal Ministry for Economic Affairs and Energy within the project "NXT GEN AI METHODS – Generative Methoden für Perzeption, Prädiktion und Planung". The author would like to thank the consortium for the successful cooperation.
The author thanks the Gauss Centre for Supercomputing e.V. (GCS) for providing computing time on the Supercomputer JUPITER at the Jülich Supercomputing Centre via the John von Neumann Institute for Computing. JUPITER is supported by the EuroHPC JU and GCS through funding by the European Commission, the German Federal Ministry of Research, Technology and Space, and the Ministry of Culture and Science of the State of North Rhine-Westphalia.
References
Ameen Ali, Itamar Zimerman, and Lior Wolf. The hidden attention of Mamba models. arXiv preprint arXiv:2403.01590, 2024.
Simran Arora, Sabri Eyuboglu, Aman Timalcina, Isys Johnson, Michael Poli, James Zou, Atri Rudra, and Christopher Ré. Zoology: Measuring and improving recall in efficient language models, 2023a. URL https://arxiv.org/abs/2312.04927.
Simran Arora, Brandon Yang, Sabri Eyuboglu, Avanika Narayan, Andrew Hojel, Immanuel Trummer, and Christopher Ré. Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakes, 2023b. URL https://arxiv.org/abs/2304.09433.
Simran Arora, Sabri Eyuboglu, Michael Zhang, Aman Timalcina, Silas Alberti, James Zou, Atri Rudra, and Christopher Ré. Simple linear attention language models balance the recall-throughput tradeoff. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 1763–1840, 2024a. URL https://proceedings.mlr.press/v235/arora24a.html.
Simran Arora, Aman Timalcina, Aaryan Singhal, Benjamin Spector, Sabri Eyuboglu, Xinyi Zhao, Ashish Rao, Atri Rudra, and Christopher Ré. Just read twice: closing the recall gap for recurrent language models, 2024b. URL https://arxiv.org/abs/2407.05483.
Maximilian Beck, Korbinian Pöppel, Markus Spanring, Andreas Auer, Oleksandra Prudnikova, Michael Kopp, Günter Klambauer, Johannes Brandstetter, and Sepp Hochreiter. xLSTM: Extended long short-term memory. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
Maximilian Beck, Korbinian Pöppel, Phillip Lippe, and Sepp Hochreiter. Tiled flash linear attention: More efficient linear RNN and xLSTM kernels. arXiv preprint arXiv:2503.14376, 2025a.
Maximilian Beck, Korbinian Pöppel, Phillip Lippe, Richard Kurle, Patrick M Blies, Günter Klambauer, Sebastian Böck, and Sepp Hochreiter. xLSTM 7B: A recurrent LLM for fast and efficient inference. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 3335–3357. PMLR, 2025b. URL https://proceedings.mlr.press/v267/beck25b.html.
Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about Physical Commonsense in Natural Language, 2019. URL https://arxiv.org/abs/1911.11641.
Guy E. Blelloch. Prefix sums and their applications. In John H. Reif (ed.), Synthesis of Parallel Algorithms. Morgan Kaufmann, 1993.
Nicola Muca Cirone, Antonio Orvieto, Benjamin Walker, Cristopher Salvi, and Terry Lyons. Theoretical foundations of deep selective state-space models. In Advances in Neural Information Processing Systems 37 (NeurIPS), 2024.
Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge, 2018. URL https://arxiv.org/abs/1803.05457.
Tri Dao. FlashAttention-2: Faster attention with better parallelism and work partitioning. In International Conference on Learning Representations, 2024.
Tri Dao and Albert Gu. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. In International Conference on Machine Learning (ICML), 2024.
Tri Dao, Daniel Y Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. FlashAttention: Fast and memory-efficient exact attention with IO-awareness. In Advances in Neural Information Processing Systems, 2022.
Soham De, Samuel L. Smith, Anushan Fernando, Aleksandar Botev, George Cristian-Muraru, Albert Gu, Ruba Haroun, Leonard Berrada, Yutian Chen, Srivatsan Srinivasan, Guillaume Desjardins, Arnaud Doucet, David Budden, Yee Whye Teh, Razvan Pascanu, Nando de Freitas, and Caglar Gulcehre. Griffin: Mixing gated linear recurrences with local attention for efficient language models. arXiv preprint arXiv:2402.19427, 2024. URL https://arxiv.org/abs/2402.19427.
Daniel Y. Fu, Tri Dao, Khaled K. Saab, Armin W. Thomas, Atri Rudra, and Christopher Ré. Hungry Hungry Hippos: Towards language modeling with state space models. In International Conference on Learning Representations (ICLR), 2023.
Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. The language model evaluation harness, 07 2024. URL https://zenodo.org/records/12608602.
Ali Ghodsi. How many heads make an SSM? a unified framework for attention and state space models. arXiv preprint arXiv:2512.15115, 2025.
Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. In Conference on Language Modeling (COLM), 2024.
Albert Gu, Karan Goel, and Christopher Ré. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations (ICLR), 2022a.
Albert Gu, Ankit Gupta, Karan Goel, and Christopher Ré. On the parameterization and initialization of diagonal state space models. In Advances in Neural Information Processing Systems (NeurIPS), 2022b.
Ankit Gupta, Albert Gu, and Jonathan Berant. Diagonal state spaces are as effective as structured state spaces. In Advances in Neural Information Processing Systems (NeurIPS), 2022.
Qiang Hao, Rui Cai, Yanwei Pang, and Lei Zhang. From One Tree to a Forest: A Unified Solution for Structured Web Data Extraction. In Proceedings of the 34th International ACM SIGIR Conference on Research and Development in Information Retrieval, 2011. URL https://www.microsoft.com/en-us/research/?p=161608.
Marlis Hochbruck and Alexander Ostermann. Exponential integrators. Acta Numerica, 19:209–286, 2010.
Roger A. Horn and Charles R. Johnson. Matrix Analysis. Cambridge University Press, 2nd edition, 2013.
Cheng-Ping Hsieh, Simeng Sun, Samuel Kriman, Shantanu Acharya, Dima Rekesh, Fei Jia, Yang Zhang, and Boris Ginsburg. RULER: What's the Real Context Size of Your Long-Context Language Models?, 2024. URL https://arxiv.org/abs/2404.06654.
Jerry Yao-Chieh Hu, Xiwen Zhang, Ali ElSheikh, Weimin Wu, and Han Liu. On structured state-space duality. arXiv preprint arXiv:2510.04944, 2025.
Arjun Karuvally, Franz Nowak, Andy Keller, Carmen Amo Alonso, Terrence J. Sejnowski, and Hava T. Siegelmann. Bridging expressivity and scalability with adaptive unitary SSMs. In Advances in Neural Information Processing Systems 38 (NeurIPS 2025), 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/1fd79230a683f2c70b07cac5ad704f21-Abstract-Conference.html.
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are RNNs: Fast autoregressive transformers with linear attention. In International Conference on Machine Learning (ICML), pp. 5156–5165, 2020.
Tobias Katsch. GateLoop: fully data-controlled linear recurrence for sequence modeling. arXiv preprint arXiv:2311.01927, 2023.
Peter M. Kogge and Harold S. Stone. A parallel algorithm for the efficient solution of a general class of recurrence equations. IEEE Trans. Comput., 22(8):786–793, August 1973. ISSN 0018-9340. doi: 10.1109/TC.1973.5009159. URL https://doi.org/10.1109/TC.1973.5009159.
Aakash Lahoti, Kevin Y. Li, Berlin Chen, Caitlin Wang, Aviv Bick, J. Zico Kolter, Tri Dao, and Albert Gu. Mamba-3: Improved sequence modeling using state space principles. In International Conference on Learning Representations (ICLR), 2026.
Harsh Mehta, Ankit Gupta, Ashok Cutkosky, and Behnam Neyshabur. Long range language modeling via gated state spaces. arXiv preprint arXiv:2206.13947, 2022.
Duane Merrill and Michael Garland. Single-pass parallel prefix scan with decoupled look-back. Technical Report NVR-2016-002, NVIDIA, 2016.
Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. Can a suit of armor conduct electricity? a new dataset for open book question answering. In Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun'ichi Tsujii (eds.), Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2381–2391, Brussels, Belgium, October-November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1260. URL https://aclanthology.org/D18-1260/.
Sajad Movahedi, Timur Carstensen, Arshia Afzal, Frank Hutter, Antonio Orvieto, and Volkan Cevher. Selective rotary position embedding. arXiv preprint arXiv:2511.17388, 2025.
Antonio Orvieto, Samuel L Smith, Albert Gu, Anushan Fernando, Caglar Gulcehre, Razvan Pascanu, and Soham De. Resurrecting recurrent neural networks for long sequences. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 26670–26698. PMLR, 23–29 Jul 2023. URL https://proceedings.mlr.press/v202/orvieto23a.html.
Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Ngoc Quan Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Katrin Erk and Noah A. Smith (eds.), Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1525–1534, Berlin, Germany, August 2016. Association for Computational Linguistics. doi: 10.18653/v1/P16-1144. URL https://aclanthology.org/P16-1144/.
Guilherme Penedo, Hynek Kydlíček, Loubna Ben Allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. The FineWeb datasets: Decanting the web for the finest text data at scale. In Advances in Neural Information Processing Systems (NeurIPS) Datasets and Benchmarks Track, 2024.
Bo Peng, Ruichong Zhang, Daniel Goldstein, Eric Alcaide, Xingjian Du, Haowen Hou, Jiaju Lin, Jiaxing Liu, Janna Lu, William Merrill, Guangyu Song, Kaifeng Tan, Saiteja Utpala, Nathan Wilce, Johan S. Wind, Tianyi Wu, Daniel Wuttke, and Christian Zhou-Zheng. RWKV-7 "Goose" with expressive dynamic state evolution. arXiv preprint arXiv:2503.14456, 2025.
Michael Poli, Stefano Massaroli, Eric Nguyen, Daniel Y. Fu, Tri Dao, Stephen Baccus, Yoshua Bengio, Stefano Ermon, and Christopher Ré. Hyena hierarchy: Towards larger convolutional language models. In International Conference on Machine Learning (ICML), 2023.
Michael Poli, Armin W Thomas, Eric Nguyen, Pragaash Ponnusamy, Björn Deiseroth, Kristian Kersting, Taiji Suzuki, Brian Hie, Stefano Ermon, Christopher Ré, Ce Zhang, and Stefano Massaroli. Mechanistic design and scaling of hybrid architectures. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 40908–40950. PMLR, 2024. URL https://proceedings.mlr.press/v235/poli24a.html.
Zhen Qin, Songlin Yang, Weixuan Sun, Xuyang Shen, Dong Li, Weigao Sun, and Yiran Zhong. HGRN2: Gated linear RNNs with state expansion. In Conference on Language Modeling, 2024. URL https://arxiv.org/abs/2404.07904.
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: 100,000+ questions for machine comprehension of text. In Jian Su, Kevin Duh, and Xavier Carreras (eds.), Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2383–2392, Austin, Texas, November 2016. Association for Computational Linguistics. doi: 10.18653/v1/D16-1264. URL https://aclanthology.org/D16-1264/.
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. WinoGrande: An Adversarial Winograd Schema Challenge at Scale, 2019. URL https://arxiv.org/abs/1907.10641.
Imanol Schlag, Kazuki Irie, and Jürgen Schmidhuber. Linear transformers are secretly fast weight programmers. In International Conference on Machine Learning (ICML), 2021.
Denis Serre. Matrices: Theory and Applications, volume 216 of Graduate Texts in Mathematics. Springer, 2nd edition, 2010. doi: 10.1007/978-1-4419-7683-3.
Mehran Shakerinava, Behnoush Khavari, Siamak Ravanbakhsh, and Sarath Chandar. The expressive limits of diagonal SSMs for state-tracking. In International Conference on Learning Representations (ICLR), 2026.
Jerome Sieber, Carmen Amo Alonso, Alexandre Didier, Melanie N. Zeilinger, and Antonio Orvieto. Understanding the differences in foundation models: attention, state space models, and recurrent neural networks. In Advances in Neural Information Processing Systems 37 (NeurIPS), 2024.
Julien Siems, Timur Carstensen, Arber Zela, Frank Hutter, Massimiliano Pontil, and Riccardo Grazzi. DeltaProduct: Improving state-tracking in linear RNNs via Householder products. arXiv preprint arXiv:2502.10297, 2025.
Jimmy T.H. Smith, Andrew Warrington, and Scott W. Linderman. Simplified state space layers for sequence modeling. In International Conference on Learning Representations (ICLR), 2023.
Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murstadha, Bo Wen, and Yunfeng Liu. RoFormer: Enhanced transformer with rotary position embedding. arXiv preprint arXiv:2104.09864, 2021. URL https://arxiv.org/abs/2104.09864.
Yutao Sun, Li Dong, Shaohan Huang, Shuming Ma, Yuqing Xia, Jilong Xue, Jianyong Wang, and Furu Wei. Retentive Network: A successor to transformer for large language models. arXiv preprint arXiv:2307.08621, 2023.
Aleksandar Terzić, Michael Hersche, Giacomo Camposampiero, Thomas Hofmann, Abu Sebastian, and Abbas Rahimi. On the expressiveness and length generalization of selective state-space models on regular languages. In Proceedings of the AAAI Conference on Artificial Intelligence, 2025.
Gerald Teschl. Ordinary Differential Equations and Dynamical Systems, volume 140 of Graduate Studies in Mathematics. American Mathematical Society, Providence, RI, 2012.
Philippe Tillet, Hsiang-Tsung Kung, and David Cox. Triton: An intermediate language and compiler for tiled neural network computations. In Proceedings of the 3rd ACM SIGPLAN International Workshop on Machine Learning and Programming Languages (MAPL), pp. 10–19, 2019.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017.
Benjamin Walker, Lingyi Yang, Nicola Muca Cirone, Cristopher Salvi, and Terry Lyons. Structured linear CDEs: Maximally expressive and parallel-in-time sequence models. arXiv preprint arXiv:2505.17761, 2025.
Ke Alexander Wang, Jiaxin Shi, and Emily B. Fox. Test-time regression: a unifying framework for designing sequence models with associative memory. arXiv preprint arXiv:2501.12352, 2025.
Songlin Yang, Bailin Wang, Yikang Shen, Rameswar Panda, and Yoon Kim. Gated linear attention transformers with hardware-efficient training. In International Conference on Machine Learning (ICML), 2024a.
Songlin Yang, Bailin Wang, Yu Zhang, Yikang Shen, and Yoon Kim. Parallelizing linear transformers with the delta rule over sequence length. In Advances in Neural Information Processing Systems (NeurIPS), 2024b.
Songlin Yang, Jan Kautz, and Ali Hatamizadeh. Gated delta networks: Improving Mamba2 with delta rule. In International Conference on Learning Representations (ICLR), 2025.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a Machine Really Finish Your Sentence?, 2019. URL https://arxiv.org/abs/1905.07830.
Itamar Zimerman, Ameen Ali, and Lior Wolf. Explaining modern gated-linear RNNs via a unified implicit attention formulation. arXiv preprint arXiv:2405.16504, 2024.
A State-space theory: proofs and examples
A.1 Proof of Theorem 3
Remark 26. Under Definition 1's assumptions, the state equation is well posed. Here denotes the Euclidean vector norm and its induced matrix operator norm. On each compact time interval the input range lies in a compact ball, so continuity of makes measurable and bounded, hence locally integrable. For , the bound gives global Lipschitz continuity in the state with a locally integrable Lipschitz bound. Thus a unique Carathéodory solution exists on every finite interval (Teschl, 2012, Corollary 2.6 and the subsequent Carathéodory remark, pp. 41–42). By uniqueness these solutions agree on overlapping intervals, defining a unique solution on . For , use the realified initial-value problem displayed after Definition 1, with . The maps and preserve local absolute continuity and commute with differentiation almost everywhere. The existence and uniqueness of therefore give the existence and uniqueness of . The Borel-measurable readout then defines the measurable output uniquely.
Proof. The held input is admissible, so Remark 26 gives its unique state trajectory. Realification preserves matrix products, exponentials and integration, transferring the real calculation below to .
Single-interval recurrence. Fix a finite index and its interval . Consider first the more general interval problem with the coefficient held at and an integrable forcing ; the quadrature schemes at the end of Section 2.1 start from this problem, and the held input (4) is the case . The state equation is understood almost everywhere, as in Definition 1. By the variation-of-parameters formula for linear systems with time-varying forcing (Teschl, 2012), the unique such solution with initial condition is
At , with and , this gives the endpoint formula (18):
Now impose the hold (4): each token specifies the input on the whole interval . On the closed interval, except possibly at , so and almost everywhere. Changing the signal only at isolated endpoints leaves its state integral equation unchanged; changing a token changes the input on its entire hold interval. Thus the constant forcing leaves the integral. The remaining integral is evaluated by the substitution and termwise integration of the exponential series, which converges uniformly on this finite interval by comparison with the scalar series ,
in the notation of (7). The same comparison shows absolute convergence in operator norm of the series for every real or complex matrix argument. Termwise multiplication gives , yielding the stated inverse formula whenever is invertible. Evaluating (77) at therefore gives
Here and are the discrete coefficients of (8), giving (9). The -th LTI subsystem maps at time exactly to at time . Whenever , the next subsystem on takes as its initial condition. Consequently, the discrete state sequence is the exact trace of the continuous-time trajectory at the partition points; the discrete readout of (5) is a definition and needs no argument.
Closed form. The base case is . At the induction step, multiply the expression for on the left by and add . This yields, at every finite index,
where and the empty product is , as in (10). For , this induction proves the identity at every finite index. To cover continuous time, fix any finite . Since , there is a finite with ; the holds indexed cover . Their solutions match at the boundaries by the recurrence and agree with the unique global solution. As is arbitrary, this covers all of .
A.2 Consequences of the fixed-basis criterion
Streaming membership from finite truncations.
Corollary 27. Fix and . Let have horizon and, for , let denote the restriction of its causal transition, forcing, and readout rules to inputs . Then
and if and only if for every .
Proof. The step- coefficients read only the prefix , so the restrictions are well defined, a transition realized at step on is realized at the same step on every extension of , and every transition realized by reads a finite prefix, hence lies in for all ; this gives (80). Each restriction retains the window bound and state dimension . Criterion (33) is decided on pairs, and any pair in the union lies in a single , so it holds on iff it holds on every ; Theorem 8, applied to and to each , converts this into the membership claim.
For time-shared token-local transitions the conclusion is stronger: for every , so one pairwise test settles every horizon at once. It does not extend to a transition rule with explicit position or prefix dependence, whose realized family may grow with : a short truncation can then lie in the class when a longer one does not, and the corollary is what remains.
Further consequences. A single diagonalizable transition is diagonal-equivalent however dense, and so is any family , defined as for functions on the eigenvalues of one diagonalizable , with , since the eigenbasis stays fixed; this covers polynomials, and . Membership is decided by the realized transitions alone, not by forcing or readout: realizations with the same transitions but different write or read maps get the same verdict and the same diagonalizing basis, although they need not be similar to each other. And similarity preserves neither implementation cost nor conditioning, the witness being free to be dense or ill-conditioned. The converse to the inherited-eigenbasis statement in Section 2.2 fails: exponentials can share one eigenbasis while their generators do not, since is not injective. For example, the generators of rotations about the - and -axis in , and , do not commute, yet . The failure is joint only: for a single matrix, diagonalizable implies diagonalizable over . Otherwise has a Jordan block with , and has the block ; since has 1 as its only eigenvalue, it is not diagonalizable.
A.3 Approximation of constant transitions
Construction for Remark 13. Let have constant transition and horizon . We construct diagonal approximants over the chosen field.
(i) Over , choose complex-diagonalizable with (Serre, 2010, Cor. 5.1). For a real , apply this construction to its complexification .
(ii) For a real target , a sequence of real matrices diagonalizable over exists exactly when the target has real spectrum, . For sufficiency, perturb the diagonal of a real Jordan form to obtain triangular with distinct real eigenvalues, and set . Necessity follows from continuity of the spectrum. This condition concerns transition approximation, not arbitrary output approximation.
In either case, retain the forcing and readout of the chosen realization when complexifying), denoted by . Define on the same horizon and state space by
Choose over the corresponding field with diagonal. The diagonal realization is explicitly
It retains the window bound , dimension over the chosen field, and any time sharing (Lemma 7). For every fixed input , original initial state and with , the finite closed form (26) and give
If 's readout is continuous in its state argument at each target state for this input, then
For real , complexification preserves its real-initial runs and readout continuity, so the target outputs are those of itself. Thus even a defective constant transition admits diagonal output approximants in this sense. This need not give exact fixed similarity or convergence of the diagonal-coordinate states or parameters.
A.4 Moving frames: potentials and the accumulator form
Corollary 28. Let be a realization with diagonal transition , and transfer . Let (, , ) be a causal input-dependent sequence (a potential), , and let be with the transition . Then:
(i) has transfer . If for all and , then .
(ii) Through the frame , is equivalent to the realization with the transitions of and the forcing and readout rescaled per token,
Proof. (i) The modulation telescopes: , and . (ii) This is Lemma 10 with the stated frame: .
Individual steps may amplify, , but any interval gains at most the factor over the base system; outputs of are those of , which has the base decay and rescaled write and read maps. With token-local base maps, a token-local potential gives window two, through , while keeps token-local maps. For the bounded potential law (69), the effective potential lies in , so (i) applies with and . Each endpoint difference is strictly less than in magnitude, so the endpoint factor lies in , and the negative base rate gives total decay in in exact arithmetic. Composing a frame with free untied write/read gates does not enlarge the realization class at full-prefix window bound.
Corollary 29. Let have a real diagonal transition with , and write and . Then Corollary 28(ii) at base gives the input-output map of the decay-free accumulator
whose kernel carries only the differences . These invertible diagonal recurrences therefore admit an accumulator form.
Here is the cumulative log-decay, so the accumulator's maps depend on the whole prefix, and large cumulative log-decays make the global rescaling unsuitable in finite precision. For a complex-diagonal transition the statement applies to the modulus after the fold of Theorem 15.
A.5 Real block characterization of complex diagonal equivalence
Corollary 30. For a real realization with state coordinates, its complexification satisfies if and only if there exist , and one fixed such that for every input and time,
If every realized transition is normal , can be chosen orthogonal. In particular, the complexification of every rotational real representation in Theorem 15(i) lies in .
Proof of Corollary 30. Suppose . By Theorem 8, its transition family has a common complex eigenbasis. Group the basis vectors into joint eigenspaces according to their eigenvalues for every matrix in the family. Because every transition of the real realization is real, implies , so conjugation maps each joint eigenspace to the one with the conjugate eigenvalue profile.
A joint eigenspace whose eigenvalues are all real is invariant under conjugation and is the complexification of its real part; choose a real basis there. Each remaining joint eigenspace is paired with . Choose one member of every pair and enumerate bases of all chosen members as , ( if all eigenvalues are real); then the span the partners , and span the real invariant planes. Splitting into real and imaginary parts gives
the realification of Section 2.1. The same splitting for gives the identical plane with and , so one member of each pair suffices. Collecting these real bases gives one and the fixed block decomposition (81) for the entire family.
Conversely, each scalar block is diagonal and every rotation-scaling block is diagonalized by the same complex matrix
Combining with these fixed block eigenbases simultaneously diagonalizes every transition, so .
If the family is normal, choose a common orthonormal complex eigenbasis (Horn & Johnson, 2013, Thm. 2.5.5). Distinct joint eigenspaces are orthogonal. For a unit vector , , in a nonreal joint eigenspace, and lie in distinct joint eigenspaces and are orthogonal, so ; hence and . For orthonormal , the same computation with and makes orthogonal to . Choosing for each and real orthonormal bases in the real joint eigenspaces makes orthogonal.
The block characterization also allows unpaired real scalar blocks; it need not have S = 2K.
A completely paired form at the same real dimension is possible exactly when every real joint eigenvalue profile has even multiplicity: pair the corresponding equal scalar blocks. Otherwise some scalar blocks must remain. For example, the constant transition defines a realization in but is not similar over to a single rotation-scaling block. This does not affect the exact -complex to -real identification in Theorem 15(i).
A.6 Proofs of the gradient and scan lemmas
Every index in this subsection is a discrete step of the recurrence (21).
Proof of Lemma 18. Gradients with respect to vectors are row vectors, so Jacobians multiply on the right. Unrolling, each is a function of , and , and , so for any scalar entry of these inputs
with the direct sensitivity of the lemma (there is no ), whereas the total derivative satisfies for and . (i) enters only at step with , so for and 0 before; substituting into (82) gives the closed form, and splitting off the term of the same sum at (empty product, contributing ) and factoring to the right of the remainder gives the recursion. (ii) enters only through ; since and enter identically from step on, ; with the chain rule gives , the matrix , of which a diagonal constraint on keeps the entries . The scalar constraint sums these diagonal entries, giving . (iii) enters only through with , so ; at the other end is read only by , so .
Proof of Lemma 19. Associativity. For ,
For the same computation applies with : both bracketings evaluate to .
Forward states. Induction on . For , the scan output is . For , assume . Then
Reverse gradients. Transposing the recursion in (47) into columns gives
We show by downward induction on that the scan equals with (empty product at ). The base case is . For the step, appending gives
the second component by the transposed recursion and the first because . This is (53).
B Retrieval and architecture classification details
B.1 Linear aggregation across subsystems
Corollary 31. Fix a set of subsystem indices from Definition 20, a pair and all evaluated coefficients. Suppose for one shared . Let , and . Suppose the aggregation is linear in local outputs, , with depending only on the declared input window. Then its state-mediated operator factors as
where stacking follows the index order of Definition 20. Consequently, for arbitrary transfers,
If all are nonsingular, the maximum over unrestricted is .
Proof. Block multiplication gives the displayed factorization: each diagonal transfer block pairs the corresponding write and read. The rank-product inequality gives the bound, since the stacked write has columns and the aggregate read has rows. No block must be invertible for this step. If every block is nonsingular, so is , and Theorem 21 applies with state width , effective read and output width . The attainment is over unrestricted ; the constrained read need not realize a maximizing one.
B.2 Masked linear attention: proof and scope
Proof of Theorem 24. For (i) apply the fixed-basis construction; for (ii) use the interior-order invariance of scalar masks. Each case reads W off the transfer (58).
(i) Under the fixed basis of Theorem 8 the diagonal representative of (34) has diagonal transfer and, by Lemma 7, the same kernel , so and , which is (60) with the maps (62), token-local and shared across time because the original maps are and is fixed (no invertibility of the transitions is used, unlike the prefix frame of Lemma 10); unrolling (61) with gives
The initial-memory output is . Together with the kernel action and unchanged feedthrough this reproduces the complete layer output. Conversely, given (60) the recurrence (59) has diagonal realized transitions , so Theorem 8 with places them in with time-shared maps, giving (63). Taking the diagonal realization's initial state to be the prescribed preserves its initialized output as well. The same calculation with step-indexed token-local maps and the same fixed Q proves the extension of part (i) stated after the theorem.
(ii) In (60) interior tokens enter only through the scalar masks , invariant under permutation of their factors, while the query and key maps see only ; so every masked linear attention kernel and — the constraint being closed under limits — every pointwise limit of them is interior-transposition invariant. A witnessed change therefore excludes W from the class and its closure. If W is the kernel of a realization , then must depend on the interior order (the endpoint maps are fixed), which commuting transitions cannot do, so is non-abelian.
Remark 32. Theorem 24(ii) tests time-shared token-local factors. Lemma 10 gives every invertible transition family a Gram form with prefix-dependent endpoints; the exclusion therefore rests on time-shared token locality, not Gram factorization alone. A nonlocal presentation of a kernel does not exclude it, since another presentation may satisfy those hypotheses; exclusion needs a witness in the declared domain. General softmax attention is not covered by (60): its row normalization couples all summands over and need not admit token-local query/key maps and scalar product masks. This does not exclude special cases that admit such a representation.
Head organization. Multiple heads are included in the same definition. Stack their supplied values, and let and embed head 's input and output coordinates into the combined interfaces. Their concatenated kernel and its modes are
This is a block-diagonal kernel before any output projection; a fixed output projection is absorbed into the read directions. Removing the block-support and parameter-sharing constraints gives the more general combined kernel of Definition 23. This regrouping does not assert reduction to one conventional head of (46): that head applies one scalar temporal score to every value coordinate, whereas distinct heads can apply different scores. The combined mode representation retains those differences through its endpoint supports and mode masks.
B.3 Classification of existing architectures: details
Shapes below follow Table 1: counts real coordinates, with for a fully paired -complex representation. Shapes use the exhibited linear interface reductions of Section 3.1; effective write rank and remaining aggregation are recorded separately.
We use the layer, mixer and SSM core vocabulary of Section 3.2; every window is measured on the core input.
Window and interface conventions. The table uses the smallest established window among the exhibited presentations at fixed core input, state size and interfaces, without a global minimality claim. All temporal preprocessing counts toward this window. Two-endpoint forcing generally needs the preceding sample even for constant ; Euler or an identically zero previous write removes that dependence. Evaluating an LTI recurrence over its full history does not enlarge its window. Conversely, constant does not make selective write/read maps or nonlinear preprocessing LTI.
Output gates belong to aggregation, and coefficient branches need not factor through the supplied write features. If with , the effective write is
The Input-dep. column records selected discrete , including step and write-gain factors (endpoint coefficients for two-endpoint writes). Driving features, feedthrough and aggregation are omitted from this column, but their conditioning still counts toward the window. Moving factors between these maps and can change the column without changing the recurrence. Thus a dash does not imply a linear complete core: H3's key-value product is a driving feature and its query contraction belongs to aggregation, while GSS has gates around constant DSS coefficients. DSS's horizon-dependent coefficient is input-independent at fixed horizon.
B.3.1 Constant transitions
The S4 family. S4, S4D and DSS use one SISO LTI core per driving channel (Gu et al., 2022a;b; Gupta et al., 2022). S4 uses a diagonal-plus-low-rank (DPLR) generator in its computational basis; discretization gives a constant transition. The usual complex parameterization retains conjugate symmetry to represent a real system. The table does not identify this full DPLR system with a -coordinate complex-diagonal recurrence. Its class membership is conditional on the discrete transition being diagonalizable. At HiPPO-LegS initialization, the continuous generator is lower triangular with distinct eigenvalues , and hence diagonalizable (Gu et al., 2022a, Eq. (2), Lemma 3.2). Learning the full DPLR generator preserves diagonalizability generically, but does not guarantee it for every parameter setting. For a positive step with the inverse defined, bilinear discretization gives (Gu et al., 2022a, Eq. (3)). It preserves eigenvectors: implies . S4D and DSS instead use diagonal complex generators and diagonal transitions. DSS softmax fixes the kernel horizon : its write coefficient contains ; DSS exponential and the exponential variant used in GSS do not have this dependence. S5 (Smith et al., 2023) shares one such state across all input channels, with matrix-valued : its declared shape is , where for complex coordinates. Its channel mixing is in the write and read matrices, independently of the diagonal transition.
Class: for S4 (when diagonalizable), S4D, DSS and S5, because each is one constant, hence commuting, complex-diagonal transition per subsystem with token-local maps, so .
H3 diagonal core and GSS. For H3 (Fu et al., 2023), let be the key and value width per head. Its shift core is described in Appendix B.3.4. After shifting, head forms . The diagonal core filters each of these scalar streams, so its declared shape is ; a query then contracts the key axis through . Here counts the taps of the finite shift filter, which equal the shift core's state width. The diagonal core's core-input window includes that filter and has bound , whereas the shift core itself has window one. Only at do their subsystem counts coincide. GSS (Mehta et al., 2022) applies a DSS core to a projected bottleneck of width . Surrounding products and gates in both models do not change these cores' transition families.
Class: for H3's diagonal core and for GSS, because both transitions are constant complex diagonal and the window is the shift filter's taps (GSS has none).
LRU. LRU (Orvieto et al., 2023) uses one shared complex state, and , with constant diagonal . Its shape is , where realifies the complex coordinates; all maps are token-local. Class: , because is constant complex diagonal and no preprocessing widens the window.
RetNet. RetNet (Sun et al., 2023) uses a headwise constant decay and per-coordinate frequencies, in complex coordinates with the cumulative rotation folded into its query and key maps and selective , classified before the fold exactly as our own designs (Section 5.4).
Its retention normalization divides the state by , where is the running sum of decay weights, so the stored transition is (Sun et al., 2023, Section 2.2); GroupNorm removes this scaling up to its , and the table lists the unscaled recurrence. Class: , because the transitions are a constant complex diagonal, rescaled at most by a positive scalar that depends on alone, and are token-local.
B.3.2 Input-dependent real diagonal transitions
Mamba 1, Mamba 2 and GLA. Mamba 1 derives coefficients from its processed value branch. Mamba 2 projects values, , steps and output gates separately. The convolution and its sigmoid linear unit (SiLU) act on values and only. Mamba 1 (Gu & Dao, 2024) makes input-dependent while retaining one diagonal SISO core per channel. Its implementation uses the exponential-Euler write of (20), whereas the paper states zero-order hold; Mamba 3 makes this distinction explicit (Lahoti et al., 2026, Section 3.1). Its real transitions are the default; the complex variant (Gu & Dao, 2024, Section 3.6), suggested with S4D-Lin initialization for continuous modalities such as audio, instead belongs to , each eigenvalue moving along a fixed spiral. Mamba 2 (Dao & Gu, 2024) restricts , which exposes the state space duality of Section 2.4, equation (45), and its chunkwise algorithm; the subsystems of a head share , which is what “head” denotes in Mamba 2. GLA (Yang et al., 2024a) has a diagonal selective decay per head, per coordinate like Mamba 1's, with key writes , query reads and values ;
the reported model has no short convolution, so its window is one, and an optional convolution enlarges it. Class: for Mamba 1 and 2 (complex Mamba 1: ) and for GLA, because the transitions are real diagonal, hence commuting, with the window set by the convolution width (1 for GLA without one).
RG-LRU and HGRN2. RG-LRU, the recurrent core of Griffin and Hawk (De et al., 2024), uses . Both gates depend on the convolved drive, not on . The displayed scalar factorization takes , and , so its entry is ; its GeLU gate branch, like Mamba 1's, lies outside the core. Taking each scalar state coordinate as a subsystem gives and , with in the reported mixer. The gate projections' block partition is not an additional recurrent-state axis. HGRN2 (Qin et al., 2024) has a real diagonal SSM core: per head, and . In our notation row of is the state of subsystem , with , , value and read . Its rows are scalar-driven states of width , giving ; the reported square heads have . The layer-dependent lower bound in is learned and time-constant. All conditioning branches are token-local, so the real diagonal selective core lies in ; an optional short convolution enlarges this bound to its width. Class: for RG-LRU and for HGRN2, because both are real diagonal (scalar for RG-LRU) with token-local gates, the window being the convolution width (1 for HGRN2 without one).
mLSTM, including its normalizer. The mLSTM of extended LSTM (xLSTM) (Beck et al., 2024, Eqs. (19)–(26)) has a matrix memory and a normalizer sharing the scalar gates:
For each head, the memory rows and the normalizer are subsystems of state width : in our notation row of , and , is a state with , , and value , or 1 for the normalizer. Thus the table's shape is , with state coordinates. The rows remain distinct subsystems because they are driven by different values. The local reads are and . The stateless aggregation divides the memory reads by and applies the output gate. This is one affine recurrent system with a nonlinear aggregation; the masked-linear-attention correspondence does not extend to that aggregation. The input gate is ; the forget gate is sigmoid or exponential. The numerical path carries a per-head stabilizer and stores , , an exact rescaling in real arithmetic (the denominator floor becomes ); the table classifies the recurrence before stabilization. In the released mixer, queries and keys pass through a width- convolution and SiLU, values bypass it, and both gate logits depend on these query/key/value branches. Gates and SiLU act pointwise on input features; only the convolution extends their core-input window to . No gate feeds back from the recurrent hidden state, unlike sLSTM, so these nonlinear input maps preserve the affine core. The xLSTM-7B variant (Beck et al., 2025b, Sections 3.1–3.2) soft-caps the gate preactivations, which changes only input maps, and removes the convolution, giving window one. Class: the mLSTM layer is in , and the convolution-free mLSTM of xLSTM-7B, built from mLSTM blocks only, in , because the shared transition is a real scalar, hence commuting and diagonal, the normalizer is one more subsystem, and the window is the query/key convolution width.
B.3.3 Input-dependent rotations
The models below realize their rotations in real arithmetic: in one fixed real basis, every transition consists of real scalar rows and rotation-scaling pairs . By Corollary 30, these are exactly the real transition families whose complexification is complex diagonal-equivalent, which gives their entries in Table 1.
Mamba 3. Mamba 3 (Lahoti et al., 2026) has separate coefficient and value branches, normalized , token-dependent rotations and the two-endpoint write of Section 2.1. Its MIMO variant lifts each scalar value by a learned, data-independent -vector. The internal factorization therefore has input rank one. Absorbing the lift and local gated contraction gives the table's interface (Corollary 22). If branchwise normalization across subsystems precedes contraction, retain and put the remaining operations in . Token-local coefficient and feature branches together with the previous-sample write give the unfolded core window two, hence ; earlier temporal preprocessing counts toward the window relative to the declared core input. Class: (SISO and MIMO), because token-dependent rotation-scaling pairs share a fixed complex basis (commuting) and the two-endpoint write reaches back one token.
AUSSM and the declared core. AUSSM (Karuvally et al., 2025) assumes simultaneously diagonalizable real skew-symmetric generators, with input-dependent generator and step and constant continuous-time write/read matrices in its stated SSM. After discretization, the write coefficient is , while (Karuvally et al., 2025, Eq. (4)); hence its entry is . The transition exponentials share a fixed complex eigenbasis. The table groups its channelwise cores as one subsystem per driving channel; regrouping identically tied cores into heads leaves diagonal equivalence unchanged. The released mixer's optional width- convolution is included in its window bound. As a mathematical extension, odd real widths can include an unpaired scalar block, as allowed by Corollary 30; the released complex-coordinate implementation has even real width. Class: , because the unitary transitions share a fixed complex eigenbasis (commuting, complex diagonal) and the window is the optional convolution width.
Our designs. HybridMamba and SSD-MIMO are classified in Section 5.2 (Class and window): without complex rows and with them, with by default.
B.3.4 Inside , outside
H3 shift core. For H3 (Fu et al., 2023), the shift core processes each of the key channels. Its nilpotent shift transition is defective for state width , so it is not diagonal-equivalent despite its constant, hence commuting, transition. Its core-input window is one; the diagonal core's post-shift window is given in Appendix B.3.1. Class: , because the constant real transition commutes but is defective, hence not diagonalizable even over , and the window is one.
Delta-rule transitions. The delta-rule family (DeltaNet (Schlag et al., 2021; Yang et al., 2024b) and Gated DeltaNet (Yang et al., 2025)) is linear in the state, its transition an input-dependent rank-one perturbation of the identity, and two such perturbations generically fail to commute,
which, for real keys, vanishes only for , or : the non-abelian claim requires an attained pair violating these conditions. Class: for DeltaNet and Gated DeltaNet, because the real transitions are generically non-commuting (the commutator above) and their short convolutions on queries, keys and values give window .
DeltaProduct and other noncommuting updates. DeltaProduct (Siems et al., 2025) supplies keys, gates and value vectors per token. Suppressing the head index and writing one memory row as a column, let
Collecting the updates gives
so has write width . An description can instead absorb the independent values into an input-dependent write column, but then no longer records the supplied value interface. The table row is ungated DeltaProduct; Gated DeltaProduct, , lies in the same generically non-abelian class (Siems et al., 2025, Appendix B). Gated DeltaNet adds a scalar decay to the one-update transition. RWKV-7 (Peng et al., 2025) uses a diagonal term plus an asymmetric rank-one correction (the sign may be absorbed into a factor). For the column-state convention here its transition is . All its conditioning branches mix the current and preceding core-input tokens; the first layer's value precursor, read by later layers, is part of their declared core input. Group normalization, output gating and a stateless bonus term on the current and preceding tokens act outside the recurrent update. Class: for (Gated) DeltaProduct and for RWKV-7, because the real transitions are generically non-commuting (explicit pairs below) and the window is set by the short convolutions on queries, keys and values, resp. by RWKV-7's token shift over the current and preceding token.
For an explicit noncommuting pair, take , and with . Then
Learned key projections can realize these two directions, and constant sigmoid logits realize the gates. A short convolution can retain only its current tap. Gated DeltaNet can use a constant scalar decay law with ; this only scales the commutator. For DeltaProduct, repeat each key at all substeps with gate : the product is , giving the same obstruction. For RWKV-7, take constant and ; its permitted decay range contains , obtained with zero decay logit. The same normalized removal keys give the displayed commutator. By Lemma 12(ii), one attained noncommuting pair excludes these cores from , hence from every , and the exclusion persists under small perturbations of the weights; this is the sense of “generic” in Table 1. An exposed change (Section 4.2) further excludes a masked linear attention kernel by Theorem 24(ii). These are realizable examples, not assertions about every trained parameter setting. Scalar states, zero gates or restricted key families can remain diagonal-equivalent.
B.3.5 Outside the SSM class
The specified GRU, LSTM and sLSTM recurrences use nonlinear hidden-state feedback in their gates. For example, sLSTM gate logits include the preceding hidden state (Beck et al., 2024, Eqs. (8)–(14)); they are not coefficient maps of the core input alone as required by Definition 4. This contrasts with mLSTM's input-conditioned gates and stateless nonlinear aggregation in Appendix B.3.2.
Full softmax attention stores an increasing list of keys and values. That specified cache is not a recurrent state of fixed width independent of the horizon. Hyena (Poli et al., 2023) instead specifies its long-convolution filter as a learned function of lag, rather than through a fixed-width recurrent state. A convolution has a presentation as an SSM core when its kernel admits with a state width independent of the horizon; a finite-horizon shift register whose width grows with the horizon does not give that presentation. By contrast, S4 and H3 generate their kernels from a fixed-width state and therefore lie inside the class (Appendix B.3.1). Being outside the class is a statement about the architecture as specified, not about which input–output maps it can compute.
Class: outside for GRU, LSTM and sLSTM (nonlinear hidden-state feedback in the gates), softmax attention (cache growing with the horizon) and Hyena (kernel specified by lag, not a fixed-width state), because none is a fixed-width recurrence with core-input coefficient maps.
C Design details, state continuation and Mamba specializations
This appendix supplies the map constructions, continuation interface and Mamba specializations behind Section 5. Numerical agreement is reported in Sections C.4–C.5; kernel algorithms and performance measurements are in Appendix D. Experiment-specific settings are given with the protocols in Appendix E.
C.1 Shared coefficients and endpoint maps
Here index head, channel within the head and state coordinate. The base endpoint projections are shared across heads (in HybridMamba also across the subsystems); heads differ through static biases, steps and rates, and in SSD-MIMO the biases also resolve the sibling.
For the per-coordinate scan, the log modulus must separate as
(83) where a schedule may instead be head-resolved and hence omit , but never carries : the subsystems of a head share the schedules, so the kernel evaluates them once per head.
For static rows, the coefficient is . Dynamic rows select the rate with static coefficient -1; potential rows use the second schedule with the bounded gain of (69).
Write and read maps. Let be the base maps, RMS-normalized along the state axis when normalization is enabled, and the write and read gates of (70), with gate activation (default ) and gate projections . SSD-MIMO initializes these projections to zero; HM uses uniform fan-in initialization when its optional gates are enabled, with zero initialization available as an option. For HM the maps depend on the head only, , and are vectors; for SSD, and they have dimensions and . The default maps in both families are
(84)
The phase follows (71); the experiment protocols specify the frequency sharing and initialization. For SSD, selects the sibling and scales every input column; resolves the output coordinate. Biases and resolve the scan head; this per-scan-head bias layout is required whenever a complex block is present. HM biases resolve the head, where is the real width of the per-coordinate scan; its gate features are head-shared. HM's optional post-rotation gates instead form , with the bias before the gate and an optional gate bias , and act after the rotation; they are pair-tied.
A gate projection emits one feature per gated complex pair and per gated real row, for each sibling (write gate) or output coordinate (read gate) in SSD-MIMO; each factor scales all columns of its sibling's map. Its factors are expanded to the state axis as
for . Here the first equality denotes the diagonal multiplication operator; a pair-tied real factor is a complex scalar. Real blocks default to gated and complex blocks to ungated. A gate projection exists only when enabled: in SSD-MIMO by default for writes at and reads at , in HybridMamba never by default, and when enabled there, writes and reads are gated together. The experiment protocols state any exceptions; complex-only SSD has no map gates by default even at .
Pair-tied complex gates commute with rotation, so gating before or after the rotation does not change the class or window of Section 5.2. The default gates before the rotation, as in (84).
Static sibling weights compose with the output projection as ; selected weights generally cannot.
Local and aggregate transport rank. For the Euler write ((73) with ), one sibling's state-mediated temporal block can attain rank with nonsingular transfer and free endpoint maps (Theorem 21); at and , , , with give . The module attains this witness on a real block: choose identity gates, zero biases, base maps proportional to and its transpose, and a nonzero scalar transfer. RMS normalization and the step rescale the nonzero entries only, so the local rank remains two. Mamba 3's implemented data-independent lift of a scalar has effective input rank at most one at the corresponding local interface (Corollary 22). These ranks concern supplied features at fixed coefficient schedules; preprocessing may mix residual-token coordinates.
For one SSD-MIMO group, suppress and set and stack these effective writes over into . The Euler state-mediated retrieval operator of the group is
This is the factorization of (57) with , so its rank is at most . When , one sibling can already attain this ceiling. Different sibling transitions give different lag dependence, but several scalar-input subsystems can also attain full aggregate rank, so the local-interface distinction is not a whole-model expressivity ordering: comparisons require matched state budgets and parameter sharing (Appendix B.3).
C.2 State continuation and differentiability
Our native scans and mixers accept initial carries and return final ones: the recurrent state, the accumulated phase, the previous write of the two-endpoint rule, the potential and the convolution history, and the previous endpoint maps and drive where these are needed. Gradients flow through both, so a long sequence can be processed as consecutive segments with the carries passed between calls: keeping the carries in the graph backpropagates through all segments, detaching them gives truncated backpropagation through time. Single-token steps use the same carries for generation. With row blocks, each block carries its own state and the skip is applied once.
Continuation tests cover the native routes advertised as supporting full backpropagation through time and check that whole-sequence, token-by-token and split-sequence evaluation agree in outputs, final carries and all gradients, including those of the initial state, within arithmetic-derived tolerances. Splitting bounds the working memory of each call, but backpropagating through all segments keeps each segment's saved tensors (Section 5.5), so total training memory still grows with the backpropagated length; only detaching the carries bounds it. Without gradients nothing accumulates across calls, so inference of arbitrary length runs in segments that fit in memory.
C.3 Exact Mamba specializations and numerical evidence
Table 5 gives the defining settings. With matching projections, normalization and initial states, the parameter correspondences in Table 8 recover the same function in exact arithmetic. Copied-weight output and gradient checks use declared floating-point tolerances; upstream step/decode parity has not been tested.
Table 8: Parameter correspondences for the SISO presets in Table 5. Mamba 3 MIMO has no exact preset (Corollary 22).
| Target | Parameter correspondence |
|---|---|
| Mamba 1 | , step rank ; no B/C or output norm. Match input/output, convolution, B/C/step maps, and head . |
| Mamba 2 | , one B/C group, no B/C norm or biases. Split packed projections and convolution; match step bias, , head and output normalization; no static rate bias. |
| Mamba 3 SISO | , no output norm; half of the state rows rotate (in pairs) with . , ; match the rate activation (heavy-tail by default), and the step that scales the write, B/C gains and biases, step bias, head , output gate and angle/endpoint maps. |
Copied-weight checks for Mamba 3 match the softplus rate law on both sides; they do not test our default heavy-tail configurations.
The matched M3exact and real-only R1O1-r (Mamba 3 settings) training runs are experimental controls, not copied-weight parity tests; their downstream comparisons are in Appendix E.4.
C.4 Numerical agreement with the official modules
Setup. We compare with the official Mamba modules, matching the softplus rate law for Mamba 3, using PyTorch 2.14 and Triton 3.8. Here fp32 denotes 32-bit floating point and tf32 denotes TensorFloat-32 matrix-product operands. Official weights are copied into our preset (Table 8); both modules receive the same input and the same output cotangent. The reference is our module in 64-bit floating point (fp64) through a pure-torch route (token-by-token recurrence, or the chunked torch route at the long shapes; the two agree to at a small shape), which shares no code with either kernel. Errors are normwise relative errors per tensor, with the pooled signed error as bias check. A tensor passes when the error is below (bf16, ) or (fp32, tf32 operands,
) and the pooled signed error below a quarter of that bound; for parameters and for and . This is the rule of the repository's kernel oracles; an arm run with IEEE operands is held to the same bound. bf16 runs use autocast on both sides with bf16-exact inputs. The comparison is end to end through the module (projections, scan, gate, output map), so bf16 rounding of the projections enters both arms. Each cell reports the median (maximum) over five draws. The full matrix runs on a Blackwell RTX PRO 5000; an A100-SXM4-80GB cross-check repeats the main shape, long-shape Mamba 3 and selected stress cases. The measured configuration adds the step bias in fp32 and saves HM boundary checkpoints. These results do not certify untested execution configurations or H100 numerical accuracy.
What each side computes in fp32. Official Mamba 3 casts , the trapezoid weight and the angles to bf16 before its scan for any input dtype and keeps the step and the decay exponent in fp32 (mamba3_siso_combined.py); its backward multiplies in bf16 in the input-gradient kernel. Our fp32 route uses tf32 matrix-product operands by default and fp32 operands (precision="ieee") on request. On the tested NVIDIA routes, Triton's "IEEE" mode uses single-instruction, multiple-thread (SIMT) fp32 fused multiply-adds on CUDA cores instead of tf32 Tensor Core products. Both modes support fp32 input/output and accumulation; multiplication precision and execution units differ. "IEEE" means neither fp64 nor module-wide IEEE compliance. Official Mamba 2 uses Triton dots on fp32 operands (tf32 by default), and official Mamba 1 is an fp32 scan. Hence fp32 rows compare each side in the arithmetic it performs, and only the bf16 rows use the same operand precision on both sides.
Agreement in detail. Table 9 reports copied-weight agreement and each side's error against the fp64 recurrence, which shares no code with either kernel. At , , every tested tensor-seed comparison lies within twice its normwise tolerance in both dtypes: 60/60 for Mamba 1, 75/75 for Mamba 2 and 80/80 for Mamba 3. The A100 cross-check also passes every comparison at this shape. Median bf16 output differences between ours and official are , and , respectively. At , , the exception is Mamba 3's bf16 angle-projection gradient: all five seeds exceed twice the tolerance, leaving 75/80 passes.
For bf16 Mamba 3, ours and official have output errors against fp64 of and , and input-gradient errors of on both sides. In fp32, official Mamba 1 agrees with ours to about on the output. Mamba 2's ours-official difference is about , while our full-fp32 product mode is about from fp64. Official Mamba 3's internal bf16 casts give an output error about ; ours is about with tf32 products and with full-fp32 products. These are comparisons of the arithmetic each implementation performs, not bitwise-equivalence claims.
Table 9: Copied-weight agreement with official modules and relative error against fp64 (, , ; Blackwell). Cells give median (maximum) over five seeds; "param. grads" takes the worst tensor per seed. "Ours" uses default operands and adds the step bias in fp32; IEEE uses fp32 matrix-product operands (SSD-MIMO, fp32 only). bf16 runs use autocast on both sides. For fp32 input/output, official Mamba 1 uses an fp32 scan, Mamba 2 tf32 dots, and Mamba 3 casts , trapezoid weight and angles to bf16 inside its scan; our SSD recoveries default to tf32 operands.
| Pair | prec. | quantity | ours vs. off. | off. vs. fp64 | ours vs. fp64 | ours (IEEE) vs. fp64 |
|---|---|---|---|---|---|---|
| Mamba 1 (MH) | bf16 | y | - | |||
| param. grads | - | |||||
| fp32 | y | - | ||||
| param. grads | - | |||||
| Mamba 2 | bf16 | y | - | |||
| param. grads | - | |||||
| fp32 | y | |||||
| param. grads | ||||||
| Mamba 3 SISO | bf16 | y | - | |||
| param. grads | - | |||||
| fp32 | y | |||||
| param. grads |
C.5 Gradient accuracy of the rotation path against official Mamba 3
What is tested. Official Mamba 3 and our Mamba 3 specialization (Table 8) receive copied weights, the same input and the same output cotangent, and both are scored against the fp64 evaluation of Appendix C.4. We report the gradients with respect to the angle projection (with ), written ; the step projection, ; and the input, . The previous-token case additionally reports the endpoint-weight projection gradient, .
Why the angle gradient is the sensitive one. For one scan head , with its indices suppressed, the phase of (71) is a running sum, so with the reverse running sum of phase gradients,
Three properties make numerically delicate. (i) It sums over all later tokens, so the rounding of its terms accumulates with the context length. (ii) After a forgetting token , the exact contribution of earlier phases to later outputs has decayed, so the exact is a small remainder of terms that each carry the operand rounding of the backward matrix products, while the factor in (86) is large there; the relative error of is then large although every term is accurate to the operand precision. (iii) Official Mamba 3 forms the in-chunk reverse sum as chunk total minus forward prefix plus the current term, a difference of large quantities, from bf16 matrix products; ours accumulates the reverse sum directly, with fp32 phases reduced modulo . This mechanism is consistent with every measurement below; we did not isolate it by ablation.
Cases. Table 10 includes ordinary inputs at increasing length, strong rotation at , fast-forgetting heads, sparse emphasis spikes, document boundaries and the previous-token limit of the two-endpoint write. The stress matrix uses nine scenarios; its largest boundary strength is . All ratios are official over ours against fp64. The full matrix is measured on Blackwell; the A100 cross-check is narrower. Across the nine scenarios the median angle-gradient ratios range from 1.4 to 7.4 in bf16 and from 14 to 49 in fp32, where official still uses bf16 scan operands. At ordinary initialization, increasing from 2048 to 32768 raises the bf16 angle-gradient error from to for official and from to for ours.
Why it could matter, and what we do not claim. Errors in perturb the updates of the rotation parameters, most at long context, and an fp32 run is only as exact as its scan. In our MQMKVAR and language-model runs, neither our models nor the official Mamba 3 baselines showed a training instability attributable to these effects; the measurements bound gradient accuracy on constructed or long inputs.
Remaining errors. With bf16, both implementations fail the angle-gradient tolerance at strong boundaries, emphasis spikes and the previous-token write (by the worst draw). In the previous-token case, both also fail the endpoint-weight projection-gradient tolerance. In the strongly rotating case, our angle and step-projection gradients also fail on Blackwell: worst errors are and against a bound. Neither fails in the same-configuration A100 cross-check; official fails both on both devices. On ordinary inputs at , ours also exceeds the bf16 angle-gradient bound; official exceeds it already at .
With fp32 input/output and tf32 products, our angle gradient fails at strong forgetting tokens. Full-fp32 products pass all nine stress scenarios. A separate A100 probe with stronger boundaries (), outside this matrix, still gives an angle-gradient error 0.22 against a 0.125 bound even with full-fp32 products. Strong forgetting suppresses the exact phase cotangent, while the implementation forms a cancelling reverse sum of rounded terms; the large step can amplify its error. This is a gradient-accuracy limitation, not evidence of a training instability. Other gradients can also be less accurate than official without exceeding tolerance; for example, the ordinary bf16 step-bias error is versus .
fp32 caveat. Official Mamba 3's fp32 rows measure bf16-operand arithmetic (Appendix C.4); the same-arithmetic comparison is the bf16 rows. The cases use matched softplus rate laws, do not cover our default heavy-tail configurations, and cover Blackwell with the stated A100 cross-checks.
Table 10: Gradient errors against fp64 for official Mamba 3 and ours, with copied weights and identical input/cotangent: median (worst) over five Blackwell draws. Ordinary inputs use B = 1, unless stated; stress patterns use B = 2, L = 2048, ; strongly rotating context uses B = 1, L = 8192. , and denote endpoint-weight projection, step-bias and rate-projection gradients. Bold marks any draw exceeding the tolerance of Appendix C.4 or a pooled signed error exceeding one quarter of it. “Ours” uses default operands (tf32 in fp32); IEEE uses fp32 operands. Ratio is official/ours (< 1: ours is less accurate). fp32 rows retain each implementation’s arithmetic, including official bf16 scan casts.
| Case | prec. | tensor | official | ours | ours (IEEE) | ratio | bound |
|---|---|---|---|---|---|---|---|
| Ordinary inputs, L=2048 (B=1) | bf16 | - | 2.6 | 0.05 | |||
| fp32 | 18.2 | 0.088 | |||||
| Ordinary inputs, L=8192 (B=1) | bf16 | - | 2.3 | 0.05 | |||
| fp32 | () | 17.4 | 0.18 | ||||
| Ordinary inputs, L=32768 (B=1) | bf16 | - | 2.2 | 0.05 | |||
| fp32 | 16.8 | 0.35 | |||||
| Ordinary inputs, L=2048, | bf16 | - | 2.7 | 0.05 | |||
| Long context (phase 250 rad, L=8192) | bf16 | - | 1.9 | 0.05 | |||
| bf16 | () | - | 2.0 | 0.05 | |||
| fp32 | 16.6 | 0.18 | |||||
| Fast-forgetting heads (target ) | bf16 | - | 7.4 | 0.05 | |||
| fp32 | 49.2 | 0.12 | |||||
| Emphasis spikes (10% tokens, to ) | bf16 | - | 2.7 | 0.05 | |||
| bf16 | - | 2.8 | 0.044 | ||||
| fp32 | 22.5 | 0.12 | |||||
| fp32 | 20.1 | 0.016 | |||||
| Document boundary () | fp32 | 16.3 | 0.12 | ||||
| fp32 | 16.0 | 0.016 | |||||
| bf16 | - | 1.4 | 0.05 | ||||
| Previous-token write () | fp32 | () | () | () | 17.1 | 0.12 | |
| bf16 | () | () | - | 1.4 | 0.05 | ||
| bf16 | - | 1.1 | 0.05 |
D Chunk algorithms and computational cost
D.1 Routing, contractions and chunk factorization
Let be the input and the routed feature of subsystem in head . Its write and read maps have shapes and . The aggregation considered here sums subsystem readouts. For a group of heads sharing and , stack the routed features as columns:
The write is an GEMM even when the routed inputs differ. Stacking the states vertically and the read maps horizontally gives
Identical subsystem inputs additionally permit stacking the write maps into one GEMM; independent inputs require separate or batched products. Selected aggregation weights can be absorbed into only if the required sharing survives; fixed weights can compose with the output projection.
Chunk scores and routing. For scalar transitions shared across the heads in , let for , zero otherwise. Within a chunk of tokens, collect each read row and write column into
. For zero incoming carry,
(89)
stacks routed coordinate across tokens and heads in . The full output adds for chunk start . Each score construction is ; each application is . Equivalently, these scores form a block matrix of shape ; it need not be materialized. If for all , sum the scores over before application:
This retains PRO score products but reduces applications from PRO to RO. A permutation of a shared local input can be absorbed into its write map and does not enlarge this family.
The required sharing is of endpoint maps and history masks across GEMM columns, not across tokens. In SSD-MIMO these columns are the groups within one scan head ; biases, gates and phases generally prevent reuse across scan heads.
Contraction orders and numerical decay evaluation. Equation (89) contracts endpoint maps first, reusing scores across streams with shared maps. Alternatively, writing first gives, in the matrix notation of Proposition 17,
where stacks . This uses one temporal decay application per stream, but different routed inputs generally give different . SSD-MIMO uses the endpoint-first masked chunk contraction. Padding uses identity transitions and zero writes; padded outputs are discarded.
Scalar decay can be absorbed into endpoint maps by the accumulator change of frame in Corollary 29, but its exponential intermediates can be large. The masked contraction instead evaluates difference-first for a per-head scalar and cumulative nonnegative steps formed within each chunk (for selected rates the step carries the rate magnitude), avoiding subtraction of separately rounded . Per-coordinate decay admits a change of frame too, but loses the common mask used here.
Cross-chunk factorization. Write for the SSD chunk length (Section 5.5) and partition the sequence into chunks , with . Let and stack the inputs and outputs in chunk , and define its zero-entry write map , incoming-state read map , and local input-output block by
Thus has shape , has shape , and has shape ; denotes a local temporal block, not a feedthrough map. With , the chunk recurrence is
For a short final chunk, . Iteration includes every earlier chunk and the supplied initial state. Every off-diagonal block factors through the -dimensional boundary state: block , , equals . The state recurrence evaluates their sum without materializing those blocks. This is the same block factorization underlying the SSD algorithm of Mamba 2 (Dao & Gu, 2024), expressed here for write/read widths .
D.2 Two-endpoint evaluation and numerical formulation
For scalar decay with paired rotation, set , , and . The shifted state gives the evaluated form
SSD-MIMO puts the current-token weight directly on the score diagonal. HM's coordinate scan instead evaluates the propagated previous state and the current-token contribution separately; the same shift applies with a diagonal transition in place of . Both avoid a subtractive output correction. For continuation, the initial shift is , using the carried previous write in the same folded frame. At the last token ; the physical state is . Physical and folded endpoint maps must not be mixed.
Phases and state accumulators use fp32, with phases reduced modulo . SSD decay exponents are evaluated difference-first without clamps; its matrix-product phase derivatives use the corresponding rounded operands. By default SSD-MIMO rounds matrix-product operands to the input/output dtype, 16-bit for 16-bit input/output and TF32 for fp32 input/output, with fp32 accumulation; HybridMamba's flat rows use IEEE fp32 at fp32 input/output. An IEEE fp32 operand mode is available for validation. The copied-weight checks also evaluate each implementation against an independent fp64 recurrence (Appendix C.4). HM training saves boundary checkpoints in the input/output dtype when it is 16-bit and in fp32 otherwise; without saved checkpoints the backward replays the states. These precision choices and validation results are route-specific; they do not certify every path or optional provider. Validation uses normwise relative error or, near zero, a terms-scaled bound , where is roundoff unit, the tolerance multiplier and the contributing terms.
D.3 Backward work and execution
The adjoint recurrence is Lemma 18. SSD backward uses saved or reconstructed chunk-boundary states and differentiates the score, application, write aggregation and carry-read products; transposition preserves their matrix sizes. Thus forward and backward have the same asymptotic bound in (76), which counts score formation once per group tile of width and covers repeated map preparation up to constant factors. On routes that reconstruct boundary states, the backward may use a shorter chunk than the forward without changing the recurrence. HM backward replays from its checkpoints and applies the elementwise adjoint, including reduction of shared endpoint gradients across subsystems. Head-shared feature adjoints accumulate into bounded fp32 buffers; prepared per-head endpoint adjoints retain distinct heads while combining channel partitions. Recomputed folded maps and backward scratch are released when no longer needed. These reductions and shorter overlapping lifetimes reduce peak workspace, without changing the saved inputs or checkpoints. The memory terms of (76) count, for SSD-MIMO with scan heads, the retained drive and pre-gate output, coefficient maps, rotation phase and two-endpoint correction table, and for HM the inputs, its head-shared coefficient maps and, when retained, one boundary checkpoint every tokens. SSD's general fused route reconstructs boundary states by default. The rotation-free SISO route, including its chunk-parallel schedule, also uses the general backward with state replay by default. The specialized rotating SISO backward retains the boundary states; the conditional term covers this storage. Rotating SISO may also retain per-head folded maps, covered by the term. HM regenerates its head-expanded folded maps during backward instead of retaining them across the forward–backward boundary; its fold nevertheless saves a phase per rotating pair and head every tokens, giving the separate phase-checkpoint term in (76). This fold accepts head-resolved endpoint biases shared across , and saves its phase checkpoints independently of the recurrent-checkpoint switch. These are conservative saved-memory bounds, excluding the rest of the model; they do not substitute for peak-memory measurements.
Execution schedules. HM per-coordinate rows use the coordinate scan; HM flat rows and SSD-MIMO use the scalar-transition SSD scan, with for HM. Mamba 1/2/3 specializations use these respective restrictions.
The coordinate scan parallelizes associative recurrence evaluation within each chunk. SSD supports a fused serial chunk loop and schedules that compute zero-entry summaries, propagate their carries and evaluate chunks or segments from their true incoming states. In particular, the rotation-free route can select a chunk-parallel schedule using device and shape calibration; other shapes use their supported fused or segmented schedules. Chunk and tile choices affect execution but not the recurrence.
Optimized Mamba 2 and released Mamba 3 kernels also propagate boundary states between chunks (Dao & Gu, 2024; Lahoti et al., 2026), so avoiding explicit off-diagonal blocks gives no asymptotic advantage over them. Optional upstream providers and native continuation routes require separate numerical validation.
D.4 Per-shape speed and memory
Section 5.5 gives the main SISO recovery ratios and scan training costs. This appendix adds absolute recovery times, inference and full-mixer costs, memory across shapes, and workload/precision checks. All performance measurements use H100. Forward-only is abbreviated fwd; f+b denotes forward and backward. Paired cells below always follow the order specified in their caption.
Performance measurement scope. The performance tables use an H100 PCIe, PyTorch 2.14, Triton 3.8 and mamba_ssm 2.3.2.post1. Main timings and memory use bf16; the separately labelled appendix ablation uses fp32 input/output. The Mamba recoveries use copied official weights and pre-timing output checks; the Mamba 3 recovery matches the installed baseline's softplus activation. The exact kernel-scope boundaries and gradient leaves are specified per pair in the accompanying harness method; mixer measurements cover the full module. Table 4 rows implement different functions and are not recovery speed ratios. The rank rows use model head width , with real kernel widths at R2 and at R4; these are not fixed-G rank scaling experiments.
Selection and aggregation. Each comparison group is measured for three rounds with alternating arm order. The reported time is the median of the three round values; a forward-and-backward round is an event-timed mean of ten calls after eight warm-up calls. Selection uses the first attempt passing the validity checks and a per-group canary spread of at most 1.15. Selection does not use the measured latency. Whole-run drift is recorded rather than gated. The Table 12 summaries use geometric means and min-max ranges over four Large or six LM shapes; HM results beyond the five main shapes retain the earlier buffer schedule, as labelled. Noise-only failures with no accepted attempt remain explicitly n/a.
Memory. Extra saved is retained allocator growth between a gradient-enabled forward and its backward, excluding parameters, caller-held inputs and the output. The harness checks release after backward and freeing leaf gradients. Peak is the maximum allocated memory during one forward and backward above the resident baseline of parameters, caller inputs and output cotangent, and includes outputs, temporary workspace and newly allocated gradient buffers.
Tables 3 and 4 additionally report unique nonparameter backing storage held for backward, measured in separate memory-only runs on the same implementation. This retained total includes caller inputs and outputs when saved, deduplicates aliases, and includes custom context tensors and inputs held for regeneration without unpacking saved tensors. It excludes resident parameters. Allocation and post-backward release checks validate the accounting. HM and paired Mamba 1 timings and peaks use a complete five-shape campaign; retained totals match the earlier memory-only measurements exactly. SSD-MIMO and Mamba 2/3 retain their accepted measurements; the memory-only runs reproduce their matched-pair peaks within 0.5%. The remaining appendix tables retain the extra-saved metric. Retained storage and peak allocation overlap and must not be added; neither is total-model training memory.
Rank configurations and coverage. The real R2O2 and R4O4 configurations use forward/backward chunks 32/32 and 16/16, respectively. Chunk selection uses production-mixer workloads at , over 18 shared shapes for R2 and six LM shapes for R4. Launch configurations are selected using five rounds on two representative workloads per rank at , then measured at the paper geometry . This is a targeted configuration screen, not an exhaustive search for an optimum on every measured shape. Tuning and compilation precede timing. Complex R1/R2 retain their measured configurations. Complex R4 uses training chunks 16/16 at kernel width 16. Its launch configurations use the generic light search for this chunk size during warmup, outside the reported timings. The real R2/R4 and complex R4 training configurations have kernel and eager-mixer forward-and-backward measurements on all five paper shapes, and saved/peak memory at the LM shape; other training entries are n/a. Complex R4's forward-only results retain the original measurements because its inference configuration is unchanged.
Complex R4 speed and memory. A bounded configuration screen compared chunks 16 and 32; a separate run supplies the reported table entries. The same-weight fp64 output/input-gradient check and gradient-presence check passed. At the LM shape, chunk 16 reduces kernel forward-and-backward time from 70.89 to 63.71 ms, while kernel peak memory rises from 2549 to 3125 MiB and mixer peak memory from 2818 to 3394 MiB. Extra-saved memory is unchanged (974 and 1359 MiB). This is a speed/peak-memory tradeoff, not a uniform improvement.
Limits of the evidence. The Mamba 3 recovery's LM kernel forward-and-backward cell varied by about 10% between earlier processes (approximately 2.90 versus 3.19 ms), while the official arm was stable; the cause remains unresolved. HM measurement records include launch configurations but some calibration-source fields are null, so complete calibration-source provenance is not claimed for them. The real rank rows additionally record calibration file hashes, active groups and cached launch configurations. Their short numerical check compares outputs and input gradients against the same-weight fp64 Torch reference; it is not an exhaustive numerical-validation campaign.
HM temporary-buffer schedule. The optimized backward schedule reduces redundant gradient-buffer slots and releases scratch before subsequent adjoint operations, reducing overlapping lifetimes. It does not reduce the activations or checkpoints retained for backward. Table 20 compares both schedules on all five main shapes using absolute measurements from each. The campaign includes forward-only, eager and CUDA-graph training times, kernel/mixer peak allocation, and retained storage. This buffer-schedule comparison is separate from the copied-weight fp64 recovery studies of Appendix C.4. The additional five LM shapes and the small/medium HM workloads were not remeasured; their earlier-schedule results remain explicitly labelled.
Table 11: Benchmark shapes: batch B, drive width , length , elements of one drive-sized tensor and its size in bf16. The four large shapes share elements, 256 MiB per tensor. Table 4 uses the large shapes and the first language-model shape (LM); Table 12 uses all ten, with earlier-schedule HM measurements identified in its caption.
| Shape | B | elements | MiB (bf16) | ||
|---|---|---|---|---|---|
| Balanced | 16 | 4096 | 2048 | 256 | |
| Long | 2 | 2048 | 32768 | 256 | |
| Wide | 4 | 8192 | 4096 | 256 | |
| Batch | 128 | 1024 | 1024 | 256 | |
| LM | 6 | 2048 | 2048 | 48 | |
| LM | 32 | 2048 | 2048 | 256 | |
| LM | 2 | 2048 | 16384 | 128 | |
| LM | 6 | 4096 | 2048 | 96 | |
| LM | 1 | 4096 | 32768 | 256 | |
| LM | 8 | 512 | 8192 | 64 |
Smaller workloads and compilation. Small and medium workloads expose launch overhead and include cases where our implementations are slower. Table 21 retains these comparisons under the same protocol; its HM row retains the earlier backward-buffer schedule, which was not remeasured on these shapes. Extra-saved/peak memory refers to the full mixer. Compiled Mamba 2 mixer f+b ratios have geometric means 1.08 on Large and 1.25 on LM (Table 22). The tested official Mamba 3 compilation path fails, so it has no comparable column. Mamba 2 held-memory regeneration is disabled under compilation.
Table 12: Same-function summaries: ours/official ratios, geometric mean (min-max) over four Large or six LM shapes. Extra-saved and peak memory refer to the full mixer. Table 3 instead summarizes the five shapes shared with Table 4. H100, bf16.
| Baseline / set | Kernel fwd | Kernel f+b | Mixer eager f+b | Mixer graph f+b | Extra saved | Peak |
|---|---|---|---|---|---|---|
| Mamba 1 / Large | 0.74 (0.73–0.75) | 0.72 (0.68–0.79) | 0.88 (0.82–0.94) | 0.88 (0.84–0.91) | 1.06 (1.05–1.06) | 0.86 (0.86–0.86) |
| Mamba 1 / LMa | 0.76 (0.71–0.88) | 0.79 (0.69–0.86) | 0.91 (0.82–0.95) | 0.89 (0.83–0.94) | 1.06 (1.05–1.06) | 0.86 (0.86–0.87) |
| Mamba 2 / Large | 0.81 (0.71–0.91) | 0.90 (0.85–0.95) | 1.04 (1.00–1.07) | 1.06 (1.01–1.10) | 1.05 (1.02–1.11) | 1.26 (1.23–1.28) |
| Mamba 2 / LM | 1.06 (0.77–2.11) | 1.01 (0.85–1.52) | 1.15 (1.04–1.48) | 1.08 (1.03–1.11) | 1.07 (1.03–1.19) | 1.24 (1.12–1.27) |
| Mamba 3 SISO / Large | 0.69 (0.65–0.75) | 0.83 (0.77–0.89) | 0.84 (0.76–0.89) | 0.85 (0.76–0.92) | 1.08 (1.07–1.08) | 1.01 (1.01–1.03) |
| Mamba 3 SISO / LM | 0.74 (0.65–1.13) | 0.85 (0.77–1.17) | 0.83 (0.76–0.95) | 0.82 (0.76–0.88) | 1.08 (1.07–1.08) | 1.01 (1.01–1.03) |
The six-LM HM summary retains the earlier backward-buffer schedule in full; only its first LM shape was remeasured, so the aggregate is not mixed with the updated five-shape campaign.
Table 13: HybridMamba / Mamba 1 recovery (): ours/official ratio followed by (ours/official) time in ms. H100, bf16; shapes: Table 11. The first five rows use the optimized backward-buffer schedule.
| Shape | Kernel fwd | Kernel f+b | Mixer eager f+b | Mixer graph f+b |
|---|---|---|---|---|
| large_balanced | 0.74 (2.132/2.867) | 0.68 (9.958/14.614) | 0.87 (26.581/30.707) | 0.86 (27.067/31.482) |
| large_long | 0.75 (2.618/3.512) | 0.79 (12.482/15.826) | 0.90 (23.051/25.744) | 0.90 (23.458/25.962) |
| large_wide | 0.75 (2.148/2.870) | 0.72 (10.411/14.551) | 0.94 (40.201/42.576) | 0.91 (39.831/43.717) |
| large_batch | 0.73 (2.095/2.850) | 0.72 (10.101/14.115) | 0.82 (17.933/21.848) | 0.84 (18.304/21.810) |
| lm_b6_d2048_12048 | 0.76 (0.418/0.549) | 0.83 (2.304/2.773) | 0.94 (4.432/4.712) | 0.91 (4.389/4.835) |
| lm_b32_d2048_12048a | 0.71 (2.082/2.934) | 0.69 (10.257/14.898) | 0.82 (20.727/25.255) | 0.83 (21.349/25.608) |
| lm_b2_d2048_116384a | 0.74 (1.288/1.737) | 0.80 (6.370/7.949) | 0.91 (11.783/12.900) | 0.90 (12.100/13.446) |
| lm_b6_d4096_12048a | 0.75 (0.812/1.089) | 0.79 (4.379/5.526) | 0.92 (10.706/11.681) | 0.89 (10.901/12.205) |
| lm_b1_d4096_132768a | 0.74 (2.667/3.626) | 0.77 (12.394/16.081) | 0.90 (28.934/32.083) | 0.90 (29.345/32.527) |
| lm_b8_d512_18192a | 0.88 (0.651/0.744) | 0.86 (3.290/3.807) | 0.95 (5.241/5.514) | 0.94 (5.211/5.561) |
Additional LM shapes retain the earlier backward-buffer schedule and are excluded from the updated five-shape mean.
Table 14: SSD-MIMO / Mamba 2 recovery (): ours/official ratio followed by (ours/official) time in ms. H100, bf16; shapes: Table 11.
| shape | kernel fwd | kernel f+b | mixer eager f+b | mixer graph f+b |
|---|---|---|---|---|
| large_balanced | 0.84 (1.598/1.907) | 0.91 (8.717/9.559) | 1.07 (24.798/23.078) | 1.10 (25.403/23.144) |
| large_long | 0.71 (1.551/2.197) | 0.87 (9.287/10.644) | 1.05 (19.615/18.678) | 1.08 (20.142/18.653) |
| large_wide | 0.91 (1.524/1.671) | 0.95 (8.322/8.720) | 1.02 (36.799/36.249) | 1.05 (37.989/36.244) |
| large_batch | 0.78 (1.855/2.369) | 0.85 (9.878/11.579) | 1.00 (17.766/17.679) | 1.01 (18.353/18.179) |
| lm_b6_d2048_12048 | 2.11 (0.687/0.325) | 1.52 (3.069/2.019) | 1.48 (5.199/3.524) | 1.10 (4.007/3.628) |
| lm_b32_d2048_12048 | 0.77 (1.678/2.193) | 0.85 (9.021/10.617) | 1.04 (19.378/18.614) | 1.07 (19.985/18.645) |
| lm_b2_d2048_116384 | 0.83 (0.817/0.989) | 0.93 (4.712/5.043) | 1.12 (10.091/9.043) | 1.08 (10.282/9.514) |
| lm_b6_d4096_12048 | 1.14 (0.737/0.649) | 1.00 (3.500/3.490) | 1.11 (9.480/8.564) | 1.08 (9.816/9.120) |
| lm_b1_d4096_132768 | 0.79 (1.527/1.931) | 0.94 (9.107/9.656) | 1.09 (25.270/23.255) | 1.11 (25.928/23.380) |
| lm_b8_d512_18192 | 1.19 (0.736/0.619) | 0.95 (3.178/3.361) | 1.13 (5.469/4.834) | 1.03 (4.980/4.830) |
Table 15: SSD-MIMO / Mamba 3 SISO recovery (): ours/official ratio followed by (ours/official) time in ms. H100, bf16; shapes: Table 11.
| shape | kernel fwd | kernel f+b | mixer eager f+b | mixer graph f+b |
|---|---|---|---|---|
| large_balanced | 0.69 (2.670/3.879) | 0.84 (9.168/10.979) | 0.87 (23.451/26.940) | 0.87 (24.007/27.606) |
| large_long | 0.65 (4.906/7.539) | 0.77 (13.430/17.516) | 0.76 (21.421/28.347) | 0.76 (21.947/28.868) |
| large_wide | 0.66 (2.756/4.180) | 0.83 (9.735/11.734) | 0.89 (35.569/39.946) | 0.92 (37.279/40.734) |
| large_batch | 0.75 (2.936/3.935) | 0.89 (9.758/11.025) | 0.86 (16.017/18.690) | 0.86 (16.600/19.271) |
| lm_b6_d2048_12048 | 1.13 (0.946/0.838) | 1.17 (2.901/2.481) | 0.95 (4.276/4.483) | 0.84 (3.844/4.564) |
| lm_b32_d2048_12048 | 0.69 (2.738/3.940) | 0.84 (9.242/10.989) | 0.84 (17.876/21.277) | 0.83 (18.387/22.064) |
| lm_b2_d2048_116384 | 0.66 (2.532/3.836) | 0.77 (6.953/9.061) | 0.76 (10.971/14.472) | 0.76 (11.212/14.708) |
| lm_b6_d4096_12048 | 0.68 (1.041/1.541) | 0.83 (3.720/4.501) | 0.87 (9.215/10.559) | 0.88 (9.600/10.942) |
| lm_b1_d4096_132768 | 0.65 (4.877/7.507) | 0.77 (13.422/17.541) | 0.81 (27.501/33.950) | 0.82 (28.207/34.548) |
| lm_b8_d512_18192 | 0.70 (1.402/1.993) | 0.82 (3.891/4.769) | 0.77 (5.283/6.892) | 0.77 (5.303/6.922) |
Table 16: Inference times (ms): each cell gives scan kernel / eager full mixer. Shapes and configurations match Table 4. Forward-only complex R4 uses its unchanged inference configuration.
| Model | Balanced | Long | Wide | Batch | LM |
|---|---|---|---|---|---|
| Mamba 1 (official) | 21.49 / 26.21 | 23.66 / 27.40 | 21.56 / 30.34 | 23.78 / 26.40 | 3.72 / 4.39 |
| Mamba 2 (official) | 1.93 / 6.67 | 2.21 / 5.22 | 1.68 / 10.52 | 2.36 / 4.65 | 0.33 / 0.96 |
| Mamba 3 SISO (official) | 3.89 / 9.30 | 7.54 / 11.62 | 4.19 / 13.21 | 3.94 / 6.66 | 0.84 / 1.56 |
| Mamba 3 MIMO R=4 (official) | 15.82a / n/aa | 47.50a / n/aa | 18.18a / n/aa | 15.07a / n/aa | 3.42a / n/aa |
| HM m1exact (P=1) | 14.79 / 20.83 | 18.28 / 23.76 | 14.77 / 28.02 | 15.20 / 18.48 | 2.84 / 3.89 |
| SSD m2exact (R=O=1) | 1.63 / n/ab | 1.50 / 4.82 | 1.55 / 10.67 | 1.79 / n/ab | 0.69 / 1.37 |
| SSD m3exact (R=O=1) | 2.68 / 7.33 | 4.91 / 7.51 | 2.76 / 11.14 | 2.95 / 5.30 | 0.94 / 1.38 |
| HM-0, P=64 | 21.07 / 25.58 | 27.74 / 31.06 | 21.87 / 30.39 | 21.19 / 23.42 | 4.25 / 4.81 |
| HM-75, P=64 | 22.82 / 27.52 | 30.37 / 33.33 | 22.68 / 31.94 | 24.42 / 26.59 | 5.20 / 5.84 |
| HM-100, P=64 | 22.64 / 27.57 | 30.54 / 33.71 | 22.58 / 31.80 | 24.09 / 26.33 | 5.26 / 5.93 |
| HM-0, P=32 | 21.16 / 25.60 | 27.90 / 31.42 | 21.89 / 30.79 | 21.58 / 23.58 | 4.26 / 4.86 |
| HM-75, P=32 | 24.52 / 29.90 | 32.15 / 34.97 | 24.72 / 34.21 | 26.37 / 28.52 | 5.54 / 6.17 |
| HM-100, P=32 | 24.86 / 30.08 | 32.67 / 35.63 | 24.84 / 34.64 | 26.41 / 29.02 | 5.65 / 6.23 |
| SSD R1O1 real | 3.15 / 8.25 | 3.08 / 6.37 | 3.08 / n/ab | 3.38 / 5.86 | 0.92 / 1.58 |
| SSD R1O1 complex | 3.29 / 8.15 | 5.24 / 8.36 | 3.39 / n/ab | 3.40 / 6.21 | 1.03 / 1.64 |
| SSD R2O2 real | n/ac | n/ac | n/ac | n/ac | n/ac |
| SSD R2O2 complex | 11.14 / 18.43 | 16.07 / 21.11 | 10.57 / 22.00 | 13.04 / 17.33 | 2.18 / 3.23 |
| SSD R4O4 real | n/ac | n/ac | n/ac | n/ac | n/ac |
| SSD R4O4 complex | 53.25 / 61.09 | 79.75 / 85.99 | 52.00 / 64.87 | 56.12 / 61.78 | 11.46 / 12.66 |
<sup>a</sup>Profiler GPU time at kernel scope; eager mixer unavailable because of wrapper overhead. <sup>b</sup>No attempt passed the comparison-group canary gate. <sup>c</sup>Not remeasured for the accepted training configuration.
Table 17: Full-mixer training times (ms): each cell gives eager / CUDA-graph f+b. Shapes match Table 4. Mamba 3 MIMO has no eager comparison because of persistent wrapper overhead; its graph measurement is retained.
| Model | Balanced | Long | Wide | Batch | LM |
|---|---|---|---|---|---|
| Mamba 1 (official) | 137.0 / 137.4 | 131.4 / 132.5 | 145.8 / 147.2 | 149.0 / 151.3 | 22.68 / 22.91 |
| Mamba 2 (official) | 22.69 / 23.91 | 18.48 / 18.83 | 36.74 / 35.98 | 17.45 / 18.25 | 3.55 / 3.67 |
| Mamba 3 SISO (official) | 26.95 / 27.72 | 28.30 / 28.87 | 40.11 / 39.92 | 18.80 / 19.43 | 4.48 / 4.55 |
| Mamba 3 MIMO R=4 (official) | n/aa / 88.87 | n/aa / 176.7 | n/aa / 111.3 | n/aa / 80.91 | n/aa / 17.83 |
| HM m1exact (P=1) | 85.71 / 86.63 | 94.93 / 95.40 | 104.3 / 105.4 | 77.08 / 77.58 | 17.21 / 17.15 |
| SSD m2exact (R=O=1) | 24.80 / 25.40 | 19.62 / 20.14 | 36.80 / 37.99 | 17.77 / 18.35 | 5.20 / 4.01 |
| SSD m3exact (R=O=1) | 23.45 / 24.01 | 21.42 / 21.95 | 35.57 / 37.28 | 16.02 / 16.60 | 4.28 / 3.84 |
| HM-0, P=64 | 110.9 / 111.8 | 150.2 / 149.3 | 126.0 / 126.7 | 103.5 / 103.9 | 21.96 / 21.80 |
| HM-75, P=64 | 123.3 / 123.8 | 166.8 / 165.4 | 140.1 / 140.0 | 118.9 / 119.0 | 25.11 / 24.80 |
| HM-100, P=64 | 122.9 / 123.4 | 170.8 / 172.6 | 137.6 / 138.7 | 119.0 / 119.4 | 24.60 / 24.35 |
| HM-0, P=32 | 111.2 / 111.8 | 150.7 / 151.5 | 127.5 / 128.2 | 104.5 / 104.9 | 21.85 / 21.80 |
| HM-75, P=32 | 132.6 / 132.8 | 180.8 / 180.1 | 150.0 / 150.5 | 125.1 / 125.5 | 27.33 / 27.07 |
| HM-100, P=32 | 131.7 / 132.4 | 187.0 / 187.4 | 147.2 / 148.4 | 125.7 / 125.9 | 27.12 / 26.83 |
| SSD R1O1 real | 28.98 / 29.53 | 24.01 / 24.39 | 40.09 / 41.59 | 22.33 / 22.78 | 5.34 / 4.93 |
| SSD R1O1 complex | 27.27 / 28.19 | 25.31 / 25.78 | 40.13 / 40.09 | 20.36 / 20.71 | 5.06 / 4.73 |
| SSD R2O2 real | 64.37 / n/ac | 65.99 / n/ac | 77.52 / n/ac | 60.37 / n/ac | 11.70 / n/ac |
| SSD R2O2 complex | 89.98 / 90.84 | 96.67 / 97.04 | 102.9 / 103.8 | 88.96 / 89.37 | 17.04 / 16.86 |
| SSD R4O4 real | 207.8 / n/ac | 218.7 / n/ac | 216.0 / n/ac | 218.3 / n/ac | 38.73 / n/ac |
| SSD R4O4 complex | 355.9 / n/ac | 383.4 / n/ac | 364.7 / n/ac | 376.9 / n/ac | 67.67 / n/ac |
<sup>a</sup>Profiler GPU time at kernel scope; eager mixer unavailable because of wrapper overhead. <sup>c</sup>Not remeasured for the accepted training configuration.
Table 18: Scan-core memory (MiB): each cell gives extra-saved / peak allocation, with caller-held inputs and outputs excluded from extra-saved storage (Appendix D.4). Shapes match Table 4; n/a marks unavailable measurements, not zero memory.
| Model | Balanced | Long | Wide | Batch | LM |
|---|---|---|---|---|---|
| Mamba 1 (official) | 68 / 886 | 66 / 931 | 72 / 868 | 129 / 1090 | 14 / 178 |
| Mamba 2 (official) | 8 / 1140 | 8 / 1158 | 8 / 1100 | 8 / 1464 | 2 / 239 |
| Mamba 3 SISO (official) | 2144 / 4016 | 2161 / 4049 | 2136 / 4000 | 2193 / 4113 | 405 / 759 |
| Mamba 3 MIMO R=4 (official) | 637 / 8438 | 702 / 8502 | 604 / 8405 | 832 / 8634 | 132 / 1618 |
| HM m1exact (P=1) | 544 / 1448 | 546 / 1574 | 528 / 1376 | 608 / 1699 | 106 / 284 |
| SSD m2exact (R=O=1) | 16 / 2920 | 24 / 2930 | 12 / 2884 | 40 / 3072 | 4 / 555 |
| SSD m3exact (R=O=1) | 2128 / 3832 | 2144 / 3850 | 2120 / 3792 | 2176 / 4008 | 402 / 728 |
| HM-0, P=64 | 1123 / 2269 | 1147 / 2326 | 1096 / 2196 | 1257 / 2346 | 220 / 453 |
| HM-75, P=64 | 1967 / 5375 | 2028 / 5470 | 1915 / 5300 | 2253 / 5519 | 390 / 1043 |
| HM-100, P=64 | 1158 / 6352 | 1215 / 6394 | 1116 / 6288 | 1389 / 6446 | 234 / 1223 |
| HM-0, P=32 | 1163 / 2333 | 1187 / 2539 | 1136 / 2260 | 1297 / 2370 | 228 / 464 |
| HM-75, P=32 | 2027 / 8531 | 2085 / 8623 | 1973 / 8455 | 2311 / 8633 | 398 / 1632 |
| HM-100, P=32 | 1202 / 10516 | 1259 / 10558 | 1160 / 10452 | 1433 / 10570 | 241 / 2001 |
| SSD R1O1 real | 316 / 3252 | 332 / 3270 | 308 / 3212 | 364 / 3428 | 62 / 619 |
| SSD R1O1 complex | 2388 / 4092 | 2404 / 4110 | 2380 / 4052 | 2436 / 4268 | 451 / 776 |
| SSD R2O2 real | n/ac | n/ac | n/ac | n/ac | 245 / 1050 |
| SSD R2O2 complex | 2264 / 7498 | 2344 / 7639 | 2225 / 7404 | 2504 / 8051 | 440 / 1442 |
| SSD R4O4 real | n/ac | n/ac | n/ac | n/ac | 584 / 2334 |
| SSD R4O4 complex | n/ac | n/ac | n/ac | n/ac | 974 / 3125 |
cNot remeasured for the accepted training configuration.
Table 19: Full-mixer memory (MiB): each cell gives extra-saved / peak allocation, using the exclusions defined above. Shapes match Table 4; n/a marks unavailable measurements, not zero memory.
| Model | Balanced | Long | Wide | Batch | LM |
|---|---|---|---|---|---|
| Mamba 1 (official) | 1056 / 3299 | 1048 / 3321 | 1196 / 3468 | 1165 / 3533 | 209 / 639 |
| Mamba 2 (official) | 965 / 3793 | 945 / 3823 | 1103 / 3875 | 968 / 4068 | 187 / 733 |
| Mamba 3 SISO (official) | 3120 / 5648 | 3117 / 5649 | 3251 / 5819 | 3176 / 5737 | 595 / 1073 |
| HM m1exact (P=1) | 1518 / 3334 | 1498 / 3329 | 1648 / 3456 | 1580 / 3568 | 297 / 647 |
| SSD m2exact (R=O=1) | 997 / 4814 | 1001 / 4807 | 1123 / 4955 | 1072 / 5001 | 198 / 920 |
| SSD m3exact (R=O=1) | 3360 / 5720 | 3357 / 5707 | 3490 / 5866 | 3415 / 5888 | 640 / 1089 |
| HM-0, P=64 | 2103 / 3905 | 2106 / 3929 | 2220 / 4024 | 2246 / 3976 | 413 / 771 |
| HM-75, P=64 | 3206 / 7014 | 3249 / 7079 | 3296 / 7129 | 3509 / 7160 | 629 / 1361 |
| HM-100, P=64 | 2398 / 7992 | 2439 / 8006 | 2500 / 8120 | 2650 / 8092 | 476 / 1577 |
| HM-0, P=32 | 2151 / 3977 | 2154 / 4002 | 2276 / 4104 | 2293 / 4007 | 421 / 781 |
| HM-75, P=32 | 3275 / 10179 | 3315 / 10242 | 3371 / 10301 | 3576 / 10282 | 642 / 1952 |
| HM-100, P=32 | 2452 / 12166 | 2491 / 12178 | 2560 / 12300 | 2702 / 12224 | 485 / 2323 |
| SSD R1O1 real | 1567 / 4903 | 1577 / 4904 | 1692 / 5044 | 1664 / 5113 | 307 / 939 |
| SSD R1O1 complex | 3897 / 6001 | 3909 / 6003 | 4021 / 6141 | 4000 / 6217 | 744 / 1145 |
| SSD R2O2 real | n/ac | n/ac | n/ac | n/ac | 600 / 1289 |
| SSD R2O2 complex | 4072 / 8682 | 4179 / 8838 | 4152 / 8755 | 4460 / 9368 | 795 / 1682 |
| SSD R4O4 real | n/ac | n/ac | n/ac | n/ac | 968 / 2602 |
| SSD R4O4 complex | n/ac | n/ac | n/ac | n/ac | 1359 / 3394 |
cNot remeasured for the accepted training configuration.
Table 20: HM backward-buffer ablation: geometric-mean optimized/unreduced-buffer ratios over Table 4's five shapes (< 1: lower time or peak). Times include forward and backward; Mixer is the eager full module. Both schedules use identical models and retained-for-backward storage. At , HM-75/100 mixer time rises 3.9%/7.8% on geometric mean, up to 18% on one shape; mlexact is essentially unchanged. H100, bf16, .
| Model | Kernel time | Mixer time | Kernel peak | Mixer peak |
|---|---|---|---|---|
| HM-0, P=64 | 0.960 | 0.958 | 0.516 | 0.648 |
| HM-75, P=64 | 0.981 | 0.993 | 0.486 | 0.554 |
| HM-100, P=64 | 0.992 | 1.038 | 0.503 | 0.567 |
| HM-0, P=32 | 0.963 | 0.962 | 0.525 | 0.652 |
| HM-75, P=32 | 1.010 | 1.039 | 0.762 | 0.793 |
| HM-100, P=32 | 1.025 | 1.078 | 0.830 | 0.850 |
Table 21: Small and medium workload recovery ratios, ours/official: geometric mean (min-max). The baselines use the same state sizes as the main recovery comparison. H100, bf16.
| Baseline / set | Kernel fwd | Kernel f+b | Mixer eager f+b | Mixer graph f+b | Extra saved | Peak |
|---|---|---|---|---|---|---|
| Mamba 1 / Small+mediuma | 1.22 (0.73–2.34) | 1.22 (0.70–2.38) | 1.44 (0.90–2.28) | 0.99 (0.88–1.16) | 1.04 (0.99–1.06) | 1.07 (0.86–1.50) |
| Mamba 2 / Small+medium | 2.08 (1.17–3.06) | 1.35 (0.94–1.71) | 1.35 (1.02–1.73) | 1.08 (0.94–1.21) | 1.26 (1.01–1.91) | 1.07 (0.81–1.28) |
| Mamba 3 SISO / Small+medium | 0.95 (0.44–1.89) | 0.96 (0.39–1.59) | 0.95 (0.43–1.72) | 0.70 (0.27–0.98) | 0.93 (0.59–1.08) | 1.01 (0.83–1.08) |
<sup>a</sup>HM uses the earlier backward-buffer schedule.
Table 22: Compiled Mamba 2 mixer f+b: ours/official ratio and (ours/official) absolute time in ms. H100, bf16.
| shape | mixer compile f+b |
|---|---|
| large_balanced | 1.13 (25.689/22.788) |
| large_long | 1.08 (20.362/18.813) |
| large_wide | 1.05 (37.356/35.626) |
| large_batch | 1.06 (18.783/17.671) |
| lm_b6_d2048_12048 | 1.63 (5.612/3.438) |
| lm_b32_d2048_12048 | 1.10 (20.316/18.418) |
| lm_b2_d2048_116384 | 1.19 (10.517/8.875) |
| lm_b6_d4096_12048 | 1.15 (9.730/8.466) |
| lm_b1_d4096_132768 | 1.17 (26.387/22.544) |
| lm_b8_d512_18192 | 1.33 (6.279/4.725) |
Table 23: Why the Mamba 3 MIMO scan metric differs: elapsed time (wall) versus summed profiler GPU-kernel time (prof), in ms, with prof/wall ratio. The profiler excludes persistent wrapper overhead; the two timing metrics are not interchangeable.
| shape | MIMO wall | MIMO prof | MIMO prof/wall | SISO wall | SISO prof | SISO prof/wall |
|---|---|---|---|---|---|---|
| Bal. 16/4096/2048 | 710.1 | 65.76 | 0.093 | 10.91 | 10.74 | 0.985 |
| Long 2/2048/32768 | 721.7 | 148.9 | 0.206 | 17.54 | 17.13 | 0.977 |
| Wide 4/8192/4096 | 729.2 | 73.92 | 0.101 | 11.65 | 11.52 | 0.989 |
| Batch 128/1024/1024 | 721.9 | 65.82 | 0.091 | 10.99 | 10.83 | 0.986 |
| LM 6/2048/2048 | 719.5 | 14.27 | 0.020 | 2.49 | 2.36 | 0.949 |
D.5 Baseline tracking with fp32 input and output
Table 24 compares the three baseline recoveries on H100 PCIe with fp32 input and output. It uses copied weights, output checks before timing, three-round medians and the first comparison-group attempt passing the validity and noise gates. Kernel timings use the aligned scope; mixer timings cover an eager forward and backward of the full module. The SSD recoveries here use ; fp32 memory is not measured. HM timings retain the earlier backward-buffer schedule; the buffer optimization was measured only in bf16.
Table 24: Baseline tracking with fp32 input/output: time ratios ours/official (< 1 means ours is faster), geometric mean with min-max underneath over four Large or six LM shapes. Mamba 1 uses IEEE arithmetic, Mamba 2 uses tf32, and our Mamba 3 recovery uses its opt-in bf16-operand mode to match the official implementation's internal operand casts. The Mamba 3 row is not a comparison of full-fp32 scan arithmetic. PyTorch 2.14, Triton 3.8.
| Pair (our operands) | Large | LM | ||||
|---|---|---|---|---|---|---|
| kernel fwd | kernel f+b | mixer f+b | kernel fwd | kernel f+b | mixer f+b | |
| Mamba 1 (IEEE) | 0.54(0.51–0.65) | 0.53(0.45–0.65) | 0.97(0.87–1.02) | 0.58(0.51–0.67) | 0.61(0.50–0.68) | 0.99(0.95–1.03) |
| Mamba 2 (tf32) | 1.36(1.16–1.58) | 1.00(0.97–1.08) | 1.15(1.11–1.19) | 1.54(1.15–1.70) | 1.02(0.92–1.09) | 1.18(1.15–1.22) |
| Mamba 3 (bf16 operands) | 0.88(0.76–0.98) | 0.94(0.85–1.02) | 0.95(0.91–0.98) | 0.88(0.76–1.11) | 0.94(0.85–1.12) | 0.94(0.85–1.02) |
With our default tf32 operands instead, the Mamba 3 kernel forward-and-backward ratio is 4.03 on Large and 3.57 on LM, and the eager mixer ratio is 2.00 and 2.06, respectively. These ratios describe the measured operand configurations; no subsequent fp32 tuning is included.
E Experimental tasks and protocols
E.1 MQMKVAR: generator and supervision
MQMKVAR combines MQAR's context-first, multi-query layout and power-law query placement adapted from Zoology (Arora et al., 2023a) with multi-token keys and variable-length values as in MAD's fuzzy in-context recall (Poli et al., 2024). Keys and values use disjoint vocabularies.
For medium and hard, key lengths remain variable at evaluation. The generator controls prefix/substring overlap, and masks every query answer slot in the input with padding. The complete value list must be produced from state without seeing earlier answers. Figure 2 in the introduction shows an actual proper-prefix example and the label alignment. The first value is scored at the last key token unless the key is a proper prefix of another stored key. In that case, the last key token is loss-masked and targets start at the following padding token, which confirms key completion. Subsequent values are scored at successive padding positions. This convention makes answer alignment depend on context prefix relations; predictions at masked positions remain unconstrained. Multi-token binding, variable-length values and the unambiguous last-key-token convention are inherited task features. The generator also offers an explicit completion marker (fire mode), which the reported runs do not use. The task fixes the target values and their positions, not how a model routes them through its state.
The overlap parameter selects parent/subkey pairs: for stored keys and rate , the generator requests round() pairs, with a proper contiguous subkey per parent when a distinct one can be sampled. Thus specifies pair participation, not the fraction of keys that are themselves proper prefixes; substring overlap need not create an ambiguous endpoint. Table 25 gives and 0.8 for medium and hard. At unit lengths the binding rule reduces to single-token MQAR, but the generators are not equivalent: medium/hard permit repeated queries, use loss-masked padding between them, evaluate on a held-out layout and draw query gaps from a power law with exponent parameter 0.01; easy uses Zoology's native slot sampling.
E.2 MQMKVAR: training, selection and results
The optimizer is AdamW with , no weight decay, bf16 mixed precision with fp32 master weights, and no gradient clipping. The base recipe uses peak learning rate , with two warmup epochs and per-epoch cosine decay to . Easy and medium use this recipe without per-model learning-rate tuning; hard additionally uses the sweep below.
Table 25: Base training recipe by tier (peak LR ); the hard sweep changes its peak LR. Each run uses one of seeds 101, 202, 303. The metric is final held-out token accuracy: correct supervised value tokens divided by all supervised value tokens.
| Tier | Length | Key length | Value length | Interleave | Batch | Epochs | Updates |
|---|---|---|---|---|---|---|---|
| Easy | 1024 | 1 | 1 | 0 | 64 | 32 | 50,016 |
| Medium | 1024 | 2–4 | 2–6 | 0.4 | 64 | 32 | 50,016 |
| Hard | 2048 | 5–12 | 5–12 | 0.8 | 32 | 16 | 50,000 |
There are 100,000 training, 10,000 validation and 10,000 test examples, vocabulary size 8192 and 32 stored entries; the data seed is 12345 and final-test seed is 99999. The native easy layout queries each key once, uses unique values, excludes random non-query tokens and samples query slots without replacement under the power law of the medium and hard tiers. The two warmup epochs use an initial learning-rate factor . All prescribed completed seeds, including low-accuracy runs, enter the summaries, all under the token-weighted estimand.
Configuration descriptions. Suffixes -r and -c mark real and complex state rows. All listed SSMs use and two layers. Residual and inner widths and non-embedding counts are in Table 6. M1 uses expansion two and a separate step per channel. M2 and M3 retain head width 64 and one endpoint-sharing group. M3 is the upstream heavy-tail-rate configuration. The attention reference has two layers, one attention head, learned absolute positions, pre-layer normalization, a tied output head and dropout 0.1.
SSD uses : R2O2-r/c have seven/eight heads, R4O4-r/c six, and R1O1-r/c nine. HM uses . Table 26 specifies every row allocation, rank, decay law and gate mask; counts refer to real coordinates, with two per complex coordinate. Complex gates, when enabled, are pair-tied as in (85). Every arm is width-matched to the parameter band (Table 6); gate-removal arms change only the residual width.
Endpoint and rotation specifications. M1/M2 use unnormalized endpoint maps without additive biases ( in (70)): M1 selects them from the processed drive and uses a low-rank step projection; M2 has one sharing group and joint drive/B/C convolution. M3 uses convolution-free, normalized maps with per-head biases. SSD uses (84), with coefficients read from the mixer input () and the gate masks in Table 26. Biases initialize to ones at , otherwise to the sibling spread; gate features initialize to zero. HM maps read the processed drive (), are RMS-normalized and have no additive map biases in these experiments; all HM rows are ungated. Under this parameter-matched recipe, map gates cost HM model width; in a study on an earlier HM revision this trade did not improve hard-tier recall, so HM defaults to ungated maps. Potential () rows, tested on the same earlier revision, reached lower and less stable hard-tier recall than dynamic rows, and no reported configuration uses them. Both own-model families use a width-four drive convolution and SiLU, no B/C convolution, no output normalization, and the two-endpoint write with selected . All initial recurrent states are zero.
Default learned rotation means head-shared angle features , per-pair frequencies initialized at , and a learned per-head/pair read offset initialized to zero, as in (71). The angle projection uses its default fan-in draw. The head-frequency variant instead uses one and shared across all pairs of a head, with the angle projection draw scaled by . Dynamic rates use the heavy-tail activation with magnitude floored at ; SSD selects one rate per head, and HM selects per state row with complex pairs tied. Static HM rates vary per channel and state row, again tied within each complex pair. The selected step varies per head in HM and per sibling in SSD. Initial steps are log-uniform in , floored at ;
endpoint-weight projections have zero bias, giving at zero selection. Static HM rate magnitudes start at 1, 2, ... within each row block, counting a complex pair once.
Table 26: Exact MQ row configurations. Counts denote real coordinates, so 64 complex rows mean 32 complex coordinates. All SSM rows use ; the text defines the endpoint recipes and rotation.
| Configuration | R/O | Row partition and law | Gates, rotation and write |
|---|---|---|---|
| M1 | 1/1 | 128 real, coordinate-static | No map gates/rotation; Euler; M1 endpoints. |
| M2 | 1/1 | 128 real, head-static | No map gates/rotation; Euler; M2 endpoints. |
| M3 | 1/1 | 64 complex + 64 real, head-dynamic | No map gates; fixed frequency , no read offset; two endpoints; M3 maps. |
| Attention | — | No recurrent state | One attention head; learned absolute positions. |
| R1O1-r | 1/1 | 128 real, head-dynamic | Ungated; no rotation; two endpoints; SSD maps. |
| R1O1-c | 1/1 | 64 complex + 64 real, head-dynamic | Ungated; default learned rotation; two endpoints; SSD maps. |
| R2O2-r | 2/2 | 128 real, head-dynamic | Real rows gated; no rotation; two endpoints; SSD maps. |
| R2O2-r, gates off | 2/2 | 128 real, head-dynamic | Ungated; no rotation; two endpoints; SSD maps. |
| R2O2-c | 2/2 | 64 complex + 64 real, head-dynamic | Only real rows gated; default learned rotation; two endpoints; SSD maps. |
| R2O2-c, gates off | 2/2 | 64 complex + 64 real, head-dynamic | Ungated; default learned rotation; two endpoints; SSD maps. |
| R2O2-c, head frequency | 2/2 | 64 complex + 64 real, head-dynamic | Only real rows gated; one frequency/angle feature per head, scaled angle initialization; two endpoints; SSD maps. |
| R4O4-r | 4/4 | 128 real, head-dynamic | Real rows gated; no rotation; two endpoints; SSD maps. |
| R4O4-c | 4/4 | 64 complex + 64 real, head-dynamic | Only real rows gated; default learned rotation; two endpoints; SSD maps. |
| HM A+dynamic | 1/1 | 64 real static + 64 real dynamic | Ungated; no rotation; two endpoints; HM maps. |
| HM complex-A mix | 1/1 | 48 real static + 48 real dynamic + 32 complex static | Ungated; default learned rotation; two endpoints; HM maps. |
| HM complex-dynamic mix | 1/1 | 48 real static + 48 real dynamic + 32 complex dynamic | Ungated; default learned rotation; two endpoints; HM maps. |
| HM all-A real | 1/1 | 128 real static | Ungated; no rotation; two endpoints; HM maps. |
| HM all-A complex | 1/1 | 128 complex static | Ungated; default learned rotation; two endpoints; HM maps. |
All 54 fixed-recipe cells contain three completed seeds. The reported head-frequency arm uses ungated complex and gated real rows; superseded configurations and diagnostic reruns are excluded.
Learning-rate sweep and selection. All 18 configurations use the common hard-tier LR grid with seeds 101, 202, 303; the runs are reused from the shared recipe. Geometry and other hyperparameters are fixed within each arm. For each configuration, selection maximizes the three-seed mean final held-out test token accuracy among rates with three completed seeds; exact ties prefer , then the smaller rate. Selecting by the logged validation means instead of the test means picks the same rate for every arm. For runs that predate the metric fix, these validation logs average token accuracy per batch rather than globally and were not re-scored; all test endpoints were. Because the selected rate's test mean is also the reported value, the hard column is a best-of-three over rates per arm and is slightly optimistic; the validation check limits but does not remove this.
The extra M3/attention cells are reported but excluded from selection to preserve a common grid. Their LR is constant after warmup because the cosine floor equals the peak. Table 27 contains every scheduled seed and identifies the only incomplete cell.
Attention position ablation. Replacing the reference's learned positions by rotary embeddings (, full head width), with everything else unchanged, lowers held-out token accuracy at peak LR from 22.2% to 0.7% on medium (0.74, 0.73, 0.72 for seeds 101, 202, 303) and from 1.1% to 0.3% on hard (0.31, 0.29, 0.29). Its code contains the metric fix, so these are global token accuracies.
Divergence and execution differences. The M1 seed that diverged at (Table 27) ended in a final-RMSNorm overflow; diagnostic reruns are excluded. Non-finite/zero-gradient guards, GPU architectures and code snapshots differed across cells, including A100/H100 M3 sweep runs versus RTX PRO 5000 (Blackwell) runs in its shared-rate cell, so repeated seed IDs do not define paired comparisons and LR is not the only execution difference.
Table 27: Complete MQMKVAR results: held-out token accuracy (percent). Each cell shows the completed-seed mean above seeds 101, 202 and 303; all cells complete 3/3 attempts except (2/3). Underlining marks the best eligible hard-tier mean over the three common rates; ties prefer , then the smaller rate. D denotes the non-escaping, diverged M1 seed described in Appendix E.2.
| ConfigurationPeak LR | Easy | Medium | Hard | ||
|---|---|---|---|---|---|
| M1 | 99.999.9, 100.0, 100.0 | 89.388.8, 89.7, 89.4 | 67.169.2, 61.5, 70.6 | 69.672.8, 68.8, 67.3 | 73.374.1, 72.6, D |
| M2 | 100.0100.0, 100.0, 100.0 | 91.788.7, 89.1, 97.3 | 42.066.0, 30.3, 29.6 | 36.452.0, 29.5, 27.8 | 39.946.9, 43.5, 29.4 |
| M3 | 99.999.6, 100.0, 100.0 | 76.684.7, 58.1, 87.1 | 27.848.2, 14.3, 21.0 | 12.12.8, 2.2, 31.2 | 1.12.9, 0.1, 0.2 |
| Attention | 100.0100.0, 100.0, 100.0 | 22.222.2, 22.2, 22.2 | 0.50.4, 0.3, 0.7 | 1.11.9, 0.9, 0.4 | 0.00.0, 0.0, 0.0 |
| R1O1-r | 100.0100.0, 100.0, 100.0 | 89.689.7, 89.7, 89.4 | 67.063.9, 71.7, 65.4 | 62.371.6, 67.4, 47.9 | 35.415.0, 41.1, 50.1 |
| R1O1-c | 99.9100.0, 100.0, 99.9 | 89.889.6, 90.3, 89.5 | 69.467.6, 61.2, 79.3 | 48.96.4, 67.8, 72.5 | 57.567.9, 52.4, 52.1 |
| R2O2-r | 100.0100.0, 100.0, 100.0 | 91.391.0, 91.5, 91.3 | 79.580.1, 78.3, 79.9 | 82.081.7, 81.1, 83.3 | 77.577.9, 79.0, 75.6 |
| R2O2-r, gates off | 100.0100.0, 100.0, 100.0 | 89.489.6, 89.3, 89.4 | 60.353.1, 51.0, 76.9 | 59.968.7, 50.4, 60.5 | 2.60.2, 3.8, 3.7 |
| R2O2-c | 100.0100.0, 100.0, 100.0 | 91.190.9, 91.5, 90.8 | 82.280.0, 83.0, 83.6 | 82.683.5, 82.1, 82.3 | 61.181.7, 18.5, 83.2 |
| R2O2-c, gates off | 100.0100.0, 100.0, 100.0 | 90.490.5, 90.8, 89.9 | 79.182.0, 75.7, 79.5 | 82.282.6, 82.6, 81.4 | 0.30.4, 0.4, 0.1 |
| R2O2-c, head frequency | 100.0100.0, 100.0, 100.0 | 91.090.8, 90.5, 91.7 | 82.080.9, 81.7, 83.2 | 80.882.0, 78.7, 81.9 | 80.781.7, 79.4, 81.0 |
| R4O4-r | 100.0100.0, 100.0, 100.0 | 91.592.0, 91.3, 91.1 | 78.278.4, 76.5, 79.7 | 82.083.4, 80.9, 81.8 | 53.63.2, 75.7, 81.9 |
| R4O4-c | 100.0100.0, 100.0, 100.0 | 90.591.6, 90.4, 89.6 | 82.281.9, 82.7, 82.0 | 81.982.5, 80.4, 82.7 | 79.979.4, 80.6, 79.7 |
| HM A+dynamic | 100.0100.0, 100.0, 100.0 | 93.596.0, 93.2, 91.2 | 79.676.8, 81.0, 81.1 | 80.680.6, 79.8, 81.4 | 59.727.9, 79.5, 71.7 |
| HM complex-A mix | 100.0100.0, 100.0, 100.0 | 95.190.9, 96.4, 98.1 | 62.726.5, 80.9, 80.6 | 79.679.7, 79.1, 80.0 | 60.127.3, 81.6, 71.5 |
| HM complex-dynamic mix | 100.0100.0, 100.0, 100.0 | 96.996.5, 96.9, 97.2 | 80.781.5, 79.8, 80.8 | 79.278.8, 80.3, 78.5 | 64.880.8, 74.3, 39.4 |
| HM all-A real | 100.0100.0, 100.0, 100.0 | 91.290.3, 92.9, 90.3 | 79.278.2, 80.1, 79.4 | 73.962.1, 80.0, 79.5 | 43.274.8, 26.9, 27.8 |
M1 at : 48.9 (diverged seed counted as 0) / 73.3 (completed seeds, 2/3). The rate is ineligible.
| Configuration | Easy | Medium | Hard | ||
|---|---|---|---|---|---|
| Peak LR | |||||
| HM all-A complex | 100.0100.0, 100.0, 100.0 | 92.389.5, 96.9, 90.5 | 66.079.6, 74.6, 43.8 | 69.061.4, 74.6, 71.0 | 47.871.0, 20.8, 51.7 |
| Extra hard-tier rate : outside the common selection grid | |||||
| M3 | 29.711.2, 3.4, 74.4 | ||||
| Attention | 2.90.5, 7.7, 0.5 | ||||
E.3 FineWeb-Edu pretraining
FineWeb-Edu’s 100-billion-token sample (Penedo et al., 2024) is tokenized with the Llama-3.1 tokenizer (vocabulary 128,256, a beginning-of-sequence token prepended and no end-of-sequence token). Shards 1–138 of 140 supply training, shard 139 supplies validation and shard 140 supplies the held-out test set. Context length is 2048 without crossing shard boundaries; training uses a seed-0 permutation per epoch. The backbone has tied embeddings and pre-normalized mixer and Swish-gated linear unit (SwiGLU) branches, with RMSNorm , residual width , driving width and SSM state width . Embedding initialization has standard deviation 0.02; residual output weights are rescaled by , where is the number of backbone layers. The parameter match adjusts depth first and trims multilayer perceptron (MLP) width by at most 5% only when necessary; attention, whose mixer has fewer parameters, instead widens its MLP to 2861.
Training uses fused AdamW with , , gradient clipping at 1 and weight decay 0.1 on linear, embedding and convolution weights. Biases, gains, static state parameters and sibling mixing weights are exempt; rate-producing linear weights are decayed. The global batch is 491,520 tokens: eight GPUs, six sequences per micro-batch and five accumulation steps. Mixed precision uses bf16 with fp32 master weights and optimizer state. The learning rate warms up over 0.5B tokens to and stays constant through 2B. The 1B/2B milestones are preserved along the same trajectory, without resetting optimizer or data position, at updates 2035 and 4070. Mamba 3 SISO/MIMO, SSD-MIMO R2O2-c/r and HM-75 continue from the 2B checkpoint to update 20346 (approximately 10B tokens), with cosine decay to . These later checkpoints therefore use an annealed schedule, unlike the constant-LR 2B comparison.
Validation uses tokens approximately every 100M training tokens. Milestone test loss uses tokens from the separate test shard. All reported arms use seed 0 on eight GH200 GPUs; the Mamba and attention references run without compilation or CUDA graphs for the 1B/2B trunk; the upstream determinism option was enabled for them, but bitwise determinism was not verified, and our arms are not bit-deterministic (their backward uses atomic reductions). No speed comparison is made.
Reported mixer configurations. Each configuration’s identifier Cx is given where it is specified below and in Table 28; the unused identifiers C6b, C8 and C10 belong to configurations that were not run. Table 28 gives the depth and MLP-width match. These are the configurations used in the reported runs. All SSMs have ; headed SSMs have 32 heads of driving width 64. Unless noted, our models use two-endpoint writes, RMS-normalized write/read maps, a SiLU output gate and no output RMSNorm. Initial steps follow Appendix E.2; linear maps use uniform fan-in initialization and the output projections use the shared residual rescaling.
Mamba references and attention. Mamba 1 (C1) uses a rank-64 step projection and width-four drive convolution; its coefficients read the processed drive. Mamba 2 (C2) uses a width-four joint drive/B/C convolution, one endpoint-sharing group, static scalar rates per head and gated output RMSNorm. Mamba 3 SISO (C3) is convolution-free, with one endpoint-sharing group, normalized and biased maps, two-endpoint writes and no output RMSNorm. Half its coordinate pairs rotate with fixed frequencies ; the selected rate uses the heavy-tail activation, floored at . Mamba 3 MIMO (C4) adds its authors’ rank-four lift. These references retain their upstream initializations. Attention (C5) has 16 heads of width 64, causal scaled dot-product attention, RoPE base , bias-free projections, no grouped-query sharing and no dropout.
Table 28: Language-model geometry and total parameter counts. Mamba 3 SISO is the anchor; configuration details are given in the text.
| Model | Layers | MLP width | Parameters (M) |
|---|---|---|---|
| Mamba 1 (C1) | 28 | 1983 | 507.88 |
| Mamba 2 (C2) | 29 | 2048 | 505.25 |
| Mamba 3 SISO (C3) | 29 | 2048 | 507.95 |
| Mamba 3 MIMO (C4) | 27 | 2048 | 504.54 |
| Attention (C5) | 29 | 2861 | 507.91 |
| SSD-MIMO R1O1-r (C11) | 29 | 1958 | 507.89 |
| SSD-MIMO R2O2-r (C7) | 27 | 2048 | 506.03 |
| SSD-MIMO R2O2-c (C6) | 28 | 1983 | 507.93 |
| SSD-MIMO R4O4-r (C9) | 25 | 2016 | 507.87 |
| SSD-MIMO M3exact (C12) | 29 | 2048 | 507.95 |
| SSD-MIMO R1O1-r (M3 settings) (C14) | 29 | 2048 | 507.00 |
| HM-0 (C13) | 28 | 2024 | 507.87 |
| HM-25 (C15) | 28 | 2024 | 507.88 |
| HM-75 (C16) | 28 | 2024 | 507.91 |
| HM-100 (C17) | 28 | 2024 | 507.92 |
SSD-MIMO configurations. R2O2-c (C6) has and 32 value channels per head/write sibling, with half real and half complex rows. Coefficients read the mixer input (); only the drive passes through a width-four convolution and SiLU. A heavy-tail rate is selected per head, floored at . Only real rows have coordinate gates. The endpoint maps have per-head/sibling biases, initialized to ones for the first sibling and discrete-cosine spread for the others; gate features initialize to zero. Static and selected sibling weights combine the readouts, starting at with zero selected projection. Complex rows use the default learned rotation of Appendix E.2. The skip starts at one. R2O2-r (C7) makes all rows real and gated. R4O4-r (C9) uses and 16 value channels per sibling. R1O1-r (C11) uses and 64 value channels per head, retaining the real-row gates and static/selected sibling scale, with all-ones endpoint biases.
M3exact (C12) uses and Mamba 3 SISO's coefficient configuration: no convolution, coordinate gates or sibling mixing, fixed frequencies , no read offset or rate/endpoint projection bias, per-head skip and no output normalization. Endpoint RMSNorm uses ; its gains, biases and skips start at one. The rate law, step initialization and weight-decay groups match Mamba 3 SISO; random draws, scan arithmetic and projection grouping can differ. R1O1-r with Mamba 3 settings (C14) removes rotation and the angle projection from M3exact, keeping the other settings; it differs from R1O1-r in using Mamba 3's coefficient settings instead of ours (no convolution, gates or sibling weighting) and, through the parameter match, in MLP width (2048 versus 1958). At 1B tokens the two real rank-one runs reach about the same loss (3.2462 versus 3.2473 for R1O1-r, one seed each), while rotation (M3exact) lowers it by 0.013 nats. Against R1O1-r with Mamba 3 settings, M3exact's paired differences are ZS (), Recall-6 and NIAH points (one comparison, so unadjusted), all three significant, zero-shot only marginally: rotation helps cloze recall but not NIAH at 1B.
HybridMamba configurations. HM-0 (C13) uses 64 real static and 64 real dynamic rows, without coordinate gates or rotation. Coefficients read the drive after its width-four convolution and SiLU (); normalized endpoints have per-head biases, and the skip is per head. Static rates start at within the block; dynamic rows use the heavy-tail activation without a floor. Steps use a full-rank projection. Endpoint biases start at zero, and normalization gains and skips at one. HM-25 (C15) replaces the allocation by 25% complex dynamic, 37.5% real static and 37.5% real dynamic rows; the complex rows add the learned frequencies and read offset specified for R2O2-c. Other settings follow HM-0. HM-75 (C16) uses 75% complex dynamic rows (48 pairs), 12.5% real static and 12.5% real dynamic rows (16 each; 507.91M parameters). HM-100 (C17) makes all 128 rows complex dynamic (64 pairs), with no static or real rows (507.92M parameters). Their complex rows, rotation law and all other settings are as for HM-25; the four HM arms differ in parameter count by 0.02% or less. HM-75 was trained on the earlier code up to 2B tokens and, for the 2–10B continuation, on the later code of the merged kernels; on a fixed batch the two codes differ in loss by nats. HM-100 was trained on the later code, so its comparison with HM-75 at 2B carries the same offset, negligible against their 0.006 loss difference.
E.4 Language-model evaluation breakdowns
Each arm has one training seed. Absolute means are item-level macro means rounded half-up to one decimal; paired differences use the unrounded item-level scores and can differ from subtracting the displayed means. Unreported milestones are marked with a dash, rather than filled from other checkpoints.
Tables 29–31 give, per milestone, loss/perplexity and zero-shot scores (for configurations not in Table 7), all cloze tasks and the twelve NIAH cells.
Zero-shot evaluation. The Language Model Evaluation Harness (Gao et al., 2024) scores LAMBADA (Paperno et al., 2016), HellaSwag (Zellers et al., 2019), PIQA (Bisk et al., 2019), ARC-Easy/Challenge (Clark et al., 2018), WinoGrande (Sakaguchi et al., 2019) and OpenBookQA (Mihaylov et al., 2018). HellaSwag and ARC-Challenge use normalized accuracy; the other tasks use plain accuracy. ZS weights the seven task scores equally.
Cloze recall. Recall-6 is the equally weighted mean of SWDE, FDA, SQuAD, TriviaQA, NQ-1024 and DROP. All six use Hazy Research's cloze versions, as in Mamba 3 Table 4 (Lahoti et al., 2026), rather than the original question-answering evaluation formats. This follows the recall-focused protocols of Based and Just Read Twice (Arora et al., 2024a;b); SWDE, SQuAD and FDA originate in web extraction, reading comprehension and EVAPORATE's extraction collection (Hao et al., 2011; Rajpurkar et al., 2016; Arora et al., 2023b). Scores depend slightly on the evaluation batch size through bf16 rounding, but no item's score depends on the content of the other items in its batch; truncating to 2K tokens loses the answer on 2.0% of NQ items and on no TriviaQA or DROP item.
NIAH diagnostic. NIAH (RULER-style, our implementation) (Hsieh et al., 2024) uses single_1, single_2, single_3 and multikey_1 at 512, 1024 and 2048 tokens, with 100 items per cell. The diagnostic mean weights all twelve cells equally. Generation uses at most 64 tokens; an answer is scored after skipping a leading colon or whitespace prefix, up to the first newline, and counts as correct if it contains the needle's value. Without the prefix skip, outputs of the form “:” + newline + answer, which occur in every arm (7.4% of items, mostly single_1), would score zero. We regenerated these items with each checkpoint's training code; the old rule applied to the regenerated outputs reproduces 2,319 of the 2,320 stored scores, and all non-NIAH scores are unchanged.
Table 29: All reported configurations at 1B training tokens, one seed per arm. Test loss is in nats; PPL is perplexity; task scores are percentages. HellaSwag and ARC-C use normalized accuracy. MK and S1–S3 denote multikey_1 and single_1–3; NIAH averages twelve cells. Protocols: Appendix E.4.
(a) Test loss / perplexity and zero-shot accuracy
| Model | Loss / PPL | LAMB. | Hella. | PIQA | ARC-E | ARC-C | Wino. | OBQA | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Mamba 1 | 3.2962 / 27.01 | 22.5 | 31.3 | 63.2 | 48.4 | 23.9 | 52.8 | 19.0 | 37.3 |
| Mamba 2 | 3.2715 / 26.35 | 19.6 | 31.6 | 63.0 | 50.1 | 24.4 | 50.0 | 17.4 | 36.6 |
| Mamba 3 SISO | 3.2367 / 25.45 | 23.4 | 31.4 | 62.7 | 51.3 | 24.9 | 51.5 | 19.6 | 37.8 |
| Mamba 3 MIMO | 3.2317 / 25.32 | 21.2 | 31.8 | 61.9 | 51.4 | 25.3 | 49.4 | 20.4 | 37.3 |
| Attention | 3.3457 / 28.38 | 20.1 | 29.5 | 60.7 | 46.3 | 23.4 | 49.1 | 17.4 | 35.2 |
| SSD-MIMO R101-r | 3.2473 / 25.72 | 22.5 | 31.4 | 61.9 | 50.8 | 25.2 | 49.7 | 19.8 | 37.3 |
| SSD-MIMO R202-r | 3.2569 / 25.97 | 23.6 | 30.8 | 62.5 | 51.0 | 24.1 | 49.2 | 19.0 | 37.2 |
| SSD-MIMO R202-c | 3.2524 / 25.85 | 22.3 | 31.4 | 61.0 | 51.4 | 26.8 | 51.9 | 20.4 | 37.9 |
| SSD-MIMO R404-r | 3.2777 / 26.51 | 20.6 | 30.7 | 61.5 | 50.5 | 23.9 | 50.7 | 18.4 | 36.6 |
| SSD-MIMO M3exact | 3.2335 / 25.37 | 22.7 | 31.5 | 63.2 | 51.3 | 23.7 | 52.4 | 18.6 | 37.6 |
| SSD-MIMO R101-r (M3 settings) | 3.2462 / 25.69 | 22.8 | 31.5 | 62.1 | 50.3 | 24.1 | 48.8 | 18.8 | 36.9 |
| HM-0 | 3.2504 / 25.80 | 22.7 | 31.7 | 61.6 | 51.3 | 25.5 | 50.5 | 19.4 | 37.5 |
| HM-25 | 3.2485 / 25.75 | 22.2 | 31.9 | 61.6 | 52.1 | 23.9 | 51.5 | 18.2 | 37.3 |
| HM-75 | 3.2418 / 25.58 | 23.3 | 31.6 | 62.5 | 51.3 | 23.8 | 51.5 | 16.6 | 37.2 |
| HM-100 | 3.2511 / 25.82 | 25.5 | 31.6 | 62.1 | 50.9 | 24.7 | 51.4 | 19.8 | 38.0 |
(b) Cloze recall
| Model | SWDE | FDA | SQuAD | TriviaQA | NQ-1024 | DROP | Avg. |
|---|---|---|---|---|---|---|---|
| Mamba 1 | 4.7 | 0.6 | 12.2 | 28.6 | 5.3 | 10.2 | 10.3 |
| Mamba 2 | 4.3 | 1.3 | 13.7 | 31.6 | 6.1 | 10.1 | 11.2 |
| Mamba 3 SISO | 6.8 | 1.4 | 17.7 | 34.5 | 7.5 | 15.5 | 13.9 |
| Mamba 3 MIMO | 7.8 | 2.1 | 17.1 | 35.4 | 8.5 | 14.2 | 14.2 |
| Attention | 21.5 | 10.0 | 20.6 | 33.0 | 8.8 | 14.3 | 18.0 |
| SSD-MIMO R101-r | 6.5 | 1.9 | 18.6 | 33.2 | 7.7 | 14.0 | 13.7 |
| SSD-MIMO R202-r | 9.2 | 1.6 | 19.9 | 35.5 | 9.8 | 15.3 | 15.2 |
| SSD-MIMO R202-c | 8.1 | 2.5 | 17.2 | 35.7 | 8.5 | 12.7 | 14.1 |
| SSD-MIMO R404-r | 8.0 | 1.5 | 19.8 | 36.2 | 9.5 | 17.0 | 15.3 |
| SSD-MIMO M3exact | 6.8 | 1.8 | 17.5 | 36.0 | 8.7 | 15.5 | 14.4 |
| SSD-MIMO R101-r (M3 settings) | 6.6 | 1.5 | 18.6 | 33.7 | 7.9 | 12.1 | 13.4 |
| HM-0 | 6.2 | 0.8 | 16.4 | 32.2 | 6.4 | 15.2 | 12.9 |
| HM-25 | 6.4 | 2.0 | 18.3 | 35.4 | 6.9 | 13.6 | 13.8 |
| HM-75 | 6.7 | 2.0 | 17.9 | 35.3 | 7.0 | 15.5 | 14.1 |
| HM-100 | 6.9 | 1.6 | 18.9 | 36.2 | 6.8 | 14.2 | 14.1 |
(c) NIAH (RULER-style, our implementation)
| Model | 512 tokens | 1024 tokens | 2048 tokens | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MK | S1 | S2 | S3 | MK | S1 | S2 | S3 | MK | S1 | S2 | S3 | Avg. | |
| Mamba 1 | 5.0 | 5.0 | 0.0 | 0.0 | 1.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.9 |
| Mamba 2 | 4.0 | 95.0 | 21.0 | 0.0 | 7.0 | 96.0 | 7.0 | 0.0 | 4.0 | 61.0 | 2.0 | 0.0 | 24.8 |
| Mamba 3 SISO | 12.0 | 98.0 | 49.0 | 1.0 | 7.0 | 82.0 | 10.0 | 0.0 | 3.0 | 17.0 | 7.0 | 0.0 | 23.8 |
| Mamba 3 MIMO | 10.0 | 99.0 | 60.0 | 1.0 | 7.0 | 90.0 | 17.0 | 0.0 | 3.0 | 41.0 | 5.0 | 0.0 | 27.8 |
| Attention | 20.0 | 98.0 | 91.0 | 53.0 | 16.0 | 97.0 | 67.0 | 33.0 | 17.0 | 89.0 | 36.0 | 11.0 | 52.3 |
| SSD-MIMO R101-r | 13.0 | 100.0 | 65.0 | 0.0 | 9.0 | 100.0 | 23.0 | 1.0 | 7.0 | 77.0 | 8.0 | 0.0 | 33.6 |
| SSD-MIMO R202-r | 15.0 | 100.0 | 55.0 | 1.0 | 10.0 | 100.0 | 10.0 | 0.0 | 8.0 | 84.0 | 8.0 | 0.0 | 32.6 |
| SSD-MIMO R202-c | 14.0 | 99.0 | 70.0 | 0.0 | 9.0 | 98.0 | 16.0 | 0.0 | 8.0 | 91.0 | 8.0 | 0.0 | 34.4 |
| SSD-MIMO R404-r | 14.0 | 99.0 | 79.0 | 5.0 | 12.0 | 99.0 | 21.0 | 0.0 | 7.0 | 93.0 | 8.0 | 0.0 | 36.4 |
| SSD-MIMO M3exact | 14.0 | 98.0 | 58.0 | 0.0 | 10.0 | 90.0 | 12.0 | 0.0 | 6.0 | 39.0 | 7.0 | 0.0 | 27.8 |
| SSD-MIMO R101-r (M3 settings) | 18.0 | 100.0 | 55.0 | 0.0 | 9.0 | 99.0 | 13.0 | 0.0 | 5.0 | 73.0 | 4.0 | 0.0 | 31.3 |
| HM-0 | 9.0 | 64.0 | 46.0 | 1.0 | 7.0 | 23.0 | 15.0 | 0.0 | 5.0 | 8.0 | 7.0 | 0.0 | 15.4 |
| HM-25 | 12.0 | 53.0 | 49.0 | 3.0 | 6.0 | 27.0 | 10.0 | 3.0 | 5.0 | 7.0 | 5.0 | 0.0 | 15.0 |
| HM-75 | 14.0 | 98.0 | 52.0 | 2.0 | 11.0 | 63.0 | 5.0 | 1.0 | 5.0 | 21.0 | 5.0 | 0.0 | 23.1 |
| HM-100 | 11.0 | 15.0 | 9.0 | 1.0 | 4.0 | 5.0 | 3.0 | 0.0 | 1.0 | 1.0 | 0.0 | 0.0 | 4.2 |
Table 30: As Table 29, at 2B training tokens.
(a) Test loss / perplexity and zero-shot accuracy, configurations not in Table 7
| Model | Loss / PPL | LAMB. | Hella. | PIQA | ARC-E | ARC-C | Wino. | OBQA | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| SSD-MIMO R4O4-r | 3.0913 / 22.01 | 23.2 | 34.1 | 62.9 | 53.5 | 25.5 | 50.5 | 20.2 | 38.6 |
| SSD-MIMO R1O1-r (M3 settings) | 3.0681 / 21.50 | 24.7 | 35.0 | 64.2 | 54.7 | 25.9 | 51.8 | 20.0 | 39.5 |
(b) Cloze recall
| Model | SWDE | FDA | SQuAD | TriviaQA | NQ-1024 | DROP | Avg. |
|---|---|---|---|---|---|---|---|
| Mamba 1 | 9.0 | 1.5 | 18.1 | 36.0 | 6.8 | 17.2 | 14.8 |
| Mamba 2 | 8.3 | 2.4 | 21.1 | 37.6 | 8.6 | 17.2 | 15.8 |
| Mamba 3 SISO | 12.6 | 2.5 | 23.3 | 36.3 | 8.5 | 17.4 | 16.8 |
| Mamba 3 MIMO | 13.5 | 2.3 | 21.8 | 37.3 | 10.7 | 15.3 | 16.8 |
| Attention | 37.2 | 20.9 | 21.6 | 39.5 | 13.5 | 17.3 | 25.0 |
| SSD-MIMO R2O2-r | 16.8 | 3.9 | 22.7 | 38.5 | 10.7 | 17.3 | 18.3 |
| SSD-MIMO R2O2-c | 11.7 | 1.9 | 23.7 | 38.4 | 10.1 | 16.0 | 17.0 |
| SSD-MIMO R4O4-r | 11.8 | 3.4 | 23.5 | 39.0 | 10.6 | 17.8 | 17.7 |
| SSD-MIMO R1O1-r (M3 settings) | 10.6 | 2.2 | 23.2 | 37.5 | 8.1 | 15.0 | 16.1 |
| HM-0 | 8.9 | 2.0 | 23.9 | 37.7 | 7.5 | 17.1 | 16.2 |
| HM-25 | 9.6 | 3.1 | 23.4 | 39.1 | 8.2 | 18.5 | 17.0 |
| HM-75 | 11.7 | 3.8 | 22.2 | 38.3 | 8.3 | 17.1 | 16.9 |
| HM-100 | 10.5 | 3.5 | 22.4 | 39.8 | 7.6 | 17.7 | 16.9 |
(c) NIAH (RULER-style, our implementation)
| Model | 512 tokens | 1024 tokens | 2048 tokens | Avg. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MK | S1 | S2 | S3 | MK | S1 | S2 | S3 | MK | S1 | S2 | S3 | ||
| Mamba 1 | 11.0 | 85.0 | 45.0 | 0.0 | 12.0 | 42.0 | 13.0 | 0.0 | 8.0 | 10.0 | 7.0 | 0.0 | 19.4 |
| Mamba 2 | 20.0 | 100.0 | 71.0 | 4.0 | 9.0 | 100.0 | 28.0 | 1.0 | 7.0 | 78.0 | 11.0 | 0.0 | 35.8 |
| Mamba 3 SISO | 17.0 | 97.0 | 32.0 | 5.0 | 9.0 | 90.0 | 6.0 | 3.0 | 4.0 | 39.0 | 3.0 | 2.0 | 25.6 |
| Mamba 3 MIMO | 18.0 | 95.0 | 56.0 | 1.0 | 8.0 | 80.0 | 18.0 | 0.0 | 6.0 | 45.0 | 2.0 | 0.0 | 27.4 |
| Attention | 37.0 | 98.0 | 85.0 | 62.0 | 24.0 | 88.0 | 65.0 | 45.0 | 23.0 | 97.0 | 41.0 | 16.0 | 56.8 |
| SSD-MIMO R2O2-r | 18.0 | 100.0 | 79.0 | 15.0 | 16.0 | 100.0 | 19.0 | 6.0 | 9.0 | 97.0 | 8.0 | 1.0 | 39.0 |
| SSD-MIMO R2O2-c | 22.0 | 95.0 | 81.0 | 18.0 | 12.0 | 90.0 | 23.0 | 6.0 | 9.0 | 73.0 | 11.0 | 2.0 | 36.8 |
| SSD-MIMO R4O4-r | 20.0 | 100.0 | 71.0 | 38.0 | 7.0 | 100.0 | 12.0 | 6.0 | 4.0 | 61.0 | 6.0 | 3.0 | 35.7 |
| SSD-MIMO R1O1-r (M3 settings) | 25.0 | 100.0 | 78.0 | 3.0 | 16.0 | 99.0 | 29.0 | 0.0 | 7.0 | 70.0 | 12.0 | 0.0 | 36.6 |
| HM-0 | 20.0 | 84.0 | 65.0 | 5.0 | 12.0 | 31.0 | 26.0 | 2.0 | 11.0 | 6.0 | 7.0 | 2.0 | 22.6 |
| HM-25 | 25.0 | 37.0 | 55.0 | 3.0 | 14.0 | 16.0 | 16.0 | 3.0 | 8.0 | 7.0 | 9.0 | 3.0 | 16.3 |
| HM-75 | 25.0 | 100.0 | 84.0 | 19.0 | 13.0 | 79.0 | 31.0 | 7.0 | 9.0 | 25.0 | 10.0 | 2.0 | 33.7 |
| HM-100 | 16.0 | 82.0 | 39.0 | 7.0 | 10.0 | 36.0 | 9.0 | 3.0 | 9.0 | 7.0 | 4.0 | 0.0 | 18.5 |
Table 31: As Table 29, at 10B training tokens. Loss and zero-shot scores are in Table 7.
(a) Cloze recall
| Model | SWDE | FDA | SQuAD | TriviaQA | NQ-1024 | DROP | Avg. |
|---|---|---|---|---|---|---|---|
| Mamba 3 SISO | 24.4 | 15.6 | 33.4 | 53.1 | 14.9 | 22.7 | 27.3 |
| Mamba 3 MIMO | 26.6 | 12.2 | 35.7 | 52.0 | 16.6 | 24.4 | 27.9 |
| SSD-MIMO R2O2-r | 26.6 | 11.4 | 33.7 | 52.3 | 16.8 | 23.2 | 27.3 |
| SSD-MIMO R2O2-c | 29.9 | 11.6 | 33.7 | 52.3 | 16.5 | 24.3 | 28.0 |
| HM-75 | 27.9 | 6.0 | 36.2 | 52.9 | 16.5 | 25.9 | 27.6 |
(b) NIAH (RULER-style, our implementation)
| Model | 512 tokens | 1024 tokens | 2048 tokens | Avg. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MK | S1 | S2 | S3 | MK | S1 | S2 | S3 | MK | S1 | S2 | S3 | ||
| Mamba 3 SISO | 20.0 | 100.0 | 66.0 | 28.0 | 9.0 | 99.0 | 35.0 | 14.0 | 6.0 | 73.0 | 10.0 | 5.0 | 38.8 |
| Mamba 3 MIMO | 33.0 | 100.0 | 82.0 | 44.0 | 18.0 | 100.0 | 43.0 | 19.0 | 8.0 | 100.0 | 12.0 | 3.0 | 46.8 |
| SSD-MIMO R2O2-r | 9.0 | 100.0 | 48.0 | 21.0 | 15.0 | 100.0 | 20.0 | 11.0 | 8.0 | 97.0 | 8.0 | 1.0 | 36.5 |
| SSD-MIMO R2O2-c | 13.0 | 100.0 | 71.0 | 34.0 | 14.0 | 100.0 | 41.0 | 10.0 | 9.0 | 100.0 | 18.0 | 3.0 | 42.8 |
| HM-75 | 30.0 | 100.0 | 80.0 | 50.0 | 20.0 | 94.0 | 19.0 | 15.0 | 7.0 | 29.0 | 8.0 | 1.0 | 37.8 |
HM complex fraction. Table 32 varies only the fraction of complex dynamic rows in the HM arm. 75% has the lowest loss and the highest NIAH at both milestones (one seed each); zero-shot and recall means differ by at most 1.2 points, significantly only for HM-75's 1B Recall-6 lead over HM-0. All-complex (HM-100), which removes the static and the real dynamic rows together, has a lower NIAH than HM-75.
Table 32: HybridMamba arms HM-0 to HM-100 that differ only in the fraction of state rows that are complex dynamic rows (all arms: 507.9M parameters, 28 layers, MLP width 2024; the remaining rows are static-A and real dynamic rows, except at 100%). Test loss (nats) and mean scores (percent), one seed per arm, followed by paired differences in the three means. *: Holm-adjusted within the original source family and measure (seven comparisons in the HM-75 sources, three in the HM-100 sources); intervals cover evaluation items, not training seeds.
| Model | 1B tokens | 2B tokens | ||||||
|---|---|---|---|---|---|---|---|---|
| Loss | ZS | Recall-6 | NIAH | Loss | ZS | Recall-6 | NIAH | |
| HM-0 (0% complex) | 3.2504 | 37.5 | 12.9 | 15.4 | 3.0745 | 39.9 | 16.2 | 22.6 |
| HM-25 (25% complex) | 3.2485 | 37.3 | 13.8 | 15.0 | 3.0701 | 39.8 | 17.0 | 16.3 |
| HM-75 (75% complex) | 3.2418 | 37.2 | 14.1 | 23.1 | 3.0639 | 39.7 | 16.9 | 33.7 |
| HM-100 (100% complex) | 3.2511 | 38.0 | 14.1 | 4.2 | 3.0698 | 39.6 | 16.9 | 18.5 |
| Paired differences (percentage points, 95% item-bootstrap interval) | ||||||||
| HM-75 – HM-0 | — | -0.3 [-1.1, +0.5] | +1.2 [+0.6, +1.7]* | +7.7 [+5.8, +9.5]* | — | -0.2 [-0.9, +0.5] | +0.7 [+0.1, +1.3] | +11.1 [+9.0, +13.2]* |
| HM-75 – HM-25 | — | -0.1 [-0.9, +0.6] | +0.3 [-0.3, +0.9] | +8.1 [+6.2, +9.9]* | — | -0.1 [-0.9, +0.6] | -0.1 [-0.7, +0.5] | +17.3 [+15.2, +19.5]* |
| HM-100 – HM-75 | — | +0.8 [+0.0, +1.5] | +0.1 [-0.5, +0.6] | -18.9 [-20.7, -17.1]* | — | -0.1 [-0.8, +0.7] | +0.0 [-0.6, +0.7] | -15.2 [-17.3, -13.1]* |
| HM-75 – M3 SISO | — | -0.6 [-1.3, +0.1] | +0.2 [-0.4, +0.7] | -0.7 [-2.4, +0.9] | — | -0.2 [-0.9, +0.6] | +0.1 [-0.5, +0.7] | +8.1 [+6.1, +10.2]* |
| HM-100 – M3 SISO | — | +0.2 [-0.6, +0.9] | +0.2 [-0.3, +0.8] | -19.7 [-21.4, -18.0]* | — | -0.3 [-1.0, +0.5] | +0.2 [-0.5, +0.8] | -7.1 [-9.1, -5.1]* |
Paired comparisons. The table reports selected paired differences and 95% item-bootstrap intervals, using 20,000 bootstrap replicates and resampling seed 11. Holm adjustment is applied across all comparisons for each measure within its source table: ten at 1B/2B, five at 10B, two for the separate R1O1-r/M3exact comparison, one for M3exact against R1O1-r with Mamba 3 settings, and four for the attention comparisons at each of 1B and 2B, seven in each HM-75 source at 1B/2B, four in the HM-75 source at 10B and three in each HM-100 source. Grouping the contrasts by milestone does not change those families. Only comparisons discussed in Sections 5 and 6 appear below. The intervals are not simultaneous Holm intervals, and no significance test is attached to a test-loss difference.
Table 33: Paired comparisons discussed in the text: differences in percentage points with 95% item-bootstrap intervals. *: Holm-adjusted within the original source family and measure, including comparisons omitted here. Intervals cover evaluation items, not training seeds. All recall contrasts use Recall-6. M1/M2: Mamba 1/2; M3 SISO/MIMO: Mamba 3 SISO/MIMO; R2O2-c/r: SSD-MIMO R2O2-c/r; M3exact: SSD-MIMO's Mamba 3 SISO preset; R1O1-r (M3): M3exact without rotation; HM-x: HybridMamba with complex dynamic rows. Bootstrap families: Appendix E.4.
| Tokens | Comparison | ZS | Recall | NIAH |
|---|---|---|---|---|
| 1B | M3exact – M3 SISO | -0.2 [-0.9, +0.5] | +0.5 [-0.1, +1.0] | +4.0 [+2.5, +5.5]* |
| 2B | R2O2-r – M3 SISO | -1.1 [-1.9, -0.4]* | +1.6 [+0.9, +2.2]* | +13.4 [+11.6, +15.3]* |
| 2B | HM-0 – M1 | +0.2 [-0.5, +1.0] | +1.4 [+0.8, +2.0]* | +3.2 [+1.3, +5.0]* |
| 2B | HM-0 – M2 | +0.7 [+0.0, +1.5] | +0.3 [-0.3, +1.0] | -13.2 [-15.2, -11.2]* |
| 2B | HM-25 – M1 | +0.2 [-0.6, +0.9] | +2.2 [+1.6, +2.8]* | -3.1 [-5.0, -1.2]* |
| 2B | HM-25 – M2 | +0.7 [-0.1, +1.4] | +1.1 [+0.5, +1.7]* | -19.4 [-21.5, -17.3]* |
| 2B | R1O1-r (M3) – M3 SISO | -0.4 [-1.2, +0.3] | -0.6 [-1.3, -0.0] | +11.0 [+9.1, +12.9]* |
| 2B | Attention – M3 SISO | -1.6 [-2.4, -0.8]* | +8.2 [+7.4, +9.1]* | +31.2 [+28.6, +33.7]* |
| 2B | HM-75 – HM-0 | -0.2 [-0.9, +0.5] | +0.7 [+0.1, +1.3] | +11.1 [+9.0, +13.2]* |
| 2B | HM-75 – HM-25 | -0.1 [-0.9, +0.6] | -0.1 [-0.7, +0.5] | +17.3 [+15.2, +19.5]* |
| 2B | HM-75 – M3 SISO | -0.2 [-0.9, +0.6] | +0.1 [-0.5, +0.7] | +8.1 [+6.1, +10.2]* |
| 2B | HM-75 – M1 | +0.0 [-0.7, +0.8] | +2.1 [+1.5, +2.8]* | +14.2 [+12.2, +16.3]* |
| 2B | HM-75 – M2 | +0.5 [-0.2, +1.3] | +1.0 [+0.4, +1.7]* | -2.1 [-4.1, -0.1]* |
| 2B | HM-100 – HM-75 | -0.1 [-0.8, +0.7] | +0.0 [-0.6, +0.7] | -15.2 [-17.3, -13.1]* |
| 2B | HM-100 – M3 SISO | -0.3 [-1.0, +0.5] | +0.2 [-0.5, +0.8] | -7.1 [-9.1, -5.1]* |
| 10B | R2O2-c – M3 SISO | +0.2 [-0.6, +0.9] | +0.7 [-0.1, +1.5] | +4.0 [+1.9, +6.1]* |
| 10B | R2O2-c – M3 MIMO | -0.3 [-1.1, +0.4] | +0.1 [-0.7, +0.9] | -4.1 [-6.1, -2.1]* |
| 10B | R2O2-r – M3 SISO | -0.5 [-1.2, +0.3] | +0.0 [-0.8, +0.8] | -2.3 [-4.3, -0.2]* |
| 10B | M3 MIMO – M3 SISO | +0.5 [-0.2, +1.2] | +0.6 [-0.2, +1.4] | +8.1 [+6.1, +10.1]* |
| 10B | HM-75 – M3 SISO | +0.1 [-0.7, +0.8] | +0.2 [-0.6, +1.0] | -1.0 [-3.2, +1.3] |
| 10B | HM-75 – M3 MIMO | -0.4 [-1.2, +0.4] | -0.4 [-1.1, +0.4] | -9.1 [-11.2, -6.9]* |