arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2609.12259v1 [cs.LG] 10 Sep 2026

The Rank the Task Demands: A Causal Rank Law for Matrix Memories Trained on Group Composition

Samuel Larson Affiliation: Pebble ML Email: samlarson@pebbleml.com
Abstract

Matrix-valued memories make rank the natural budget of a learned representation: the number of independent directions a state spans bounds what it can bind, compose, and track. We report causal evidence, on a group-composition testbed trained under a hard single-state bottleneck with a fixed decoder that cannot launder rank, that gradient descent recruits precisely the rank the task’s algebra demands. A companion paper (Larson, 2026a) establishes the analogous recruitment and causal necessity pattern on a KK-pair associative-binding testbed, where exact recovery provably requires state rank at least KK; this paper inherits that instrument and extends the rank law from a scalar capacity bound to a representation-theoretic one. We train toward chosen minimal faithful reference representations embedded in larger matrices. On group-composition state tracking over five finite groups spanning the solvable/non-solvable divide, the recruited rank equals the group’s minimal faithful real representation dimension dmind_{\min} (Spearman ρ=0.9747\rho=0.9747, the design’s tie-capped maximum), the dimension-matched solvable/non-solvable pair S4S_{4}/A5A_{5} is statistically equivalent under a pre-registered test, and a pre-registered force-rank test separates a guaranteed similarity ceiling from empirical recovery at the target dimension: one rank below dmind_{\min}, cosine similarity is capped by the target’s tied unit spectrum at (dmin−1)/dmin≤0.894\sqrt{(d_{\min}{-}1)/d_{\min}}\leq 0.894, below the 0.90.9 threshold in every group by construction, with observed cells at 86–95% (mean 91%) of that ceiling; at dmind_{\min}, not guaranteed a priori, recovery clears the pre-registered anchor-relative bar at four seeds per group in all five groups, both marquee members included. Within this testbed, measured effective rank tracks representation dimension; the matched-dimension S4S_{4}/A5A_{5} comparison establishes equivalence within the pre-registered tolerance.

Keywords: effective rank, fast weights, group representations, state tracking

1 Introduction

A matrix-valued memory represents by spanning: whatever a d×dd\times d state binds or tracks, it holds in the geometry of its column space, and rank is the budget it spends. Prior work treats this budget descriptively (Nazari and Rusch, 2026; Sun et al., 2026) or through hand-built constructions (Nichani et al., 2025); neither answers what a geometric account of learned representations needs answered: when a task’s algebra fixes a minimal representational dimension, does gradient descent recruit exactly that dimension, and is it causally load-bearing?

We answer both halves affirmatively under one discipline: a hard single-state bottleneck (the decoder reads only one matrix ZZ, verified by a gradient blank-out test) and recovery at a cosine-similarity threshold of 0.9 (scoring against the true continuous target, never argmax over a codebook, which would let a rank-1 state recover on the order of dd associations (Nichani et al., 2025)). Section 2 includes the provable KK-pair-binding foundation. The headline is group-composition state tracking, where representation theory supplies the ground truth: across five finite groups spanning the solvable/non-solvable divide, the minimal faithful real representation dimension dmind_{\min} predicts the recruited rank almost perfectly (Section 3), a matched-dimension solvable/non-solvable pair lands statistically equivalent (Section 4), and a pre-registered force-rank razor (Section 5) checks a geometrically guaranteed similarity ceiling and confirms sufficiency in all five groups: at rank dmin−1d_{\min}{-}1, the maximum cosine similarity is below the 0.90.9 threshold ((dmin−1)/dmin≤0.894\sqrt{(d_{\min}{-}1)/d_{\min}}\leq 0.894), and dmind_{\min} suffices at four seeds per group in every group, which is not guaranteed a priori. Correcting the target’s padding (Appendix D) recovers the razor’s sufficiency result.

2 Tasks, Models, Instrument, and the Binding Foundation

Tasks. In the binding task, each episode presents KK key–value pairs. The encoder writes one state Z∈ℝd×dZ\in\mathbb{R}^{d\times d}. Prediction is the literal unbind Z​kjZk_{j}. rec​@​0.9\mathrm{rec}@0.9 is the fraction of queries with cosine to the true value above 0.9. The group task is the word problem of a finite group GG. A word w=gi1⋯giLw=g_{i_{1}}\cdots g_{i_{L}} is drawn as a random walk on GG’s Cayley graph (L∼U​{1,…,8}L\sim\mathrm{U}\{1,\dots,8\}). It must map to ρG(gi1⋯giL)\rho_{G}(g_{i_{1}}\cdots g_{i_{L}}) under a pinned orthogonal reference representation of dimension dmin​(G)d_{\min}(G), the minimal faithful real representation dimension. The groups are S3,S4,A5,S5,A6S_{3},S_{4},A_{5},S_{5},A_{6} with dmin=2,3,3,4,5d_{\min}=2,3,3,4,5 (Appendix A). The first two are solvable, and the rest are not. Non-solvable word problems are NC1\mathrm{NC}^{1}-complete (Barrington, 1989; Barrington and Thérien, 1988). dmind_{\min} is a different, representation-theoretic axis. The design uses S4S_{4}/A5A_{5}, matched at dmin=3d_{\min}=3 with opposite solvability, as the dissociation pair.

We study learning under direct supervision toward a chosen minimal faithful representation, embedded in a larger matrix. The target specifies this representation; the rank requirements studied here apply to this target and scoring setup, rather than to storage across all possible encodings or decoders.

Model. A Transformer encoder with dstated_{\mathrm{state}} learned row-reader queries maps each word to a single state Z⁡(w)∈ℝdstate×dstateZ(w)\in\mathbb{R}^{d_{\mathrm{state}}\times d_{\mathrm{state}}}, dstate=dmin+2d_{\mathrm{state}}=d_{\min}+2, leaving spare dimensions so over-recruitment is expressible. The target embeds the reference block-diagonally (ρG​(⋅)⊕I2\rho_{G}(\cdot)\oplus I_{2} in the observational arm, ρG​(⋅)⊕0\rho_{G}(\cdot)\oplus 0 in the causal-razor arm; Appendix D). The loss is cosine distance. The fixed readout has no learned weights that could launder rank, and the decoder reads only ZZ (blank-out verified). Convergence bars pinned the per-group step budgets (8k–40k) before any decisional cell ran, as recorded in the design document’s pre-registration.

