TL;DR
PANDA (Proofs of Automated Neural-network Derived Affine bounds) is a highly scalable zero-knowledge proof (ZKP) system that certifies the local robustness and fairness of neural networks without exposing proprietary model parameters. By moving the heavy lifting of bound-searching outside the cryptographic protocol and verifying it via a novel "Four-Point Relaxation Gadget," PANDA scales polynomially, supporting models with up to 2.9 million parameters—four orders of magnitude larger than previous approaches.
What Problem Does This Paper Address?
As machine learning models are increasingly deployed in safety-critical and heavily regulated domains like healthcare, autonomous driving, and financial decision-making, stakeholders demand formal guarantees. For instance, a hospital using an AI diagnostic tool needs assurance of local robustness—meaning a minor typo or synonym in a patient's chart won't radically alter the model's prediction.
However, deep learning models are highly guarded commercial secrets. Exposing model weights to third-party auditors or end-users risks intellectual property theft, white-box adversarial attacks, and data privacy leaks.
Zero-Knowledge Proofs (ZKPs) offer a elegant solution: a model owner can mathematically prove that their model satisfies a robustness property without revealing the underlying weights. Unfortunately, prior zkML robustness frameworks scale exponentially with the number of neurons, capping their capability at tiny toy networks (~100 parameters) and limiting them strictly to simple ReLU activations. PANDA bridges this gap, bringing zero-knowledge robustness verification to real-world, million-parameter scales.
Methods
PANDA builds directly on top of CROWN, a state-of-the-art, non-cryptographic framework for neural network verification. CROWN works by propagating linear upper and lower bounds through the network to "sandwich" non-linear activation functions over a given input interval.
However, finding these optimal linear bounds requires an expensive, iterative search. Running this entire search trace inside a ZKP would cause massive prover overhead. PANDA bypasses this bottleneck with a clever insight: the prover can perform the costly CROWN search in plaintext outside the ZKP, and then use the ZKP solely to verify that the resulting bounds are correct.
To achieve this, the authors introduce the Four-Point Relaxation Gadget. For complex, S-shaped activation functions (like sigmoid, tanh, and arctan), verifying that a linear bound safely bounds a curve usually requires complex case-by-case logic. Conditional branching inside a ZKP is notoriously inefficient and can leak private information about the input intervals. The authors mathematically formulated a case-free verification method that checks validity by evaluating just four pointwise inequalities (the two interval endpoints and two tangency points).
Additionally, because ZKPs natively operate on finite fields rather than floating-point numbers, PANDA implements fixed-point quantization. It uses matrix arithmetic proofs ($\Pi_{\text{ARITH}}$) for linear layers and lookup arguments ($\Pi_{\text{LOOKUP}}$) to handle the non-linear activation functions and range checks.
Datasets
The authors evaluated PANDA across several established verification benchmarks:
- MNIST: Image classification networks ranging from small architectures to large models ($4 \times [1024]$) containing over 2.9 million parameters.
- SafeNLP: Application-focused models from VNN-COMP 2025, including medical query risk classifiers and human-vs-robot text detectors.
- LunarLander: A VNN-COMP 2022 benchmark used to verify safe control actions for lunar robots.
- FairProof Adult: A tabular dataset benchmark used specifically to compare fairness properties against prior ZKP work.
Key Insights and Ideas
- The Prover/Verifier Split: Instead of forcing the ZKP to compute an optimal mathematical relaxation, PANDA shifts the optimization problem to plaintext computation and leaves the ZKP with the much simpler task of verifying a set of constraints.
- Case-Free Soundness: Standard calculus-based verification requires knowing whether a tangency point falls inside or outside an interval. PANDA introduces a case-free formulation (Theorem 5.1) that maintains perfect cryptographic privacy and eliminates expensive conditional logic inside the proof.
- Transcendental Activation Support: PANDA is the first privacy-preserving local robustness system to support transcendental activation functions like sigmoid and tanh, which are standard in many modern neural network architectures.
Key Results
- Unprecedented Scale: PANDA successfully generated local robustness proofs for a massive $4 \times [1024]$ MNIST network containing 2.9 million parameters.
- Fast Execution: For the 2.9M parameter network, PANDA generated proofs in roughly 5 minutes (226 seconds for ReLU, ~330 seconds for Sigmoid/Tanh) and verified them in just 10 to 14 seconds.
- Polynomial Complexity: PANDA's runtime scales polynomially ($O(m^2n^3)$) with the number of neurons, matching the asymptotic complexity of the underlying non-cryptographic CROWN algorithm.
- Defeating the Competition: In head-to-head tests against FairProof (the only other comparable ZKP robustness system), FairProof timed out or ran out of memory on even the smallest MNIST benchmarks. On the tiny Adult dataset where FairProof could run, PANDA cut the proving time in half.
Limitations and Future Work
- Quantized Models Only: PANDA requires models to be quantized into integer arithmetic. It cannot directly certify standard floating-point models, though this is a universal limitation across current zkML frameworks.
- Incomplete Verification: Because PANDA inherits CROWN’s mathematical properties, it is an incomplete verifier. It can definitively prove that a model is robust, but if the proof fails, it cannot determine whether the model is genuinely vulnerable or if the linear bounds were simply too loose.
- Architectural Leakage: While PANDA completely hides model weights and biases, the public statement still discloses the overall model architecture, layer dimensions, and activation functions. The authors note that padding networks with dummy layers could mitigate this minor privacy leak.
Summary updated