Back to AI Research

AI Research

Post-Grokking Collapse at the Representation-Readou... | AI Research

Key Takeaways

  • Post-Grokking Collapse at the Representation-Readout Interface in Muon-Trained Transformers investigates why transformer models trained with the Muon optimiz...
  • Under the standard split, Muon gets hidden matrices and AdamW embeddings/output head.
  • Muon groks modular addition faster, but its solutions do not hold.
  • All nine configurations on $(a+b) \bmod 113$ grok and later lose generalization.
  • Across five seeds the selected AdamW reference falls below threshold on four, reaching 27.59%.
Paper AbstractExpand

Under the standard split, Muon gets hidden matrices and AdamW embeddings/output head. Muon groks modular addition faster, but its solutions do not hold. All nine configurations on $(a+b) \bmod 113$ grok and later lose generalization. Across five seeds the selected AdamW reference falls below threshold on four, reaching 27.59%. Instability persists across two moduli, two widths, two training fractions, subtraction, and depth. The failure arises at the representation-readout interface, identified only jointly up to an invertible map unselected by the loss. After solving the training set, the gradient falls to order $10^{-6}$ and the optimizers respond differently: step-size elasticity is -0.03 for Muon versus +1.5 for AdamW, and the Muon group moves 8.0 times faster per parameter. From bit-identical states, freezing either group prevents failure. Freezing embeddings/readout removes it in five runs over 451,400 post-grokking steps and five paired seeds: unfrozen arms record 137-321 sub-threshold evaluations, frozen arms none. Removing Muon's normalization and orthogonalization is no substitute: it collapses representation from 326 effective conjugate pairs to 4, shows no recurrent collapse, and fails terminally. Fourier filtering separates circuit failure from masking. Across 43 checkpoints over five seeds and three regimes, the task-aligned family reaches exactly 100% alone. In circuit failure it no longer solves the task; in masking it remains perfect while the full model reaches 45.85%, giving a positive margin on every example, including errors, but being outvoted by a near-equal adversarial remainder. Rescaling it restores 99.9%; grokking is the same condition resolving upward. The task selects the family, swapping $(k,k)$ for $(k,-k)$ under subtraction. Across an abrupt collapse, standard Fourier support is unchanged and the power-distribution cosine remains 0.9899.

Post-Grokking Collapse at the Representation-Readout Interface in Muon-Trained Transformers investigates why transformer models trained with the Muon optimizer frequently lose their ability to generalize after initially "grokking" a task. While Muon accelerates the grokking process for modular addition, the researchers find that these models suffer from a recurring, unstable collapse where test accuracy drops significantly, even after the training set has been successfully solved.

The Nature of the Collapse

The study identifies that the failure is not a loss of the learned algorithm itself, but a "hidden-readout misalignment." Because the transformer’s residual stream lacks a fixed basis, the internal representation and the output head (readout) are only identified jointly. As training progresses with vanishing gradients, the Muon-optimized hidden layers and the AdamW-optimized readout layers begin to diverge.
The researchers observed that the two groups of parameters move at different rates—with the Muon group moving 8.0 times faster per parameter—causing the readout to lose its ability to interpret the internal representation. This is evidenced by the fact that freezing either the embeddings/readout or the hidden layers prevents the collapse entirely.

Experimental Findings

The researchers tested this phenomenon across various configurations, including different moduli, model widths, and depths. Key observations include:

  • Optimizer Instability: While Muon is faster, it is not uniquely prone to this failure. AdamW also experiences post-grokking collapse, though the severity is tied to the learning rate.

  • Fourier Circuit Integrity: By filtering the model's representation to the specific Fourier family that computes modular addition, the researchers found that the circuit remains intact even when the full model fails. In "circuit masking," the Fourier family continues to solve the task perfectly, but its output is outvoted by an adversarial remainder in the model.

  • Task Specificity: The model’s internal representation is highly specific to the task. For example, when trained on subtraction, the model automatically shifts to using the $(k, -k)$ Fourier modes instead of the $(k, k)$ modes used for addition.

Why the Failure Occurs

The paper concludes that the collapse arises because the loss function does not constrain the specific basis in which the model computes. During the late stages of training, when gradients are extremely small (order $10^{-6}$), the different update rules of Muon and AdamW cause the hidden representation and the readout to drift apart in the latent space.
The researchers demonstrate that this is not a failure of the model to learn the task, but a failure of the two optimizer groups to maintain a shared coordinate system. When the researchers manually rescaled the task-aligned Fourier family, they were able to restore the model's accuracy to 99.9% without any additional training, confirming that the necessary information remains present but becomes inaccessible to the readout.

Limitations and Observations

The study highlights that standard progress measures often fail to detect this collapse because they track the presence of the circuit rather than the alignment between the representation and the readout. While ablating Muon’s normalization and orthogonalization prevents the specific "hidden-readout" drift, it leads to a terminal failure where the model's representation collapses entirely. The findings suggest that the speedup provided by Muon acts as an instrument, allowing researchers to observe and intervene in the grokking process at a scale that would be otherwise prohibitive.

Comments (0)

No comments yet

Be the first to share your thoughts!