Instrument. The learned state is defined only up to scale and an orthogonal change of basis (a Schur intertwiner): Z(w)≈cQ[ρG(w)⊕⋅]Q⊤Z(w)\approx c\,Q\,[\rho_{G}(w)\oplus\cdot\,]\,Q^{\top}. We estimate the model’s own dominant dmind_{\min}-subspace UU from the SVD of the centered covariance of Z⁡(w)Z(w) over held-out words. We measure restricted effective rank as the entropy effective rank of U⊤​Z​(w)​UU^{\top}Z(w)U. We score degauged recovery as cosine after fitting (c,Q)(c,Q) on a fitting split and evaluating on a disjoint split (50 fresh words per cell, 30 to fit and 20 scored, so rec​@​0.9\mathrm{rec}@0.9 moves in steps of 0.05), reported as rec​@​0.9\mathrm{rec}@0.9. Centering is load-bearing (Appendix D). Rank is invariant under the fitted gauge, so a rank-deficient state cannot be degauged into a full-rank one. For force-rank cells, the pre-registration pinned the conservative full-QQ Procrustes variant (crosscheck rec​@​0.9\mathrm{rec}@0.9) as the decisional readout. The provable foundation (binding).

Fact 1.

If Z​kj=vjZk_{j}=v_{j} exactly for KK bindings with linearly independent keys and values, then Z​Kmat=VmatZK_{\mathrm{mat}}=V_{\mathrm{mat}}, so K=rank⁡(Vmat)≤rank⁡(Z)K=\operatorname{rank}(V_{\mathrm{mat}})\leq\operatorname{rank}(Z).

The bound is classical (Kohonen, 1972; Anderson, 1972), holding only under exact continuous recovery. On this binding testbed, a companion paper (Larson, 2026a) establishes that gradient descent recruits effective rank tracking KK. The same paper shows that the recruited rank is causally necessary through a train-time force-rank step at the provable bound. It also shows that the trained operator composes exactly under repeated self-application. The composition-stability probe is periodicity-equivalent to depth 5 under the single 8-cycle target (Liu et al., 2023) (Appendix H). This paper inherits that instrument and carries only the group-composition program.

3 The Rank Law on Group Composition, Observed

Figure 1: Recruited rank follows representation dimension across the five tested groups. Each point is one seed’s restricted effective rank on the group word problem vs. its group’s dmind_{\min}. Filled markers denote solvable groups; open markers denote non-solvable groups. Small horizontal offsets separate seeds at the same categorical value. Shading marks the pre-registered [0.7,1.3]⋅dmin[0.7,1.3]\cdot d_{\min} band, and the dashed line marks the identity. All 19 seeds are in band, and S4S_{4}/A5A_{5} coincide at dmin=3d_{\min}=3. The lower panel plots per-seed S4−A5¯S_{4}-\overline{A_{5}} rank differences at matched dmin=3d_{\min}=3 against the pre-registered ±0.5\pm 0.5 rank-unit equivalence margin. Shading marks the margin. The vertical lines mark zero difference and the observed mean difference, +0.019+0.019 (Section 4).

Per-group mean restricted effective rank lands within 4.9–10.2% of dmind_{\min} at every group, and all 19 seeds sit inside the pre-registered [0.7,1.3]⋅dmin[0.7,1.3]\cdot d_{\min} band (Figure 1; means and per-seed values in Appendix B).

Spearman correlation between recruited rank and dmind_{\min} is ρ=0.9747\rho=0.9747, the maximum this design can express, since the S4S_{4}/A5A_{5} tie caps ρ\rho below 1; under the exact permutation null, P⁡(ρ≥0.8)=8/120≈6.7%P(\rho\geq 0.8)=8/120\approx 6.7\% (0.8 is pre-registered, below the next achievable level 0.87), so by pre-registration this leg is corroborating rather than independently decisive: the band’s upper half is non-binding by construction, and a disclosed length-robustness split is reported alongside it (Appendix D). The dimension-matched pair S4S_{4}/A5A_{5} is tested directly in Section 4.

4 Equivalence at Matched Dimension

The design uses S4S_{4}/A5A_{5} as its contrast. The groups share dmin=3d_{\min}=3 but lie on opposite sides of the solvability divide, the axis on which expressivity theory separates state-tracking architectures (Merrill et al., 2024; Grazzi et al., 2025; Siems et al., 2025). This matched-dimension comparison tests whether measured effective rank is equivalent across the selected pair despite their opposite solvability. Siems et al. (2025) provide the precursor observation (§5.2): S4S_{4} and A5A_{5} both extrapolate with two Householder reflections and keys of size 3. They attribute this to the groups’ embedding in SO⁡(3)\mathrm{SO}(3), and their PCA of the trained keys is three-dimensional. The present test turns that single-architecture reading into a pre-registered equivalence claim on state rank across the five-group family. Section 5 makes the dimension causal. Because the interesting outcome is a null, the pre-registration specifies an equivalence test rather than a difference test. The comparison uses Welch two-one-sided tests on restricted effective rank at margin ±0.5\pm 0.5 rank-units (half the spacing of the dmind_{\min} ladder), with n=5n=5 seeds per group. The design record fixed a pre-run power simulation before the sweep ran. It confirms that the test reliably rejects equivalence at a true gap of 1.0 rank-units, so a real class effect of one ladder step could not have hidden inside the margin.

The observed difference is +0.019+0.019 rank-units (se 0.037, df 7.8), and both one-sided tests pass at roughly seven times the critical value (t=13.06t=13.06 and 14.1214.12 against tcrit=1.865t_{\mathrm{crit}}=1.865): the two one-sided tests declare equivalence. The two groups’ seed clusters are visually coincident in Figure 1 (lower panel). These results establish equivalence of effective rank for this matched-dimension pair within the pre-registered ±0.5\pm 0.5 rank-unit tolerance.

5 The Causal Razor

