WorksComputer Science
Symmetry in Time: A Representation Theory of Linear Recurrent Memory
Abstract
State space models (SSMs) are an emerging alternative to Transformers. SSMs offer linear-time inference and parallel training, but most implementations make the parallel scan efficient by making the recurrence diagonal: each channel of the hidden state is multiplied by an input-dependent real or complex number. These numbers commute, so the state records which inputs occurred but not their order. We formalize this with representation theory, which explains and fixes the state-tracking failures previously reported for SSMs. The state update defines a linear representation of the monoid of input sequences, and we show that an SSM tracks a group at every sequence length exactly when that group is a quotient of the group generated by its transition matrices. Two consequences follow. Diagonal real- and complex-valued SSMs can track only commutative groups, while the transition matrices of any SSM that can track a group must split into independent blocks over the real, complex, and quaternion numbers. We then introduce HyperSSM, which adds quaternion channels while keeping linear-time inference and parallel training. Trained only on final answers, HyperSSM solves the group tasks of recent state-tracking benchmarks exactly with at most five state numbers. This includes with 32 generators, where previous SSMs are at chance, and HyperSSM generalizes to sequences 25 times longer than those seen in training. Because the theory says what the transitions must encode, the learned weights of the linear recurrence can be interpreted directly. We demonstrate this by recovering the calibration of a real gyroscope, the rotations of imperfect qubit gates and the geometry of protein backbones.
Introduction
Transformers are a central machine learning architecture for language and sequence processing tasks [1]. They compare every token in a sequence with every other token, so their memory and computation grow quadratically with the length of the sequence. State space models (SSMs) have emerged as an alternative that scales linearly [2, 3, 4, 5, 6]. In an SSM, information about past inputs is contained in the activity state of the recurrent layer, which is updated at each step by a linear recurrence that can be computed in parallel during training and step by step during inference. SSMs now match transformers on many sequence modelling benchmarks, and they serve as the backbone, alone or combined with attention, of deployed language models [7, 8, 9]. As these systems are asked to follow longer instructions, execute programs and act as agents, a basic question becomes pressing: can their memory keep track of events in the order in which they occurred?
In early SSMs, the linear recurrence does not depend on the input, so shifting the input in time shifts the hidden state by the same amount: before any nonlinear readout, the recurrence acts as a convolution. Just as the discrete-time Fourier transform diagonalizes any discrete convolution, such a recurrence is diagonalized by discrete exponentials , where the are the eigenvalues of its transition matrix. Because the recurrence multiplies by the same matrix at every step, and powers of one matrix commute, each of these modes evolves independently and needs only a single number . In general this number is complex: a real eigenvalue can only make its mode decay or flip sign, whereas a complex one also rotates it, storing a phase that lets the mode respond to periodic structure and count modulo . The hidden state is therefore a collection of independent real or complex numbers, each decaying, and possibly rotating, at its own rate. Viewed on a ring of nodes, these modes are travelling waves, and the full forward pass of such a model, nonlinear readout included, admits an exact operator description [10]. Diagonal SSMs parametrize these numbers directly, and later selective models keep the same diagonal structure [2, 3, 4, 6, 11]: their hidden state is a set of independent numbers, complex in S4, S4D, LRU and Mamba-3, and real in S4D-Real, Mamba-1 and Mamba-2.
Modern selective SSMs make the transition matrix depend on the input, so that the hidden state is multiplied by a product of different matrices, and whether it retains the order of the inputs depends on whether these matrices commute. When the inputs describe operations, they generally do not: turning a die forward and then left leaves it in a different position than turning it left and then forward. Yet selective SSMs keep one number per channel, and at each step multiply it by a number the input chooses. Since real and complex multiplication commute, reordering the steps leaves the state unchanged, and no readout can recover the order. The limitation lies in the number system, not in the recurrence or the training.
Tasks of this nature, where the input consists of a sequence of operations and the output is their composition, are referred to as state tracking. Examples include determining which face of a die appears on top, how a sequence of swaps rearranges a set of objects, and the values that variables assume as a program executes. State tracking serves as a stringent test of whether a model has learned an underlying rule rather than relying on shortcuts, since a rule remains valid for sequences that are much longer than those encountered during training. Both transformers with fixed depth and state space models (SSMs) fail on challenging cases [12, 13, 14], and stacking additional layers recovers some, but not all, of the lost order [15, 16]. Recent work replaces commuting numbers with more expressive transitions, such as dense unitary matrices [17], products of Householder reflections [13, 18], and permutation matrices [19]. Theoretical analyses accompanying these advances each focus on a specific family of transitions, such as complex diagonal layers [15], abelian stacks analyzed using Lie algebras [16], and, in concurrent work, rotations in , and , for which a single-layer criterion, group laws that exclude , and two-layer cascades that achieve it are derived [20]. What remains unestablished is which type of memory a given task requires before a family is selected. The question matters more as SSMs spread, both as the backbone of language models [4, 5, 7, 8, 9, 21] and in scientific machine learning [22, 23], where many systems evolve by composing operations that do not commute.
We now present a theoretical framework that answers this question for any linear recurrent memory. We first observe that the hidden states of such a network form a representation, in the algebraic sense, of the sequences it processes (which form a monoid under concatenation): each input symbol transforms the hidden state, and a sequence applies these transformations in order. Using this correspondence, we characterize the groups of operations a single channel can track on any associative number system (Theorem 1). The readout plays an active role in this characterization, because it determines which part of the state is meaningful, and the part it may ignore is what allows small memories to work; for heads in and it agrees with the criterion reached independently in concurrent work [20]. We then show that every such memory separates into independent blocks (Proposition 1). The idea is familiar from diagonal SSMs. When all transitions commute, they can be diagonalized together, and the memory splits into independent one-dimensional channels, each multiplied by a real or complex number; this is the Fourier decomposition that underlies diagonal SSMs. When transitions do not commute, they cannot be diagonalized, but they can still be block-diagonalized, and we show that each block is a small matrix over one of only three number systems: the real numbers, the complex numbers or the quaternions. This has two consequences. First, the transition families studied so far, such as unitary matrices, Householder products, permutations and rotations, are not separate designs but blocks of these three kinds, so the choice of memory reduces to choosing a number system and a block size for each channel. Second, order has a minimum cost: a channel whose transitions span fewer than four real dimensions commutes, and so tracks only operations whose order does not matter (Corollary 1). The cheapest channels that keep order are the real matrices and the quaternions, each with four real dimensions.
This correspondence also allows us to infer the symmetry of the trained transition matrices of the model, enabling a form of symmetry discovery in data. Methods for discovering symmetry usually learn transformations that leave the data invariant [24, 25]. Here, the group is instead the set of operations that the inputs encode, and because the transition matrices must contain it, it can be read directly from a trained model.
Guided by this framework, we introduce HyperSSM, in which each channel has its own number system, enabling it to state track, without incurring additional computational cost for linear-time inference or parallel training (Sec. III). On formal-language and group benchmarks from recent work [19, 26], HyperSSM achieves exactness with one to five states, including the case of permutations of five objects, , with 32 generators, a setting in which the best previous linear recurrent models perform at chance level. The model is trained solely on the final answer; no information about a task’s group is provided, and it maintains exactness on sequences 25 times longer than those used in training. We finally apply the same memory to three physical systems in which the state is represented as an ordered product of rotations: a moving body measured by a real gyroscope, a qubit driven by a sequence of gates, and a protein backbone, in which each residue is rotated relative to the last by its torsion angles (Sec. IV). In all three cases, a single quaternion channel matches or surpasses the physical model over sequences 16 to 60 times longer than those encountered during training, whereas commutative and recurrent baselines fail. Furthermore, the learned weights recover the calibration of the sensor, the actual rotations of the gates, and the geometry of the backbone. This framework therefore provides a precise account of what linear recurrent memory can and cannot retain regarding order, while also suggesting principled approaches for designing the memory of future sequence models.
Theory
Groups and Representations
A group is a set of operations that can be composed and undone. The 24 rotations that map a cube onto itself form a group: composing any two of these rotations yields another rotation in the group, and each rotation can be inverted. A group is abelian if the order of composition is always commutative, as in the case of adding hours on a clock, and non-abelian otherwise, as for the rotations of a die. The permutations of five objects form the group , which is a standard challenging case for state tracking, as its word problem is complete for the circuit class NC [12, 27]. In contrast, input sequences do not form a group: they can be concatenated, with one sequence followed by another, but cannot be inverted. Therefore, they form a monoid, with the empty sequence serving as the identity element.
Throughout this paper, representation is used in the algebraic sense. A representation assigns to each element of a group or monoid an invertible element from a number system, such as a matrix, ensuring that composition corresponds to multiplication. For example, rotations of a clock hand are represented by unit complex numbers , while rotations in three-dimensional space are represented by rotation matrices. Two groups can be related by a quotient, which identifies elements that are considered equivalent: for example, interpreting a 24-hour clock as a 12-hour clock identifies 3:00 and 15:00. The larger group then serves as a cover of the smaller one, retaining one additional bit of information that the quotient omits. Finally, a group is compact if its elements remain bounded, as is the case for rotations; compact transitions neither diverge nor vanish over long sequences.
Memory as a representation
A diagonal SSM channel updates its hidden state as , with input term , and steps combine by
which is what makes a parallel scan possible [28, 29]. The scan needs multiplication to be associative, not commutative. So a channel may live in an associative number system (a real algebra), with invertible elements :
recovers S4D, LR11 and Mamba-3; positive reals recover Mamba-1 and Mamba-2 (SM S2); maps the input into . In the tracking regime (, no decay, ; justified in SM S3), a word leaves the state
Concatenating words multiplies states: the memory is a representation of its input. If commutes, only counts symbols; if not, it remembers their order [Fig. 1(b–d)].
Which groups can a layer track?
Each input symbol stands for an operation in a group . The target of a sequence is the composed operation
with of the empty sequence equal to the identity . The model must output , so it only needs the elements of that occur as targets. Let be the closure of the set of targets; it is the group the model must track. If is finite, is the subgroup generated by the . For example, if a die is only ever turned about one axis, is the cyclic group of four quarter turns, not the full rotation group of the die. If the inputs are continuous, as for a gyroscope, is infinite. We assume throughout that is compact, which holds for every finite group and for groups of rotations.
Definition 1. A channel tracks if there are a continuous readout and a continuous injective map such that for all words of every length. A stack of layers tracks if the same holds with a continuous readout of the states of all its layers.
“Every length” separates learning the rule from fitting the training set; continuity of the readout rules out memorization (SM S4).
Theorem 1. Consider channels whose reachable states lie in a compact subset of . (i) If a channel tracks , the closure of its reachable states is a compact subgroup of , and for a closed normal subgroup . (ii) Conversely, if for a compact subgroup and closed normal , there is a channel over with transitions in that tracks . (iii) If consists of scalar multiples of , as does, then is a central extension of , a cover when is finite, and is represented projectively.
In words: a layer tracks a group exactly when its states hold a copy of that group, except for a component that the readout disregards. More precisely, the states constitute a group . The mapping from a state to its encoded target is a homomorphism from onto , where denotes its kernel, representing the states that the readout cannot distinguish from the identity element. If is trivial, then is an exact copy of within . Allowing a nontrivial is significant because may then be embedded in a smaller algebra than any exact copy of would permit.
Spatial rotations illustrate this property. The group is not a subgroup of the unit quaternions, as the only quaternion of order two is , whereas contains a half-turn about every axis. Therefore, an exact representation requires a larger algebra, such as , which consists of nine elements. Instead, the unit quaternions map onto by associating with the rotation . The kernel of this mapping is , since and yield the same rotation. A quaternion channel, which utilizes four components, therefore can represent , provided its readout assigns the same value to and , as in , where denotes a learned linear map. [Fig. 1(e)]. The same reasoning applies to every finite group of rotations. In particular, the rotation group of the icosahedron, , does not have an exact representation in , but its preimage, the binary icosahedral group , does. Therefore, a single quaternion channel can represent . Theorem 1 specifies when such a readout is necessary and what information it may ignore. The proof is provided in SM S4.
Every memory splits into , and blocks
Proposition 1 (Semisimple reduction). If a channel over tracks with reachable states in a compact subset of , let be as in Theorem 1 and . Then is a semisimple subalgebra of , the same channel regarded as a channel over tracks , and
The factors evolve independently and meet only in the readout; in a suitable basis their transitions are orthogonal, unitary or quaternion-unitary.
This represents the order-preserving analog of the Fourier decomposition: A time-invariant memory decomposes into complex clock hands, while a general memory decomposes into rotating matrix blocks over , , or [30, 31]. These are the only number systems worth considering (proof in SM S5).
Corollary 1. A channel over an algebra of dimension less than four tracks no non-abelian rotation groups. In dimension four, the algebras that track non-abelian groups are the real matrices and the quaternions .
To preserve order, a channel’s transitions need at least four real dimensions. This bound is on the transitions, not on the state. For example, in the recurrence , the transition and the state can differ in size. is an element of the algebra, whereas the state only needs to be a vector upon which it acts. For instance, over , each transition is represented by a matrix, consisting of four real numbers, while the state can be a vector in , which consists of two real numbers. This configuration is sufficient to track the symmetries of a polygon (SM S5). In contrast, over there is no such reduction: the state is a quaternion, which consists of four real numbers, the same size as the transition.
The algebra ladder
The algebra ladder
Theorem 1 and Proposition 1 turn “can this layer learn this task?” into a lookup (Figure 2; details in SM S6):
Figure 2. The algebra ladder. Each box represents an algebra with its associated properties. The number of real components is indicated; on the right, bounded transitions and the groups tracked by a single channel are shown (Theorem 1). For fewer than four components, every algebra is commutative (Corollary 1). Increasing the width of a layer results in lateral movement and does not cross the dashed line, above which is tracked. In contrast, increasing depth does: a sign channel beneath a quaternion channel tracks with five numbers (Proposition 2; Table II). Shaded regions indicate channels of standard diagonal SSMs.
One real number: parity only [13].
Complex numbers, any width: counting modulo ; only abelian groups.
One quaternion (4 numbers): , , the die , and the icosahedral rotations .
quaternion matrix (16 numbers): .
A sign beneath a quaternion (5 numbers, two layers): , by depth (Proposition 2).
Depth helps, but only up to solvable groups
The stacking of commutative layers restores a degree of order. For the six symmetries of a triangle, one layer monitors the parity of reflections, while a subsequent complex layer rotates by according to that parity.
Proposition 2 (Depth). In the tracking regime, consider a stack of layers in which every layer is commutative with transitions in a compact group, the transitions of each layer are functions of the input symbol and of the previous states of the layers below, and every layer below the top has finitely many reachable states. Such a stack tracks a finite group if and only if is solvable of derived length at most .
So complex stacks reach , and the die, but no such stack of commutative layers reaches or . In contrast, a single quaternion channel reaches . The finiteness assumption is satisfied whenever the lower layers track finite groups with exact transitions, as demonstrated in the construction and our snapped models. Without this assumption, the closure argument of Theorem 1 does not apply directly (SM S7). For complex diagonal layers, this result corresponds to the theorem of Shakerinava et al. [15], which is proved at finite precision (see also [16], where tracking up to a bounded length is achieved with depth logarithmic in that length). This result serves as the finiteness assumption in our context; the representation perspective provides this property for any commutative channel algebra and situates it alongside Theorem 1. In contrast to circuit-complexity bounds [12, 14], this bound is unconditional within its model (see proof in SM S7).
HyperSSM
The theory says which number system a task needs; HyperSSM lets each channel choose it, and changes nothing else (Figure 3).
Figure 3. A HyperSSM layer. Each channel follows the linear recurrence of a diagonal SSM, with input , hidden state , transition and input term , with multiplication in its own algebra . Channels evolve independently, mix only in the readout , and are computed by the same parallel scan.
Definition 2. A HyperSSM layer with input and channels over algebras has hidden state , updated channel by channel as
where the generator and the input matrix are linear in the input, is a learned decay rate, a step size, and the exponential is the power series in . The readout acts on all channels, on or on a sign-invariant function of it such as , and is a skip connection.
This is the selective SSM , of Mamba [4] with block-diagonal, one block per channel, multiplying in that channel’s algebra. With complex channels this is a diagonal SSM. With a quaternion channel, the input chooses a rotation axis as well as an angle; that is the whole difference. Real channels use a learned sign, . All channels share the scan of Eq. (1), so HyperSSM keeps work and depth (SM S8) (where is the sequence length). The input enters both through the transition and, as in any SSM, through ; all experiments here are in the tracking regime, , where it acts through the transition alone. Quaternion channels are never snapped.
| Model | Parity | Even pairs | Cycle navigation | Modular arithmetic |
| LSTM | 100.0 ± 0.0 | 100.0 ± 0.0 | 100.0 ± 0.0 | 99.9 ± 0.1 |
| Transformer | 52.2 ± 0.4 | 90.4 ± 10.4 | 24.4 ± 0.5 | 23.6 ± 0.7 |
| Mamba | 54.5 ± 1.5 | 100.0 ± 0.0 | 50.7 ± 7.8 | 38.1 ± 6.0 |
| diagonal | 61.8 ± 6.8 | 82.4 ± 4.8 | 90.4 ± 4.3 | 59.9 ± 27.0 |
| DeltaNet [−1, 1] | 97.2 ± 1.7 | 100.0 ± 0.0 | 47.3 ± 6.0 | 63.9 ± 7.2 |
| Gated DeltaProduct [−1, 1] | 98.8 ± 1.5 | 99.6 ± 0.6 | 61.4 ± 12.0 | 58.0 ± 20.0 |
| D-DE16-LNCDE | 81.0 ± 18.1 | 81.4 ± 9.9 | 77.3 ± 21.3 | 94.5 ± 5.2 |
| PD-SSM | 99.9 ± 0.1 | 99.7 ± 0.3 | 99.5 ± 0.7 | 96.2 ± 3.4 |
| HyperSSM | 100.0 ± 0.0 | 100.0 ± 0.0 | 100.0 ± 0.0 | 99.3 ± 0.4 |
| algebra | , on pairs | , on pairs | ||
| discovered | – | – |
Table 1. TABLE I. Regular languages. Accuracy (%) on lengths 40–256 after training on 3–40, mean ± s.d. over 5 runs. Baselines from [19]. HyperSSM algebras, with numbers of state: (1), (2), (32). Discovered : the smallest for which snapping each complex transition to an -th root of unity is exact on validation, found after training without being told the task. Details in SM S9.
Results
Exact state tracking on benchmarks
We use the formal-language and group benchmarks of [19, 26]: train in lengths 3–40, test on 40–256, and for groups also on 256–1000. For each task, the theory selects the minimal required representation: one real channel for parity, one complex channel for cycle navigation and even pairs, one quaternion for , and a sign channel combined with a quaternion for . No information about the task’s group is provided to the model. (Protocol details are in SM S9.) Real channels are constrained to exactly throughout. Complex channels are trained continuously and then discretized to the -th roots of unity, where is the smallest value that achieves exact validation performance and is determined from the trained model (as described in Theorem 1). Quaternion
HyperSSM is exact on parity, even pairs and cycle navigation with one or two numbers of state (Table I), and on every and task with four and five numbers of state: one quaternion for , and a sign channel beneath a quaternion for (Table II). For with 32 generators, PD-SSM (128 complex numbers) achieves 1.07% accuracy, and Gated DeltaProduct achieves 1.23%, which is near chance level (0.83%), while HyperSSM remains exact. HyperSSM maintains exact performance up to 25 times the training sequence length. For modular arithmetic, a dense block achieves 99.3 ± 0.4% accuracy; although an exact memory solution for three numbers exists, it is not discovered through training (SM S9 S9.1).
Applications
The composition rule HyperSSM is built on is not specific to benchmarks. Whenever the state of a physical system is an ordered product of rotations, a quaternion channel is an exact memory for it, and a commutative one cannot be (Corollary 1). We test three such systems with the same architecture and protocol: train on short sequences, test on long ones, and compare with a complex diagonal SSM, an LSTM, and the physical model itself.
| Model | · rotations of the icosahedron, | · rotations of the icosahedron, | · rotations of the icosahedron, | · rotations of the icosahedron, | · permutations of five cards, | · permutations of five cards, | · permutations of five cards, |
| diagonal (2 layers) | 15.5 | – | – | – | – | – | – |
| Gated DeltaProduct [−1, 1] (1 layer) | 97.9 | 92.5 | 91.8 | 60.5 | 88.7 | 57.4 | 1.23 |
| Gated DeltaProduct [−1, 1] (2 layers) | – | – | – | 68.4 | 84.7 | 62.2 | – |
| PD-SSM (1 layer) | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 1.07 |
| HyperSSM | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 |
| algebra | |||||||
| lengths 256–1000 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 |
Table 2. TABLE II. Group word problems. Accuracy (%) on lengths 40–256 and, for HyperSSM, 256–1000, after training on 3–40; best of 3 runs. Chance: 1.67% (), 0.83% (); –: not reported. Baselines from [19] (PD-SSM: 128 complex numbers of state). HyperSSM: (4), (5). All runs in SM S9.
Rigid bodies: a real gyroscope
A gyroscope measures angular velocity, and orientation is determined as the ordered product of these incremental rotations. Reversing the order of the same sequence of small rotations yields a different orientation and leads to a error after 2 seconds. On the BROAD dataset [32], models process gyroscope windows to predict rotation, with training performed on 1 to 2 second intervals and testing conducted for durations up to 2 minutes (experimental setup described in SM S10). HyperSSM utilizes a single quaternion channel with 12 parameters. A complex diagonal state space model (SSM) with 128 state variables does not outperform a baseline that predicts no rotation, as anticipated by Corollary 1. An LSTM accurately fits the training intervals but fails to generalize to longer durations. HyperSSM matches gyroscope integration performance and exhibits reduced drift over extended time horizons (26.5° compared to 30.9° at 2 minutes), due to its ability to learn the sensor’s calibration [Fig. 4(a)].
Qubits: simulating and characterizing gates
Single-qubit gates correspond to unit quaternions, implying that a quaternion channel represents a qubit. The Born rule is quadratic in the quantum state; therefore, measurement statistics are precisely determined by this relationship. This results in a sign-invariant readout , while the unobservable global phase corresponds to the component in Theorem 1 that the readout must ignore. The models process a random gate sequence and predict the Bloch vector of the final state. The Born rule is then used to determine the probability of each measurement outcome; the models are trained on circuits containing 1 to 40 gates and evaluated on circuits with up to 1000 gates (setup in SM S11). The Clifford gates operate on the Bloch sphere as the 24 rota tions of a cube, which form a solvable group. Including the gate renders the set of gates dense in . HyperSSM achieves exact results in both cases: its Bloch vectors remain within degrees of the true values for all sequence lengths up to 1000 gates, which is 25 times the training length. The learned gates correspond to , , and to three decimal places in both angle and axis [Fig. 4(b)] and SM S11. A three-layer complex diagonal stack, which is sufficiently deep to represent the Clifford group by Proposition 2, does not identify this structure during training and remains near deviation from about 100 gates onward. An LSTM can model the finite Clifford group to within approximately , but exhibits drift on Clifford+, reaching about at 1000 gates. In hardware implementations, gates are imperfect. When each gate under-rotates by about an axis tilted by , a simulator employing ideal gates drifts to nearly at 1000 gates, whereas HyperSSM remains exact. From measurement data alone, HyperSSM recovers the actual gates to three decimal places (: learned and true; : ; : ; angle between the and axes: ), representing a learned form of gate set characterization [33].
Proteins: the backbone as a chain of rotations
The orientation of residue relative to the frame of residue is represented as the ordered product of the rotations between consecutive residues. Each rotation is determined by three torsion angles (, , ) and nearly constant bond angles, and the residue frames correspond to those constructed in structure prediction [34]. A sequence of residues is represented as tokens, where each token corresponds to a torsion angle with its associated angle or a bond. HyperSSM operates as a single quaternion channel within the tracking regime with generator , 48 parameters as detailed in SM S12. The evaluation uses 554 high-resolution crystal structures from the Protein Data Bank [35], partitioned by entry. The models are trained on sequences of 1 to 16 residues and evaluated on held-out proteins containing up to 256 residues. Composing the same per-residue rotations in an incorrect order results in of error after two residues. The complex diagonal SSM and the LSTM exceed of error from four residues onward, within the training range. HyperSSM is more accurate than reconstruction using standard bond geometry [36] across all sequence lengths from 2 to 64 residues ( versus at 16, versus at 64; Figure 4(c)), as it captures the average geometry of actual protein backbones. The remaining error is attributable to the variation in bond angles between residues, which cannot be addressed by any model based on torsion angles alone.
Figure 4. Applications: Physical systems in which the state is represented as an ordered product of rotations. Median error as a function of sequence length; training lengths are shaded; mean standard deviation over three random seeds. (a) Orientation of a moving body measured by a real gyroscope (BROAD; held-out recordings); physical model: integration of the sensor readings. (b) Bloch vector of a qubit following a gate sequence, with imperfect gates ( under-rotation and axis tilt); physical model: simulation using ideal gates; HyperSSM achieves errors below the lower axis limit ( degrees) at all sequence lengths; complex diagonal SSM uses three layers. Details on Clifford gates and ideal Clifford+ gates are provided in SM S11. (c) Orientation of residue relative to the frame of residue , computed from the torsion angles, on held-out PDB proteins; physical model: reconstruction using standard bond geometry. In all three cases, HyperSSM uses a single quaternion channel (four state variables); the complex diagonal SSM uses 128 state variables.
Reading the group from the transition
Theorem 1 fixes what a trained channel must contain: a copy of the task’s group structure. The group can therefore be read from the learned transitions and compared with the true one.
Proposition 3 (Certificate and horizon). In the tracking regime: (i) If the states of a model take finitely many values, as when its transitions generate a finite group , the model tracks at every length if and only if its readout is correct on every pair reachable in ; these are at most pairs, found by breadth-first search. (ii) If a channel’s transitions have norm at most one and lie within of those of a model certified by (i), and the readout’s decision regions contain the balls of radius around that model’s states, the channel is exact on every word of length .
Part (i) reformulates the condition of being “exact at every length” into a finite verification; Part (ii) determines, based solely on the weights, the extent to which a continuous model is guaranteed to generalize (proof in SM S13). The decoding procedure is explicit. A quaternion transition corresponds to a rotation by about the axis . Consequently, each generator must rotate by , , , or about a symmetry axis of an icosahedron, and the learned sign of each generator must correspond to the parity of its permutation. The discretized complex channels already demonstrated this mechanism: training identified for even pairs and for cycle navigation without explicit instruction. In the gyroscope model, the 12 parameters represent the sensor’s scale, axis misalignment, and bias; in the qubit model, the transitions correspond to the gates’ actual rotations; in the protein model, they represent the torsion and bond rotations of the backbone.
Discussion
Convolutional networks taught us that a symmetry of the data should shape the model. Early SSMs had time-shift symmetry, and complex numbers were its natural basis. Selective models broke that symmetry; what governs them is the group of the operations they read, and the right basis is a set of blocks over , and . Real and complex numbers are the abelian case, and stacks of them the solvable one. Because a tracking memory must be a representation, the same theory says where to look inside a trained model and what to expect there.
Scientific machine learning
Many systems in the sciences evolve through the composition of non-commuting operations. For these systems, the algebraic structure of memory constitutes a physical property rather than a modeling assumption. Examples include rigid-body motion, spin and qubit dynamics, polarization optics, parallel transport along paths in gauge theory, and the braiding of anyons. These phenomena can be described as ordered products in , , and related groups (SM S14). For each case, Corollary 1 excludes the possibility of a commutative memory, and a quaternion or matrix channel provides an exact representation by construction. The qubit experiment demonstrates a practical application in quantum hardware: a sequence model in which the transitions correspond to gates learned from measurements, characterizes the gates in a manner analogous to gate set tomography [33], and also predicts the behaviour of circuits longer than those used during training. When decay is present (), the same channel can account for decoherence.
Protein structure
Structure prediction and design represent a protein as a sequence of rigid residue frames and compose these frames, as implemented in the structure module of AlphaFold [34] and in diffusion models that generate protein backbones directly using rigid motions [37, 38]. The backbone experiment demonstrates the simplest form of this compositional approach, carried out by a linear memory with a parallel scan. This method is exact in its algebraic formulation, linear in sequence length, and interpretable, since each learned rotation corresponds to a torsion angle or a bond. Channels utilizing dual quaternions, an associative algebra that composes rotations and translations together, could encode both positions and orientations. However, the group of rigid motions associated with dual quaternions is not compact, so this approach lies beyond the scope of the present theorems but remains within the same recurrence framework.
Symmetry discovery
Methods for discovering symmetry learn which transformations leave the data invariant [24, 25]. A tracking memory finds a different symmetry: the group generated by the operations it processes. Theorem 1 states that a model capable of tracking must contain this group, enabling direct extraction rather than requiring a search. During training, and were identified in the complex channels, the actual rotations of imperfect gates in the qubit model, and the torsion geometry of the backbone in the protein model. A general procedure, from data to the group and its representation, constitutes a logical next step.
Long context
These differences matter most over long sequences. A memory in the right algebra composes exactly, so its errors do not compound: on the benchmarks it stays exact at 25 times the training length, it matches the physical model at 60 times on the gyroscope and at 16 times along the protein chain, and Proposition 3(ii) bounds how long a continuous model stays exact, . A memory in the wrong algebra fails beyond the training range at any width. As language models are asked to follow long programs, agent trajectories and documents in which order matters, the number system of their recurrent memory becomes a design variable alongside width and depth. Quaternion and matrix channels add a constant factor to the scan and could sit beside complex channels in the hybrid recurrent and attention models now in use [7, 21]; whether they improve such models at scale is the main open question.
Relation to prior and concurrent work
Earlier analyses each begin by fixing a family of transitions and ask what that family can do: complex diagonal layers [15] and abelian stacks through Lie-algebra extensions [16]. The present work reverses the question and asks which memory a task requires. This gives three results that a family-by-family analysis does not. First, Theorem 1 holds for a channel over any associative algebra, so fixed families become special cases: the depth theorem of [15] is Proposition 2 for complex channels, and for rotation heads the single-layer criterion, the exclusion of and the two-layer cascades given in concurrent work [20] correspond to Theorem 1, Lemma S6 and Proposition 2 for .
{starts_mid=1}clusion of and the two-layer cascades given in concurrent work [20] correspond to Theorem 1, Lemma S6 and Proposition 2 for . Second, Proposition 1 shows that the search over families is finite: every memory is a sum of blocks over , and , and the smallest memory that tracks a task can be read off its group. Third, because the memory must be a representation, a trained model is a checkable object: Proposition 3 certifies exactness at every length from the weights and bounds how long a nearly exact model stays exact. The same starting point changes what the experiments can show. Because the theory fixes the memory before training, HyperSSM can be trained under the strictest protocol and still be exact. On with 32 generators, where the best previous linear recurrent models are at chance [19], it is learned from the final answer alone, with five numbers of state, a linear readout and no information about the group, and it stays exact on sequences 25 times longer than those seen in training. On physical systems, a single quaternion channel regresses orientation from a real gyroscope against motion capture at 60 times the training length, and its weights recover the calibration of the sensor, the actual rotations of imperfect qubit gates, and the geometry of protein backbones.
Open problems
Open are a quantitative theory under decay and noise, the depth bound for stacks whose lower layers take a continuum of values, extensions to resets and all regular languages [39], whether this legibility survives in large models that mix such channels with attention, and how to train the smallest memory when it is not the easiest to find (SM S14).
Code availability
Code to reproduce all experiments, including the HyperSSM implementation, benchmark protocols and trained models, is available at https://github.com/anishfischer/HyperSSM.
Background on groups
This section illustrates each algebraic concept with the die.
A group is a set of operations that can be composed and inverted. The 24 rotations that map a cube onto itself form a group: composing two rotations gives another rotation, and each rotation has an inverse. The group is abelian if composition does not depend on order; the rotations of the cube are not abelian, whereas addition of hours on a clock modulo 12 is. The group of all permutations of five objects is ; it is the standard hard case in the literature, as its word problem is complete for [12, 27].
A representation of a group assigns to each operation an invertible element of a number system (for example a matrix) so that group composition becomes multiplication. Rotations of 3D space are represented by rotation matrices; rotations of a clock hand by unit complex numbers .
A quotient identifies elements that should be considered equivalent: reading a 24-hour clock as a 12-hour clock merges 3:00 and 15:00. A cover retains extra information: the 24-hour clock covers the 12-hour clock by keeping one bit the latter omits. A group is compact if its elements remain bounded, as rotations do; in a memory, compact transitions neither diverge nor vanish over long sequences.
Linear memory and time-shift symmetry
Discretization. An SSM layer is a discretized linear system , . With step size ,
Deep SSMs stack such layers with nonlinearities in between. In practice is diagonal over [3, 11], so the state splits into scalar recurrences
one per eigenvalue of ; each is a channel, a damped oscillator that scales the state by and rotates it by . Selective SSMs such as Mamba [4, 5] make , and input-dependent. Each step is an affine map , and the composition rule Eq. (1) is associative, so all prefix states follow from a parallel scan [28, 29] in rounds and work. Linear attention [40] and DeltaNet [41] have the same structure with matrix-valued states.
Why complex numbers. If transitions do not depend on the input, shifting the input shifts the output, and the layer is a convolution. The functions a convolution leaves invariant up to scale are the exponentials , so such a memory is a bank of independent channels evolving as ; without damping, clock hands . These are the representations of the abelian group of time shifts, each needing a single complex number: a diagonal SSM is the Fourier decomposition of a time-invariant memory. Rotary position embeddings [42] use the same clock hands.
Selective models keep commuting channels. Selective SSMs break time-shift symmetry but keep scalar channels: positive real in Mamba-1 and Mamba-2, complex in Mamba-3. All their transitions commute. A complex channel that turns by then ends where it would in reverse order; its state can depend on symbol counts and, with damping, on timing, but not on the order of non-commuting operations. This explains why Mamba-3, whose complex update is a data-dependent rotary embedding, solves parity and modular arithmetic [6] (built from counters modulo ), while the die stays out of reach.
Prior use of quaternions. Quaternion arithmetic has been used in neural networks, including recurrent ones [43], to couple the components of multidimensional features. Here quaternions instead serve as the non-commuting transitions of a linear memory that keeps its parallel scan.
Quaternions. A quaternion is with and . Unit quaternions represent 3D rotations, which is why graphics and robotics use them; multiplying them composes rotations, and order matters, as for the die Figure 1(d).

