Learning to Optimize: A Primer and A Benchmark

Tianlong Chen, Xiaohan Chen, Wuyang Chen, Howard Heaton, Jialin Liu, Zhangyang Wang, Wotao Yin

TL;DR

This paper provides a comprehensive survey and introduces the first standardized benchmark (Open-L2O) for the emerging field of "Learning to Optimize" (L2O). By categorizing L2O into model-free and model-based approaches, the authors reveal that while model-based methods consistently excel by leveraging known problem structures, model-free methods still struggle significantly with scalability, stability, and out-of-distribution generalization.

What Problem Does This Paper Address?

Classic optimization algorithms (like Gradient Descent, Adam, or analytical solvers) are hand-crafted by experts. They are theory-driven, offering worst-case performance guarantees, but they generally ignore the specific data distribution of the tasks at hand.

"Learning to Optimize" (L2O) is a paradigm shift that uses machine learning to automate the design of optimizers. By training on a specific distribution of problems, L2O aims to discover "short cuts" that allow it to converge much faster or find better solutions than classic methods. However, the L2O field has grown rapidly and fragmented. Without a unified taxonomy or standardized benchmarks, it has been incredibly difficult to fairly compare different L2O methods or understand their practical limits. This paper addresses that gap by surveying the landscape and introducing a rigorous, open-source benchmark.

Methods

The authors categorize L2O into two primary architectures:

  1. Model-Free L2O: These methods learn update rules entirely from scratch, typically using Recurrent Neural Networks (like LSTMs) or Reinforcement Learning. The network takes the optimizee's state (e.g., gradients, objective values) and directly outputs the next parameter update.
  2. Model-Based L2O: These methods fuse classic optimization algorithms with learned components.
  3. Algorithm Unrolling: Takes an iterative algorithm (like ISTA for sparse coding) and "unrolls" its steps into the layers of a neural network, allowing parameters (like step sizes or thresholds) to be learned from data.
  4. Plug-and-Play (PnP): Reaps the benefits of analytical algorithms but swaps out specific analytical steps (like a proximal operator) with a trained neural network (like a CNN denoiser).

To evaluate these, the authors introduce Open-L2O, a benchmark framework that tests these methods against traditional analytical optimizers under identical conditions.

Datasets

The paper introduces the Open-L2O benchmark package, which evaluates methods across three specific testbeds:

  • Convex Sparse Optimization: Uses synthetic sparse vectors and Gaussian/coherent dictionary matrices (with coherent dictionaries generated from the BSD500 image dataset).
  • Non-convex Minimization: Uses a generalized family of synthetic Rastrigin functions.
  • Neural Network Training: Uses the MNIST dataset to train Multi-layer Perceptrons (MLPs) and Convolutional Neural Networks (ConvNets).

Key Insights and Ideas

  • Structure is King: The most striking takeaway is that model-based L2O (which bakes in classic optimization priors) is vastly superior to model-free L2O. When the mathematical structure of a problem is known, unrolling an algorithm is highly data-efficient and reliable.
  • The Truncation Dilemma: Model-free L2O (LSTMs) faces a fundamental trade-off during meta-training. Unrolling the LSTM for many steps causes gradient explosion/vanishing. But unrolling for too few steps causes severe "truncation bias," leading to optimizers that fail when run for longer horizons during actual use.
  • Generalization is a Major Hurdle: Model-free optimizers trained on small networks or short horizons often fail catastrophically when applied to larger networks or run for more iterations than they were trained for. They struggle to extrapolate.
  • Data-Driven Priors Beat Hand-Crafted Ones: In model-based L2O (especially for inverse problems like image restoration), learning a data-dependent prior via a neural network is far more effective than relying on traditional hand-designed priors like sparsity or total variation.

Key Results

  • Sparse Recovery: Model-based unrolled algorithms (like ALISTA and GLISTA) achieve state-of-the-art recovery in just 16 iterations, matching or beating what classic analytical methods (like FISTA) achieve in hundreds of iterations. ALISTA proved particularly robust to scaling up problem sizes.
  • LASSO Minimization: When comparing both paradigms directly, model-based L2O (LISTA/ALISTA) converged to high precision rapidly. In contrast, model-free L2O methods (L2O-DM, L2O-enhanced) performed poorly, often failing to decrease the objective at all on larger problem sizes.
  • Neural Network Training: On MNIST, model-free L2O methods successfully optimized simple MLPs but exhibited severe instability and divergence when transferred to unseen architectures (like ConvNets) or when run for 10,000 steps (far beyond their 100-step training horizon).

Limitations and Future Work

The authors are highly transparent about the current limitations of the field:

  • Theoretical Gaps: Model-free L2O lacks rigorous theoretical guarantees for convergence and generalization. It is largely a "black box" that works empirically (sometimes) but lacks the safety nets of classic optimization.
  • Scalability: Model-free L2O is severely bottlenecked by memory. Training an LSTM optimizer to optimize a modern deep neural network requires keeping the entire computation graph of the optimizee in memory, which is currently infeasible for models with millions of parameters.
  • Future Directions: The authors suggest exploring the spectrum between purely model-based and purely model-free approaches. They also highlight the need to develop a more general framework for model-specific L2O, moving beyond the current trend of case-by-case, problem-specific designs.

Summary updated

BibTeX
@article{chen2023learning,
  author = {Tianlong Chen and Xiaohan Chen and Wuyang Chen and Howard Heaton and Jialin Liu and Zhangyang Wang and Wotao Yin},
  title = {{Learning to Optimize: A Primer and A Benchmark}},
  journal = {AutoML (Journal Track)},
  year = {2023},
  url = {https://openreview.net/forum?id=aKOKYQNJHX},
}
Figure