The decisive test intervenes on rank: the encoder’s output is spectrally truncated to rank k∈{dmin−1,dmin,dmin+1}k\in\{d_{\min}{-}1,d_{\min},d_{\min}{+}1\} throughout training, against the zero-padded target ρG​(⋅)⊕0\rho_{G}(\cdot)\oplus 0 of rank exactly dmind_{\min}, alongside an unconstrained anchor from the same family. Pre-registered reading: below dmind_{\min}, a sound readout pins recovery to zero by geometry, making that arm an integrity control whose registered trigger (any recovery there) would indicate an instrument leak; the live prediction is that k≥dmink\geq d_{\min} recovers past 0.9×0.9\times the anchor’s crosscheck rec​@​0.9\mathrm{rec}@0.9.

Figure 2: Recovery at a cosine-similarity threshold of 0.9 is a step function at dmind_{\min}: per group, crosscheck rec​@​0.9\mathrm{rec}@0.9 on held-out words at force-rank k∈{dmin−1,dmin,dmin+1}k\in\{d_{\min}{-}1,d_{\min},d_{\min}{+}1\}, vs. the unconstrained anchor (dashed) and the 0.9×0.9\timesanchor bar (dotted). S3S_{3} overlays its four seeds (thin lines; bold mean); its below-dmind_{\min} zero is unanimous. The other four groups are drawn at seed 0; their four-seed sufficiency verdicts are in Table 1. S5S_{5}’s dotted bar is its decisional bar, 0.9×0.9\times its four-seed anchor mean at its 20k pin (Appendix F).
GG anchor k=dmin−1k{=}d_{\min}{-}1 k=dmink{=}d_{\min} k=dmin+1k{=}d_{\min}{+}1 bar k=dmink{=}d_{\min}, seed-mean (n=4n{=}4)
S3S_{3} 0.550 0.000 0.450∗ 0.550 0.495 0.5625
S4S_{4} 0.650 0.000 0.800 0.950 0.585 0.6875
A5A_{5} 0.700 0.000 0.700 0.750 0.630 0.6500
S5S_{5} 0.750 0.000 0.700 0.750 0.6075† 0.7000
A6A_{6} 0.650 0.000 0.650 0.700 0.585 0.6750
Table 1: The causal razor on the zero-padded rank-dmind_{\min} target (crosscheck rec​@​0.9\mathrm{rec}@0.9 by force-rank kk). The anchor and kk columns are seed 0, one seed per cell; the bar is 0.9×0.9\times the seed-0 anchor, fixed before any further seed ran (S5S_{5}: see †\dagger), and bold there marks a seed-0 cell that clears it. The last column is the seed-mean of k=dmink{=}d_{\min} over seeds 0–3, judged against that bar by the pre-registered rule: all five groups confirm (bold). Exactly 0.000 one rank below dmind_{\min} in all four seeds of every group (the forced ceiling is ≤0.894\leq 0.894). Per-seed own-bar clears (0.9×0.9\times each seed’s own anchor; disclosed, not decisional): S3S_{3} 2/4, S4S_{4} 4/4, A5A_{5} 4/4, S5S_{5} 4/4, A6A_{6} 4/4. ∗S3S_{3}’s seed-0 cell sat inside the pre-stated ±0.05\pm 0.05 marginality trigger and was extended first (seed-mean 0.5625 against the fixed 0.495 bar); the other four groups were extended under a separate pre-registration (Appendices E, F). †S5S_{5}’s step pin is 20k, set by a separately pre-registered re-test (Appendix F); by that pre-registration its bar is 0.9×0.9\times its four-seed anchor mean (0.6750), since no seed-0 literal existed at that pin.

Table 1 and Figure 2 show the result on the pre-pinned crosscheck readout. Necessity below dmind_{\min} is an analytically forced floor: against a dmind_{\min}-tied-unit-singular-value target, the maximum cosine any rank-(dmin−1)(d_{\min}{-}1) operator can reach is (dmin−1)/dmin≤0.894\sqrt{(d_{\min}{-}1)/d_{\min}}\leq 0.894, below the 0.90.9 threshold in every group by construction, so rec​@​0.9=0.000\mathrm{rec}@0.9=0.000 at k=dmin−1k=d_{\min}{-}1 follows regardless of training quality; observed cells still reach 86–95% of that ceiling (mean 91%; Appendix D), evidence of near-optimal training under the cap. The zero is noiseless in all four seeds of every group. Sufficiency at dmind_{\min} carries the causal claim, since no such bound guarantees a rank-exactly-dmind_{\min} solution is reachable. Every group was run at four seeds, and the pre-registered rule compares the seed-mean of k=dmink{=}d_{\min} against the bar fixed from seed 0 before the further seeds ran, never against a bar recomputed from the seeds being judged. S3S_{3}, whose seed-0 cell sat inside the pre-stated ±0.05\pm 0.05 marginality trigger, confirms at seed-mean 0.5625 against the fixed 0.495 bar; S4S_{4}, A5A_{5}, and A6A_{6} confirm at seed-means 0.6875, 0.6500, and 0.6750 against fixed bars 0.585, 0.630, and 0.585, each clearing its own-seed bar in 4 of 4 seeds; S5S_{5} confirms at seed-mean 0.7000 against its bar 0.6075, per-seed k=dmink{=}d_{\min} 0.700/0.600/0.750/0.750 against anchors 0.750/0.600/0.700/0.650, own-bar clears 4 of 4, and k=dmin−1k{=}d_{\min}{-}1 at 0.000 in all four seeds; its bar is 0.9×0.9\times its four-seed anchor mean rather than a seed-0 literal because its 20k step pin was set by a separately pre-registered re-test (Appendix F). Sufficiency therefore holds at four seeds in all five groups (per-seed detail in Appendices E and F). Both marquee groups confirm at dmind_{\min}, meeting the causal criterion. Table 4 adds an instrument-independent reading: on the zero-padded target the unconstrained anchor’s whole-matrix effective rank, taken over the full dstate×dstated_{\mathrm{state}}\times d_{\mathrm{state}} state with no subspace lens, lands at 1.82/2.82/2.83/3.77/4.671.82/2.82/2.83/3.77/4.67 (four-seed means) against dmin=2/3/3/4/5d_{\min}=2/3/3/4/5 with two ambient dimensions available, so the recruited rank equals dmind_{\min} without any restriction to the model’s dominant subspace.

