Abstract
Learning to Optimize (L2O) has emerged as a powerful paradigm for automating optimizer design through data-driven approaches. However, L2O methods frequently struggle with generalization, particularly when the learned optimizer is applied to new, unseen models or datasets. This paper addresses the critical challenge of "optimizee generalization"—ensuring that models trained by L2O optimizers achieve low test error, not just low training loss. By incorporating flatness-aware regularizers, specifically Hessian and local entropy metrics, into the L2O meta-training process, the authors provide theoretical guarantees and empirical evidence that learned optimizers can be taught to seek robust, flat minima.
The Generalization Gap in L2O
Traditional deep learning relies on hand-crafted optimizers like SGD or Adam. L2O attempts to replace these with neural networks that learn update rules optimized for specific tasks. Despite their potential for efficiency, L2O algorithms often fall into a trap: they find solutions that overfit the training data.
The authors categorize L2O generalization failures into two distinct types:
- Optimizer Generalization: The ability of the learned optimizer to minimize the training loss of a new, unseen model architecture.
- Optimizee Generalization: The ability of the model (the "optimizee") trained by the L2O optimizer to perform well on unseen test data.
While previous research has explored optimizer generalization, this work focuses on optimizee generalization, addressing the tendency of L2O-trained models to settle into "sharp" minima that do not generalize well to real-world data.
Methodology: Flatness-Aware Regularization
To solve the generalization problem, the researchers propose adding flatness-aware regularizers to the L2O meta-training objective. The core hypothesis is that an optimizer trained to penalize high curvature will naturally guide models toward flatter regions of the loss landscape, which are known to correlate with better generalization.
Key Metrics and Theoretical Links
The study utilizes two primary metrics for landscape flatness:
- Hessian Spectral Norm: Measures local curvature directly.
- Local Entropy: Measures the average loss within a neighborhood of a solution.
A significant theoretical contribution of this paper is Theorem 1, which mathematically unifies these concepts. The authors prove that high local entropy implies a small Hessian, providing a rigorous foundation for using either metric to encourage generalization. To make these calculations computationally feasible for large models, the authors employ efficient approximations such as the Hutchinson method for Hessian Trace and power iteration for the largest eigenvalue.
Empirical Results and Insights
The proposed methods were evaluated on standard computer vision benchmarks, including MNIST and CIFAR-10, across various architectures like MLPs and CNNs.
Key Findings:
- Significant Accuracy Gains: On the Conv-MNIST task, adding Hessian or Entropy regularization improved testing accuracy by up to 31% compared to vanilla L2O.
- Outperforming Baselines: Regularized L2O optimizers frequently surpassed standard hand-crafted optimizers like Adam and SGD on unseen testing data, demonstrating that generalization ability can indeed be "meta-learned."
- Stability and Efficiency: Vanilla L2O is often unstable; flatness-aware regularization acts as a stabilizer. While these regularizers add computational overhead, the authors demonstrate that the 1.5x to 3x increase in training time is a manageable trade-off for the substantial performance gains.
Conclusion and Future Directions
This research demonstrates that generalization is a transferable skill that can be embedded within an optimizer. By training optimizers to prefer flat minima, we can automate the discovery of models that are robust to new data. While scaling second-order information to massive models like Large Language Models (LLMs) remains a challenge, this work provides a provable path forward for making Learning to Optimize a reliable tool in the deep learning toolkit. Future work will likely focus on more efficient landscape approximations and investigating the architectural sensitivities of L2O frameworks.
Summary updated