Introduction
Deep Learning as a Service (DLaaS) has become a cornerstone of modern AI, enabling users to access sophisticated models for critical tasks such as medical diagnostics and voice recognition. However, this paradigm introduces a significant privacy conflict: users must often share sensitive personal data with cloud providers, while providers must protect their proprietary model architectures and weights.
Traditional cryptographic solutions like Homomorphic Encryption (HE) and Garbled Circuits (GC) offer a theoretical path to secure inference, but they are historically plagued by extreme computational and communication overheads. For complex Deep Neural Networks (DNNs), these methods often result in latencies that are impractical for real-time applications. This paper introduces PROUD, a framework designed to bridge the gap between cryptographic security and cloud-scale performance.
The PROUD Framework
PROUD achieves its efficiency by co-designing cryptographic primitives with cloud-native technologies. The framework decomposes DNN computation into two specialized protocols that handle linear and non-linear operations differently.
Linear Layers: Matrix Function (MatF)
To handle linear layers, PROUD moves away from standard HE matrix multiplication. Instead, it employs a novel matrix permutation method coupled with "ciphertext packing," which allows multiple data values to be encrypted into a single ciphertext. This approach transforms complex matrix operations into simpler component-wise products. To further accelerate processing, the server utilizes Docker containers to parallelize these operations across multiple instances.
Non-linear Layers: Non-linear Function (NlnF)
Computing non-linear activation functions (like ReLU) directly in an encrypted domain is a major bottleneck. PROUD addresses this through an interactive paradigm: the server sends encrypted intermediate outputs back to the client. The client decrypts the data, applies the non-linear function locally in plaintext, re-encrypts the result, and returns it to the server. This "strategic offloading" avoids the heavy computational cost of polynomial approximations or garbled circuits.
Experimental Evaluation
The PROUD framework was evaluated using a LeNet5 architecture on two primary datasets: MNIST (handwritten digits) and IDC (Invasive Ductal Carcinoma medical imaging). The results were compared against several state-of-the-art secure inference schemes, including CryptoNets, GAZELLE, BAYHENN, and DELPHI.
Key Results
- Latency: On the MNIST dataset, PROUD achieved an average latency of 0.62 seconds per image. This represents a 13x speedup over GAZELLE (8.05s) and is orders of magnitude faster than earlier frameworks like CryptoNets (1080.3s).
- Accuracy: By performing exact non-linear computations locally on the client side, PROUD maintains high accuracy (99.01% on MNIST and 84.01% on IDC), avoiding the precision loss common in approximation-based methods.
- Communication Efficiency: Despite the interactive nature of the NlnF protocol, PROUD maintains a low communication footprint, requiring only 1.03 MB for an MNIST inference, significantly lower than GAZELLE or BAYHENN.
Discussion and Future Work
While PROUD offers a massive leap in performance, its interactive nature requires the client to remain online and possess sufficient computational power for local decryption and re-encryption. Future research aims to adapt this modular protocol for even more complex architectures, such as Transformers for NLP or 3D CNNs for video analysis. The authors also envision direct integration into commercial cloud platforms like AWS to facilitate broader real-world adoption of privacy-preserving AI.
Summary updated