Identity-padding the target confounds the razor by handing every capped arm a free rank-2 loss reduction (Appendix D); the zero-padded target above removes the confound.

6 Related Work and Limitations

Chughtai et al. (2023) reverse-engineers group multiplication via representation theory. Stander et al. (2024) and Wu et al. (2025) dispute and refine that account (coset circuits; verified per-argument equivariance). He et al. (2026) prove that two-layer networks on g1⋆g2g_{1}\star g_{2} learn spectral representations with a rank-one alignment of Fourier coefficients. Shutman et al. (2025) frame word learning as a low-rank 3-tensor. All four study the binary operation, not a sequential state, and none relates a learned dimension to dmind_{\min}. On sequential composition, Marchetti et al. (2026) show recurrent networks acquire irreps one at a time with width scaling in the irrep dimensions on cyclic and dihedral groups. Zhang et al. (2026) find on looped transformers that NC1\mathrm{NC}^{1}-completeness costs nothing while group order does. Neither measures state rank. Kazanskii (2026) regularizes representation dimensionality on permutation composition to speed grokking, without a necessity threshold. Here, rank itself, not an irrep decomposition, is the measured and manipulated quantity, and the required dimension is fixed in closed form by dmind_{\min}. Nazari and Rusch (2026) and Sun et al. (2026) measure state-rank dynamics in pretrained linear-attention models observationally, with no task algebra fixing a required dimension. They read low rank as under-used capacity, whereas this paper reads it as the rank the task demands. Parnichkun et al. (2025) apply an entropy effective rank to sequence-model memory as a utilization measure. Truong et al. (2026) track spectral-entropy collapse of representation covariances on group tasks. The estimator here is therefore standard, not new. Mishra et al. (2026) train matrix-state RNNs on S3S_{3} composition without a rank intervention. Grazzi et al. (2025), Siems et al. (2025), Merrill et al. (2024), Shakerinava et al. (2026), and Nowak et al. (2026) characterize which word problems recurrent architectures can express. They sort the problems by solvability and by the depth a subnormal series demands, an axis orthogonal to the one measured here (dimension governs state rank; series length governs depth). Delétang et al. (2023) benchmark sequence architectures across the formal-language hierarchy. The equivalence test instead sorts by representation dimension. A bolt-on-latent negative result (Larson, 2026b) is this result’s counterpart. Nichani et al. (2025) and Barnfield et al. (2026) prove associative-memory capacity under argmax (winner-take-all) decoding, whereas we score cosine similarity against continuous targets and report recovery at a threshold of 0.9. Huh et al. (2024) propose that models trained on different tasks converge to a shared representation; the present law is a narrower, algebra-driven instance of that convergence.

Limitations. All results are on sub-1M-parameter synthetic testbeds, not claims about pretrained language models. Razor cells are four seeds per group; S5S_{5}’s step pin is 20k rather than 8k, set by a pre-registered re-test after the 8k pin failed convergence (Appendix F). S3S_{3} carries a soft-convergence flag at its own shortest pinned budget (Appendix G), so its confirmation reads directionally. A companion paper (Larson, 2026a) carries the binding-task program (the recruitment grid, force-rank staircase, and composition mechanism) in full; this paper shares no figures or tables with it.

