Beyond NaN: Resiliency of Optimization Layers in The Face of Infeasibility

Wai Tuck Wong, Sarah Kinsey, Ramesha Karunasena, Thanh Nguyen, Arunesh Sinha
2/13/2022
cs.LGcs.CRmath.OC

Official code: wongwaituck/attacking-optimization-layers-public (0 stars, Jupyter Notebook, last commit 2023-02-04).

Abstract

Prior work has successfully incorporated optimization layers as the last layer in neural networks for various problems, thereby allowing joint learning and planning in one neural network forward pass. In this work, we identify a weakness in such a set-up where inputs to the optimization layer lead to undefined output of the neural network.

Show full abstract

Such undefined decision outputs can lead to possible catastrophic outcomes in critical real time applications. We show that an adversary can cause such failures by forcing rank deficiency on the matrix fed to the optimization layer which results in the optimization failing to produce a solution. We provide a defense for the failure cases by controlling the condition number of the input matrix. We study the problem in the settings of synthetic data, Jigsaw Sudoku, and in speed planning for autonomous driving, building on top of prior frameworks in end-to-end learning and optimization. We show that our proposed defense effectively prevents the framework from failing with undefined output. Finally, we surface a number of edge cases which lead to serious bugs in popular equation and optimization solvers which can be abused as well.

View on arXivView PDF

Code Implementations(1)

00Jupyter Notebook, PythonFeb 13, 20223 years ago

Similar Papers

Cite this paper

@article{wong2022beyond,
  title  = {Beyond NaN: Resiliency of Optimization Layers in The Face of Infeasibility},
  author = {Wai Tuck Wong and Sarah Kinsey and Ramesha Karunasena and Thanh Nguyen and Arunesh Sinha},
  year   = {2022},
  eprint = {2202.06242},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.06242}
}

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/2202.06242.svg)](https://codeofpaper.com/paper/2202.06242)

Discussion