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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shi, Zhouxing, Jin, Qirui, Kolter, Zico, Jana, Suman, Hsieh, Cho-Jui, Zhang, Huan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915142468370432
author Shi, Zhouxing
Jin, Qirui
Kolter, Zico
Jana, Suman
Hsieh, Cho-Jui
Zhang, Huan
author_facet Shi, Zhouxing
Jin, Qirui
Kolter, Zico
Jana, Suman
Hsieh, Cho-Jui
Zhang, Huan
contents Branch-and-bound (BaB) is among the most effective techniques for neural network (NN) verification. However, existing works on BaB for NN verification have mostly focused on NNs with piecewise linear activations, especially ReLU networks. In this paper, we develop a general framework, named GenBaB, to conduct BaB on general nonlinearities to verify NNs with general architectures, based on linear bound propagation for NN verification. To decide which neuron to branch, we design a new branching heuristic which leverages linear bounds as shortcuts to efficiently estimate the potential improvement after branching. To decide nontrivial branching points for general nonlinear functions, we propose to pre-optimize branching points, which can be efficiently leveraged during verification with a lookup table. We demonstrate the effectiveness of our GenBaB on verifying a wide range of NNs, including NNs with activation functions such as Sigmoid, Tanh, Sine and GeLU, as well as NNs involving multi-dimensional nonlinear operations such as multiplications in LSTMs and Vision Transformers. Our framework also allows the verification of general nonlinear computation graphs and enables verification applications beyond simple NNs, particularly for AC Optimal Power Flow (ACOPF). GenBaB is part of the latest $α$,$β$-CROWN, the winner of the 4th and the 5th International Verification of Neural Networks Competition (VNN-COMP 2023 and 2024). Code for reproducing the experiments is available at https://github.com/shizhouxing/GenBaB.
format Preprint
id arxiv_https___arxiv_org_abs_2405_21063
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Neural Network Verification with Branch-and-Bound for General Nonlinearities
Shi, Zhouxing
Jin, Qirui
Kolter, Zico
Jana, Suman
Hsieh, Cho-Jui
Zhang, Huan
Machine Learning
Artificial Intelligence
Branch-and-bound (BaB) is among the most effective techniques for neural network (NN) verification. However, existing works on BaB for NN verification have mostly focused on NNs with piecewise linear activations, especially ReLU networks. In this paper, we develop a general framework, named GenBaB, to conduct BaB on general nonlinearities to verify NNs with general architectures, based on linear bound propagation for NN verification. To decide which neuron to branch, we design a new branching heuristic which leverages linear bounds as shortcuts to efficiently estimate the potential improvement after branching. To decide nontrivial branching points for general nonlinear functions, we propose to pre-optimize branching points, which can be efficiently leveraged during verification with a lookup table. We demonstrate the effectiveness of our GenBaB on verifying a wide range of NNs, including NNs with activation functions such as Sigmoid, Tanh, Sine and GeLU, as well as NNs involving multi-dimensional nonlinear operations such as multiplications in LSTMs and Vision Transformers. Our framework also allows the verification of general nonlinear computation graphs and enables verification applications beyond simple NNs, particularly for AC Optimal Power Flow (ACOPF). GenBaB is part of the latest $α$,$β$-CROWN, the winner of the 4th and the 5th International Verification of Neural Networks Competition (VNN-COMP 2023 and 2024). Code for reproducing the experiments is available at https://github.com/shizhouxing/GenBaB.
title Neural Network Verification with Branch-and-Bound for General Nonlinearities
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2405.21063