References

  • Anderson [1972] James A. Anderson. A simple neural network generating an interactive memory. Mathematical Biosciences, 14(3–4):197–220, 1972.
  • Barnfield et al. [2026] Nicholas Barnfield, Juno Kim, Eshaan Nichani, Jason D. Lee, and Yue M. Lu. Sharp capacity thresholds in linear associative memory. arXiv preprint arXiv:2605.05189, 2026.
  • Barrington [1989] David A. Mix Barrington. Bounded-width polynomial-size branching programs recognize exactly those languages in NC1. Journal of Computer and System Sciences, 38(1):150–164, 1989.
  • Barrington and Thérien [1988] David A. Mix Barrington and Denis Thérien. Finite monoids and the fine structure of NC1. Journal of the ACM, 35(4):941–952, 1988.
  • Chughtai et al. [2023] Bilal Chughtai, Lawrence Chan, and Neel Nanda. A toy model of universality: Reverse engineering how networks learn group operations. In International Conference on Machine Learning (ICML), 2023. arXiv:2302.03025.
  • Delétang et al. [2023] Grégoire Delétang, Anian Ruoss, Jordi Grau-Moya, Tim Genewein, Li Kevin Wenliang, Elliot Catt, Chris Cundy, Marcus Hutter, Shane Legg, Joel Veness, and Pedro A. Ortega. Neural networks and the chomsky hierarchy. In International Conference on Learning Representations (ICLR), 2023. arXiv:2207.02098.
  • Grazzi et al. [2025] Riccardo Grazzi, Julien Siems, Arber Zela, Jörg K. H. Franke, Frank Hutter, and Massimiliano Pontil. Unlocking state-tracking in linear RNNs through negative eigenvalues. In International Conference on Learning Representations (ICLR), 2025. arXiv:2411.12537.
  • He et al. [2026] Jianliang He, Leda Wang, Fengzhuo Zhang, Siyu Chen, and Zhuoran Yang. Neural networks provably learn spectral representations for group composition. arXiv preprint arXiv:2606.02993, 2026.
  • Huh et al. [2024] Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. Position: The platonic representation hypothesis. In International Conference on Machine Learning (ICML), 2024. arXiv:2405.07987.
  • Kazanskii [2026] Maksim A. Kazanskii. How to tame grokking: Representation geometry as a control signal. arXiv preprint arXiv:2607.11666, 2026.
  • Kohonen [1972] Teuvo Kohonen. Correlation matrix memories. IEEE Transactions on Computers, C-21(4):353–359, 1972.
  • Larson [2026a] Samuel Larson. When the gradient sees rank: Provable necessity, causal recruitment, and exact composition in trained matrix memories, 2026a. Companion paper, in preparation for arXiv.
  • Larson [2026b] Samuel Larson. The gradient does not see rank: Rank-indifference in matrix-CODI on ProsQA. In ICML 2026 Workshop on Mechanistic Interpretability, 2026b. ICML 2026 Mechanistic Interpretability Workshop; arXiv:2609.03090.
  • Liu et al. [2023] Bingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang. Transformers learn shortcuts to automata. In International Conference on Learning Representations (ICLR), 2023. arXiv:2210.10749.
  • Marchetti et al. [2026] Giovanni Luca Marchetti, Daniel Kunin, Adele Myers, Francisco Acosta, and Nina Miolane. Sequential group composition: A window into the mechanics of deep learning. In International Conference on Machine Learning (ICML), 2026. arXiv:2602.03655.
  • Merrill et al. [2024] William Merrill, Jackson Petty, and Ashish Sabharwal. The illusion of state in state-space models. In International Conference on Machine Learning (ICML), 2024. arXiv:2404.08819.
  • Mishra et al. [2026] Mayank Mishra, Shawn Tan, Ion Stoica, Joseph Gonzalez, and Tri Dao. M2RNN: Non-linear RNNs with matrix-valued states for scalable language modeling. arXiv preprint arXiv:2603.14360, 2026.
  • Nazari and Rusch [2026] Philipp Nazari and T. Konstantin Rusch. The key to state reduction in linear attention: A rank-based perspective. arXiv preprint arXiv:2602.04852, 2026.
  • Nichani et al. [2025] Eshaan Nichani, Jason D. Lee, and Alberto Bietti. Understanding factual recall in transformers via associative memories. In International Conference on Learning Representations (ICLR), 2025. arXiv:2412.06538, Spotlight.
  • Nowak et al. [2026] Franz Nowak, Ryan Cotterell, and Reda Boumasmoud. An algebraic view of the expressivity of recurrent language models. In International Conference on Machine Learning (ICML), 2026. arXiv:2606.01765.
  • Parnichkun et al. [2025] Rom N. Parnichkun, Neehal Tumma, Armin W. Thomas, Alessandro Moro, Qi An, Taiji Suzuki, Atsushi Yamashita, Michael Poli, and Stefano Massaroli. Quantifying memory utilization with effective state-size. arXiv preprint arXiv:2504.19561, 2025.
  • Shakerinava et al. [2026] 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. arXiv:2603.01959.
  • Shutman et al. [2025] Maor Shutman, Oren Louidor, and Ran Tessler. Learning words in groups: Fusion algebras, tensor ranks and grokking. arXiv preprint arXiv:2509.06931, 2025.
  • Siems et al. [2025] Julien Siems, Timur Carstensen, Arber Zela, Frank Hutter, Massimiliano Pontil, and Riccardo Grazzi. DeltaProduct: Improving state-tracking in linear RNNs via householder products. In Advances in Neural Information Processing Systems (NeurIPS), 2025. arXiv:2502.10297.
  • Stander et al. [2024] Dashiell Stander, Qinan Yu, Honglu Fan, and Stella Biderman. Grokking group multiplication with cosets. arXiv preprint arXiv:2312.06581, 2024.
  • Sun et al. [2026] Ao Sun, Hongtao Zhang, Heng Zhou, Yixuan Ma, Yiran Qin, Tongrui Su, Yan Liu, Zhanyu Ma, Jun Xu, Jiuchong Gao, Jinghua Hao, and Renqing He. State rank dynamics in linear attention LLMs. arXiv preprint arXiv:2602.02195, 2026.
  • Truong et al. [2026] Xuan Khanh Truong, Quynh Hoa Truong, Duc Trung Luu, and Thanh Duc Phan. Spectral entropy collapse as a phase transition in delayed generalisation: An interventional and predictive framework for grokking. arXiv preprint arXiv:2604.13123, 2026.
  • Wu et al. [2025] Wilson Wu, Louis Jaburi, Jacob Drori, and Jason Gross. Towards a unified and verified understanding of group-operation networks. In International Conference on Learning Representations (ICLR), 2025. arXiv:2410.07476.
  • Zhang et al. [2026] Tong Zhang, Junhao Hu, Yun Peng, and Tao Xie. When does recurrence become an algorithm? convergence selection in weight-tied looped transformers. arXiv preprint arXiv:2607.20594, 2026.

Appendix A The Five Groups and Reference Representations

GG |G||G| dmind_{\min} solvable realization of ρG\rho_{G}
S3S_{3} 6 2 yes standard (dihedral)
S4S_{4} 24 3 yes cube rotations
A5A_{5} 60 3 no icosahedral rotations
S5S_{5} 120 4 no standard (zero-sum)
A6A_{6} 360 5 no standard (zero-sum)
Table 2: The five task groups. dmind_{\min} is the minimal faithful real representation dimension; each reference representation is orthogonal by construction and verified faithful (injective on GG) at build time. S4S_{4}/A5A_{5} form the marquee pair: matched dmind_{\min}, opposite solvability.

Appendix B Per-Seed Observational Rank

GG dmind_{\min} nn restricted eff. rank band in band
S3S_{3} 2 3 1.877±0.0601.877\pm 0.060 [1.4,2.6][1.4,2.6] 3/3
S4S_{4} 3 5 2.852±0.0542.852\pm 0.054 [2.1,3.9][2.1,3.9] 5/5
A5A_{5} 3 5 2.832±0.0622.832\pm 0.062 [2.1,3.9][2.1,3.9] 5/5
S5S_{5} 4 3 3.591±0.0693.591\pm 0.069 [2.8,5.2][2.8,5.2] 3/3
A6A_{6} 5 3 4.736±0.0234.736\pm 0.023 [3.5,6.5][3.5,6.5] 3/3
Table 3: Restricted effective rank of the unconstrained trained state (mean ±\pm sd over seeds) against each group’s dmind_{\min}, with the pre-registered [0.7,1.3]⋅dmin[0.7,1.3]\cdot d_{\min} band. Every seed of every group is in band; Spearman ρ=0.9747\rho=0.9747 is the tie-capped maximum; the dimension-matched pair S4S_{4}/A5A_{5} differs by 0.019 rank-units.

Per-group deviation of the mean from dmind_{\min} (Table 3): S3S_{3} 6.1%, S4S_{4} 4.9%, A5A_{5} 5.6%, S5S_{5} 10.2%, A6A_{6} 5.3%.

