Papers › Automatic Perturbation Analysis for Scalable Certified Robustness and Beyond

Automatic Perturbation Analysis for Scalable Certified Robustness and Beyond

28 Feb 2020NeurIPS 2020 12arXiv:2002.12920archive 2025-07-28

Kaidi Xu, Zhouxing Shi, huan zhang, Yihan Wang, Kai-Wei Chang, Minlie Huang, Bhavya Kailkhura, Xue Lin, Cho-Jui Hsieh

Linear relaxation based perturbation analysis (LiRPA) for neural networks, which computes provable linear bounds of output neurons given a certain amount of input perturbation, has become a core component in robustness verification and certified defense. The majority of LiRPA-based methods focus on simple feed-forward networks and need particular manual derivations and implementations when extended to other architectures. In this paper, we develop an automatic framework to enable perturbation analysis on any neural network structures, by generalizing existing LiRPA algorithms such as CROWN to operate on general computational graphs. The flexibility, differentiability and ease of use of our framework allow us to obtain state-of-the-art results on LiRPA based certified defense on fairly complicated networks like DenseNet, ResNeXt and Transformer that are not supported by prior works. Our framework also enables loss fusion, a technique that significantly reduces the computational complexity of LiRPA for certified defense. For the first time, we demonstrate LiRPA based certified defense on Tiny ImageNet and Downscaled ImageNet where previous approaches cannot scale to due to the relatively large number of classes. Our work also yields an open-source library for the community to apply LiRPA to areas beyond certified defense without much LiRPA expertise, e.g., we create a neural network with a probably flat optimization landscape by applying LiRPA to network parameters. Our opensource library is available at https://github.com/KaidiXu/auto_LiRPA.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.12920")

Code

Syntology Ran 5 of 18 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 2 ran · violated contract; 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: community (archive-listed): 18 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

KaidiXu/auto_LiRPA officialmentioned in papermentioned on GitHubpytorchNOASSERTION report
huanzhang12/CROWN-IBP mentioned on GitHubpytorchBSD-2-Clause report
huanzhang12/alpha-beta-CROWN mentioned on GitHubpytorchNOASSERTION report
verified-intelligence/alpha-beta-crown mentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 5 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
1ran · our draft was wrong
2ran
13unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from huanzhang12/CROWN-IBP. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

argparser huanzhang12/CROWN-IBP/argparser.py community (archive-listed) ran BSD-2-Clause (permissive) · 62000ff4e804fe8d · report
batch huanzhang12/CROWN-IBP/convex_adversarial/dual_layers.py community (archive-listed) ran · our draft was wrong fingerprinted BSD-2-Clause (permissive) · 778274b3fb463e7e · report
isfloat huanzhang12/CROWN-IBP/argparser.py community (archive-listed) ran · violated contract BSD-2-Clause (permissive) · 2f8e524a282482b9 · report
isint huanzhang12/CROWN-IBP/argparser.py community (archive-listed) ran BSD-2-Clause (permissive) · 10119e52ad9b6cf6 · report
unbatch huanzhang12/CROWN-IBP/convex_adversarial/dual_layers.py community (archive-listed) ran · violated contract fingerprinted BSD-2-Clause (permissive) · 9efb427bc4cdf3df · report
cifar_loaders huanzhang12/CROWN-IBP/datasets.py community (archive-listed) unverified BSD-2-Clause (permissive) · c41b33e06e9006fb · report
get_file_close huanzhang12/CROWN-IBP/config.py community (archive-listed) unverified BSD-2-Clause (permissive) · 03ba17f5b2a279b2 · report
get_model_meta huanzhang12/CROWN-IBP/converter/mnist_cifar_models.py community (archive-listed) unverified BSD-2-Clause (permissive) · 368ba58e4dcc5a2a · report
get_model_meta_real huanzhang12/CROWN-IBP/converter/mnist_cifar_models.py community (archive-listed) unverified BSD-2-Clause (permissive) · 63f0738b7f84b19d · report
get_stats huanzhang12/CROWN-IBP/datasets.py community (archive-listed) unverified BSD-2-Clause (permissive) · 1692f72216960bf3 · report
load_config huanzhang12/CROWN-IBP/config.py community (archive-listed) unverified BSD-2-Clause (permissive) · 6fd34470e7a5aa5d · report
mnist_loaders huanzhang12/CROWN-IBP/datasets.py community (archive-listed) unverified BSD-2-Clause (permissive) · 5a918baac3f47e20 · report
model_cnn_1layer huanzhang12/CROWN-IBP/model_defs.py community (archive-listed) unverified BSD-2-Clause (permissive) · c04566214aef8894 · report
model_mlp_any huanzhang12/CROWN-IBP/model_defs.py community (archive-listed) unverified BSD-2-Clause (permissive) · 536b44e648824359 · report
model_mlp_uniform huanzhang12/CROWN-IBP/model_defs.py community (archive-listed) unverified BSD-2-Clause (permissive) · 1d4d589798bf1c33 · report
robust_loss huanzhang12/CROWN-IBP/convex_adversarial/dual_network.py community (archive-listed) unverified BSD-2-Clause (permissive) · 23b6aa5bec1fc235 · report
robust_loss_parallel huanzhang12/CROWN-IBP/convex_adversarial/dual_network.py community (archive-listed) unverified BSD-2-Clause (permissive) · 1cc8bc10c156fe29 · report
update_dict huanzhang12/CROWN-IBP/config.py community (archive-listed) unverified BSD-2-Clause (permissive) · 346b1abd4961b091 · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

1x1 ConvolutionAbsolute Position EncodingsAdamAttentionAverage PoolingBPEBatch NormalizationConcatenated Skip ConnectionConvolutionDense BlockDense ConnectionsDropoutGlobal Average PoolingGrouped ConvolutionKaiming InitializationLabel SmoothingLayer NormalizationLinear LayerMax PoolingMulti-Head AttentionPosition-Wise Feed-Forward LayerReLUResNeXtResNeXt BlockResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections