Verifiable Private Inference: Securing Neural Networks with Homomorphic Encryption and VC

Computing Neural Networks with Homomorphic Encryption and Verifiable Computing

2020-01-01
Abbass Madi, Renaud Sirdey, Oana Stan
Summary
Problem
Method
Results
Takeaways
Abstract

The paper introduces a practical framework for privacy-preserving Artificial Neural Network (ANN) inference by combining Bromorphic Homomorphic Encryption (BFV scheme) with Verifiable Computing (VC). It presents a partitioned network architecture where the first quadratic layer is evaluated on encrypted data with integrity proofs, achieving 97.54% accuracy on the MNIST dataset.

TL;DR

This research bridges a critical gap in outsourced AI: Integrity. While Homomorphic Encryption (HE) hides data, it doesn't stop a server from lying about the result. By combining the BFV cryptosystem with a Verifiable Computing (VC) protocol, the authors enable a system where the server processes encrypted data and provides a "proof of correctness" that can be verified in milliseconds.

The Trust Gap in Cloud AI

The standard "Privacy-Preserving Machine Learning" (PPML) story usually focuses on confidentiality—ensuring the cloud provider doesn't see your medical records or private photos. However, in real-world deployment, we face a Malicious Server threat. A server might:

  1. Skip complex computations to save energy (Silent failure).
  2. Deliberately return a wrong classification (Active attack).

Prior works like CryptoNets focus solely on the "honest-but-curious" model. This paper shifts the paradigm toward Verifiable Machine Learning as a Service (VMLaaS).

Methodology: The Partitioned Architecture

Since full verifiable computation for deep, non-linear networks is computationally prohibitive (due to the "degree-2" limit of practical VC schemes), the authors propose an elegant partitioned model:

1. The Encrypted Whitener (Layer 1)

The client encrypts input and generates a cryptographic tag. The server evaluates the first layer, which is restricted to a quadratic function. This layer acts as a "whitener" through adversarial training, ensuring that even if the operator decrypts the output of this layer, they cannot reconstruct the sensitive raw input.

2. Verifiable Computing (VC) Integration

The server uses a specialized VC protocol (adapted from Fiore et al.) to generate a tag for the result. This leverages:

  • Homomorphic Hash Functions: To compress large BFV ciphertexts into verifiable group elements.
  • Pseudo-Random Functions (PRF): For efficient, amortized proof generation.

System Architecture

3. Clear-Domain Completion

The operator (who holds the keys) verifies the server's proof. If the proof is valid, they decrypt the intermediate result and run the remaining (more complex) layers of the neural network in the clear.

Experimental Performance

The framework was tested on the MNIST dataset using the Microsoft SEAL library and HAL (Homomorphic Authentication Library).

PhaseOperationTime (seconds)
UserData Encryption & Tag Gen~2.5s
ServerQuadratic Eval & Proof Gen~3.8s
OperatorIntegrity Verification0.015s
OperatorDecryption0.006s

The 97.54% accuracy achievement confirms that the quadratic approximation of the first layer does not significantly degrade performance for image recognition tasks.

Noise Budget Analysis

Deep Insight: Why Quadratic?

The primary bottleneck in modern VC is the algebraic complexity. Proving where is a high-degree polynomial results in exponential proof growth. By limiting the "Private & Verifiable" segment to a degree-2 function, the authors achieve a "sweet spot": it is mathematically expressive enough to serve as a feature extractor, yet simple enough to keep verification times in the millisecond range.

Critical Analysis & Future Outlook

While this is a significant step, the reliance on a non-collusion assumption between the Server and the Operator is a notable limitation. If the server (computing) and operator (decrypting) conspire, user privacy is lost.

Future Directions:

  • Beyond Degree 2: Moving toward GKR protocols or zk-SNARKs that can handle ReLU and MaxPool layers verifiably.
  • Batching: Utilizing BFV SIMD slots to process 4096 images simultaneously, which would drastically improve throughput.

Conclusion

This paper provides a robust blueprint for secure AI by proving that Confidentiality + Integrity is possible without sacrificing total accuracy. For industries like healthcare (Medical Use-Case) or corporate security (Mail Filters), this "Proof of Correctness" is the missing link for cloud-based AI adoption.

Find Similar Papers

Try Our Examples

  • Search for recent papers that extend Verifiable Computing (VC) for high-degree polynomials or non-polynomial activation functions like ReLU in encrypted neural networks.
  • What are the performance trade-offs between using Functional Encryption (FE) versus the BFV-HE combined with VC approach proposed in this paper for private classification?
  • Explore how zero-knowledge proofs (zk-SNARKs) have been integrated into large-scale Transformer models to ensure inference integrity while maintaining low latency.
Contents
Verifiable Private Inference: Securing Neural Networks with Homomorphic Encryption and VC
1. TL;DR
2. The Trust Gap in Cloud AI
3. Methodology: The Partitioned Architecture
3.1. 1. The Encrypted Whitener (Layer 1)
3.2. 2. Verifiable Computing (VC) Integration
3.3. 3. Clear-Domain Completion
4. Experimental Performance
5. Deep Insight: Why Quadratic?
6. Critical Analysis & Future Outlook
7. Conclusion