TL;DR
Learned Optimizers (LOs) often fail to generalize when the models they are training (the "optimizees") are wider or deeper than those seen during the optimizer's own training. This paper introduces $\mu$LO, which applies Maximal Update Parametrization ($\mu$P) to learned optimizer architectures. By making the optimizer's update rules scale-invariant, $\mu$LOs achieve superior generalization to massive models and longer training horizons using a fraction of the compute required by previous state-of-the-art methods.
The Meta-Generalization Gap in Learned Optimizers
While hand-designed optimizers like Adam and SGD are industry standards, they aren't necessarily optimal for every task. Learned Optimizers (LOs)—neural networks trained to act as optimization algorithms—promise faster convergence by learning from data.
However, LOs suffer from a major "meta-generalization" gap. If you train an LO on small networks (meta-training), it typically fails when asked to optimize a much larger network (the "out-of-distribution" task). For example, an LO trained on a network with a width of 128 might cause a network with a width of 4096 to diverge. Previous attempts to fix this involved massive "brute force" scaling—training the LO on thousands of diverse tasks—which is prohibitively expensive (e.g., the VeLO optimizer required 4,000 TPU months).
Methodology: $\mu$P for Learned Optimizers
The authors propose a more principled approach by deriving the Maximal Update Parametrization ($\mu$P) for LO architectures.
- $\mu$P for LOs: Originally designed to keep neural network activations stable as width approaches infinity, the authors adapt $\mu$P to the update rules of two LO architectures:
small_fc_loptandVeLO. - Scaling Rules: They derive specific scaling factors for the optimizer's outputs. For hidden layers, the update is rescaled by $1/\text{FAN\_IN}$. This ensures that the "magnitude" of the update remains consistent regardless of the layer's width.
- Meta-Training Recipe: Instead of training on a single model size, they propose a "multiple-width single-task" recipe. They meta-train the LO on MLPs with varying widths (128, 512, and 1024) to encourage the network to learn scale-invariant features.
Experimental Setup
The researchers evaluated $\mu$LO across a diverse suite of 35 tasks:
- Meta-Training: Exclusively performed on MLPs using ImageNet-32.
- Evaluation (Out-of-Distribution Tasks):
- Image Classification: MLPs and Vision Transformers (ViTs) on CIFAR-10, ImageNet-32, and ImageNet-64.
- Language Modeling: Decoder-only Transformers on the LM1B dataset.
- Scaling Axes: They tested generalization across width (up to 8192), depth (up to 16 layers), and training horizons (up to 25,000 steps).
Key Results and Insights
Superior Ranking Across Generalization Axes
In a comparison of average rank across large-scale tasks, $\mu$LO$_M$ and $\mu$VeLO$_M$ consistently took the top two spots, outperforming AdamW, $\mu$Adam, and standard parameterized LOs across all axes of generalization (Architecture, Dataset, Depth, Width, and Unroll Length).
Robustness to Width
Standard LOs fail on wide models because their activations "blow up." $\mu$P provides a theoretical framework to keep these activations (and the resulting updates) stable across scales. Empirical plots show that standard LOs often diverge when model width exceeds 2048. In contrast, $\mu$LOs remain stable and continue to improve performance even at widths of 8192.
The "Unexpected" Bonus: Depth and Horizon Generalization
While $\mu$P is theoretically grounded in width scaling, the authors found that $\mu$LOs also generalized surprisingly well to deeper networks ($5\times$ deeper than training) and much longer training runs ($25\times$ longer). When training for 25,000 steps (far beyond the 1,000 steps seen during meta-training), $\mu$LOs continued to decrease loss smoothly, while standard LOs either plateaued or became unstable after 8,000 steps.
Compute Efficiency
By using $\mu$P, the authors achieved better generalization results than the massive VeLO model while using only 100 GPU hours for meta-training—a massive reduction in environmental and financial costs.
Limitations and Future Work
- Task Diversity: The meta-training was limited to MLPs. While the LO generalized to ViTs and Transformers, training on a more diverse set of architectures initially might yield even stronger results.
- Hardware Constraints: Due to academic compute limits, the authors did not test models wider than 8192 or provide an "oracle" AdamW baseline (where AdamW is perfectly tuned for every specific width).
- Beyond $\mu$P: The authors suggest exploring other parameterization schemes, such as "CompleteP," which might offer even better compute-efficient transfer across depth and width simultaneously.
Summary updated