Soundness of affine relaxations (CROWN / LiRPA) #
This file proves basic inequalities and compositional lemmas used by affine-relaxation bound propagation (LiRPA) methods, in particular the CROWN/DeepPoly family.
This file records the scalar inequalities behind the relaxations:
- soundness of affine images of scalar intervals (
affine_scalar_interval_sound), - soundness of the ReLU triangular upper relaxation (
relu_affine_upper_bound_sound).
For the two-layer MLP's interval bounds, NN.MLTheory.CROWN.Theorems.bound_ibp_sound
in NN.MLTheory.CROWN.Models.Mlp proves that boundIbp encloses every output from the input box.
That theorem concerns IBP, not the separate affine-CROWN calculation.
For certificate-checking theorems over the graph dialect (the form used by TorchLean verification examples), see:
NN.MLTheory.CROWN.Proofs.GraphCrownCertSoundnessNN.MLTheory.CROWN.Proofs.GraphAlphaCrownTransferSoundness
References #
- CROWN: Zhang et al., Efficient Neural Network Robustness Certification with General Activation Functions, NeurIPS 2018. (arXiv:1811.00866)
- β-CROWN / α/β-CROWN: Wang et al., Beta-CROWN: Efficient Bound Propagation with Provable Guarantees, NeurIPS 2021. (arXiv:2103.06624)
auto_LiRPA: https://github.com/Verified-Intelligence/auto_LiRPAalpha-beta-CROWN: https://github.com/Verified-Intelligence/alpha-beta-CROWN
If $x\in[\ell,h]$, then the affine function $f(x)=ax+b$ satisfies
$$ f(x)\in[\min(a\ell+b,ah+b),\max(a\ell+b,ah+b)]. $$
The ReLU upper affine bound is sound. For $\operatorname{ReLU}(z)$ with $z\in[l,u]$, the triangular relaxation provides an upper bound.
The CROWN relaxation uses:
- If $l\ge 0$: slope $=1$, bias $=0$; ReLU is the identity.
- If $u\le 0$: slope $=0$, bias $=0$; ReLU is zero.
- If $l<0<u$: slope $=\frac{u}{u-l}$ and bias $=-\frac{lu}{u-l}$, the linear upper envelope.