Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Strong mixed-integer programming formulations for trained neural networks

About

We present an ideal mixed-integer programming (MIP) formulation for a rectified linear unit (ReLU) appearing in a trained neural network. Our formulation requires a single binary variable and no additional continuous variables beyond the input and output variables of the ReLU. We contrast it with an ideal "extended" formulation with a linear number of additional continuous variables, derived through standard techniques. An apparent drawback of our formulation is that it requires an exponential number of inequality constraints, but we provide a routine to separate the inequalities in linear time. We also prove that these exponentially-many constraints are facet-defining under mild conditions. Finally, we study network verification problems and observe that dynamically separating from the exponential inequalities 1) is much more computationally efficient and scalable than the extended formulation, 2) decreases the solve time of a state-of-the-art MIP solver by a factor of 7 on smaller instances, and 3) nearly matches the dual bounds of a state-of-the-art MIP solver on harder instances, after just a few rounds of separation and in orders of magnitude less time.

Ross Anderson, Joey Huchette, Christian Tjandraatmadja, Juan Pablo Vielma• 2018

Related benchmarks

TaskDatasetResultRank
Optimal Adversary ProblemsMNIST (test)
Average Time (s)57.6
27
Robust VerificationMNIST (test)
Average Time (s)198.5
17
Formal VerificationMNIST FFNet first 1000 images (val)
Relative Verification Bound-1.3
13
Formal VerificationMNIST Deep first 1000 images (val)
Relative Verification Bound-5.9
13
Neural Network VerificationMNIST Deep
Time52.4
13
Neural Network VerificationMNIST Wide
Execution Time52.4
13
Robust VerificationCIFAR-10 (test)
Solution Count99
12
Neural Network VerificationMNIST Wide first 1000 images (val)
Relative Bound-2.6
6
Neural Network VerificationCIFAR SGD first 1000 images (val)
Relative Bound-0.7
6
Optimal Adversary ProblemsCIFAR-10 (test)
Success Count62
6
Showing 10 of 12 rows

Other info

Follow for update