Muon in Associative Memory Learning: Training Dynamics and Scaling Laws

Kaifei Wang, Binghui Li, Han Zhong, Pinyan Lu, Liwei Wang

TL;DR

This paper provides a theoretical explanation for the impressive performance of the Muon optimizer, particularly in large-scale training scenarios with imbalanced data. By analyzing Muon's behavior in a linear associative memory model, the authors demonstrate that it significantly outperforms traditional Gradient Descent (GD) by mitigating optimization bottlenecks caused by imbalanced data frequencies, leading to faster convergence and improved scaling laws.

What Problem Does This Paper Address?

Modern deep learning models, especially Large Language Models (LLMs), are trained on massive datasets that often exhibit a "long-tail" distribution, meaning a few data points or categories are extremely frequent, while most are rare. This imbalance creates a significant challenge for optimization algorithms like Gradient Descent (GD). GD tends to learn the frequent "head" data much faster than the rare "tail" data, leading to slow convergence and suboptimal performance. While optimizers like Muon have shown empirical success in addressing this, the theoretical reasons behind their effectiveness, especially their training dynamics and scaling behavior, have remained largely unexplored. This paper aims to bridge this gap by providing a theoretical framework to understand why Muon works so well, particularly in the context of imbalanced data.

Methods

The authors tackle this problem by developing a theoretical framework based on a linear associative memory model. This model serves as a tractable proxy for understanding knowledge retrieval and pattern matching, which are core to modern neural networks. They analyze the training dynamics of optimizers like GD and Muon under this model, considering scenarios with and without label noise.

Key methodological contributions include:

  • Associative Memory Framework: Modeling knowledge as a hierarchical frequency spectrum over query-answer pairs.
  • Gradient Analysis: Decomposing the gradient to understand how different frequency components are learned.
  • Matrix Sign Function Analysis: Investigating the role of Muon's core operation (the matrix sign function) in preconditioning and aligning updates.
  • Scaling Law Derivation: Developing theoretical scaling laws for Muon and GD under power-law distributed data frequencies.
  • Comparison with SignGD: Analyzing Muon's preconditioning mechanism in relation to SignGD, a simplified Adam variant.

Datasets

  • Synthetic Data: The paper uses synthetic data generated from a linear associative memory model with controlled hierarchical frequency distributions and label noise.
  • Imbalanced MNIST: A modified MNIST dataset is used for synthetic imbalanced classification experiments, simulating different data group frequencies.
  • LLaMA Pre-training: The authors conduct experiments on LLaMA-style pre-training with varying data budgets to validate the theoretical scaling laws in a realistic large-scale setting.

Key Insights and Ideas

  • GD's Bottleneck: GD struggles with imbalanced data because it learns low-frequency components much slower than high-frequency ones, creating a bottleneck.
  • Muon's Uniform Progress: Muon's matrix sign operation effectively "equalizes" the learning progress across different frequency groups, leading to a more uniform and faster optimization.
  • Exponential Speedup: In noiseless settings, Muon achieves an exponential speedup over GD.
  • Superior Scaling Laws: Under noisy conditions with power-law frequency distributions, Muon exhibits significantly better scaling laws than GD, meaning its performance improves more efficiently with more data.
  • Implicit Preconditioning: Muon acts as an implicit matrix preconditioner, adaptively aligning updates with task representations and exploiting a block-symmetric gradient structure. This is a key mechanism for its effectiveness.
  • TRA-SignGD as a Theoretical Tool: The idealized Task-Representation Aligned SignGD (TRA-SignGD) is introduced to theoretically demonstrate that Muon's performance can be matched by an optimizer that explicitly uses task representations, highlighting the importance of this alignment.

Key Results

  • Noiseless Case: Muon achieves exponential acceleration compared to GD, reducing the complexity from O(1/ε) to O(log(1/ε)) for a loss precision of ε.
  • Noisy Case (Power-law Spectrum): Muon's loss decays as O(T⁻²) while GD's lower bound is O(T⁻¹⁻¹/β), demonstrating a substantially steeper scaling exponent for Muon.
  • LLaMA Pre-training: Muon shows a steeper scaling slope (faster scaling rate) compared to SGD in large-scale language model pre-training, confirming its data efficiency advantage.
  • Synthetic Imbalanced Classification: Muon outperforms GD and AdamW by effectively mitigating imbalanced learning and achieving a smaller group-accuracy gap.

Limitations and Future Work

  • Orthogonal Assumption: The theoretical analysis relies on orthogonal task embeddings, though experiments suggest robustness to near-orthogonal cases. Relaxing this assumption further is a direction for future work.
  • Zero Initialization: The theory primarily uses zero initialization. While experiments with random initialization are discussed, a deeper theoretical understanding of Muon's behavior with different initializations could be beneficial.
  • Associative Memory vs. Transformers: The current analysis uses a linear associative memory model. Extending the analysis to more realistic deep-network and LLM training settings is a crucial next step to understand how Muon captures structures in practice.
  • Preconditioning Scope: The preconditioning analysis focuses on sign-style methods and omits momentum. Extending this perspective to covariance-based preconditioners like Shampoo and SOAP, and to full Muon variants, is an important future direction.

Summary updated

BibTeX
@inproceedings{wang2026muon,
  author = {Kaifei Wang and Binghui Li and Han Zhong and Pinyan Lu and Liwei Wang},
  title = {{Muon in Associative Memory Learning: Training Dynamics and Scaling Laws}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=tn00ERVdgL},
}
Figure