Global optimization of objective functions represented by ReLU networks

Christopher A. Strong, Haoze Wu, Aleksandar Zeljic, Kyle D. Julian, Guy Katz, Clark W. Barrett, Mykel J. Kochenderfer

Introduction

Formal verification of neural networks has traditionally focused on the "Decision Problem"—determining whether an input exists within a specific region that leads to an unsafe output. While this binary classification is useful, it fails to provide the quantitative insights required for rigorous safety-critical engineering. Questions such as "What is the maximum possible error this controller could produce?" or "What is the smallest possible change to an image that would cause a misclassification?" require Global Optimization.

This paper introduces MarabouOpt, a framework designed to transform neural network verifiers into global optimizers. By integrating optimization objectives directly into the search-based Reluplex algorithm, the authors provide a tool that significantly outperforms naive bisection methods and offers performance complementary to existing Mixed-Integer Programming (MIP) solvers.

The primary contribution of this work is the extension of the Reluplex algorithm, the core engine of the Marabou verifier. Rather than treating the verifier as a "black box" within a binary search (bisection) loop, MarabouOpt employs a "white-box" approach. The "aha moment" of this research is the realization that the internal state of a search-based verifier already contains the vast majority of the information needed for optimization.

Integrated Branch-and-Bound

The algorithm explores the "activation space" of the network by deciding whether each ReLU neuron is active or inactive. At each node in the search tree, MarabouOpt solves a relaxed Linear Programming (LP) problem. By adding the optimization objective directly to these LPs, the algorithm can determine an upper bound for the current branch.

Pruning

If the computed bound for a branch is worse than the "best seen so far" (the incumbent solution), the entire branch is pruned from the search space. This integrated pruning allows for a much more aggressive reduction of the search space than is possible with external bisection methods, which effectively restart the search for every threshold value.

Experimental Evaluation

The authors evaluated MarabouOpt on three distinct benchmark sets:

  • ACAS Xu: A family of 45 small, fully-connected networks used for airborne collision avoidance.
  • TinyTaxiNet: Perception networks estimating aircraft position on a taxiway from images, involving architectures with up to 128 ReLUs.
  • MNIST: Handwritten digit classification models ranging from 10 to 20 layers and up to 800 ReLUs to test the limits of the solvers.

Key Results and Insights

The evaluation demonstrated that MarabouOpt is a powerful tool for finding certified global optima:

  • Performance Gains: MarabouOpt outperformed the bisection baseline (MarabouBin) on three out of four benchmark sets. For instance, in ACAS Xu "Output" tests, MarabouOpt solved 97 instances compared to MarabouBin's 82.
  • Complementarity with MIP: MarabouOpt (based on SMT-style search) and MIPVerify (based on Mixed-Integer Programming) showed complementary strengths. MarabouOpt excelled on ACAS Xu "Input" queries (solving 174 instances vs. MIPVerify's 138), while MIPVerify was faster on MNIST and TinyTaxiNet. Together, they solved 99% of the test cases.
  • Adversarial Robustness: The tool successfully calculated exact $L_\infty$ minimum perturbations for MNIST. The results highlighted that local robustness can vary wildly; in one case, an image required a perturbation 48 times larger than another to trigger a misclassification.
  • The Value of Certification: While approximate methods like PGD or LBFGS often find values near the optimum, they can be significantly off and lack the guarantees required for safety-critical systems. MarabouOpt provides the "certified" global optimum necessary for rigorous safety analysis.

Limitations and Future Work

Despite its efficiency, MarabouOpt faces challenges with the exponential search space of state-of-the-art perception models containing millions of ReLUs. Future research will focus on:

  • Parallelism: Integrating optimization logic with Marabou’s "Split-and-Conquer" parallelization framework.
  • Preprocessing: Incorporating advanced bound-tightening techniques, such as DeepPoly, to further improve pruning efficiency.

Summary updated

BibTeX
@article{strong2023global,
  author = {Christopher A. Strong and Haoze Wu and Aleksandar Zeljic and Kyle D. Julian and Guy Katz and Clark W. Barrett and Mykel J. Kochenderfer},
  title = {{Global optimization of objective functions represented by ReLU networks}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-021-06050-2},
}
Figure