S4S_{4}’s seed-0 razor k=dmink{=}d_{\min} cell (Table 1) numerically exceeds its own unconstrained anchor by 0.15; plausibly the capped arm skips the ambient dimensions the zero-padded anchor must still learn to null under the same fixed step budget, an unconfirmed hypothesis. At four seeds the inversion holds strictly in 2 of 4 S4S_{4} seeds and ties in the other 2 (Appendix F), so it stays unconfirmed.

Appendix C Whole-Matrix Effective Rank

GG dmind_{\min} dstated_{\mathrm{state}} observational arm (ρG⊕I2\rho_{G}\oplus I_{2}) zero-padded anchor (ρG⊕0\rho_{G}\oplus 0)
S3S_{3} 2 4 3.769±0.0713.769\pm 0.071 (n=3n{=}3) 1.824±0.0641.824\pm 0.064 (n=4n{=}4)
S4S_{4} 3 5 4.835±0.0664.835\pm 0.066 (n=5n{=}5) 2.817±0.1012.817\pm 0.101 (n=4n{=}4)
A5A_{5} 3 5 4.781±0.0664.781\pm 0.066 (n=5n{=}5) 2.833±0.0772.833\pm 0.077 (n=4n{=}4)
S5S_{5} 4 6 5.510±0.0845.510\pm 0.084 (n=3n{=}3) 3.7673.767 (3.705–3.860, n=4n{=}4)
A6A_{6} 5 7 6.717±0.0226.717\pm 0.022 (n=3n{=}3) 4.669±0.0974.669\pm 0.097 (n=4n{=}4)
Table 4: Whole-matrix effective rank of the unconstrained trained state: the entropy effective rank of the full dstate×dstated_{\mathrm{state}}\times d_{\mathrm{state}} state with no subspace lens, so unlike the restricted quantity of Table 3 it can range up to dstate=dmin+2d_{\mathrm{state}}=d_{\min}+2. Observational arm: mean ±\pm sd over seeds against the eye-padded target of rank dmin+2d_{\min}+2, which the state recruits (3.77/4.84/4.78/5.51/6.723.77/4.84/4.78/5.51/6.72 against dstate=4/5/5/6/7d_{\mathrm{state}}=4/5/5/6/7). Zero-padded anchor: the causal wave’s unconstrained arm against the rank-dmind_{\min} target, mean ±\pm sd over four seeds in every group (S5S_{5} at its 20k pin, Appendix F, reported as mean and range). On the zero-padded target the unconstrained state recruits dmind_{\min} (1.82/2.82/2.83/3.77/4.671.82/2.82/2.83/3.77/4.67 against dmin=2/3/3/4/5d_{\min}=2/3/3/4/5) and leaves the two spare dimensions unused.
GG k=dmin−1k{=}d_{\min}{-}1 k=dmink{=}d_{\min} k=dmin+1k{=}d_{\min}{+}1 unconstrained
S3S_{3} 1.000±0.0001.000\pm 0.000 1.816±0.0811.816\pm 0.081 1.841±0.0531.841\pm 0.053 1.824±0.0641.824\pm 0.064
S4S_{4} 1.953 2.937 2.964 2.952
A5A_{5} 1.991 2.824 2.869 2.882
S5S_{5} 2.931 3.766 3.801 3.860
A6A_{6} 3.887 4.631 4.708 4.730
Table 5: Whole-matrix effective rank of every zero-padded razor cell (seed 0; S3S_{3} mean ±\pm sd over its four seeds; S5S_{5} at its 20k pin), for completeness alongside Table 4. The capped cells sit at or below their cap kk; at k≥dmink\geq d_{\min} they land where the unconstrained anchor does.

Appendix D Instrument Details and the Two Defects

Centering. For an orthogonal target the uncentered covariance of Z⁡(w)Z(w) is isotropic and carries no subspace information; the production lens centers it (a nontrivial irreducible representation has zero group mean, cancelling the constant block). The step is load-bearing: an uncentered lens scores a flawless synthetic model 0.705 where the centered lens scores 0.9996 on identical data.

Length-robustness split. The disclosed split referenced in Section 3 scores only words of length L≥2L\geq 2 (the L=1L=1 read is attention-degenerate and was demoted with a mechanism note in the run records): it moves per-group mean recovery cosine by at most 0.013 (per-seed at most 0.041), with no group-selective divergence.

The ambient-identity tax. The first 58-cell sweep’s force-rank target was the eye-padded ρG​(⋅)⊕I2\rho_{G}(\cdot)\oplus I_{2}, whose rank is dstate=dmin+2d_{\mathrm{state}}=d_{\min}+2 for every group. Because the identity block is constant across words, it is the cheapest reliable loss reduction available, and a rank-capped arm buys it before the group representation; the residual budget for ρG\rho_{G} is k−2k-2, below dmind_{\min} at every grid point, so no capped cell under identity-padding ever tested the law’s confirm direction. Three raw-artifact signatures established this: (i) force-rank cells’ direct cosine matched the rank-kk optimum k/dstate\sqrt{k/d_{\mathrm{state}}} with mean absolute deviation 0.028 across all 39 cells (maximum 0.166; the two S5S_{5} below-dmind_{\min} cells are the only outliers, an additional disclosed optimization shortfall), so the arms trained to their rank-constrained ceiling rather than under-training; (ii) centered restricted rank of capped arms landed near k−2k-2, the residual budget; (iii) in the zero-padded grid, a deliberately eye-padded corroboration arm reproduces the failure on demand at raw k=dmin+1k=d_{\min}{+}1 (effective budget dmin−1d_{\min}{-}1) while the tax-paid point recovers. The sweep verdict was registered as inconclusive with the tax as mechanism; the zero-padded causal wave of Section 5 is the registered fix. The zero-padded grid’s 30 cells were configuration-verified one-by-one against a manifest re-derived independently from the design record (steps, padding mode, and force-rank value per cell; zero skipped steps).

