Metric Learning to Accelerate Convergence of Operator Splitting Methods

Ethan King, James Kotary, Ferdinando Fioretto, Ján Drgona

TL;DR

This paper introduces a novel approach to accelerate optimization algorithms by learning a problem-specific "metric" that guides the optimization process. By training neural networks to predict these metrics, the authors demonstrate significant convergence speedups for quadratic programming problems, outperforming traditional methods and heuristic approaches, especially in the presence of complex constraints.

What Problem Does This Paper Address?

Many real-world applications, from AI to optimal control, rely on solving constrained optimization problems quickly and efficiently. Traditional optimization algorithms, while powerful, can be slow, especially when dealing with complex constraints. Existing methods to speed these up often involve learning parameters of the algorithm itself (like step sizes) or providing good initial guesses. This paper tackles a different angle: it focuses on accelerating operator splitting methods (like ADMM and Douglas-Rachford splitting) by learning the underlying "metric space" they operate in. Standard implementations use the Euclidean metric, but theory suggests that non-Euclidean metrics can improve convergence. However, finding optimal non-Euclidean metrics is often computationally prohibitive or limited to specific problem classes. This work aims to bridge this gap by using machine learning to learn these optimal metrics for a broader class of problems, particularly Quadratic Programming (QP).

Methods

The core innovation is using differentiable programming to train neural networks that predict positive-definite matrices (which define the metric space) as a function of the optimization problem's parameters.

Here's a breakdown:

  • Problem Reformulation: The authors first reformulate general QP problems into a standard form that is amenable to operator splitting methods by introducing slack variables for inequality constraints. This allows for a unified treatment.
  • Operator Splitting Methods: They focus on Douglas-Rachford (DR) splitting and the Alternating Direction Method of Multipliers (ADMM), which are common and powerful algorithms for optimization.
  • Metric Learning: A neural network is trained to output a diagonal metric matrix M. This M is then used within the proximal operator calculations of DR and ADMM.
  • End-to-End Training: The entire system is trained end-to-end. This means the neural network learns to predict metrics that minimize the optimization error after a fixed number of iterations. Gradients are backpropagated through the optimization steps themselves.
  • Loss Function: The loss function is based on the mean squared error between the algorithm's output after a fixed number of iterations and the true optimal solution.
  • Initial Solution Estimator: An auxiliary neural network is also trained to provide a good initial guess for the optimization problem, further accelerating convergence.

Datasets

The paper does not explicitly mention standard, publicly available datasets. Instead, it generates synthetic datasets for training and testing by sampling parameters for the QP problems.

  • Portfolio Optimization: Synthetic data generated by adding Gaussian noise to price action data from Nasdaq.
  • Quadcopter Control: Synthetic data generated by sampling initial states for a quadcopter model.
  • Illustrative Example: A simple 2D QP problem with parameters p1, p2 sampled from [-2, 2].

Key Insights and Ideas

  • Learned Metrics Mimic Active Constraints: A surprising and key finding is that the learned metric weights strongly correlate with the active constraints at the optimal solution. This suggests that metric learning can implicitly perform "active set prediction," a crucial step in many optimization algorithms.
  • Heuristic Metrics Can Be Detrimental: The theoretically derived "heuristic" metric choices, which aim for fast convergence without considering constraints, can actually slow down convergence when active constraints are present. This highlights the limitations of purely theoretical approaches.
  • Metric Learning as Active Set Prediction: The paper proposes that learning optimal metrics is closely related to predicting which constraints will be active at the optimum, suggesting a deep connection between metric learning and active set prediction.
  • End-to-End Learning is Powerful: Training the metric prediction model directly by backpropagating through the optimization steps allows the model to learn metrics that are specifically optimized for the desired number of iterations and problem characteristics.

Key Results

  • Significant Speedups: The learned metrics consistently lead to faster convergence for both DR and ADMM compared to using the standard Euclidean metric, often achieving orders of magnitude improvement in solution accuracy within a limited number of iterations.
  • Outperforming Heuristics: In cases where theoretically prescribed heuristic metrics perform poorly (due to active constraints), the learned metrics provide substantial improvements.
  • Active Constraint Correlation: Visualizations (Figures 2 and 3) clearly show learned metric weights for slack variables increasing when their corresponding constraints are active at the optimum.
  • Problem-Specific Optimization: The performance of the learned metric is highly dependent on the training budget (number of iterations used during training). Models trained for k iterations perform best at k iterations.

Limitations and Future Work

  • Computational Expansion: The problem reformulation with slack variables increases the overall problem size, which is a trade-off for enabling metric learning.
  • Generalization: While the approach is demonstrated on QP problems, its applicability to more general optimization problem classes would require further investigation.
  • Hyperparameter Tuning: The choice of Pmax for the metric representation was found to be a sensitive hyperparameter requiring search.
  • Future Work: The authors suggest exploring the combination of metric learning with other acceleration techniques, such as learning warm-starts, to further reduce solution times for large-scale problems. They also emphasize the need to understand the capacity of metric learning to reduce solution time on large-scale problems.

Summary updated

BibTeX
@inproceedings{king2024metric,
  author = {Ethan King and James Kotary and Ferdinando Fioretto and Ján Drgona},
  title = {{Metric Learning to Accelerate Convergence of Operator Splitting Methods}},
  booktitle = {CDC},
  year = {2024},
  doi = {10.1109/cdc56724.2024.10886873},
}
Figure