Scalable Learning to Optimize: A Learned Optimizer Can Train Big Models

Xuxi Chen, Tianlong Chen, Yu Cheng, Weizhu Chen, Ahmed Awadallah, Zhangyang Wang

Abstract

Learning to Optimize (L2O) aims to replace hand-crafted optimization rules with learned neural networks. However, L2O has historically struggled with scalability; the memory overhead required to "unroll" the optimization process during training makes it nearly impossible to apply to large-scale models. This paper introduces SL2O (Scalable L2O), a framework that breaks this memory barrier by constraining updates to a tiny, low-dimensional subspace. By significantly reducing the number of trainable variables during meta-training, SL2O enables the use of learned optimizers for large architectures like Vision Transformers (ViT) and ResNets. Our results show that SL2O can achieve up to 4x faster convergence than traditional optimizers like Adam or SGD on standard benchmarks.

Introduction

In modern deep learning, optimizers such as Stochastic Gradient Descent (SGD) and Adam are the workhorses of model training. While effective, these are hand-designed algorithms. Learning to Optimize (L2O) proposes a meta-learning approach where an "optimizer" network is trained to update an "optimizee" network. Despite its potential for faster convergence, L2O's primary limitation is its massive memory footprint. Training a learned optimizer requires backpropagating through the optimization steps (unrolling), which creates a computational graph that scales with the number of optimizee parameters and optimization steps. Consequently, L2O has been largely confined to small-scale "toy" problems.

Methods: Subspace Training for Scalability

The core innovation of SL2O is subspace training. Instead of learning to update every individual parameter in a high-dimensional weight matrix, SL2O restricts the updates to a very small, "intrinsic" subspace.

For Convolutional Neural Networks (CNNs), the authors employ Singular Value Decomposition (SVD) to derive an orthogonal basis, allowing the optimizer to learn updates for a minimal set of coefficients (e.g., 40 variables). For larger architectures like Transformers, where SVD is computationally prohibitive, they utilize a layer-wise low-rank decomposition ($UV$), analogous to Low-Rank Adaptation (LoRA).

The SL2O framework unrolls the optimization process while restricting updates to a low-rank subspace (U, V), drastically reducing memory overhead.

By predicting updates only for this tiny subspace, the unrolled computational graph during meta-training remains small enough to fit within standard GPU memory. This allows SL2O to scale to models with millions of parameters, such as ViT-B/16 (~83M parameters).

Experimental Evaluation

The authors evaluated SL2O across various architectures (ResNet-18/20, VGG-16, ViT, GPT-2) and datasets (CIFAR-10/100, ImageNet, E2E).

Key Results

SL2O demonstrates significant improvements in convergence speed across multiple benchmarks. On CIFAR-10 with ResNet-18, SL2O converged 3.41 to 4.60 times faster than traditional analytical optimizers. Notably, SL2O achieved the first successful application of L2O to a Vision Transformer on a single GPU, outperforming well-tuned baselines by 1.24x in convergence speed.

Comparison of testing accuracy and convergence steps across different optimizers and architectures. SL2O shows significantly lower convergence steps while maintaining high accuracy.

On the ImageNet dataset, SL2O reached stability in fewer than 1,000 steps, whereas traditional baselines required approximately 5,000 steps to reach similar performance levels.

Discussion and Conclusion

The success of SL2O suggests that optimization rules learned in low-dimensional subspaces capture the essential dynamics of high-dimensional training. This allows for excellent transferability; an optimizer trained on a smaller model can be effectively applied to larger, different architectures.

While SL2O excels in early-to-mid-stage convergence, traditional optimizers may occasionally achieve higher final accuracy in the very late stages of training. To address this, a hybrid approach—using SL2O for rapid initial progress followed by analytical fine-tuning—is recommended. Future work will focus on further refining reparameterization techniques to enhance the generalizability of learned optimizers across even more diverse model families.

Summary updated

BibTeX
@inproceedings{chen2022scalable,
  author = {Xuxi Chen and Tianlong Chen and Yu Cheng and Weizhu Chen and Ahmed Awadallah and Zhangyang Wang},
  title = {{Scalable Learning to Optimize: A Learned Optimizer Can Train Big Models}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20050-2\_23},
}
Figure