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

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical environments, ranging from autonomous aircraft collision avoidance systems to perception modules in self-driving cars. In these domains, the non-convex and complex nature of neural networks poses significant challenges for safety certification. While traditional testing can identify failures, it cannot guarantee their absence. Formal verification has emerged as a solution, providing mathematical proofs regarding network behavior. However, most existing verifiers are designed to answer binary "yes/no" questions—for instance, "Does there exist an input that causes an error greater than a specific threshold?"

This paper addresses the limitation of binary verification by proposing a framework for global optimization. Instead of simply identifying if a failure exists, the proposed approach seeks to find the most extreme failure or the minimum perturbation required to induce a failure.

The Need for Global Optimization

In engineering contexts, qualitative questions are often more valuable than binary ones. A safety engineer might need to know the maximum possible deviation a controller can produce under specific constraints, or the absolute smallest change to an image that could trick a classifier.

A naive approach to answering these questions involves using an off-the-shelf verifier within a bisection search (MarabouBin). By repeatedly "guessing" thresholds and calling the verifier, one can converge on an optimal value. However, this method is computationally inefficient. Each call to the verifier is treated as a black box, leading to redundant computations and overlapping search space explorations. To overcome this, the authors propose MarabouOpt, an extension of the state-of-the-art Marabou verifier that integrates the optimization process directly into the verification engine.

Methodology: MarabouOpt

MarabouOpt leverages a Branch-and-Bound strategy to perform global optimization over ReLU-based networks. The core of the algorithm involves:

  1. Search Space Exploration: The solver explores the "activation space" of the network, systematically deciding whether each ReLU neuron is active (linear) or inactive (zeroing out).
  2. Pruning via Linear Programming (LP): At each node in the search tree, the algorithm solves a relaxed LP version of the problem to determine an upper bound on the objective function for that specific branch.
  3. Tight Integration: Unlike bisection methods, MarabouOpt maintains a "best-so-far" solution. If the LP-derived upper bound for a branch is lower than the current best solution, the entire branch is pruned immediately. This internalizes the objective function into the solver's logic, preventing the need to restart the search for different thresholds.

Experimental Evaluation

The researchers evaluated MarabouOpt across three diverse benchmark sets:

  • ACAS Xu: A set of 45 networks designed for airborne collision avoidance.
  • TinyTaxiNet: Perception networks used to estimate an aircraft's position on a taxiway based on image data.
  • MNIST: The standard handwritten digit recognition dataset, utilizing four fully-connected architectures with up to 20 layers and 800 ReLU neurons.

The evaluation focused on two primary tasks: Output Optimization (maximizing a specific network output) and Minimum Adversarial Perturbation (finding the smallest $L_\infty$ distance to a misclassification).

Key Results and Insights

The experiments yielded several critical insights into the performance and necessity of formal optimization tools:

Efficiency and Coverage

MarabouOpt demonstrated superior performance over the bisection-based approach, solving 411 benchmark instances within the time limit, compared to 354 for MarabouBin. This confirms that integrating the optimization objective into the search process significantly reduces computational overhead.

Tool Complementarity

One of the most significant findings was the relationship between MarabouOpt and MIPVerify, an optimization-based verifier that uses Mixed-Integer Programming. While MIPVerify solved more instances in total, MarabouOpt successfully solved 36 instances that MIPVerify could not. This suggests that the underlying technology (SMT-based vs. MIP-based) makes different tools better suited for different network architectures or properties. Together, the two tools solved over 99% of the attempted instances.

The Gap in Heuristics

The authors compared their exact results against local search heuristics like PGD (Projected Gradient Descent). While heuristics are significantly faster, they often fail to find the true global optimum. In safety-critical applications, the gap between a "local" failure found by a heuristic and the "global" worst-case failure can be the difference between a safe system and a catastrophic failure.

Non-Uniform Robustness

On the MNIST dataset, the tool revealed that adversarial robustness is highly non-uniform. In some regions of the input space, a tiny perturbation (0.001) was sufficient to cause misclassification, while other regions required a much larger change (0.048). This level of granular insight is only possible through exact global optimization.

Conclusion

MarabouOpt represents a significant step forward in the formal analysis of neural networks, moving the field from binary verification to quantitative optimization. By tightly coupling the optimization objective with the Branch-and-Bound search, the tool provides a more efficient and rigorous way to certify the safety of ReLU-based networks. Future work includes implementing parallel processing to leverage Marabou's multi-core capabilities and integrating advanced bound-tightening techniques to further enhance scalability for larger, modern architectures.

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