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

Towards Constituting Mathematical Structures for Learning to Optimize

Jialin Liu, Xiaohan Chen, Zhangyang Wang, Wotao Yin, HanQin Cai

Introduction

Optimization is the engine of modern artificial intelligence. Traditionally, designing efficient algorithms for specific problem classes—such as sparse recovery or logistic regression—has required manual tuning by domain experts. Learning to Optimize (L2O) seeks to automate this process by utilizing machine learning, typically neural networks, to learn the optimal update rule directly from data.

However, generic L2O models often treat the update rule as a complete black box, relying on architectures like LSTMs to predict the next optimization step. While powerful, these free-form models suffer from two major flaws:

  1. Overfitting: They exhibit poor out-of-distribution (OOD) generalization, frequently failing when test data deviates even slightly from the training distribution.
  2. Lack of Rigor: They do not inherently respect fundamental laws of optimization, such as the "fixed-point condition"—the mathematical necessity that an optimizer should stop moving once it reaches the minimum.

The Need for Mathematical Structure

To bridge the gap between black-box machine learning and classical optimization theory, this paper introduces "math-inspired" structures to L2O. The authors propose a shift from free-form learning to structured learning by deriving mathematical conditions that any valid update rule must satisfy. These are based on two core principles:

  • Asymptotic Fixed Point Condition: The update magnitude must vanish as the iterate approaches the optimal solution.
  • Global Convergence: The sequence of iterates must reliably converge to a minimizer.

Through theoretical analysis, the authors prove that for convex problems, any update rule satisfying these conditions must take a specific form involving a preconditioner (a matrix scaling the gradient) and a bias term.

Methodology: L2O-PA

Building on these theoretical foundations, the researchers developed L2O-PA. Instead of predicting the entire update from scratch, L2O-PA uses a coordinate-wise LSTM to predict only the mathematically grounded components: a diagonal preconditioner ($p_k$) and an acceleration factor ($a_k$).

The actual optimization update is then executed using a structured Proximal Gradient Descent step. By constraining the neural network to operate within this mathematically sound framework, the model is prevented from making arbitrary, unprincipled updates.

Experimental Setup

The model was evaluated on two primary optimization tasks:

  • LASSO Regression: Trained on synthetically generated sparse recovery problems and tested on both synthetic data and real-world image patches from the BSDS500 dataset.
  • $\ell_1$-regularized Logistic Regression: Trained on randomly generated binary classification datasets and tested on real-world datasets from the UCI Machine Learning Repository (Ionosphere and Spambase) as well as image classification on CIFAR-10.

Results and Insights

The introduction of mathematical structure yielded significant improvements over traditional and generic L2O baselines:

  • Speed and Efficiency: In logistic regression tasks, L2O-PA converged to optimal solutions nearly 100x faster than FISTA (a standard classical optimizer) and significantly outperformed other L2O baselines like L2O-DM. Despite a more complex per-iteration logic than simple algorithms like Adam, L2O-PA required far fewer iterations to reach high precision, drastically reducing total wall-clock time.
  • Robustness and Generalization: On out-of-distribution tests—such as training on synthetic data and testing on the real-world Spambase dataset—generic L2O models often failed to converge. In contrast, L2O-PA successfully reached machine precision.
  • Constraints as Regularization: Restricting the neural network to learn only specific parameters ($p_k, a_k$) within a fixed formula effectively regularized the model, preventing the erratic update behaviors that cause black-box models to fail on novel data.
  • Generalization Across Scales: Utilizing a coordinate-wise architecture allowed a model trained on small problems (e.g., 500 variables) to be applied to much larger problems (e.g., 5,000 variables) without any retraining.
  • The "Bias" Paradox: Interestingly, while the underlying theory suggested the existence of a bias term ($b_k$), empirical testing revealed that fixing the bias to zero improved performance. This indicates that simpler, theoretically "pure" structures are often easier for L2O models to optimize.

Limitations and Future Directions

While L2O-PA represents a significant step forward, several challenges remain. The current theoretical framework relies heavily on the assumption of convexity; extending these mathematical structures to non-convex landscapes, such as training deep neural networks, is a major hurdle. Additionally, the authors utilized diagonal matrices for their learned preconditioners to maintain computational efficiency. Exploring non-diagonal structures could unlock even faster convergence rates, though at a higher computational cost per step. Finally, while the model generalizes well, it exhibits some performance degradation when executed for thousands of iterations beyond its short-horizon (100-step) training regime.

Summary updated

BibTeX
@inproceedings{liu2023towards,
  author = {Jialin Liu and Xiaohan Chen and Zhangyang Wang and Wotao Yin and HanQin Cai},
  title = {{Towards Constituting Mathematical Structures for Learning to Optimize}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=G1LfFGvwru1},
}
Figure