百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

alpha-beta-CROWN

> 数据库
开源

alpha-beta-CROWN: 高效、可扩展且由 GPU 加速的 神经网络 验证器(VNN-COMP 2021、2022、2023、2024、2025 年的获奖者)

386 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

alpha-beta-CROWN: 高效、可扩展且由 GPU 加速的 神经网络 验证器(VNN-COMP 2021、2022、2023、2024、2025 年的获奖者)

α,β-CROWN (alpha-beta-CROWN): A Fast and Scalable Neural Network Verifier with Efficient Bound Propagation

α,β-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.

News (2025 - )

  • α,β-CROWN now provides a new Python API that allows users to run the verifier programmatically in Python without manually exporting ONNX models, writing VNNLIB specifications, or preparing config files. A good set of default configuration automatically handles diverse verification scenarios, while all options remain fully customizable through the API. (See API documentation).
  • α,β-CROWN is the winner of VNN-COMP 2025 and is ranked top-1 in all scored benchmarks. (08/2025)
  • Bounding of computation graphs containing Jacobian operators now supports more nonlinear operators (e.g., tanh, sigmoid), enabling verification of continuous-time Lyapunov stability. (12/2025)
  • Clip-and-Verify (Zhou et al., NeurIPS 2025) efficiently handles linear constraints and can significantly reduce the number of subproblems handled during BaB. It consistently tightens bounds across multiple benchmarks. (12/2025)

Supported Features

Our verifier consists of the following core algorithms:

  • CROWN (Zhang et al., 2018): the basic linear bound propagation framework for neural networks.
  • auto_LiRPA (Xu et al. 2020): linear bound propagation for general computational graphs.
  • α-CROWN (Xu et al., 2021): incomplete verification with gradient optimized bound propagation.
  • β-CROWN (Wang et al., 2021): complete verification with bound propagation and branch and bound for ReLU networks.
  • GenBaB (Shi et al., 2024): Branch and bound for general nonlinear functions.
  • GCP-CROWN (Zhang et al., 2022): CROWN-like bound propagation with general cutting plane constraints.
  • BaB-Attack (Zhang et al., 2022): Branch and bound based adversarial attack for tackling hard instances.
  • MIP (Tjeng et al., 2017): mixed integer programming (slow but can be useful on small models).
  • INVPROP (Kotha et al., 2023): tightens bounds with constraints on model outputs, and computes provable preimages for neural networks.
  • BICCOS (Zhou et al., 2024): an effective cutting plane generation method outperforming the MIP-based cuts in GCP-CROWN.

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:

  • Layers: fully connected (FC), convolutional (CNN), pooling (average pool and max pool), transposed convolution
  • Activation functions or nonlinear functions: ReLU, sigmoid, tanh, arctan, sin, cos, tan, gelu, pow, multiplication and self-attention
  • Residual connections, Transformers, LSTMs, and other irregular graphs

We support the following verification specifications:

  • Lp norm perturbation (p=1,2,infinity, as often used in robustness verification)
  • VNNLIB format input (at most two layers of AND/OR clause, as used in VNN-COMP)
  • Any linear specifications on neural network output (which can be added as a linear layer)

We provide many example configurations in complete_verifier/exp_configs directory to start with:

  • MNIST: MLP and CNN models (small models to help you get started)
  • CIFAR-10, CIFAR-100, TinyImageNet: CNN and ResNet models with high dimensional inputs
  • ACASXu, NN4sys, ML4ACOPF and other low input dimension models

And more examples in other repositories:

  • Stability verification of NN controllers for discrete-time systems: Verified-Intelligence/Lyapunov_Stable_NN_Controllers and continuous-time systems: Verified-Intelligence/Two-Stage_Neural_Controller_Training.
  • Branch-and-bound for models with non-ReLU nonlinearities and high dimensional inputs: GenBaB

See the Guide on Algorithm Selection to find the most suitable example to get started.

Installation and Setup

α,β-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:

bash
# Install uv.
curl -LsSf https://astral.sh/uv/install.sh | sh

Clone our verifier including the auto_LiRPA submodule:

bash
git clone --recursive https://github.com/Verified-Intelligence/alpha-beta-CROWN.git
cd alpha-beta-CROWN

Then create the environment and install all dependencies.

bash
uv sync
# Activate the environment.
source .venv/bin/activate

If 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.

bash
uv pip install --reinstall torch==2.11.0 torchvision --index-url https://download.pytorch.org/whl/cu126

Alternatively, you could also install via pip (if you want to add α,β-CROWN to your existing environment):

bash
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.

Instructions

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:

bash
source .venv/bin/activate  # activate the uv environment
cd complete_verifier
python abcrown.py --config exp_configs/tutorial_examples/cifar_resnet_2b.yaml

You 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.

Publications

If you use our verifier in your work, please kindly cite our papers:

  • CROWN (Zhang et al., 2018), auto_LiRPA (Xu et al., 2020), α-CROWN (Xu et al., 2021), β-CROWN (Wang et al., 2021), GenBaB (Shi et al. 2024), GCP-CROWN (Zhang et al., 2022), and BICCOS (Zhou et al., NeurIPS 2024).
  • Kotha et al., 2023 if you use constraints on the outputs of neural networks.
  • Salman et al., 2019, if your work involves the convex relaxation of the NN verification.
  • Zhang et al. 2022, if you use our branch-and-bound based adversarial attack (falsifier). We provide bibtex entries at the end of this section.

α,β-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· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonadversarial-examplesadversarial-robustnessformal-verificationneural-network-verification

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库