alpha-beta-CROWN: 高效、可扩展且由 GPU 加速的 神经网络 验证器(VNN-COMP 2021、2022、2023、2024、2025 年的获奖者)
alpha-beta-CROWN: 高效、可扩展且由 GPU 加速的 神经网络 验证器(VNN-COMP 2021、2022、2023、2024、2025 年的获奖者)
α,β-CROWN (alpha-beta-CROWN) is a neural network verifier based on an efficient linear bound propagation framework and branch and bound. It can be accelerated efficiently on GPUs and can scale to relatively large convolutional networks (e.g., millions of parameters). It also supports a wide range of neural network architectures (e.g., CNN, ResNet, and various activation functions), thanks to the versatile auto_LiRPA library developed by us. α,β-CROWN can provide provable robustness guarantees against adversarial attacks and can also verify other general properties of neural networks, such as Lyapunov stability in control.
α,β-CROWN is the winning verifier in VNN-COMP 2021, VNN-COMP 2022, VNN-COMP 2023, VNN-COMP 2024, and VNN-COMP 2025 (International Verification of Neural Networks Competition) with the highest total score, outperforming many other neural network verifiers on a wide range of benchmarks over 5 years. Details of competition results can be found in VNN-COMP 2021 slides, report, VNN-COMP 2022 report, VNN-COMP 2023 slides and report, and VNN-COMP 2024 slides and report, VNN-COMP 2025 slides.
The α,β-CROWN team is created and led by Prof. Huan Zhang at UIUC with contributions from multiple institutions. See the list of contributors below. α,β-CROWN combines our efforts in neural network verification in a series of papers building up the bound propagation framework since 2018. See Publications below.
tanh, sigmoid), enabling verification of continuous-time Lyapunov stability. (12/2025)Our verifier consists of the following core algorithms:
The bound propagation engine in α,β-CROWN is implemented as a separate library, auto_LiRPA (Xu et al. 2020), for computing symbolic bounds for general computational graphs. We support these neural network architectures:
We support the following verification specifications:
We provide many example configurations in
complete_verifier/exp_configs directory to
start with:
And more examples in other repositories:
See the Guide on Algorithm Selection to find the most suitable example to get started.
α,β-CROWN is tested on Python 3.11 and PyTorch 2.11 (recent versions may also work).
We use uv for installation (Requirement: CUDA>=12.6).
Install uv:
# Install uv.
curl -LsSf https://astral.sh/uv/install.sh | shClone our verifier including the auto_LiRPA submodule:
git clone --recursive https://github.com/Verified-Intelligence/alpha-beta-CROWN.git
cd alpha-beta-CROWNThen create the environment and install all dependencies.
uv sync
# Activate the environment.
source .venv/bin/activateIf you use NVIDIA Volta GPUs eg. V100 or encountered CUDA error: no kernel image is available for execution on the device, please downgrade to PyTorch 2.11.0 with CUDA 12.6.
uv pip install --reinstall torch==2.11.0 torchvision --index-url https://download.pytorch.org/whl/cu126Alternatively, you could also install via pip (if you want to add α,β-CROWN to your existing environment):
cd alpha-beta-CROWN
pip install .Unless you use MIP-based verification algorithms, a Gurobi license is not needed (in most use cases).
If you want to use MIP-based verification algorithms (which are feasible only for small models), you need to
install a Gurobi license with the grbgetkey command. If you don't have
access to a license, by default, the above installation procedure includes a
free and restricted license, which is actually sufficient for many relatively
small NNs. If you use the GCP-CROWN verifier, an installation of IBM CPlex
solver is required. Instructions to install the CPlex solver can be found
in the VNN-COMP benchmark instructions.
If you want to run α,β-CROWN verifier on the VNN-COMP benchmarks (e.g., to make a comparison to a new verifier), you can follow this guide.
The verifier can be invoked through the
new Python API or through
the command-line interface with configuration files. Checkout the
API documentation for API usage.
For the command-line interface, we provide a
unified front-end for the verifier, abcrown.py. All parameters
for the verifier are defined in a yaml config file. For example, to run
robustness verification on a CIFAR-10 ResNet network, you just run:
source .venv/bin/activate # activate the uv environment
cd complete_verifier
python abcrown.py --config exp_configs/tutorial_examples/cifar_resnet_2b.yamlYou can find explanations for the most useful parameters in this example config
file. For detailed usage
and tutorial examples, please see the Usage
Documentation. We also provide a
large range of examples in the
complete_verifier/exp_configs folder.
If you use our verifier in your work, please kindly cite our papers:
α,β-CROWN represents our continued efforts on neural network verification:
CROWN (Zhang et al. NeurIPS 2018) is a very efficient bound propagation based verification algorithm. CROWN propagates a linear inequality backward through the network and utilizes linear bounds to relax activation functions.
The **"co
暂无开放 Issues,或尚未同步最近议题。