NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Network Verification with Branch-and-Bound for General Nonlinearities

Zhouxing Shi, Qirui Jin, Zico Kolter, Suman Jana, Cho-Jui Hsieh, Huan Zhang

Introduction

Formally verifying the safety and robustness of neural networks (NNs) is a critical challenge in deploying AI for high-stakes applications. However, this task is notoriously difficult—it is an NP-complete problem. To make verification tractable, researchers often rely on linear bound propagation methods, such as CROWN. These techniques wrap nonlinear activation functions in linear "envelopes" (upper and lower bounds). While computationally efficient, these linear relaxations are often too loose to prove meaningful properties, especially in deep or complex architectures.

To bridge this gap, the state-of-the-art approach is Branch-and-Bound (BaB). BaB works by recursively splitting the input space of a neuron into smaller sub-domains where the linear envelopes can be significantly tighter. Historically, BaB has been highly optimized for ReLU networks. Because a ReLU neuron becomes perfectly linear when split at zero, the branching strategy is straightforward. However, modern architectures increasingly use "general" nonlinearities—such as the S-curves of Sigmoids, the periodic waves of Sine functions, or the element-wise multiplications in LSTMs and Transformers. For these functions, it was previously unclear where to branch or which neurons would yield the greatest improvement in bound tightness.

The GenBaB Framework

The authors introduce GenBaB, a principled framework designed to extend the power of BaB to any nonlinearity representable in a computational graph. GenBaB introduces three key innovations that allow it to scale to complex, non-ReLU architectures.

Comparison of branching strategies: standard ReLU branching at zero versus GenBaB's approach to general nonlinearities in LSTMs, including Tanh and multiplication nodes.

1. General Branching Points

Unlike ReLU-specific verifiers that always branch at $0$, GenBaB allows branching at any arbitrary point $p$ within a neuron's input range. This flexibility is essential for functions like Sigmoid or Sine, where the "optimal" split point depends heavily on the current input bounds.

2. Pre-optimized Branching (The "Where")

Determining the optimal branching point in real-time is computationally expensive. GenBaB solves this by treating branching as a geometric optimization problem. The authors define a "tightness loss"—the integral of the area between the upper and lower linear bounds over the input range. By minimizing this area, they can find the split point that results in the tightest possible sub-envelopes.

Crucially, these optimal points are pre-calculated offline for various input ranges and stored in a lookup table. During the live verification process, the system simply performs a table lookup to find the best point $p$, adding virtually zero overhead to the computation.

3. Bound Propagation with Shortcuts (BBPS) (The "Which")

Selecting which neuron to branch is a search problem that significantly impacts the convergence speed of BaB. Previous heuristics were either too slow (requiring full bound recalculations) or too local (ignoring the global network structure).

GenBaB introduces Bound Propagation with Shortcuts (BBPS). This heuristic leverages the linear relationships (coefficients) already computed during the initial "cheap" linear propagation pass. By using these "shortcuts," GenBaB can quickly estimate how a split at a specific internal neuron will ripple through the network to improve the final output bound. This allows for a globally-informed branching decision at a fraction of the cost of full propagation.

Experimental Evaluation

The authors evaluated GenBaB across a diverse set of benchmarks, demonstrating its versatility beyond standard image classification tasks:

  • Robust Image Classification: On MNIST and CIFAR-10, GenBaB was tested on models using Sigmoid, Tanh, Sine, and GeLU activations.
  • Complex Architectures: The framework was applied to LSTMs and Vision Transformers (ViTs), which involve multi-dimensional nonlinearities like element-wise multiplications ($x \odot y$). GenBaB treats these as generic non-linear nodes in the computational graph.
  • High-Stakes Engineering: The authors used the ML4ACOPF benchmark, which involves verifying physical constraints in AC Optimal Power Flow for power grid management. This represents a significant step toward applying formal verification to real-world physical systems.

Key Results and Impact

GenBaB serves as the core engine for recent versions of $\alpha,\beta$-CROWN, the verifier that won the 4th and 5th International Verification of Neural Networks Competitions (VNN-COMP 2023 and 2024).

Specific performance highlights include:

  • Sine Networks: On a $4 \times 100$ network with Sine activations, GenBaB increased the verification rate from 4% to 60% compared to non-BaB methods.
  • LSTMs & ViTs: GenBaB consistently outperformed specialized verifiers like PROVER or DeepT, proving more properties in less time.
  • Power Grids: On the ML4ACOPF benchmark, GenBaB successfully verified 22 out of 23 instances. Disabling the BaB component caused the success rate to drop significantly, leaving 7 instances unproven.

Conclusion and Future Work

GenBaB represents a major advancement in making neural network verification practical for real-world architectures. By moving beyond the "ReLU-only" paradigm, it opens the door to verifying a much wider array of models.

While GenBaB is highly effective, its performance still depends on the quality of the initial linear relaxation. Future research may explore multi-neuron relaxations—analyzing the interactions between groups of neurons—to provide even tighter bounds for the most challenging cases. Additionally, extending optimized branching to even higher-dimensional nonlinear operations remains a promising frontier for the field.

Summary updated

BibTeX
@inproceedings{shi2025neural,
  author = {Zhouxing Shi and Qirui Jin and Zico Kolter and Suman Jana and Cho-Jui Hsieh and Huan Zhang},
  title = {{Neural Network Verification with Branch-and-Bound for General Nonlinearities}},
  booktitle = {TACAS},
  year = {2025},
  doi = {10.1007/978-3-031-90643-5\_17},
}
Figure