[Paper Review] SafetyNets: Verifiable Execution of Deep Neural Networks on an Untrusted Cloud
SafetyNets introduces an interactive proof protocol to verifiably outsource DNN inference to untrusted clouds, achieving low client/server overhead with strong integrity guarantees while maintaining competitive accuracy on MNIST and TIMIT.
Inference using deep neural networks is often outsourced to the cloud since it is a computationally demanding task. However, this raises a fundamental issue of trust. How can a client be sure that the cloud has performed inference correctly? A lazy cloud provider might use a simpler but less accurate model to reduce its own computational load, or worse, maliciously modify the inference results sent to the client. We propose SafetyNets, a framework that enables an untrusted server (the cloud) to provide a client with a short mathematical proof of the correctness of inference tasks that they perform on behalf of the client. Specifically, SafetyNets develops and implements a specialized interactive proof (IP) protocol for verifiable execution of a class of deep neural networks, i.e., those that can be represented as arithmetic circuits. Our empirical results on three- and four-layer deep neural networks demonstrate the run-time costs of SafetyNets for both the client and server are low. SafetyNets detects any incorrect computations of the neural network by the untrusted server with high probability, while achieving state-of-the-art accuracy on the MNIST digit recognition (99.4%) and TIMIT speech recognition tasks (75.22%).
Motivation & Objective
- Motivate trusted results for cloud-based DNN inference and address integrity risks from untrusted providers.
- Develop a specialized interactive proof protocol tailored for neural networks representable as arithmetic circuits.
- Ensure practical performance with low client verification overhead and modest server proof generation costs.
- Demonstrate the approach on standard datasets to show maintained accuracy and verifiability.
Proposed method
- Use a specialized interactive proof (IP) protocol for arithmetic circuits to verify DNN inference end-to-end.
- Represent neural networks as arithmetic circuits using quadratic activations and sum pooling, operating in a finite field F_p.
- Apply multilinear extensions and sum-check protocols (including a matrix-multiplication IP and a quadratic-activation IP) to verify layer computations.
- Refine the network outputs by verifying the input to the final activation layer and computing the final output locally at the verifier.
- Quantize floating-point weights and inputs to integers in F_p via scaling factors alpha and beta, and choose large primes (e.g., 2^61-1) to control soundness and accuracy.
- Amortize prover and verifier costs over input batches and bound the total communication and soundness error.
Experimental results
Research questions
- RQ1How can an untrusted cloud perform DNN inference with verifiable correctness guarantees?
- RQ2What specialized IP techniques can verify neural network computations efficiently when networks are expressed as arithmetic circuits?
- RQ3What are the practical performance and accuracy implications of using finite-field representations for DNN inference?
- RQ4Can verifiable computation proofs be kept lightweight in bandwidth and latency while maintaining strong integrity guarantees?
Key findings
- Client verification time is 8x to 80x faster than local execution for FcNN-Quad-3 on batch sizes 256–2048.
- Server overhead for generating proofs is less than 5% of baseline unverified execution.
- Total client/server data exchanged during the IP protocol is under 8 KBytes for a batch size of 2048.
- Soundness error is less than 1/2^30 across practical network parameters.
- SafetyNets achieves state-of-the-art-like accuracies on MNIST (99.4%) and TIMIT (75.22%).
- Quantization strategy and prime selection balance accuracy with finite-field constraints.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.