Designing a new neural network optimizer is traditionally a job for human experts, resulting in household names like Adam, RMSProp, and SGD. While Automated Machine Learning (AutoML) has attempted to automate this task, previous "Learning to Optimize" (L2O) methods often struggle with scalability or require tens of thousands of expensive evaluations to find a winning formula.
In this paper, researchers introduce a framework that treats optimizer search as a path-finding problem on a mathematical "super-tree." By combining tree search with clever pruning techniques, they discover state-of-the-art optimizers with a tiny budget of just 128 evaluations—roughly 100x more efficient than previous reinforcement learning approaches.
TL;DR
The authors represent neural network optimizers as mathematical expression trees and use Monte Carlo Tree Search (MCTS) to navigate this space. By implementing "train-free" rejection sampling and symbolic hashing, they find optimizers that outperform Adam and SGD across diverse tasks—from image classification to BERT fine-tuning—using only 128 search iterations.
What Problem Does This Paper Address?
Most automated optimizer search methods fall into two camps:
- Parametric (L2O): These use a neural network (like an LSTM) as the optimizer. They are hard to scale to large models and often fail to generalize to tasks different from their training data.
- Non-Parametric (Symbolic): These search for mathematical formulas. While they generalize better, the search space is vast. Previous attempts used Reinforcement Learning (RL) but were notoriously "sample-inefficient," requiring over 10,000 evaluations to find a good candidate.
The authors aim to create a framework that is efficient (low search budget), scalable (works on large models), and generalizable (works across different domains).
Methods
The core insight is that any optimizer update rule is fundamentally a mathematical expression applied to a gradient, and these expressions have an innate tree structure.
1. The Super-Tree Search Space
The authors arrange the space of all possible optimizers into a "super-tree." Each node represents a mathematical operator (like $+$, $\times$, $\sqrt{\cdot}$, or $sign(\cdot)$) or an input (like the gradient $g$ or momentum $m_1$). A path from the root to a leaf node defines a complete optimizer formula.
2. Monte Carlo Tree Search (MCTS)
Instead of random search or RL, they use MCTS to navigate the super-tree. They assign scores to nodes based on the performance of optimizers sampled from those branches, guiding the search toward more promising mathematical structures.
3. Efficiency Boosters
To make the search viable with only 128 evaluations, they introduce three key filters:
- Descent Test (Rejection Sampling): Before running a single training step, they check if the candidate optimizer actually moves in a direction that forms an acute angle with the gradient. If it doesn't, it is discarded immediately.
- Equivalent-form Detection: Many different formulas are mathematically identical (e.g., $x/1$ vs $x$). They use a hashing technique—feeding a random "probing vector" into the formula—to identify and skip duplicate evaluations.
- Score Thresholding: They prune branches that consistently produce low-performing optimizers to save the budget for better candidates.
Datasets
The framework was evaluated on a wide variety of tasks to prove its generalizability:
- Vision: MNIST (MLP) and CIFAR-10 (ConvNet).
- Graphs: Node classification on OGBN-Product, Cora, Citeseer, PubMed, and PPI using Graph Attention Networks (GAT).
- NLP: Fine-tuning BERT on the GLUE benchmark (CoLA, MRPC, STS-B, RTE, WNLI).
- Adversarial Robustness: Searching for optimizers to improve norm-bounded adversarial attacks.
Key Insights
- Tight Search Space: Unlike previous methods that used fixed "motifs," this tree-based approach covers all possible update rules of a certain length without unnecessary complexity.
- The Power of Pruning: The "Descent Test" is a simple but powerful heuristic. A huge portion of the mathematical search space consists of "optimizers" that don't even move toward a local minimum. Filtering these out "train-free" is the secret to their 100x speedup.
- Generalization is Built-in: Because the discovered optimizers are simple mathematical formulas (non-parametric), they don't "overfit" to the specific weights of a model, allowing them to transfer across different architectures and datasets.
Key Results
- Superior Performance: On CIFAR-10, the discovered optimizer achieved 77.02% accuracy, outperforming Adam (73.42%) and even specialized searched optimizers like AddSign (76.07%).
- Graph Learning: The discovered optimizers consistently beat Adam on all five graph datasets, often by a significant margin (e.g., +2.6% on the OGBN-Product dataset).
- NLP: In BERT fine-tuning, the searched optimizers outperformed the industry-standard AdamW on every GLUE task tested.
- Efficiency: The entire search process on MNIST finishes in under an hour on a single RTX 2080ti.
Limitations and Future Work
- Input Dependency: The current search space uses pre-computed momentum terms ($m_1, m_2$) as inputs. Searching for the logic to create these internal states from scratch could lead to even more novel optimizers.
- Hyperparameter Tuning: While the search for the formula is automated, a simple grid search is still used to find the best learning rate for the discovered optimizer. Integrating more advanced Hyperparameter Optimization (HPO) into the search phase is a clear next step.
- Parallelization: While 128 evaluations is a small number, these are full training runs. More sophisticated "train-free" proxies could reduce this cost even further.
Summary updated