[Paper Review] Learning with Differentiable Perturbed Optimizers
Proposes a general method to make discrete optimizers differentiable by stochastic perturbations, enabling end-to-end learning and linking to Fenchel-Young losses, with applications to ranking and shortest paths.
Machine learning pipelines often rely on optimization procedures to make discrete decisions (e.g., sorting, picking closest neighbors, or shortest paths). Although these discrete decisions are easily computed, they break the back-propagation of computational graphs. In order to expand the scope of learning problems that can be solved in an end-to-end fashion, we propose a systematic method to transform optimizers into operations that are differentiable and never locally constant. Our approach relies on stochastically perturbed optimizers, and can be used readily together with existing solvers. Their derivatives can be evaluated efficiently, and smoothness tuned via the chosen noise amplitude. We also show how this framework can be connected to a family of losses developed in structured prediction, and give theoretical guarantees for their use in learning tasks. We demonstrate experimentally the performance of our approach on various tasks.
Motivation & Objective
- Enable end-to-end differentiability in pipelines containing discrete solvers (e.g., sorting, shortest paths).
- Introduce a systematic perturbation-based smoothing that yields differentiable, non-constant outputs.
- Establish theoretical guarantees and connections to Fenchel-Young losses for structured prediction.
- Provide a practical, parallelizable learning framework with doubly stochastic optimization.
- Demonstrate effectiveness on tasks like ranking and shortest-path prediction and release accompanying software.
Proposed method
- Perturb the input θ with random noise εZ and study the perturbed maximizer y*_ε(θ).
- Define the perturbed maximum F_ε(θ)=E[F(θ+εZ)] and show y*_ε(θ)=∇_θF_ε(θ).
- Show derivatives of F_ε and y*_ε are expressible as simple expectations, enabling Monte Carlo estimates.
- Relate y*_ε to a regularized optimization via Fenchel duality with Ω=(F_ε)^*, and connect to Fenchel-Young losses.
- Introduce a doubly stochastic training scheme for learning with these losses, using Monte Carlo samples to approximate gradients.
- Outline practical implementation as black-box differentiation through any solver by sampling perturbations and solving the original LPs.
Experimental results
Research questions
- RQ1Can discrete optimizers be made differentiable in a principled, solver-agnostic way using stochastic perturbations?
- RQ2How can we compute gradients and Jacobians of the perturbed maximizer efficiently via expectations or Monte Carlo estimates?
- RQ3How do Fenchel-Young losses arise naturally in this perturbed framework and how can they be optimized?
- RQ4Do perturbation-based methods perform well on structured prediction tasks like ranking and shortest paths?
Key findings
- The perturbed maximizer y*_ε(θ) is differentiable in θ with a non-zero Jacobian for ε>0.
- Derivatives of F_ε and y*_ε are given by simple expectations over noisy inputs, enabling efficient computation.
- A convex Fenchel-Young loss can be derived and optimized with gradients that do not require Jacobians of the maximizer.
- A doubly stochastic gradient method accelerates learning by using Monte Carlo estimates of perturbations, without requiring closed-form distributions.
- Experiments on CIFAR-10, label ranking, and shortest-path tasks show competitive or favorable performance and robustness to temperature ε.
- The method can be applied as a plug-in to turn any black-box solver into a differentiable block, with an open-source implementation planned.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.