The observational band’s non-binding upper half. entity_subspace_from_words returns the top-dmind_{\min} left singular vectors of the centered covariance by construction, so the restricted state U⊤​Z​UU^{\top}ZU is always dmin×dmind_{\min}\times d_{\min}, and the entropy effective rank of a dmin×dmind_{\min}\times d_{\min} input has range [1,dmin][1,d_{\min}]. Restricted effective rank therefore cannot exceed dmind_{\min}, and so cannot exceed 1.3⋅dmin1.3\cdot d_{\min}, for any seed of any group; only the band’s lower half, ≥0.7⋅dmin\geq 0.7\cdot d_{\min}, is a test the data could fail. Every group mean lands in [0.898,0.951]⋅dmin[0.898,0.951]\cdot d_{\min}.

The rank-constrained cosine ceiling. The causal wave’s target is ρG​(⋅)⊕0\rho_{G}(\cdot)\oplus 0, of rank exactly dmind_{\min} with all dmind_{\min} informative singular values equal to 1 (the reference representation is orthogonal by construction, Appendix A). For any matrix MM of rank ≤k≤dmin\leq k\leq d_{\min}, von Neumann’s trace inequality gives ⟨M,T⟩F≤∑i=1kσi​(M)​σi​(T)=∑i=1kσi​(M)\langle M,T\rangle_{F}\leq\sum_{i=1}^{k}\sigma_{i}(M)\,\sigma_{i}(T)=\sum_{i=1}^{k}\sigma_{i}(M), and Cauchy–Schwarz bounds ∑i=1kσi​(M)≤k​∥M∥F\sum_{i=1}^{k}\sigma_{i}(M)\leq\sqrt{k}\,\lVert M\rVert_{F}, so cos⁡(M,T)≤k/dmin\cos(M,T)\leq\sqrt{k/d_{\min}}. At k=dmin−1k=d_{\min}{-}1 this ceiling is 0.707/0.816/0.816/0.866/0.8940.707/0.816/0.816/0.866/0.894 for S3/S4/A5/S5/A6S_{3}/S_{4}/A_{5}/S_{5}/A_{6}, below the rec​@​0.9\mathrm{rec}@0.9 threshold of 0.9 in every case: no rank-(dmin−1)(d_{\min}{-}1) state, however trained, can register a single word above cosine 0.9 against this target. The necessity result (rec​@​0.9=0.000\mathrm{rec}@0.9=0.000 at dmin−1d_{\min}{-}1, all groups, all seeds) is this bound realized, not an independent discovery about what SGD finds; the corresponding empirical content is that the observed cosines at dmin−1d_{\min}{-}1 (0.61–0.84, seed 0) sit under their respective rank-constrained optima, evidence optimization reaches the geometry’s own ceiling. At k≥dmink\geq d_{\min} the ceiling is 1.0 (exact recovery is representable), so recovery above 0 at dmind_{\min} is not guaranteed by the metric and carries the causal weight (sufficiency). As a fraction of the geometrically forced ceiling (dmin−1)/dmin\sqrt{(d_{\min}{-}1)/d_{\min}}, the below-dmind_{\min} crosscheck cosines read S3S_{3} 86.3%, S4S_{4} 91.2%, A5A_{5} 94.9%, S5S_{5} 87.9%, and A6A_{6} 93.5% (mean 90.8%; seed-0 cells, S5S_{5} at its 20k pin).

Estimator dependence. The pre-registered instrument is the entropy effective rank; under the stable-rank estimator (squared Frobenius norm over squared spectral norm, the estimator of Nazari and Rusch [2026]) the same unconstrained states read 1.451/2.156/2.078/2.362/3.3401.451/2.156/2.078/2.362/3.340 against dmin=2/3/3/4/5d_{\min}=2/3/3/4/5, that is 0.590.59–0.73⋅dmin0.73\cdot d_{\min}, outside the pre-registered band, which was written for the entropy estimator, while the group ordering is unchanged (Spearman 0.975 on group means). The ordinal law is therefore estimator-robust; the point estimate “equals dmind_{\min}” is a property of the entropy estimator on a near-flat spectrum with one weak direction, which stable rank penalizes; and the causal razor caps algebraic rank and is estimator-free.

Primary and crosscheck degauging. The design record’s default pipeline treats scale-only degauging (Q^=I\hat{Q}=I) as the primary metric, with the fitted-(c,Q)(c,Q) Procrustes score retained as a robustness cross-check, after calibration on unconstrained checkpoints found Q^≈I\hat{Q}\approx I empirically. Under the force-rank grid’s zero-padded target this equivalence breaks: the informative block’s degenerate singular spectrum makes the scale-only fit’s basis arbitrary, so the pre-registration for the causal wave specifically pins the fitted-(c,Q)(c,Q) score, denoted crosscheck rec​@​0.9\mathrm{rec}@0.9 throughout Section 5 and Table 1 and Figure 2, as decisional; the scale-only score informs no reported conclusion. The two diverge sharply on this grid, which is why the distinction is disclosed here.

Appendix E S3S_{3} Per-Seed Causal Detail

seed anchor k=dmin−1k{=}d_{\min}{-}1 k=dmink{=}d_{\min} k=dmin+1k{=}d_{\min}{+}1 own bar clears
0 0.550 0.000 0.450 0.550 0.495 no (−0.045-0.045)
1 0.600 0.000 0.550 0.750 0.540 yes (+0.010+0.010)
2 0.800 0.000 0.600 0.750 0.720 no (−0.120-0.120)
3 0.600 0.000 0.650 0.600 0.540 yes (+0.110+0.110)
Table 6: S3S_{3} four-seed causal detail (crosscheck rec​@​0.9\mathrm{rec}@0.9) behind the seed-mean confirmation in Section 5; the own bar is 0.9×0.9\times each seed’s anchor. k=dmin−1k=d_{\min}{-}1 reads exactly 0.000 in all four seeds; k=dmink=d_{\min} clears each seed’s own bar in 2 of 4 (seeds 1, 3), missing in the other 2 because the anchor itself ranges 0.550–0.800 across seeds. The pre-registered criterion compares the seed-mean k=dmink=d_{\min} value (0.5625) against the bar fixed before the extension ran (0.495, from seed 0’s anchor), specifically to avoid computing the bar from the same noisy seeds it is judged against; recomputing the bar as 0.9×0.9\times the four-seed anchor mean (raw mean 0.6375, bar 0.574) would put the seed-mean value 0.011 below it.

