Choosing the right optimizer—Adam, SGD, RMSProp, or something more exotic—is often the first "trial by fire" for any machine learning practitioner. Because of the "No Free Lunch" theorem, we know no single optimizer is universally superior. A strategy that works for the first 100 iterations might fail in the last 1,000, and what works for a convolutional layer might be suboptimal for a fully connected one.
In this paper, researchers propose a clever solution: Optimizer Amalgamation. Instead of picking one optimizer, why not combine a "pool" of them into a single, smarter "student" optimizer that inherits the strengths of every teacher?
TL;DR
The authors introduce "Optimizer Amalgamation," a framework that distills the collective wisdom of multiple hand-crafted optimizers (like Adam and SGD) into a single, learnable neural optimizer. By using a novel "Optimal Choice" mechanism and weight-space smoothing, their amalgamated optimizer outperforms individual components and previous state-of-the-art learned optimizers across various datasets and architectures.
What Problem Does This Paper Address?
The "cottage industry" of optimizer design has produced dozens of algorithms, each claiming superiority in specific niches. However, neural network training is non-homogeneous: different layers and different stages of training (early vs. late) often require different update rules.
While "Learning to Optimize" (L2O)—using neural networks to be the optimizer—is a growing field, these models are notoriously difficult to train and often fail to generalize. This paper addresses the gap between reliable, hand-crafted analytical optimizers and flexible, but unstable, learned optimizers. The goal is to create a student model that can adaptively switch its behavior per-parameter and per-iteration based on what a pool of "teacher" optimizers would do.
Methods
The authors leverage the RNNProp architecture (an LSTM-based optimizer) as their "student." They propose three differentiable schemes to "amalgamate" knowledge from a pool of teachers:
- Mean Amalgamation: The student minimizes the average distance to all teachers' trajectories.
- Min-Max Amalgamation: To prevent the student from "sticking" to just one teacher, this approach focuses on the teacher with the highest distillation loss at each step, encouraging the student to stay in the "middle" of the teacher pool.
- Optimal Choice Amalgamation: This is the most advanced method. They first train a small "choice network" to decide which teacher is best for a given step/layer. The student is then trained to imitate this "optimal" teacher.
To solve the inherent instability of meta-training these models (a problem they call meta-stability), they introduce Weight Space Perturbations. By adding random Gaussian noise or adversarial noise (via PGD) to the optimizer's own weights during training, they force the student to find a flatter, more robust loss landscape.
Datasets
The models were trained and evaluated on several standard computer vision benchmarks:
- Training: MNIST (2-layer CNN).
- Evaluation (Generalization):
- Datasets: FMNIST, SVHN, and CIFAR-10.
- Architectures: 2-layer MLP, "Wider" CNNs, "Deeper" 6-layer CNNs, and a 28-layer ResNet.
- Settings: Small batch sizes and Differentially Private (DP) training.
Key Insights and Ideas
- The "Sticking" Problem: In Mean Amalgamation, if teachers diverge (e.g., heading toward different local minima), the student often gets "stuck" following just one, losing the benefit of the others.
- Optimal Choice is King: Training an intermediate "choice" agent to pick the best teacher per-iteration is significantly more effective than simple averaging. It allows the student to exploit problem-specific knowledge more precisely.
- Stability via Noise: One of the most interesting findings is that perturbing the optimizer's weights (not the inputs or the gradients) is a powerful way to stabilize the meta-learning process. This "smoothing" leads to much lower variance across different training runs.
- Performance vs. Stability Trade-off: Analytical optimizers usually trade stability for speed. The amalgamated optimizer manages to capture the high performance of aggressive optimizers while maintaining the stability of more conservative ones.
Key Results
- Superiority over Teachers: The amalgamated optimizer (using the "Large" pool: Adam, RMSProp, SGD, Momentum, AddSign, PowerSign) consistently achieved lower validation loss than the best individual teacher in the pool (the "Oracle").
- Beating L2O Baselines: It significantly outperformed previous state-of-the-art learned optimizers like "RNNProp" and "Scale" across almost all tested scenarios.
- Robustness: The amalgamated optimizer showed remarkable generalization. Even when trained on a simple 2-layer CNN on MNIST, it performed excellently on a 28-layer ResNet on CIFAR-10.
- Variance Reduction: Weight-space smoothing reduced the standard deviation of the student's performance across replicates, making the training process much more reliable.
Limitations and Future Work
- Memory Overhead: Both Mean and Min-Max amalgamation require storing complete training trajectories for every teacher in the pool, which is memory-intensive and limits the number of teachers you can use simultaneously.
- The Scaling Wall: While the optimizer generalizes well to 28-layer ResNets, the authors noted a performance drop when moving to much larger models (like a 52-layer ResNet) or more complex datasets like CIFAR-100.
- Future Directions: The authors suggest exploring even more diverse teacher pools and investigating how to improve generalization to "distant" problems that look nothing like the training data.
Summary updated