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

Meta-Learning Parameterized First-Order Optimizers using Differentiable Convex Optimization

Tanmay Gautam, Samuel Pfrommer, Somayeh Sojoudi · DOI

Introduction

In modern machine learning and control systems, the performance of a model is often heavily dependent on the choice of optimizer. Standard first-order methods such as Stochastic Gradient Descent (SGD), Adam, and RMSProp are widely used but frequently require extensive hyperparameter tuning to suit the specific geometry of a given problem. The field of meta-learning, or "learning to learn," seeks to automate this process by using data from previous tasks to optimize the optimization process itself for future, similar tasks.

This paper introduces a novel framework that leverages Differentiable Convex Optimization (DCO) to parameterize and learn update rules. By treating the optimizer's inner step as a learnable quadratic program, the authors develop optimizers that can be tailored to specific problem classes, potentially outperforming general-purpose tools and even achieving theoretical one-step convergence.

The DCO Framework

The core innovation of this work is the representation of an optimizer as a DCO layer. In traditional Gradient Descent (GD), the update rule can be interpreted as solving a simple optimization problem: finding a point that minimizes a linear approximation of the loss function while remaining within a proximal distance of the current iterate. The authors generalize this concept by making the parameters of this proximal problem learnable.

Optimizer Variants

The authors propose three primary instantiations of the DCO update rule:

  1. DCO Gradient (DCOG): This variant learns a vector of per-weight learning rates, allowing for fine-grained control over the step size for different parameters.
  2. DCO General Descent (DCOGD): This version learns a full matrix $B$ that transforms the gradient. This effectively allows the meta-learner to discover an optimal "pre-conditioner" for a specific class of problems.
  3. DCO Momentum (DCOM): This variant incorporates temporal dynamics by learning both per-weight learning rates and per-weight momentum averaging coefficients.

By parameterizing the update rule as a Quadratic Program (QP), the framework provides a structured approach that unifies several classical optimizers—including GD, Proximal Gradient, and Mirror Descent—as specific, restricted cases of the DCO model.

Meta-Learning via Implicit Differentiation

The training process for these optimizers follows a nested loop structure:

  • Inner Loop: The DCO-based optimizer is applied to a specific task (e.g., a regression problem) for a fixed number of steps $T$.
  • Outer Loop: A meta-optimizer (such as RMSProp) updates the parameters of the DCO layer.

Crucially, this meta-update is made possible through implicit differentiation. This technique allows gradients to be backpropagated through the "arg min" of the DCO step, enabling the meta-optimizer to understand how changes in the DCO parameters affect the final loss at the end of the inner loop trajectory.

Experimental Evaluation

The authors evaluated the DCO framework across three distinct task distributions designed to test different aspects of optimization performance:

  1. Least Squares Task: 100-dimensional linear regression problems with fixed feature matrices but varying targets.
  2. System Identification: Learning the nonlinear dynamics of population growth using the Beverton–Holt model.
  3. Smooth Function Interpolation: Regressing a nonlinear univariate function defined by $g(x) = a \cos(bx)\exp(-c|x|)$.

In each setting, the DCO-based optimizers (DCOG, DCOGD, and DCOM) demonstrated significantly faster convergence compared to heavily tuned versions of Adam, SGD, and RMSProp. In the Least Squares task, the DCO optimizers reached near-zero loss in a fraction of the time required by standard baselines. Furthermore, the meta-parameters learned on training tasks generalized effectively to 100 unseen tasks from the same distribution.

Theoretical Insights and Limitations

A key theoretical contribution of the paper is the proof that for a family of shifted linear least-squares problems, the DCOGD optimizer can learn the optimal update rule. Given sufficient training tasks, the meta-learner identifies a parameterization that allows it to solve new tasks from that family in exactly one step.

Despite these promising results, the authors identify several challenges for future research:

  • Computational Overhead: Solving a Quadratic Program at every iteration of the inner loop is computationally more expensive than the simple arithmetic updates used by Adam or SGD. Current implementations using CVXPYLayers are effective but limit the approach to smaller-scale problems.
  • Scalability: The DCOGD variant requires learning a $p \times p$ matrix, where $p$ is the number of parameters. For modern deep neural networks with millions of parameters, this becomes computationally and memory-prohibitive.

Conclusion

This work demonstrates that embedding differentiable convex optimization within a meta-learning framework provides a powerful and mathematically grounded way to "learn" optimizers. By moving away from black-box meta-learners (like LSTMs) and toward structured DCO layers, the authors provide a path toward more efficient, task-specific optimization. Future work will likely focus on developing more efficient DCO solvers to scale this approach to large-scale deep learning architectures.

Summary updated

BibTeX
@inproceedings{gautam2023meta,
  author = {Tanmay Gautam and Samuel Pfrommer and Somayeh Sojoudi},
  title = {{Meta-Learning Parameterized First-Order Optimizers using Differentiable Convex Optimization}},
  booktitle = {CDC},
  year = {2023},
  doi = {10.1109/cdc49753.2023.10383342},
}
Figure