Papers › Efficiently Computing Local Lipschitz Constants of Neural Networks via Bound Propagation

Efficiently Computing Local Lipschitz Constants of Neural Networks via Bound Propagation

13 Oct 2022arXiv:2210.07394archive 2025-07-28

Zhouxing Shi, Yihan Wang, huan zhang, Zico Kolter, Cho-Jui Hsieh

Lipschitz constants are connected to many properties of neural networks, such as robustness, fairness, and generalization. Existing methods for computing Lipschitz constants either produce relatively loose upper bounds or are limited to small networks. In this paper, we develop an efficient framework for computing the ℓ_∞ local Lipschitz constant of a neural network by tightly upper bounding the norm of Clarke Jacobian via linear bound propagation. We formulate the computation of local Lipschitz constants with a linear bound propagation process on a high-order backward graph induced by the chain rule of Clarke Jacobian. To enable linear bound propagation, we derive tight linear relaxations for specific nonlinearities in Clarke Jacobian. This formulate unifies existing ad-hoc approaches such as RecurJac, which can be seen as a special case of ours with weaker relaxations. The bound propagation framework also allows us to easily borrow the popular Branch-and-Bound (BaB) approach from neural network verification to further tighten Lipschitz constants. Experiments show that on tiny models, our method produces comparable bounds compared to exact methods that cannot scale to slightly larger models; on larger models, our method efficiently produces tighter results than existing relaxed or naive methods, and our method scales to much larger practical models that previous works could not handle. We also demonstrate an application on provable monotonicity analysis. Code is available at https://github.com/shizhouxing/Local-Lipschitz-Constants.

PaperPDFCodeCode 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="2210.07394")

Code

Syntology Ran 10 of 25 code samples harvested from 2 repositories linked to this paper; 15 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · violated contract; 2 ran · our draft was wrong; 4 ran · fixture could not drive it.

By repository: official repository: 24 samples from 2 repositories, 9 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

shizhouxing/local-lipschitz-constants officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause report
verified-intelligence/auto_lirpa officialmentioned in papermentioned 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

25 samples harvested; 10 ran; 2 honoured the contract we drafted; 15 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 · honoured contract
2ran · violated contract
2ran · our draft was wrong
4ran · fixture could not drive it
15unverified

Licence: 14 of the 25 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 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

concretize_bound verified-intelligence/auto_lirpa/examples/vision/simple_verification.py official repository ran · our draft was wrong fingerprinted licence not identified · pointer only · f2689b948e0d82a5 · report
create_valid_mask verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · our draft was wrong licence not identified · pointer only · 9a5afe4bd80c5d43 · report
get_unstable_size verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · honoured contract licence not identified · pointer only · 9cdadd9a266ee694 · report
inplace_unfold verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · fixture could not drive it fingerprinted licence not identified · pointer only · 0e9219ecac67f26c · report
insert_zeros verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · fixture could not drive it fingerprinted licence not identified · pointer only · f651cc9b3d2901ec · report
is_shape_used verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · violated contract fingerprinted licence not identified · pointer only · 7e1a351b56d6c037 · report
patches_to_matrix verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · fixture could not drive it licence not identified · pointer only · ccf2c48831f9ceae · report
remove_zeros verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · fixture could not drive it fingerprinted licence not identified · pointer only · 6e312527304e8f61 · report
unify_shape verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository ran · violated contract fingerprinted licence not identified · pointer only · da2d98a9144edff0 · report
Patches verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository unverified licence not identified · pointer only · c21c29ceab7623e0 · report
add_domain_parallel shizhouxing/Local-Lipschitz-Constants/branching_domains.py official repository unverified BSD-3-Clause (permissive) · 2df8ebffff1adda7 · report
adult_mlp shizhouxing/Local-Lipschitz-Constants/models/adult.py official repository unverified BSD-3-Clause (permissive) · df0f1dc3ba92ec50 · report
batched_backward verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository unverified licence not identified · pointer only · 858a516d0fc767db · report
batched_backward verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository unverified licence not identified · pointer only · 741b681a375f9086 · report
global_lip shizhouxing/Local-Lipschitz-Constants/global_lip.py official repository unverified BSD-3-Clause (permissive) · a5a70cc952c1052d · report
load_data shizhouxing/Local-Lipschitz-Constants/datasets.py official repository unverified BSD-3-Clause (permissive) · c6e0ca4669fe01e6 · report
merge_A verified-intelligence/auto_lirpa/auto_LiRPA/backward_bound.py official repository unverified licence not identified · pointer only · 96c85df219532813 · report
mnist_cnn_4layer shizhouxing/Local-Lipschitz-Constants/models/vision.py official repository unverified BSD-3-Clause (permissive) · c46dac31a1eb0d97 · report
mnist_cnn_4layer_8 shizhouxing/Local-Lipschitz-Constants/models/vision.py official repository unverified BSD-3-Clause (permissive) · d93193c2aae75058 · report
mnist_mlp_3layer shizhouxing/Local-Lipschitz-Constants/models/vision.py official repository unverified BSD-3-Clause (permissive) · 5ca3703080a824f9 · report
pick_out_batch shizhouxing/Local-Lipschitz-Constants/branching_domains.py official repository unverified BSD-3-Clause (permissive) · 06e0dde1eed031c3 · report
simple_cnn_3layer shizhouxing/Local-Lipschitz-Constants/models/simple.py official repository unverified BSD-3-Clause (permissive) · f8c2a41b06c6022c · report
simple_mlp_3layer shizhouxing/Local-Lipschitz-Constants/models/simple.py official repository unverified BSD-3-Clause (permissive) · 328f2eab4ffc3345 · report
simple_mlp_width32 shizhouxing/Local-Lipschitz-Constants/models/simple.py official repository unverified BSD-3-Clause (permissive) · 62b6a288e660a618 · report
get_unstable_size identical code first harvested elsewhere ran · honoured contract licence of this copy not recorded · d5f02d6ed407b5ca · report

Tasks

Fairness

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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