TL;DR
This paper introduces a novel, comprehensive search space for automatically discovering deep learning optimizers, simultaneously evolving their core update equations, internal decay functions, and learning rate schedules. Their particle-based genetic algorithm, coupled with an integrity check, efficiently explores this space and discovers several new optimizers that outperform Adam and other standard methods on various image classification tasks.
What Problem Does This Paper Address?
Finding the optimal optimizer for a deep learning model is crucial for achieving good performance and efficient training. However, the design of optimizers is often a manual, trial-and-error process. While Neural Optimizer Search (NOS) aims to automate this, previous approaches have explored limited search spaces, often focusing only on the update equation or using outdated sets of operations. This paper addresses the need for a more comprehensive NOS approach that can jointly optimize the optimizer's update rule, its internal decay mechanisms, and its learning rate schedule, reflecting the latest advancements in optimizer research.
Methods
The core of this work is a dual-joint search space designed to evolve optimizers. This space has two main components:
- Weight Update Equation: This is represented as a computational graph, inspired by NASNet, allowing for complex combinations of operands (like gradient statistics) and unary/binary operations. Crucially, it incorporates momentum types (no momentum, momentum, Nesterov momentum) and state-saving operations.
- Decay Function: This is a separate computational graph that can be attached to connections within the weight update equation. It allows for the evolution of learning rate schedules and other decay mechanisms, offering a richer set of operations and decay schedules (linear, cosine, exponential, etc.) than previous work.
To search this space, the authors propose a mutation-only, particle-based genetic algorithm. This algorithm is designed for massive parallelization. Key features include:
- Integrity Check: A mechanism to quickly discard degenerate optimizers that fail to converge on a simple optimization problem, saving computational resources.
- Early Stopping: Two stages of early stopping based on training accuracy to further prune underperforming optimizers.
- Surrogate Function: A small ConvNet is used as a surrogate model for initial evaluation, making the evolutionary process more efficient.
- Optimizer Elimination Protocol: A multi-stage process where promising optimizers are progressively evaluated on larger ConvNets to ensure transferability to larger models.
Datasets
The following datasets were used:
- CIFAR-10: Used for initial training and evolution of candidate optimizers.
- CIFAR-100: Used for evaluating generalization.
- TinyImageNet: Used for evaluating generalization.
- Flowers102, Cars196, Caltech101: Used for fine-tuning experiments.
- ImageNet1K: Pre-trained weights for EfficientNetV2Small were used for fine-tuning.
- PTB (Penn Treebank): Used for a supplementary experiment on language modeling.
Key Insights and Ideas
- Joint Optimization is Key: Evolving the optimizer's update equation, decay functions, and learning rate schedules simultaneously is more effective than optimizing them in isolation. This allows for synergistic interactions between these components.
- Rich Search Space Matters: The proposed search space, incorporating a wider range of operations and decay schedules inspired by recent optimizer research, is crucial for discovering novel and high-performing optimizers.
- Integrity Checks are Essential: For complex search spaces like this, robust integrity checks are vital to prevent the evolutionary process from being bogged down by degenerate solutions.
- Transferability is a Challenge: Optimizers that perform well on small models don't always transfer perfectly to larger ones, necessitating a multi-stage evaluation process.
- Quasi-Hyperbolic Momentum is Powerful: Many of the top-performing optimizers discovered utilize a quasi-hyperbolic momentum (QHM) structure, suggesting its effectiveness. The novel terms added in this work further enhance QHM.
Key Results
- The proposed method discovered five new optimizers and two Adam variants that consistently outperformed Adam and other standard optimizers across various image classification tasks.
- Several discovered optimizers achieved top performance on CIFAR-10, CIFAR-100, and TinyImageNet. For instance, Opt6 consistently ranked in the Top 3 on CIFAR datasets.
- The discovered optimizers and learning rate schedules also showed strong performance in fine-tuning scenarios on Flowers102, Cars196, and Caltech101.
- The Adam variants discovered also showed improved performance compared to standard Adam, particularly in language modeling tasks.
- The paper provides detailed analysis of the discovered optimizers, showing how their learned decay functions and update equations contribute to their performance.
Limitations and Future Work
- Computational Cost: While the particle-based GA is designed for parallelization, the overall process of evolving and evaluating optimizers is still computationally intensive.
- Transferability to Other Domains: While tested on image classification and language modeling, further exploration of transferability to other domains (e.g., reinforcement learning, natural language processing tasks beyond PTB) would be beneficial.
- Hyperparameter Tuning of the GA: The authors mention running the GA with different configurations, suggesting that the GA's own hyperparameters could be further optimized.
- Exploration of Other Search Algorithms: While the particle-based GA was effective, exploring other evolutionary or search algorithms might yield different or improved results.
- Further Analysis of Learned Components: While some analysis is provided, a deeper dive into the specific learned decay functions and their interactions with update rules could offer more insights.
Summary updated