Introduction
As neural networks are increasingly deployed in safety-critical systems like self-driving cars, the need for formal verification—proving a network is robust against adversarial attacks—has become paramount. This verification often involves solving optimization problems using Mixed-Integer Programming (MIP). However, modeling the non-linear Rectified Linear Unit (ReLU) activation function efficiently remains a significant bottleneck.
The ReLU Modeling Dilemma
The ReLU function, defined as $y = \max(0, x)$, is the most common activation in modern deep learning. In MIP, researchers face a trade-off when modeling it:
- Standard "big-M" formulations are computationally efficient but "weak," meaning their linear relaxations are loose and lead to slow solver performance.
- "Extended" formulations are "ideal" (mathematically tight) but introduce a massive number of auxiliary variables that cause solvers to struggle with larger networks.
Researchers from Google and MIT have developed a "Goldilocks" formulation: one that is as tight as the extended version but as lean on variables as the big-M version.
A Non-Extended Ideal Formulation
The core contribution of this work is a non-extended ideal formulation for a single ReLU neuron.
- Variable Efficiency: This approach uses zero additional continuous variables beyond the original inputs and outputs, requiring only one binary variable to indicate whether the neuron is "on" or "off."
- The Constraint Trade-off: To achieve tightness without extra variables, the authors use a family of inequalities that grows exponentially with the input dimension ($2^\eta$).
- Linear-Time Separation: Instead of adding all constraints at once, the solver uses a "separation routine" to find only the most violated ones. Crucially, this search takes only $O(\eta)$ time—linear relative to the number of inputs.
As shown in the figure above, the new formulation (left) "hugs" the true function much more closely than the standard relaxation (right). By focusing on specific input coordinates rather than just the aggregate affine value, the formulation eliminates much of the "impossible" non-integer space that slows down standard solvers.
Key Results and Impact
The researchers evaluated their formulation on MNIST digit classification networks, testing adversarial robustness (verifying if a small perturbation could change a classification).
- 7x Speedup: On smaller networks, the new formulation solved verification problems 7 times faster on average than the standard big-M method.
- Superior Convergence: In 79% of test cases where the standard big-M method failed to prove optimality within a 30-minute limit, the new formulation solved them efficiently.
- Scalability: For larger networks, previous "extended" formulations could not even solve the initial linear relaxation. The new method provided strong dual bounds in seconds, matching the quality of the best solvers while being orders of magnitude faster.
Conclusion
By trading a massive number of potential constraints for a minimal variable footprint and leveraging efficient separation routines, this work significantly advances the state-of-the-art in neural network verification. Future work will look toward capturing complex multi-neuron interactions and extending these ideal properties to other activation functions like Sigmoid or Leaky ReLU.
Summary updated