LPGD: A General Framework for Backpropagation through Embedded Optimization Layers

Anselm Paulus, Georg Martius, Vít Musil
7/8/2024
cs.LG

No official code found. Best implementation: martius-lab/diffcp-lpgd (3 stars, Apache-2.0, last commit 2025-01-30).

Abstract

Embedding parameterized optimization problems as layers into machine learning architectures serves as a powerful inductive bias. Training such architectures with stochastic gradient descent requires care, as degenerate derivatives of the embedded optimization problem often render the gradients uninformative. We propose Lagrangian Proximal Gradient Descent (LPGD) a flexible framework for training architectures with embedded optimization layers that seamlessly integrates into automatic differentiation libraries. LPGD efficiently computes meaningful replacements of the degenerate optimization layer derivatives by re-running the forward solver oracle on a perturbed input. LPGD captures various previously proposed methods as special cases, while fostering deep links to traditional optimization methods. We theoretically analyze our method and demonstrate on historical and synthetic data that LPGD converges faster than gradient descent even in a differentiable setup.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Differentiation through cone programs

30C, C++May 27, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{paulus2024lpgd,
  title  = {LPGD: A General Framework for Backpropagation through Embedded Optimization Layers},
  author = {Anselm Paulus and Georg Martius and Vít Musil},
  year   = {2024},
  eprint = {2407.05920},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.05920v1},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.05920.svg)](https://codeofpaper.com/paper/2407.05920)

Discussion