Learning with Differentiable Perturbed Optimizers
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Shortest Path | 5x5 Grid Graph (test) | Normalized Testing Set Regret7.62 | 120 | |
| Predict-then-Optimize | 2D knapsack (test) | Normalized Regret (%)5.9 | 84 | |
| Portfolio Optimization | Portfolio optimization Degree 1 (test) | Normalized Testing Set Regret85 | 20 | |
| Portfolio Optimization | Portfolio optimization Degree 3 (test) | Normalized Regret80 | 20 | |
| Portfolio Optimization | Portfolio optimization Degree 7 (test) | Normalized Regret46 | 20 | |
| Shortest Path Prediction | Warcraft II | Accuracy94.8 | 16 | |
| Set Matching | Set Matching SM1 (test) | Regret (%)92.08 | 10 | |
| Synthetic Shortest Path | Synthetic Shortest Path SP1 (test) | Regret (%)17.73 | 10 | |
| Set Matching | Set Matching SM2 (test) | Regret (%)92.35 | 10 | |
| Synthetic Shortest Path | Synthetic Shortest Path SP2 (test) | Regret (%)11.83 | 10 |