LiRPA MLP certificate checker #
This module is a compact end-to-end example of checking an IBP certificate for a compact MLP in TorchLean's graph-based verifier.
It does three things:
- Defines a compact graph (
buildGraph), - Seeds deterministic parameters and an input box,
- Checks a JSON certificate produced by an external tool (LiRPA-style workflow).
Run via the unified CLI registry:
lake exe verify -- lirpa-mlp [path]
If path is omitted, the CLI uses the default example certificate at:
NN/Examples/Verification/LiRPA/mlp_cert.json.
Four-node 3 → 4 → 2 ReLU MLP graph used by the compact LiRPA certificate example.
Instances For
Deterministic Float weights and biases for both linear nodes in buildGraph.
Instances For
Check an IBP certificate JSON file and throw an error if it does not match recomputed bounds.