[Paper Review] Popcorn: Paillier Meets Compression For Efficient Oblivious Neural Network Inference
Popcorn is a privacy-preserving neural network inference framework built entirely on the Paillier homomorphic encryption scheme, enabling efficient oblivious inference without modifying network architectures. It leverages neural network compression and homomorphic operations to reduce communication overhead—demonstrating the first successful oblivious inference on ImageNet with significant bandwidth advantages over prior methods.
Oblivious inference enables the cloud to provide neural network inference-as-a-service (NN-IaaS), whilst neither disclosing the client data nor revealing the server's model. However, the privacy guarantee under oblivious inference usually comes with a heavy cost of efficiency and accuracy. We propose Popcorn, a concise oblivious inference framework entirely built on the Paillier homomorphic encryption scheme. We design a suite of novel protocols to compute non-linear activation and max-pooling layers. We leverage neural network compression techniques (i.e., neural weights pruning and quantization) to accelerate the inference computation. To implement the Popcorn framework, we only need to replace algebraic operations of existing networks with their corresponding Paillier homomorphic operations, which is extremely friendly for engineering development. We first conduct the performance evaluation and comparison based on the MNIST and CIFAR-10 classification tasks. Compared with existing solutions, Popcorn brings a significant communication overhead deduction, with a moderate runtime increase. Then, we benchmark the performance of oblivious inference on ImageNet. To our best knowledge, this is the first report based on a commercial-level dataset, taking a step towards the deployment to production.
Motivation & Objective
- Address the efficiency and privacy trade-off in oblivious neural network inference by minimizing communication and computational overhead.
- Enable privacy-preserving inference without modifying neural network architectures, preserving model accuracy.
- Reduce engineering complexity by relying solely on Paillier homomorphic operations, making deployment accessible to ML engineers.
- Demonstrate practical feasibility of oblivious inference on large-scale datasets like ImageNet, previously unreported in prior work.
- Achieve a balance between privacy leakage and performance by hiding model weights and architecture beyond layer neuron counts.
Proposed method
- Replace standard algebraic operations in neural networks with their Paillier homomorphic equivalents to enable computation on encrypted data.
- Design novel protocols for computing non-linear layers—specifically ReLU activation and max-pooling—within the Paillier framework.
- Apply neural network compression techniques, including weight pruning and quantization, to accelerate linear layers (e.g., convolutions and fully connected layers).
- Leverage the SIMD-like capabilities of Paillier to pack multiple inputs into a single ciphertext, amortizing communication and computation costs.
- Implement a non-invasive framework that requires no changes to model architecture, enabling plug-and-play integration with existing models.
- Use a hybrid approach where homomorphic operations handle linear layers and custom protocols handle non-linear operations, minimizing reliance on complex cryptographic primitives.
Experimental results
Research questions
- RQ1Can a homomorphic encryption-based framework achieve efficient oblivious inference without modifying neural network architectures?
- RQ2How can non-linear operations like ReLU and max-pooling be securely and efficiently computed under Paillier homomorphic encryption?
- RQ3To what extent can neural network compression techniques reduce computational and communication overhead in encrypted inference?
- RQ4Is it feasible to perform oblivious inference on large-scale datasets like ImageNet using a practical, low-leakage framework?
- RQ5How does the communication complexity of Popcorn compare to existing solutions like XONN and Gazelle, especially for large models?
Key findings
- Popcorn achieves a communication bandwidth of less than 1 MB for MNIST and CIFAR-10 tasks, significantly lower than prior works like XONN and Gazelle.
- For ImageNet inference using AlexNet, Popcorn maintains communication overhead in a reasonable range, while Gazelle’s implementation fails due to out-of-memory errors.
- The communication complexity of Popcorn is O(n), where n is the number of activations, making it more scalable than architecture-dependent schemes like XONN and Gazelle.
- Runtime increases are moderate, while communication overhead is drastically reduced—making Popcorn particularly advantageous for large models.
- Popcorn is the first framework to report successful oblivious inference on ImageNet-scale classification tasks using state-of-the-art models.
- The framework enables practical deployment by requiring only simple replacement of algebraic operations with homomorphic equivalents, minimizing engineering complexity.
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.