NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

From Learning to Optimize to Learning Optimization Algorithms

Camille Castera, Peter Ochs

Abstract

Towards designing learned optimization algorithms that are usable beyond their training setting, we identify key principles that classical algorithms obey, but have up to now, not been used for Learning to Optimize (L2O). Following these principles, we provide a general design pipeline, taking into account data, architecture and learning strategy, and thereby enabling a synergy between classical optimization and L2O, resulting in a philosophy of Learning Optimization Algorithms. As a consequence our learned algorithms perform well far beyond problems from the training distribution. We demonstrate the success of these novel principles by designing a new learning-enhanced BFGS algorithm and provide numerical experiments evidencing its adaptation to many settings at test time.

Introduction: The Generalization Crisis in L2O

The field of Learning to Optimize (L2O) aims to replace hand-crafted optimizers like Adam or BFGS with neural networks trained to navigate loss landscapes more efficiently. However, L2O models often suffer from a "generalization crisis," where a model trained on a specific architecture or dataset fails when applied to slightly different problems. In contrast, classical algorithms like Gradient Descent are robust because they obey fundamental geometric principles.

This work introduces the concept of Learning Optimization Algorithms (LOA). Instead of treating the optimizer as a black box, LOA models inherit the theoretical robustness of classical mathematics by hard-coding five core principles:

  1. Dimension Independence: Optimizer parameters do not grow with problem size.
  2. Translation Equivariance: Results are invariant to coordinate system shifts.
  3. Permutation Equivariance: The ordering of variables does not affect the outcome.
  4. Geometric Rescaling Equivariance: Input scaling results in proportional step scaling.
  5. Function Rescaling Invariance: Objective function scaling does not alter the optimization path.

The LOA-BFGS Architecture

To demonstrate these principles, the authors developed a learned version of the BFGS algorithm. Rather than predicting steps directly, the neural network is integrated into the variational derivation of BFGS, predicting a vector $y_k$ used to update the inverse Hessian approximation.

The architecture employs a coordinate-wise approach where a small Multi-Layer Perceptron (MLP) is applied to every dimension. To facilitate communication between dimensions—a requirement for second-order methods—a global averaging operation is used, which preserves permutation symmetry.

The LOA-BFGS architecture utilizes coordinate-wise MLPs and global averaging to ensure dimension independence and permutation equivariance.

A key innovation is the "BFGS Warm Start." By initializing the network weights so that it initially behaves exactly like vanilla BFGS, the authors avoid the training instabilities (like exploding gradients) common in L2O.

Experimental Results and Robustness

The model was trained on a minimal dataset of 20 synthetic, ill-conditioned 100-dimensional quadratic problems. Despite this narrow training, the LOA-BFGS demonstrated remarkable generalization across diverse test scenarios, including 500-dimensional quadratics and real-world datasets for Logistic and Ridge Regression (e.g., Mushrooms, w8a, California Housing).

Convergence plots for training and test problems show that LOA-BFGS significantly outperforms vanilla BFGS across various problem indices and iterations.

As shown in the results, LOA-BFGS consistently outperforms vanilla BFGS and remains stable where other L2O baselines often oscillate or fail. Furthermore, the authors provide a convergence proof (Theorem 2), guaranteeing that the algorithm finds a stationary point under standard conditions—a significant step forward for the reliability of learned optimizers.

Conclusion

By bridging the gap between classical optimization theory and machine learning, the LOA framework provides a blueprint for creating robust, generalizable, and theoretically grounded learned optimizers. Future work will focus on adapting these principles to stochastic settings and reducing the computational overhead of neural network layers in extremely high-dimensional problems.

Summary updated

BibTeX
@inproceedings{castera2025from,
  author = {Camille Castera and Peter Ochs},
  title = {{From Learning to Optimize to Learning Optimization Algorithms}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=PRvopxdh5K},
}
Figure