[Paper Review] HEMET: A Homomorphic-Encryption-Friendly Privacy-Preserving Mobile Neural Network Architecture
HEMET proposes a homomorphic encryption (HE)-friendly mobile neural network architecture that reduces inference latency and improves accuracy in privacy-preserving neural networks (PPNNs). By using a greedy search algorithm to replace mobile blocks with efficient convolutional layers and applying coefficient merging to reduce rescaling operations, HEMET achieves 59.3–61.2% lower inference latency and 0.4–0.5% higher accuracy than state-of-the-art PPNNs.
Recently Homomorphic Encryption (HE) is used to implement Privacy-Preserving Neural Networks (PPNNs) that perform inferences directly on encrypted data without decryption. Prior PPNNs adopt mobile network architectures such as SqueezeNet for smaller computing overhead, but we find naïvely using mobile network architectures for a PPNN does not necessarily achieve shorter inference latency. Despite having less parameters, a mobile network architecture typically introduces more layers and increases the HE multiplicative depth of a PPNN, thereby prolonging its inference latency. In this paper, we propose a extbf{HE}-friendly privacy-preserving extbf{M}obile neural n extbf{ET}work architecture, extbf{HEMET}. Experimental results show that, compared to state-of-the-art (SOTA) PPNNs, HEMET reduces the inference latency by $59.3\%\sim 61.2\%$, and improves the inference accuracy by $0.4 \% \sim 0.5\%$.
Motivation & Objective
- To address the high inference latency in privacy-preserving neural networks (PPNNs) that use homomorphic encryption (HE) for end-to-end encrypted inference.
- To identify that naïve adoption of mobile neural network architectures in PPNNs can increase multiplicative depth and thus worsen latency despite fewer parameters.
- To design a HE-friendly mobile neural network architecture that minimizes HE operation count and multiplicative depth without sacrificing accuracy.
- To develop a greedy architecture search algorithm that selects optimal layer types (convolutional vs. mobile modules) layer by layer to reduce latency.
- To introduce coefficient merging to consolidate mask, activation, and batch normalization coefficients, reducing rescaling operations and latency.
Proposed method
- Proposes a greedy, layer-by-layer architecture search algorithm that evaluates whether to use a standard convolutional layer or a mobile module to minimize HE inference latency.
- Introduces coefficient merging to combine the mask, approximated ReLU coefficients, and batch normalization coefficients of each layer into a single coefficient set, reducing rescaling operations.
- Employs the CKKS homomorphic encryption scheme with RNS decomposition to manage noise and support approximate arithmetic on encrypted tensors.
- Uses polynomial approximation (degree-2) for ReLU activations to enable fully homomorphic computation without interaction, enabling non-interactive PPNNs.
- Evaluates the search algorithm on SqueezeNet and InceptionNet backbones, replacing selected mobile blocks with standard convolutions to reduce depth and latency.
- Applies coefficient merging post-architecture search to further reduce the number of rescaling operations, which are expensive in HE.
Experimental results
Research questions
- RQ1Does naively applying mobile neural network architectures to PPNNs always reduce inference latency despite fewer parameters?
- RQ2Can a greedy, layer-wise architecture search algorithm identify optimal layer types (convolutional vs. mobile modules) that minimize HE inference latency?
- RQ3To what extent can coefficient merging reduce the number of rescaling operations in HE-based PPNNs without affecting accuracy?
- RQ4How much latency reduction and accuracy improvement can be achieved by combining architecture search and coefficient merging in PPNNs?
- RQ5Can the proposed HEMET architecture outperform state-of-the-art PPNNs in both latency and accuracy on standard benchmarks like CIFAR-10 and MNIST?
Key findings
- HEMET reduces inference latency by 59.3–61.2% compared to state-of-the-art PPNNs based on SqueezeNet and InceptionNet.
- HEMET improves inference accuracy by 0.4–0.5% over existing PPNNs, despite reducing computational cost.
- The Ours-F34 architecture based on SqueezeNet achieves 43.8 seconds inference latency on CIFAR-10, a 40.5% reduction from the original SqueezeNet.
- Coefficient merging reduces rescaling operations by two in Ours-F34 and by four in Ours-I789, contributing to a 20% and 37% latency reduction respectively.
- Replacing more mobile blocks with convolutional layers does not always reduce latency, indicating a trade-off between depth and efficiency.
- The best-performing architecture, Ours-I789-Merge on InceptionNet, achieves 61.2% latency reduction and 0.5% accuracy gain over EVA-compiled InceptionNet.
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.