MLP robustness: basic analytic lemmas #
This file collects small real-analysis facts used by robustness statements for spec-level MLPs.
Contents:
- ReLU (written as $\max(0,x)$) is $1$-Lipschitz on $\mathbb{R}$.
- Lipschitz bounds compose under function composition.
- A few tensor-norm helper lemmas that connect to the more general library in
NN.Proofs.Analysis.Lipschitz.
References #
Basic Lipschitz lemmas #
Tensor helpers #
Definition: A non-zero tensor has at least one non-zero entry
Instances For
A non-zero tensor has positive L2 norm
Frobenius-norm Lipschitz bound for a linear layer's weight matrix.
Instances For
Linear layers are Lipschitz continuous with the Frobenius norm as a valid, possibly loose, bound.
ReLU is 1-Lipschitz in the L2 distance, so activations never amplify an input perturbation.
A two-layer MLP is Lipschitz, with a positive constant obtained as the product of the layer constants.
The constant here is the naive product of operator norms, which is what makes it cheap: it needs no
information about the input region. That is also why it is loose compared to the CROWN bounds in
NN.MLTheory.CROWN, and the contrast is the reason both developments are kept.
Repackage mlp_lipschitz_complete_analysis as a robustness-spec isLipschitzContinuous fact.
This is the form expected by the certified-robustness lemmas in
NN.MLTheory.Proofs.Verification.Robustness.LipschitzCertified.
Bound output drift on an input ball. This theorem does not by itself preserve a class label.
Robustness statements for MLPs (ML theory layer).
This file collects robustness definitions and theorems specialized to multi-layer perceptrons, used as a bridge between learning-theory specifications and concrete model classes.