TL;DR
This paper investigates the trade-offs between memory, compute, and performance in learned optimizers, a promising but computationally expensive alternative to traditional optimizers. The authors introduce a novel, efficient learned optimizer architecture that achieves a better balance of these factors and release their code to foster further research.
What Problem Does This Paper Address?
Training large neural networks is computationally intensive, and while various optimizers exist, they are typically hand-designed with a limited number of hyperparameters. Learned optimizers, which use parameterized models to learn optimization strategies, offer the potential to improve training speed and final performance. However, they often come with significant computational and memory overhead, making them impractical for widespread use. This paper aims to systematically analyze these trade-offs and develop a learned optimizer that mitigates these issues.
Methods
The authors begin by formalizing the concept of optimizers and meta-learned optimizers. They then explore different types of learned optimizers, including hyperparameter controllers and per-parameter learned optimizers. A key contribution is the introduction of a new per-parameter learned optimizer, small_fc_lopt, which combines architectural features of per-parameter and factorized optimizers. This architecture is designed to be more efficient in terms of memory and compute while maintaining competitive performance. The meta-training process utilizes Persistent Evolutionary Strategies (PES).
Datasets
The paper uses the following datasets for training and evaluation:
- Fashion MNIST: A dataset of Zalando's article images, used for training a 2-hidden layer MLP.
- CIFAR-10: A dataset of 32x32 color images in 10 classes, used for training a 3-layer convolutional network.
- ImageNet: Used for training a 3-hidden layer MLP (for generalization experiments).
- Autoencoder on CIFAR-10: Used for evaluating generalization.
- LSTM language model: Trained on byte-level LM1B data for evaluating generalization.
Key Insights and Ideas
- Learned optimizers can outperform hand-designed ones but at a cost: While learned optimizers can achieve lower meta-loss (better performance), this often comes with significantly higher compute time and memory usage, especially for smaller tasks.
small_fc_loptoffers a Pareto-optimal solution: The proposedsmall_fc_loptarchitecture is shown to lie on the Pareto frontier, balancing memory, compute, and performance better than many existing learned and hand-designed optimizers.- Feature engineering is crucial for learned optimizers: The choice of input features significantly impacts the performance and overhead of learned optimizers.
- Meta-overfitting is a significant challenge: Learned optimizers, like hand-designed ones, can overfit to the meta-training task, leading to poor generalization to unseen tasks. This overfitting behavior is observed across various learned optimizer architectures.
- Hardware plays a role in efficiency: The efficiency of learned optimizers can depend on the underlying hardware, with matrix multiplication hardware showing different performance characteristics compared to vector hardware for certain architectures.
Key Results
- The proposed
small_fc_loptlearned optimizer achieves competitive performance and is more efficient in terms of memory and compute compared to many existing learned and hand-designed optimizers. - For the MLP task, learned optimizers can be significantly slower than hand-designed ones, but for ConvNets, the overhead is less pronounced due to the higher per-parameter cost of gradient computation.
- Even extremely narrow MLPs (as few as 2 units) can be sufficient to outperform the best hand-designed baseline (NAdamW) when used as learned optimizers.
- Meta-generalization experiments show that learned optimizers can exhibit poor generalization to novel tasks, and this meta-overfitting can occur even when hand-designed optimizers are tuned for generalization.
Limitations and Future Work
- Limited task diversity: The study primarily focuses on two tasks (MLP and ConvNet) which are relatively simple compared to state-of-the-art neural network models. Future work should explore a wider range of tasks to assess generalization more thoroughly.
- Meta-generalization analysis: The investigation into meta-generalization and validation performance is limited. Further research is needed to extend these findings.
- Computational budget: The experiments were constrained by computational budgets, limiting the depth of exploration for some aspects.
- Future work: The authors suggest extending the analysis to more complex tasks, exploring different meta-training strategies, and further investigating the architectural choices that lead to better generalization. The open-source release of their code is intended to facilitate future research in this area.
Summary updated