Figure 1. Order in a linear memory. (a) One step of a selective SSM; shaded, the tracking regime (no decay, , one transition per symbol). (b) After a word , a channel holds the ordered product ; it tracks the group if a continuous readout recovers from at every length. (c) A complex channel stores a phase; turns add, and order is lost. (d) A quaternion channel stores a 3D orientation; 90° turns about and in either order give different states. (e) and are the same rotation; a sign-invariant readout tracks , a sign-aware one tracks . (f) tracks but not ; tracks .
Reduction to the tracking regime
The main text studies channels with no input term, no decay and . This section shows that none of the three restrictions loses tracking power. Throughout, a symbol acts on the state of a channel by the affine map , with and the embedding of , and a word acts by . The norm of an element of is the operator norm of left multiplication by it.
Lemma S1 (Compact monoids). A compact submonoid of a Hausdorff topological group is a subgroup.
Proof. Let . The powers lie in , so a subsequence converges, and we may take . Then , so ; as and is closed, .
Lemma S2 (Input term and initial state). Suppose the maps of a channel lie in a compact subset of the affine group of and their linear parts in a compact subset of . If the channel, from an initial state , tracks , then the channel over with the same transitions , no input term and tracks with a suitable readout.
Proof. The closure of is a compact submonoid of the affine group, hence a compact group by Lemma S1. With Haar measure , the point is fixed by every element of , because affine maps commute with averaging and Haar measure is invariant. In the coordinate every symbol acts linearly, , so the state after is with and as in Eq. (3). If is the readout of the original channel, is continuous on and .
So the input term only moves the point about which the state turns, and the initial state can be folded into the readout.
Lemma S3 (Decay). Let be finite. Split a layer’s state as into channels whose transitions have norm at most one and channels whose transitions have norm at most , and suppose all reachable states are bounded. If the layer tracks , then the channels alone track . In particular, a layer whose channels all decay tracks only the trivial group.
Proof. Let be the bounded set of reachable states. On its compact closure the readout is uniformly continuous; let be half the smallest distance between the finitely many points of , and let be such that states within have readouts within . Choose a word so long that . For words , the decaying parts after satisfy , while the norm-one parts satisfy . Hence, if , the readouts of and are within , so and . The answer is therefore a uniformly locally constant function of on the reachable set; it extends continuously to the closure, and composing with and extending to all of the algebra of (Tietze) gives a readout of alone. With no norm-one channels, the answer is constant, so is trivial.
Decay therefore lets a channel weigh recent inputs, but every bit of order kept at every length is kept by the channels that do not decay. Together, Lemmas S2 and S3 reduce the analysis to the tracking regime: no input term, no decay, , and one transition per input symbol . After a word the state is Eq. (3), and . Channels whose norm varies from symbol to symbol, some at one and some below, are not covered; this is part of the quantitative theory under decay listed as open.
Tracking: definition and proof of Theorem 1
On the definition. is finite for the die (24 elements) and for (120), and a continuous rotation group if the symbols are generic rotations. Because is compact, a continuous injective is a homeomorphism onto its image, so the encoding loses nothing. “Every length” separates learning the rule from fitting the training lengths. Continuity of the readout separates learning from memorization: two generic unit quaternions already generate infinitely many distinct states, and a readout allowed to jump could label each state with its answer, for any group. A continuous readout cannot, since it would send arbitrarily close states to different answers. Continuity is the minimal assumption that rules out memorization, and every neural readout satisfies it.
Proof of Theorem 1. (i) Let be the reachable states, including . Since , is a monoid, and its closure is a closed submonoid of , compact by assumption, hence a compact group by Lemma S1. If then , so : the state determines the answer. Because is compact, is a homeomorphism onto the closed set , and . Hence is a continuous map with . On , ; both sides of are continuous on and agree on the dense set , so is a homomorphism. Its image is compact and contains every answer, so it is . With , a closed normal subgroup, the induced map is a continuous bijection from a compact space to a Hausdorff one, hence an isomorphism of topological groups.
(ii) Let be the quotient map followed by the isomorphism , and choose transitions . Since is a homomorphism, for every word. As a closed subgroup of the Lie group , is a compact Lie group, so is one too and has a faithful finite-dimensional representation, which gives a continuous injective . The map is continuous on the compact, hence closed, set ; by the Tietze extension theorem, applied to each coordinate, it extends to a continuous , and . (iii) If every element of is a scalar multiple of (real, or complex when is a complex algebra), its elements commute with , so is a central extension of ; a finite central kernel makes it a cover. Left multiplication by is a linear representation on in which acts by scalars, so it induces a homomorphism from to the projective group of , a projective representation of . □
Margin version. Exact equality is a convenience. For finite , say a channel tracks with margin if there are pairwise disjoint closed sets , one per , and a continuous readout , as an argmax classifier with a positive margin provides. Theorem 1 holds unchanged. Indeed, since the union is closed; the sets are finitely many, closed and disjoint, so each is also open in , and for is locally constant, hence continuous; it agrees with on because the are disjoint; and the homomorphism property follows by density as before. The converse is immediate from (ii).
The readout chooses what is meaningful. is the part of the state the readout ignores. The 24-hour clock read as a 12-hour clock is the model case. For quaternions, and are the same rotation, so a quaternion memory of rotations carries a sign a good readout ignores. The simplest such readout is quadratic, , since ; for matrix states, products play the same role. Covers make small memories possible: a group whose faithful representations need more dimensions may still fit in fewer through a cover, provided the readout is invariant to the extra bit, as features in an equivariant network are invariant to a nuisance transformation.
Proofs of Proposition 1 and Corollary 1
Intuition. A symmetric matrix can be rotated into a diagonal one, splitting into one-dimensional pieces. A memory can likewise be rotated into independent blocks, but because its transitions need not commute, the blocks cannot all be one-dimensional.
Proof of Proposition 1. Since is closed under products and contains , its span is a subalgebra, and because contains the inverses of its elements. The states lie in , and the readout restricts to , so the channel regarded as a channel over still tracks . Averaging an inner product on over the compact group makes left multiplication by elements of orthogonal, so every subspace of preserved by , and hence by , has a preserved orthogonal complement: is a completely reducible -module. It is faithful, since . The Jacobson radical of annihilates every simple module, hence every completely reducible one, hence , so it is zero and is semisimple. Equation (4) is the Wedderburn–Artin theorem combined with Frobenius’s theorem that , and are the only real division algebras [31]. Multiplication in a product of algebras is componentwise, so the factors evolve independently. The projection of to a factor is a compact subgroup of ; averaging a -Hermitian form on over it gives a basis in which it lies in , or . This parallels the splitting of a representation of a compact group into irreducible blocks [30]. □
Proof of Corollary 1. By Proposition 1, . Since , the semisimple algebras of dimension at most three are products of copies of and , which are commutative; then is abelian and so is its quotient . In dimension four the semisimple algebras are , , , and , of which only the last two are non-commutative, and both track non-abelian groups (SM S6). □
What “numbers” counts. Corollary 1 counts the dimension of the algebra, which is what the parallel scan multiplies. A matrix channel can store less: left multiplication acts on each column separately, so it may keep a single column .
Lemma S4 (Column states). Let be compact and have trivial stabilizer in . Then the channel storing tracks exactly the groups that the full channel storing tracks. For finite , a generic has trivial stabilizer.
Proof. The orbit map , , is a continuous bijection from a compact space to a Hausdorff one, hence a homeomorphism, and it maps the reachable states to the stored columns . A continuous readout of on is thus a continuous readout of on the compact orbit, and conversely; both extend to the whole space by Tietze. For finite , each fixes only the proper subspace , and finitely many proper subspaces do not cover . □
So a two-number state with real transitions tracks the dihedral groups; what it cannot avoid is composing transitions in the scan. A quaternion channel cannot be shrunk this way, since has no smaller faithful module, so for state and transitions both take four numbers.
The algebra ladder in detail
By Theorem 1, a channel over tracks exactly when is a quotient of a compact subgroup of by a closed normal subgroup. The ladder lists these quotients for the small algebras.
One real number. The compact subgroups of are and , so a real channel tracks the trivial group or , parity. Positive real channels (Mamba-1, Mamba-2) have only and track nothing; allowing adds one bit [13].
Complex numbers. The compact subgroups of are the groups of -th roots of unity and the circle ; their quotients are cyclic groups and the circle. A complex channel therefore tracks exactly counting modulo and continuous phases. A layer of complex channels is one channel over , still commutative: it tracks every finite abelian group with enough channels, as a product of cyclic groups, and no other finite group, at any width.
real matrices. Averaging an inner product conjugates every compact subgroup of into , whose closed subgroups are the cyclic groups , the dihedral groups (the symmetries of a regular -gon), and . A channel over therefore tracks the dihedral groups and their quotients, the first non-abelian groups on the ladder.
Quaternions. The norm is multiplicative and the only compact subgroup of is , so every compact subgroup of lies in the unit quaternions . The closed subgroups of are, up to conjugacy, the cyclic groups, the binary dihedral groups (with ), the binary tetrahedral, octahedral and icosahedral groups , , of orders 24, 48 and 120, the circle , its normalizer , and itself [30, 44]. Each finite one contains except the cyclic groups of odd order, and modulo they give the rotation groups of 3D space: , , and the rotations of the Platonic solids, (tetrahedron), (cube, die) and (icosahedron). A quaternion channel therefore tracks and the binary groups with a readout that reads the sign, and , , , and with one that ignores it. is not itself a subgroup of , which contains a single element of order two, so it can only be tracked through its cover .
needs more. We show that no layer of complex and quaternion channels side by side tracks , however wide. Say that a finite group is a section of a compact group if for a closed subgroup and a closed normal subgroup . By Theorem 1, a channel over tracks only if is a section of the compact group ; for the compact subgroups lie in .
Lemma S5. If is a section of a product of compact groups, it is a section of or of .
Proof. Let , and let , a closed normal subgroup of , which we identify with a subgroup of . Its image in is a normal subgroup of , hence , or . If it is , then is a section of . If it is , then and is a quotient of which is isomorphic to the projection , a closed subgroup of . If it is , let , so that . Conjugation by acts on through alone, and it preserves and ; so the compact group normalizes and and acts on by automorphisms. This action agrees with the conjugation action of on its normal subgroup , which realizes every automorphism of , since . The kernel of is closed (it is cut out by finitely many conditions, one per element of ), so is a section of . □
Lemma S6. is not a section of or of .
Proof. Sections of are abelian. A finite quotient of a closed subgroup has open in , so contains the identity component of . For or the quotient is then trivial, and for the normalizer of it has order at most two. For finite , requires ; the cyclic and binary dihedral groups are solvable, and the only other candidate is , of order 120, whose quotients are , and , none of them ( has a single element of order two, has many). □
By induction on the number of factors, Lemmas S5 and S6 show that is not a section of : no width of complex and quaternion channels tracks it Figure 1(f). Concurrent work [20] reaches a related exclusion through group laws satisfied by products of and heads; the argument here uses only the outer automorphism of . does fit in , sixteen real numbers: it embeds in as the permutation action on the four-dimensional space orthogonal to together with the sign on a fifth axis, which has determinant one; its preimage in , the compact group of unitary quaternion matrices, is a double cover read with a sign-invariant readout. It also fits, without a cover, in real matrices, which permute the five corners of a regular 4-simplex. With depth, five numbers suffice (Proposition 2): a sign channel beneath a quaternion channel.
Covers keep transitions small: through its cover , is tracked by one quaternion, four numbers per transition and of state, while the smallest faithful real representation of needs matrices (9 numbers per transition, 3 of state) and the permutation representation ones (25 per transition, 5 of state) [19].
Proof of Proposition 2
Example. For the six symmetries of a triangle, a first layer tracks whether an odd number of reflections has occurred (a single sign). A second, complex layer tracks the rotation, turning by or according to that sign, since after a reflection every later rotation is seen in a mirror. Each layer commutes; the stack does not. The same works for any group that can be taken apart one commutative piece at a time: the solvable groups, whose derived length counts the pieces.
Setup. Layer has state in a commutative algebra and transitions in a compact abelian group ; reading multiplies by , where collects the states of the layers below. Let be the derived series, .
Proof of “if”. Let . For fix a set of representatives of in , containing . Every is uniquely with . Reading sends to : write with , , then , and so on, so that . In the abelian group , the class of is the class of multiplied by the class of (with ), and depends only on and . Layer stores the class of in the finite abelian group , represented faithfully by roots of unity in a few complex channels, and multiplies it by the image of , a function of the symbol and of the previous states of the layers below. All layers have finitely many reachable states, and the readout maps the joint state to , a function on a finite set, extended continuously. Hence the stack tracks .
Proof of “only if”. Let be the finite set of reachable joint states of layers for . Each symbol acts on by an injective map, since every layer multiplies by an invertible element given the layers below, so by a permutation of the finite set . Let be the group of permutations of generated by the symbols, and the closure of the monoid generated by the symbols acting on , inside the compact group of maps with and . By Lemma S1, is a compact group. Forgetting the top layer is a homomorphism whose kernel consists of maps , which multiply pointwise in the abelian group and so form an abelian group. By induction, is solvable of derived length at most ; for , is a quotient of a subgroup of , abelian. The state after a word is the image of the initial state under the corresponding element of , a continuous function of that element, so the argument of Theorem 1(i) applies with in place of : the answer defines a continuous homomorphism from onto . A quotient of a group of derived length at most has derived length at most .
Why the finiteness assumption. The argument needs a compact group of joint transformations before taking the quotient. If the layers below take a continuum of values, the maps of the upper layers range over functions of a continuous state, and the closure of those generated need not be compact; a group onto which a mere submonoid maps need not be solvable (free monoids embed in metabelian groups). Whether the bound holds without the assumption is open. It holds in every model in this paper, where the lower layers are sign or snapped complex channels.
Consequences. and have derived length two and three. and are not solvable. The bound agrees with circuit-complexity results [12, 14]: the word problems for and are -complete [27], while those of solvable groups are not believed to be. The two-layer model is the same construction with a non-commutative top layer: the sign channel tracks , and the quaternion layer multiplies by a lift of into , read with a sign-invariant readout. Two-layer semidirect cascades of this kind for also appear in concurrent work [20]; ours uses one real and one quaternion channel, five numbers in all.
HyperSSM: parametrization, cost and stacking
The exponential. Writing splits a step into fading () and turning (), as SSMs write . gives pure turning, the tracking regime; raising lets a channel forget. For complex channels, gives , exactly a diagonal SSM channel. For quaternion channels, squares to , and
Without decay this is a 3D rotation by angle about . If is confined to one axis, all transitions commute and the channel is complex again. With skew-Hermitian the same recipe reaches every bounded transition of the complex and quaternion blocks of Proposition 1, whose unitary groups are connected.
Real channels. The exponential of a skew-symmetric matrix is a rotation, never a reflection, so the transition of a real channel, and every odd permutation in , are out of its reach. HyperSSM gives real channels a learned sign. A smooth relaxation such as does not work: the bounded real transitions are two points, so changing a sign means passing through , where the state is erased, and any decays over long sequences. A real channel is therefore exactly in the forward pass, in training and at test, with the gradient of in the backward pass (a straight-through estimator). This uses nothing about the task, since are the only bounded real transitions; it plays the role of the hardmax of PD-SSM [19]. Complex and quaternion transitions need no such step: their bounded transitions form connected groups, which a continuous parametrization covers with no decay.
Cost and readout. Steps combine by Eq. (1), so all prefix states follow from the same scan; a quaternion product costs 16 real multiplications against 4 for a complex one. HyperSSM offers a raw readout of and a sign-invariant readout of the ten entries of for a quaternion channel. Cheap complex channels serve counting, position and periodicity; quaternion or matrix channels serve non-commuting operations. A real sign channel beneath a quaternion layer tracking tracks with 5 numbers of state rather than 16, by the construction of Proposition 2.
Stacking, inputs and dense blocks. (i) In a stack, the generator of a layer is bilinear in the input and in the characters of the layer below at the previous step, , where is the readout’s feature map: for complex channels and for sign-invariant quaternion ones. This is the transition of Proposition 2; since characters span the functions on a finite group, it is fully expressive while staying linear. (ii) Transitions may depend on the previous token as well as the current one, as through Mamba’s short convolution. (iii) A channel over holds a vector of and multiplies it by a general complex matrix, which may be singular; it is the costliest rung, used only where a smaller one does not train. With channels over , and , a HyperSSM layer keeps the work, depth and constant memory per token of a diagonal SSM; a dense block adds a factor to the scan.
Benchmark protocol, training and full results
Protocol. Following [19, 26]: training sequences of length 3 to 40, loss on the final token only, validation on lengths 40 to 256, best checkpoint. Tasks: the four regular languages of [45] (parity; even pairs; navigation on a cycle of five positions; arithmetic modulo 5 with multiplication before addition and subtraction) and the word problems of and with generators: two standard ones and random group elements, which raise the connectivity of the automaton [19]. On the group word problems we also test on lengths 256 to 1000, 25 times the training length, on fresh sequences not used for checkpoint selection. Baseline numbers are those reported in [19]; its extra generators are random and unpublished, so our and tasks match in size but not exactly.
Model choice. One real channel with a sign for parity (, whose irreducible representation is real); one complex channel for cycle navigation (); one complex channel on pairs of consecutive tokens for even pairs, since the first and last symbols agree exactly when the number of changes between neighbours is even; one quaternion channel with the sign-invariant readout for ; a real sign channel beneath a quaternion channel for . Readouts are linear in the characters of the top layer.
Nothing about the task’s group is supplied. Real channels are in the forward pass in training and at test. Complex channels are trained continuously. Training on lengths up to 40 pins a phase only to within about the gap between answers divided by 40, so a continuous phase that is right on the training lengths drifts beyond them. By Theorem 1 a tracking channel’s transitions form a finite group, and the finite groups of unit complex numbers are the -th roots of unity. Each complex channel is therefore snapped to the smallest (searched up to 64) whose roots of unity give the best accuracy on the validation lengths, the set already used for checkpoint selection; is read off the trained model, never given. The same snapped score selects checkpoints during training, and after the snap the readout is fine-tuned on the snapped states, so the model evaluated is the model last trained. Quaternion channels and the dense block are continuous throughout, and no transition is rounded at evaluation.
What training needs. First, a minimal channel with a linear readout. phase channels read linearly give Fourier features of the sequence, which can fit any labelling of the lengths up to once : a wide or nonlinear readout can memorize the training lengths instead of learning the group. With sixteen complex channels and a small MLP, parity fit its training data and stayed at chance beyond it; one real channel with a linear readout learned it exactly. This is Definition 1 at work. Second, a short-length curriculum within the protocol: lengths 3 to 5 for the first 30% of training, then a ramp to 40. Third, restarts: a run either finds the group or stays near chance, so an attempt still far from exact halfway through training is restarted, up to 8 times for and and 20 times for the one-channel tasks. No layer is pretrained or given extra supervision; for , the sign channel finds the abelianization of Proposition 2 from the final answers alone, trained together with the quaternion layer above it. This works because the sign is exactly in the forward pass; with , the signs stay where they started.
Additional results. The snap found for even pairs and for cycle navigation in every run, without being told either. Before the snap, the same trained models score near chance beyond the training lengths, at 49% and 17% on lengths 40–256: they had learned the group, and the continuous phases hid it. On the group tasks, the quaternion channel is continuous and the sign and quaternion layers of are trained together. PD-SSM is exact up to 8 generators of . The best run of every group task stays exact on lengths 256–1000. Continuous channels drift slowly in some other runs (mean over runs on 256–1000: 94.8–99.9% for , 92.3% for with 32 generators); not every run of with 8 generators finds the group.
Modular arithmetic: representation versus optimization
The automaton of modular arithmetic is not a group, but its pieces are simple: the nonzero residues under multiplication form , generated by 2; sums form ; and multiplying by zero or starting a new term is a reset [39]. Two commutative layers suffice: a complex channel tracking the current product, reset at each new term and sent to zero by a factor 0, beneath a complex channel tracking the sum and turning, at each +, − or =, by an angle read linearly from the characters of the first. This is three real numbers of state, and, set by hand, it is exact on every length up to 1000. To learn it, training must discover the discrete logarithm mapping each residue to its rotation, the two layers must agree on it, and the absorbing zero dominates the training signal. Here earlier models need large dense blocks: in [26], block-diagonal transitions improve as blocks grow, from 37.7% with blocks of two to 76.6% with blocks of sixteen, and the best structured model adds a dense block. One dense channel on pairs of consecutive tokens reaches on lengths 40–256 over 5 runs, above PD-SSM (96.2 3.4%) and second only to the LSTM (99.9 0.1%). Unlike the smaller channels, its transitions are general complex matrices, with no finite group to snap to. A small exact memory exists; finding it by gradient descent is open.
Gyroscope experiment: setup
A gyroscope reports the angular velocity of a body in its own frame, and the rotation between two times is in quaternions. Composing the same measured rotations in reverse order gives a median error of 41° after 2 s, against 1° in the right order.
Data. BROAD [32]: 39 recordings of one inertial sensor at 286 Hz with orientation from optical motion capture, averaged to 57 Hz, split into training (28), validation (3) and test (8); the test recordings are those that rotate. A model reads only the gyroscope readings in a window and predicts the rotation over it, with loss on the final step, which ignores the sign of a quaternion. Training windows are 1–2 s; test windows 1 s to 2 min.
Models. HyperSSM is one quaternion channel with generator , 12 parameters in total. Baselines see the same inputs and are trained the same way: a selective complex diagonal SSM with 64 channels and an MLP readout (the memory of Mamba-3), and an LSTM with 128 units. Two untrained references: integrating the raw readings, and predicting no rotation.
Detailed results. Complex diagonal SSM vs no rotation: 32.5° vs 43.6° at 1 s, and no better at every longer length. LSTM: 3.2° at 1 s, 32° at 10 s, worse than no rotation from 30 s on. HyperSSM vs integration: 7.5° vs 8.6° at 30 s, 26.5° vs 30.9° at 2 min, spread at most 2.5° over seeds. and are the sensor’s scale, axis misalignment and bias, and can be read off directly. Nothing in the architecture is specific to inertial sensing: the general HyperSSM layer with the algebra the theory prescribes is the physical integrator.
Qubit experiment: setup
Task. A qubit starts in ; a random sequence of gates from (Clifford) or (Clifford+) is applied, and the label is the Bloch vector of the final state, from which the Born rule gives every outcome probability, . As Bloch-sphere rotations, turns by about , by about and by about ; global phases are irrelevant. Labels were checked against an explicit simulation with unitaries (agreement to ). Training circuits have 1–40 gates, with 1–5 gates for the first 30% of training; test circuits have 1 to 1000 gates.
Imperfect gates. Each gate is replaced, once and for all, by a rotation whose angle is 2% short and whose axis is tilted by 2° in a random direction. Labels use these gates; the models see only the gate names; the reference simulator uses the ideal gates.
Models. HyperSSM is one quaternion channel in the tracking regime, with one learned per gate, and a readout linear in the ten entries of , which gives the Bloch vector exactly since its components are quadratic in . The baselines are a three-layer selective complex diagonal stack (32 channels per layer, MLP blocks between layers), the depth Proposition 2 requires for the Clifford group, and an LSTM with 128 units. All models use the loss and the best of 8 short starts by training loss. The error is the angle between and .
Decoding the gates. The readout fixes the Bloch sphere only up to a common rotation, so the learned gates are compared with the true ones through frame-independent quantities: each gate’s rotation angle and the angles between gate axes. In all three settings these agree with the true gates to three decimal places, including the imperfect gates (: 176.400°, : 88.200°, : 44.100°; axes – 46.643°, – 44.580°, – 2.071°).
Figure S1. Qubit, all three settings. Median angle between predicted and true Bloch vectors against circuit length; training circuits 1–40 gates (shaded). HyperSSM is below the bottom of the axis ( degrees) at every length in every setting. With ideal gates the simulator is exact and is not shown.
Protein backbone experiment: setup
Data. X-ray structures from the Protein Data Bank [35] with resolution at most 1.8 Å, one protein entity and 150–800 residues; 600 entries were sampled, of which 554 were parsed. Backbone atoms N, C, C are taken from the first model (alternate location blank or A), and chains are cut into segments wherever the peptide bond C–N is missing or longer than 1.7 Å. Entries are split into training (442 entries, 147,661 residues), validation (55; 18,168) and test (56; 18,071).
Frames and target. Residue has frame with along C →C, in the N–C–C plane, and . The target is , with . For rigid bond geometry,
with constant rotations and fixed unit axes , and torsions , , .
Tokens and model. A stretch of steps becomes tokens : for each step, a bond token, , a bond token, , a bond token, ; then a final bond token; eight types in all, with for bond tokens. HyperSSM is the tracking-regime channel
where the conjugate readout turns the left products of the recurrence into the chain order of Eq. (9) (the sign of is learned). Setting , and reproduces ideal geometry exactly, so the model is exact for rigid geometry. The input term is zero: each token acts only through its transition. The baselines see the same tokens with features (one-hot type, , , ): a selective complex diagonal SSM with 64 channels and an MLP readout, and an LSTM with 128 units.
Training. Loss 1 — , error 2 , both blind to the sign of . Stretches of 1–16 residues, with 1–2 for the first 30% of training; 3000 steps; best checkpoint by the median error on validation stretches of 64 residues. Products of rotations have local minima: fitted to exact ideal-geometry targets, HyperSSM reaches 0.0° to 0.3° from 3 of 8 random starts and about 32° from the others. Every model therefore tries 8 initializations for 300 steps on 1–2 residues and keeps the one with the lowest training loss.
References. Ideal geometry rebuilds the backbone from the torsions with the bond lengths and angles of Engh and Huber [36] (N–C 1.458 Å, C–C 1.525 Å, C–N 1.329 Å; N–C–C 111.2°, C–C–N 116.2°, C–N–C 121.7°) and reads off the relative frame; the wrong-order reference multiplies its per-residue rotations in reverse.
Results are in Table S1; the s.d. over seeds is at most 0.3° for HyperSSM up to 64 residues.
| residues | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 |
| no rotation | 106.2 | 133.5 | 107.5 | 128.4 | 140.0 | 132.0 | 129.6 | 136.1 | 129.5 |
| ideal geometry | 2.7 | 4.0 | 6.3 | 9.2 | 14.4 | 20.4 | 26.5 | 46.0 | 63.7 |
| ideal, wrong order | 2.7 | 38.3 | 58.2 | 86.7 | 95.6 | 99.7 | 108.5 | 119.6 | 131.5 |
| HyperSSM | 2.6±0.0 | 3.7±0.0 | 5.9±0.0 | 8.3±0.1 | 12.1±0.2 | 17.8±0.2 | 23.7±0.3 | 36.2±1.0 | 49.3±0.3 |
| C diagonal | 8.5±2.2 | 25.9±8.2 | 104.6±27.9 | 122.0±12.6 | 126.5±5.1 | 135.9±0.5 | 135.0±1.6 | 131.0±2.9 | 130.4±3.0 |
| LSTM | 7.7±0.8 | 14.8±1.5 | 106.2±28.3 | 126.5±8.7 | 132.0±5.3 | 136.9±1.1 | 132.8±2.7 | 131.3±2.2 | 132.9±1.9 |
Table S1. Protein backbone. Median orientation error (degrees) of residue in the frame of residue against the number of residues between them, on held-out proteins; mean over 3 seeds.
Reading trained models: proof of Proposition 3 and procedures
Why the weights are legible. A probe trained on hidden states can find information the model does not use, and can miss information stored nonlinearly [46]. In a tracking channel neither problem arises. Theorem 1 fixes what the state is (an element of ), Proposition 1 fixes its coordinates up to a change of basis within each block, and the readout’s invariance fixes what is ignored (). Interpreting the model reduces to identifying a homomorphism , a finite problem when is finite. This is the recurrent counterpart of the universality observed in networks trained on group operations, which were found to compose elements through the group’s representations [47], and in networks trained on modular addition, which were found to rotate a clock [48]. There it was an empirical finding about what training happened to produce; for a linear recurrent memory that tracks, Theorem 1 says it cannot be otherwise, and a complex channel is that clock by construction.
Proof of Proposition 3. (i) The pair evolves deterministically: reading sends to , where is the transition chosen by and, in a stack, by the states of the lower layers held in . If states take values in a finite set , this is a finite automaton on , and the pairs reached by nonempty words are found by breadth-first search from in at most steps. The model tracks at every length if and only if the readout gives the correct answer on each of these pairs, since every word of every length ends in one of them. For a single channel whose transitions generate a finite group , the reachable states lie in , because a submonoid of a finite group generated by its elements is the subgroup they generate. (ii) Let be the trained transitions along a word and those of the certified model, with and all norms at most one, so that decay () is allowed. Telescoping,
so . For the state lies in the ball of radius around , inside the decision region of the correct answer by (i). For a stack, the same bound applies to the top channel when the layers below are exact, as the sign channel is. □
Guarantee versus observation. The horizon is a guarantee, not a prediction of failure. Errors that are systematic, such as one generator turning slightly too fast, add linearly; errors that differ across symbols partly cancel, so a run may stay exact well beyond . Comparing the two over runs tests whether the slow drift of the continuous runs (SM S9) is explained by the distance of their transitions from an exact group.
Decoding a quaternion transition. A unit quaternion is a rotation by about ; the absolute value makes the reading independent of the decoder that ignores signs. In , elements of order 2, 3, and 5 act on an icosahedron as rotations by 180°, 120°, and 72° or 144°, and the axes of any two elements meet at an angle between symmetry axes of one icosahedron.
Distance to an exact model. For analysis only, the permutation of each symbol is used; it is never given in training. Fix an exact lift of into the 120 unit quaternions of the binary icosahedral group, for each of the two inequivalent embeddings of in the rotation group (they are exchanged by , which swaps 72° and 144°). Then
minimized over unit quaternions (three parameters, from several random starts). For , the sign channel is compared with the parity of each generator; the top channel has one transition per symbol and sign below, and the exact model also depends on the coset representative of Proposition 2, one of 60 odd permutations, searched exhaustively. The radius follows from the readout: for an argmax over logits linear in , with margin on the exact states, , where bounds the Lipschitz constant of the logit differences on the unit ball.
Gyroscope. The exact integrator is , that is and in (Eq. (8)). The learned departs from it by a symmetric part (axis scale factors and cross-axis coupling) and an antisymmetric part (a small rotation between sensor and body frames), and is the gyroscope bias up to the same scale. These can be compared with a calibration obtained independently of the model, for example the mean reading during rest segments of the recordings.
Scope and extensions
The theory covers linear recurrences, bounded transitions and exact readouts. Most sequences also overwrite memory, and by the Krohn–Rhodes theorem [39] every finite automaton is built from groups and resets, suggesting that stacks of such channels with resets can recognize all regular languages; modular arithmetic (SM S9 S9.1) is an example. Many physical processes, such as rigid-body rotations, as with the gyroscope, qubit gates, holonomies and braids of anyons, are ordered products in the same groups. So are the frames of a protein backbone, and with translations added, rigid motions in general, which dual quaternions compose in a single associative algebra. The certificate of Proposition 3 extends to any model whose states, after projection, take finitely many values; whether channels inside large hybrid models stay close enough to an exact group to be read this way is open.
References
- [1]A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, Attention is all you need, in Advances in Neural Information Processing Systems (2017).arxiv.org/abs/1706.03762
- [2]A. Gu, K. Goel, and C. Ré, Efficiently modeling long sequences with structured state spaces, in International Conference on Learning Representations (2022).arxiv.org/abs/2111.00396
- [3]A. Orvieto, S. L. Smith, A. Gu, A. Fernando, C. Gulcehre, R. Pascanu, and S. De, Resurrecting recurrent neural networks for long sequences, in Proceedings of the 40th International Conference on Machine Learning (2023).arxiv.org/abs/2303.06349
- [4]A. Gu and T. Dao, Mamba: Linear-time sequence modeling with selective state spaces, in Conference on Language Modeling (2024).arxiv.org/abs/2312.00752
- [5]T. Dao and A. Gu, Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality, in Proceedings of the 41st International Conference on Machine Learning (2024).arxiv.org/abs/2405.21060
- [6]A. Lahoti, K. Y. Li, B. Chen, C. Wang, A. Bick, J. Z. Kolter, T. Dao, and A. Gu, Mamba-3: Improved sequence modeling using state space principles, in International Conference on Learning Representations (2026) arXiv:2603.15569.
- [7]O. Lieber, B. Lenz, H. Bata, G. Cohen, J. Osin, I. Dalmiedos, E. Safahi, S. Meirom, Y. Belinkov, S. Shalev-Shwartz, O. Abend, R. Alon, T. Asida, A. Bergman, R. Glozman, M. Gokhman, A. Manevich, N. Ratner, N. Rozen, E. Shwartz, M. Zusman, and Y. Shoham, Jamba: A hybrid transformer-mamba language model, arXiv preprint arXiv:2403.19887 (2024).arxiv.org/abs/2403.19887
- [8]NVIDIA, Nemotron-H: A family of accurate and efficient hybrid Mamba-transformer models, arXiv preprint arXiv:2504.03624 (2025).
- [9]Falcon-LLM Team, Falcon-H1: A family of hybrid-head language models redefining efficiency and performance, arXiv preprint arXiv:2507.22448 (2025).
- [10]A. N. Shikder, R. Dey, S. Auddy, T. Liboni, A. N. Busch, A. Powanwe, J. Minač, R. C. Budzinski, and L. E. Muller, An explicit operator explains end-to-end computation in the modern neural networks used for sequence and language modeling, arXiv preprint arXiv:2604.20595 (2026), arXiv:2604.20595 [cs.NE].arxiv.org/abs/2604.20595
- [11]A. Gu, A. Gupta, K. Goel, and C. Ré, On the parameterization and initialization of diagonal state space models, in Advances in Neural Information Processing Systems (2022).arxiv.org/abs/2206.11893
- [12]W. Merrill, J. Petty, and A. Sabharwal, The illusion of state in state-space models, in Proceedings of the 41st International Conference on Machine Learning (2024).arxiv.org/abs/2404.08819
- [13]R. Grazzi, J. Siems, A. Zela, J. K. H. Franke, F. Hutter, and M. Pontil, Unlocking state-tracking in linear RNNs through negative eigenvalues, in International Conference on Learning Representations (2025).arxiv.org/abs/2411.12537
- [14]Y. Sarrof, Y. Veitsman, and M. Hahn, The expressive capacity of state space models: A formal language perspective, in Advances in Neural Information Processing Systems (2024).DOI
- [15]M. Shakerinava, B. Khavari, S. Ravanbakhsh, and S. Chandar, The expressive limits of diagonal SSMs for state-tracking, in International Conference on Learning Representations (2026).arxiv.org/abs/2603.01959
- [16]G. Heo, T. Nogtiaoacо, K. Irie, S. J. Gershman, and B. L. Sabatini, Why depth matters in parallelizable sequence models: A Lie algebraic view, arXiv preprint arXiv:2603.05573 (2026).arxiv.org/abs/2603.05573
- [17]M. Arjovsky, A. Shah, and Y. Bengio, Unitary evolution recurrent neural networks, in Proceedings of the 33rd International Conference on Machine Learning (2016).arxiv.org/abs/1511.06464
- [18]J. Siems, T. Carstensen, A. Zela, F. Hutter, M. Pontil, and R. Grazzi, DeltaProduct: Improving state-tracking in linear RNNs via Householder products, in Advances in Neural Information Processing Systems (2025).arxiv.org/abs/2502.10297
- [19]A. Terzić, N. Menet, M. Hersche, T. Hofmann, and A. Rahimi, Structured sparse transition matrices to enable state tracking in state-space models, in Advances in Neural Information Processing Systems (2025).
- [20]Z. Jia, Non-commutative Lie-algebraic state-space models: Finite-division variety laws, semidirect cascades, and gradient saddle escape, arXiv preprint arXiv:2610.00329 (2026), v5, 30 Oct 2026; v1 (29 Sep 2026) titled “Beyond Diagonal State Space Models: Exact Non-Abelian Group Tracking, Solvability Barriers, and Geometric Physical Manifolds”.arxiv.org/abs/2610.00329
- [21]S. De, S. L. Smith, A. Fernando, A. Botev, G. Cristian-Muraru, A. Gu, R. Haroun, L. Berrada, Y. Chen, S. Srinivasan, G. Desjardins, A. Doucet, D. Budden, Y. W. Teh, R. Pascanu, N. De Freitas, and C. Gulcehre, Griffin: Mixing gated linear recurrences with local attention for efficient language models, arXiv preprint arXiv:2402.19427 (2024).arxiv.org/abs/2402.19427
- [22]Z. Hu, N. Ahmadi Daryakenari, Q. Shen, K. Kawaguchi, and G. E. Karniadakis, State-space models are accurate and efficient neural operators for dynamical systems, arXiv preprint arXiv:2409.02321 (2024).
- [23]J. Zheng, W. Li, N. Xu, J. Zhu, X. Lin, and X. Zhang, Alias-free Mamba neural operator, in Advances in Neural Information Processing Systems (2024).DOI
- [24]G. Benton, M. Finzi, P. Izmailov, and A. G. Wilson, Learning invariances in neural networks from training data, in Advances in Neural Information Processing Systems, Vol. 33 (2020).
- [25]J. Yang, R. Walters, N. Dehmamy, and R. Yu, Generative adversarial symmetry discovery, in Proceedings of the 40th International Conference on Machine Learning, in Proceedings of Machine Learning Research, Vol. 202 (2023).arxiv.org/abs/2302.00236
- [26]B. Walker, L. Yang, N. Muça Cirone, C. Salvi, and T. Lyons, Structured linear controlled differential equations: Maximally expressive and parallel-in-time sequence models, in Advances in Neural Information Processing Systems (2025).
- [27]D. A. M. Barrington, Bounded-width polynomial-size branching programs recognize exactly those languages in NC¹, Journal of Computer and System Sciences 38, 150 (1989).DOI
- [28]G. E. Blelloch, Prefix Sums and Their Applications, Tech. Rep. CMU-CS-90-190 (Carnegie Mellon University, 1990).
- [29]E. Martin and C. Cundy, Parallelizing linear recurrent neural nets over sequence length, in International Conference on Learning Representations (2018).arxiv.org/abs/1709.04057
- [30]T. Bröcker and T. tom Dieck, Representations of Compact Lie Groups, Graduate Texts in Mathematics, Vol. 98 (Springer, 1985).DOI
- [31]T.-Y. Lam, A First Course in Noncommutative Rings, 2nd ed., Graduate Texts in Mathematics, Vol. 131 (Springer, 2001).
- [32]D. Laidig, M. Caruso, A. Cereatti, and T. Seel, BROAD—a benchmark for robust inertial orientation estimation, Data 6, 72 (2021).DOI
- [33]E. Nielsen, J. K. Gamble, K. Rudinger, T. Scholten, K. Young, and R. Blume-Kohout, Gate set tomography, Quantum 5, 557 (2021).DOI
- [34]J. Jumper, R. Evans, A. Pritzel, T. Green, M. Figurnov, O. Ronneberger, K. Tunyasuvunakool, R. Bates, A. Žídek, A. Potapenko, et al., Highly accurate protein structure prediction with AlphaFold, Nature 596, 583 (2021).DOI
- [35]H. M. Berman, J. Westbrook, Z. Feng, G. Gilliland, T. N. Bhat, H. Weissig, I. N. Shindyalov, and P. E. Bourne, The Protein Data Bank, Nucleic Acids Research 28, 235 (2000).
- [36]R. A. Engh and R. Huber, Accurate bond and angle parameters for X-ray protein structure refinement, Acta Crystallographica Section A 47, 392 (1991).DOI
- [37]J. Yim, B. L. Trippe, V. De Bortoli, E. Mathieu, A. Doucet, R. Barzilay, and T. Jaakkola, SE(3) diffusion model with application to protein backbone generation, in Proceedings of the 40th International Conference on Machine Learning (2023).arxiv.org/abs/2302.02277
- [38]J. L. Watson, D. Juergens, N. R. Bennett, B. L. Trippe, J. Yim, H. E. Eisenach, W. Ahern, A. J. Borst, R. J. Ragotte, L. F. Milles, et al., De novo design of protein structure and function with RFdiffusion, Nature 620, 1089 (2023).DOI
- [39]K. Krohn and J. Rhodes, Algebraic theory of machines. I. Prime decomposition theorem for finite semigroups and machines, Transactions of the American Mathematical Society 116, 450 (1965).DOI
- [40]A. Katharopoulos, A. Vyas, N. Pappas, and F. Fleuret, Transformers are RNNs: Fast autoregressive transformers with linear attention, in Proceedings of the 37th International Conference on Machine Learning (2020).arxiv.org/abs/2006.16236
- [41]S. Yang, B. Wang, Y. Zhang, Y. Shen, and Y. Kim, Parallelizing linear transformers with the delta rule over sequence length, in Advances in Neural Information Processing Systems (2024).arxiv.org/abs/2406.06484
- [42]J. Su, M. Ahmed, Y. Lu, S. Pan, W. Bo, and Y. Liu, RoFormer: Enhanced transformer with rotary position embedding, Neurocomputing 568, 127063 (2024).arxiv.org/abs/2104.09864
- [43]T. Parcollet, M. Ravanelli, M. Morchid, G. Linares, C. Trabelsi, R. De Mori, and Y. Bengio, Quaternion recurrent neural networks, in International Conference on Learning Representations (2019).arxiv.org/abs/1806.04418
- [44]J. H. Conway and D. A. Smith, On Quaternions and Octonions: Their Geometry, Arithmetic, and Symmetry (A K Peters, 2003).
- [45]G. Delétang, A. Ruoss, J. Grau-Moya, T. Genewein, L. K. Wenliang, E. Catt, C. Cundy, M. Hutter, S. Legg, J. Veness, and P. A. Ortega, Neural networks and the Chomsky hierarchy, in International Conference on Learning Representations (2023).arxiv.org/abs/2207.02098
- [46]K. Li, A. K. Hopkins, D. Bau, F. Viégas, H. Pfister, and M. Wattenberg, Emergent world representations: Exploring a sequence model trained on a synthetic task, in International Conference on Learning Representations (2023).arxiv.org/abs/2210.13382
- [47]B. Chughtai, L. Chan, and N. Nanda, A toy model of universality: Reverse engineering how networks learn group operations, in Proceedings of the 40th International Conference on Machine Learning (2023).arxiv.org/abs/2302.03025
- [48]N. Nanda, L. Chan, T. Lieberum, J. Smith, and J. Steinhardt, Progress measures for grokking via mechanistic interpretability, in International Conference on Learning Representations (2023).arxiv.org/abs/2301.05217



