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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 25 code samples: 24 from 2 repositories linked to this paper, 1 identical to code harvested from another paper's repository. Across all 25: 14 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 2 honoured, 2 violated, 4 with no contract checked; 6 where Syntology's instrument failed) · 11 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; 4 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 24 samples from 2 repositories, 13 ran (7 with no instrument failure; 6 where Syntology's instrument failed); 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.

Levels written between 2026-09-22 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 2 of the 14 samples that ran have no recorded date.

shizhouxing/local-lipschitz-constants officialmentioned in papermentioned on GitHubpytorchBSD-3-ClauseSyntology: 11 samples, 4 ran (0 instrument-failed) · 7 unverified report
verified-intelligence/auto_lirpa officialmentioned in papermentioned on GitHubpytorchNOASSERTIONSyntology: 13 samples, 9 ran (6 instrument-failed) · 4 unverified 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: 14 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 2 honoured, 2 violated, 4 with no contract checked; 6 where Syntology's instrument failed) · 11 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · honoured contract
2ran · violated contract
2ran · our draft was wrong
4ran; the contract check could not run
4ran
11unverified

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; the list below is grouped by repository, each group headed by its name and what it is to the paper. 1 sample is listed last, in a group without a repository. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

shizhouxing/local-lipschitz-constants official repository 11 samples, 4 ran (0 instrument-failed) · 7 unverified
adult_mlp models/adult.py ran BSD-3-Clause (permissive) · df0f1dc3ba92ec50 · report fixture: signature in_dim:int/0/int, width:int/0/int · returned Sequential · level recorded 2026-09-25
global_lip global_lip.py ran BSD-3-Clause (permissive) · a5a70cc952c1052d · report fixture: signature model:callable/0/?, args:Args/0/? · returned Tensor · level recorded 2026-09-25
mnist_cnn_4layer_8 models/vision.py ran BSD-3-Clause (permissive) · d93193c2aae75058 · report fixture: signature in_ch:int/0/int, in_dim:int/0/int, width:int/0/int · returned Sequential · level recorded 2026-09-25
pick_out_batch branching_domains.py ran BSD-3-Clause (permissive) · 06e0dde1eed031c3 · report fixture: signature domains:list/1/CandidateDomain, batch:int/0/int, intermediate:bool/0/bool, threshold:int/0/int, device:str/0/str · returned tuple · level recorded 2026-09-25
add_domain_parallel branching_domains.py unverified BSD-3-Clause (permissive) · 2df8ebffff1adda7 · report
load_data in 700 papers datasets.py unverified BSD-3-Clause (permissive) · c6e0ca4669fe01e6 · report
mnist_cnn_4layer models/vision.py unverified BSD-3-Clause (permissive) · c46dac31a1eb0d97 · report
mnist_mlp_3layer models/vision.py unverified BSD-3-Clause (permissive) · 5ca3703080a824f9 · report
simple_cnn_3layer models/simple.py unverified BSD-3-Clause (permissive) · f8c2a41b06c6022c · report
simple_mlp_3layer models/simple.py unverified BSD-3-Clause (permissive) · 328f2eab4ffc3345 · report
simple_mlp_width32 models/simple.py unverified BSD-3-Clause (permissive) · 62b6a288e660a618 · report
verified-intelligence/auto_lirpa official repository 13 samples, 9 ran (6 instrument-failed) · 4 unverified
concretize_bound examples/vision/simple_verification.py ran · our draft was wrong fingerprinted licence not identified · pointer only · f2689b948e0d82a5 · report fixture: signature A:Tensor/5/float, bias:Tensor/2/float, xL:Tensor/5/float, xU:Tensor/5/float, upper:bool/0/bool · returned Tensor · level recorded, date not recorded
create_valid_mask auto_LiRPA/backward_bound.py ran · our draft was wrong licence not identified · pointer only · 9a5afe4bd80c5d43 · report fixture: signature output_shape:tuple/1/int, device:str/0/str, dtype:dtype/0/?, kernel_size:tuple/1/int, stride:int/0/int, inserted_zeros:int/0/int, padding:int/0/int, output_padding:int/0/int, unstable_idx:NoneType/0/? · returned Tensor · level recorded 2026-09-22
get_unstable_size auto_LiRPA/backward_bound.py ran · honoured contract licence not identified · pointer only · 9cdadd9a266ee694 · report fixture: signature unstable_idx:tuple/1/Tensor · returned int · level recorded, date not recorded
inplace_unfold auto_LiRPA/backward_bound.py ran; the contract check could not run (RAISES) fingerprinted licence not identified · pointer only · 0e9219ecac67f26c · report fixture: signature image:Tensor/4/float, kernel_size:int/0/int, stride:int/0/int, padding:int/0/int, inserted_zeros:int/0/int, output_padding:int/0/int · returned Tensor · level recorded 2026-09-22
insert_zeros auto_LiRPA/backward_bound.py ran; the contract check could not run (RAISES) fingerprinted licence not identified · pointer only · f651cc9b3d2901ec · report fixture: signature image:Tensor/4/float, s:int/0/int · returned Tensor · level recorded 2026-09-22
is_shape_used auto_LiRPA/backward_bound.py ran · violated contract fingerprinted licence not identified · pointer only · 7e1a351b56d6c037 · report fixture: signature shape:int/0/int, expected:int/0/int · returned bool · level recorded 2026-09-22
patches_to_matrix auto_LiRPA/backward_bound.py ran; the contract check could not run (RAISES) licence not identified · pointer only · ccf2c48831f9ceae · report fixture: signature pieces:Tensor/7/float, input_shape:tuple/1/int, stride:int/0/int, padding:int/0/int, output_shape:tuple/1/int, unstable_idx:NoneType/0/?, inserted_zeros:int/0/int · returned Tensor · level recorded 2026-09-22
remove_zeros auto_LiRPA/backward_bound.py ran; the contract check could not run (RAISES) fingerprinted licence not identified · pointer only · 6e312527304e8f61 · report fixture: signature image:Tensor/4/float, s:int/0/int, remove_zero_start_idx:tuple/1/int · returned Tensor · level recorded 2026-09-22
unify_shape auto_LiRPA/backward_bound.py ran · violated contract fingerprinted licence not identified · pointer only · da2d98a9144edff0 · report fixture: signature shape:tuple/1/int · returned tuple · level recorded 2026-09-22
Patches auto_LiRPA/backward_bound.py unverified licence not identified · pointer only · c21c29ceab7623e0 · report
batched_backward auto_LiRPA/backward_bound.py unverified licence not identified · pointer only · 858a516d0fc767db · report
batched_backward auto_LiRPA/backward_bound.py unverified licence not identified · pointer only · 741b681a375f9086 · report
merge_A auto_LiRPA/backward_bound.py unverified licence not identified · pointer only · 96c85df219532813 · report
Repository not located 1 sample, 1 ran (0 instrument-failed) · 0 unverified
1 sample is identical to code Syntology harvested from another paper's repository; this paper's own copy was not located, so no repository is named and no licence is recorded.
get_unstable_size repository not located ran · honoured contract licence of this copy not recorded · d5f02d6ed407b5ca · report fixture: signature unstable_idx:tuple/1/Tensor · returned int · level recorded 2026-09-22

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for linear bound propagation framework (graph method: linear bound propagation framework). 11 bricks; individually on a fixture: 8 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 2 violated, 0 with no contract checked; 5 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.

  1. batched_backward entry · level 0 · unverified · 741b681a375f9086
  2. Patches helper · level 0 · unverified · c21c29ceab7623e0
  3. get_unstable_size helper · level 1 · ran · honoured contract · d5f02d6ed407b5ca
  4. merge_A helper · level 0 · unverified · 96c85df219532813
  5. create_valid_mask helper · level 1 · ran · our draft was wrong · 9a5afe4bd80c5d43
  6. inplace_unfold helper · level 1 · ran; the contract check could not run (RAISES) · 0e9219ecac67f26c
  7. is_shape_used helper · level 1 · ran · violated contract · 7e1a351b56d6c037
  8. patches_to_matrix helper · level 1 · ran; the contract check could not run (RAISES) · ccf2c48831f9ceae
  9. remove_zeros helper · level 1 · ran; the contract check could not run (RAISES) · 6e312527304e8f61
  10. unify_shape helper · level 1 · ran · violated contract · da2d98a9144edff0
  11. insert_zeros helper · level 1 · ran; the contract check could not run (RAISES) · f651cc9b3d2901ec

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2210.07394") returns these assemblies with each brick's role and wiring (how to connect).

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