Appendix F Per-Seed Razor Detail for S4S_{4}, A5A_{5}, S5S_{5}, A6A_{6}

seed anchor k=dmin−1k{=}d_{\min}{-}1 k=dmink{=}d_{\min} k=dmin+1k{=}d_{\min}{+}1 own bar clears gate1a (anchor / k=dmink{=}d_{\min})
S4S_{4} (dmin=3d_{\min}=3, 20k steps): seed-mean 0.6875 vs. fixed bar 0.585, confirmed; self-referential bar 0.5625
0 0.650 0.000 0.800 0.950 0.585 yes (+0.215+0.215) —
1 0.500 0.000 0.600 0.600 0.450 yes (+0.150+0.150) —
2 0.700 0.000 0.700 0.650 0.630 yes (+0.070+0.070) —
3 0.650 0.000 0.650 0.650 0.585 yes (+0.065+0.065) —
A5A_{5} (dmin=3d_{\min}=3, 20k steps): seed-mean 0.6500 vs. fixed bar 0.630, confirmed; self-referential bar 0.5625
0 0.700 0.000 0.700 0.750 0.630 yes (+0.070+0.070) —
1 0.700 0.000 0.750 0.750 0.630 yes (+0.120+0.120) —
2 0.550 0.000 0.600 0.550 0.495 yes (+0.105+0.105) —
3 0.550 0.000 0.550 0.450 0.495 yes (+0.055+0.055) —
S5S_{5} (dmin=4d_{\min}=4, 20k steps, pre-registered re-test): seed-mean 0.7000 vs. bar 0.6075, confirmed
0 0.750 0.000 0.700 0.750 0.675 yes (+0.025+0.025) 0.981 / 0.981
1 0.600 0.000 0.600 0.650 0.540 yes (+0.060+0.060) 0.974 / 0.960
2 0.700 0.000 0.750 0.650 0.630 yes (+0.120+0.120) 0.974 / 0.970
3 0.650 0.000 0.750 0.700 0.585 yes (+0.165+0.165) 0.959 / 0.967
A6A_{6} (dmin=5d_{\min}=5, 40k steps): seed-mean 0.6750 vs. fixed bar 0.585, confirmed; self-referential bar 0.5850
0 0.650 0.000 0.650 0.700 0.585 yes (+0.065+0.065) —
1 0.600 0.000 0.650 0.700 0.540 yes (+0.110+0.110) —
2 0.850 0.000 0.850 0.800 0.765 yes (+0.085+0.085) —
3 0.500 0.000 0.550 0.550 0.450 yes (+0.100+0.100) —
Table 7: Four-seed causal detail (crosscheck rec​@​0.9\mathrm{rec}@0.9) for the four groups extended under a pre-registration recorded before launch, on the same build, manifest, and decisional readout as seed 0; S4S_{4}, A5A_{5}, and A6A_{6} at their seed-0 step pins, S5S_{5} at a 20k pin. The own bar is 0.9×0.9\times each seed’s anchor and is disclosed, not decisional. k=dmin−1k=d_{\min}{-}1 reads exactly 0.000 in all 16 cells. The decisional comparison is the seed-mean of k=dmink=d_{\min} over seeds 0–3 against the bar fixed before the seeds ran: from seed 0 for S4S_{4}, A5A_{5}, A6A_{6} (0.585/0.630/0.585), and, for S5S_{5}, 0.9×0.9\times the seed-mean of its four 20k anchors (0.6075), since no seed-0 literal existed at that pin and the rule was fixed before launch. S4S_{4} 0.6875, A5A_{5} 0.6500, S5S_{5} 0.7000, and A6A_{6} 0.6750 confirm. The self-referential bar (0.9×0.9\times the four-seed anchor mean: 0.5625/0.5625/0.5850 for S4S_{4}/A5A_{5}/A6A_{6}) is reported for symmetry with Table 6. Own-bar clears: 4/4 in every group. gate1a (min validation cosine over L∈[2,5]L\in[2,5], bar 0.92) is tabulated for S5S_{5}, whose pin was set on that criterion. S5S_{5}’s original 8,000-step pin under-trained it (every 8k razor cell failed the 0.92 convergence bar, Appendix G, and the four-seed k=dmink{=}d_{\min} mean at that pin, 0.4125, fell short of the fixed 0.450 bar); the pin was raised to 20,000 steps under a pre-registration recorded before the re-run, and the 8k cells remain archived with the design record.

Appendix G Soft Convergence at the Shortest Pinned Budgets

GG anchor k=dmin−1k{=}d_{\min}{-}1 k=dmink{=}d_{\min} k=dmin+1k{=}d_{\min}{+}1 bar (0.92)
S3S_{3} 0.914 0.665 0.900 0.903 fail (all 4)
S5S_{5} 0.876 0.801 0.879 0.877 fail (all 4)
Table 8: Convergence health (gate1a, min validation cosine over L∈[2,5]L\in[2,5]) for every seed-0 S3S_{3} razor cell at its shortest pinned step budget and every seed-0 S5S_{5} razor cell at its original 8k budget. All eight cells fall short of the 0.92 margin; S5S_{5}’s 0.876–0.879 range is a larger shortfall than S3S_{3}’s 0.900–0.914. The necessity leg (Section 5) is unaffected by construction; S3S_{3}’s sufficiency leg should be read as directionally consistent under disclosed soft convergence. At S5S_{5}’s 20k pin (Appendix F), every S5S_{5} anchor and k=dmink{=}d_{\min} cell passes gate1a (0.959–0.981), which is why that pin moved.

Appendix H Depth-21 Periodicity Under the Single KK-Cycle

The binding task’s held-out composition probe uses a single Hamiltonian KK-cycle, under which nominal depth 21 shares its target with the already-tested depth 5 (π21=π21mod8=π5\pi^{21}=\pi^{21\bmod 8}=\pi^{5} exactly). Appendix A of a companion paper [Larson, 2026a] performs this periodicity analysis and the associated depth-decay measurement in full on the binding testbed; see that appendix for the derivation and the per-hop predicted-vs-measured table.