Introduction
Homomorphic Encryption (HE) represents a transformative approach to privacy-preserving machine learning, enabling computation directly on encrypted data. In an ideal scenario, a client could send encrypted data to a cloud server, which performs inference using a deep learning model and returns an encrypted result. The server never gains access to the raw data, maintaining complete privacy. However, a significant hurdle remains: HE natively supports only arithmetic operations—addition and multiplication.
Modern Convolutional Neural Networks (CNNs), such as ResNet and VGG, rely heavily on non-arithmetic functions, specifically the Rectified Linear Unit (ReLU) activation and Max-pooling layers. Implementing these in an HE environment requires approximating them with polynomials. Historically, these approximations have been either too imprecise for deep networks or too computationally expensive, often necessitating the design of specialized, shallow architectures and extensive retraining.
The Challenge of Non-Linearity in HE
Standard approaches to HE-friendly neural networks typically replace ReLU with simple low-degree polynomials like $x^2$. While this works for shallow networks on simple datasets like MNIST, it fails for deep architectures. In models like ResNet-152, the approximation errors from each layer accumulate exponentially, leading to a total collapse in accuracy.
To overcome this, researchers have sought ways to create high-precision approximations. However, a single high-degree minimax polynomial that provides sufficient accuracy is often too large to be practical under HE constraints, where the "depth" of multiplications (the number of sequential multiplications) is a primary cost driver.
Methodology: Composite Minimax Polynomials
This paper introduces a novel method for precise polynomial approximation using composite minimax polynomials. Instead of a single high-degree polynomial, the authors propose composing several lower-degree minimax polynomials. This approach is exponentially more efficient; for a given target precision, the composite method can achieve the same error bound with significantly fewer multiplications.
The core of the strategy involves leveraging mathematical identities. For instance, the ReLU function can be expressed as: $$ReLU(x) = \frac{x + x \cdot sgn(x)}{2}$$ By precisely approximating the sign function ($sgn$) using their composite technique, the researchers can derive a highly accurate approximation for ReLU, denoted as $r_\alpha(x)$, where $\alpha$ is a precision parameter.
This framework allows for "zero-shot" inference. Because the approximation is so precise, a model trained on plaintext data can be converted into an HE-compatible version without requiring the original training set for retraining or fine-tuning.
Experimental Evaluation
The proposed method was evaluated on challenging computer vision benchmarks, CIFAR-10 and ImageNet, using state-of-the-art deep models.
CIFAR-10 Results
On the CIFAR-10 dataset, the researchers tested various architectures, including VGG-16 and ResNet-110. The approximate VGG-16 model achieved an accuracy of 91.87% without any retraining, nearly matching the performance of the original plaintext model.
ImageNet and Large-Scale Scalability
The most significant result is the successful deployment of ResNet-152 on ImageNet. This is the first work to demonstrate high-accuracy inference on a model of this depth using word-wise HE. The approximate ResNet-152 model reached 77.52% top-1 accuracy, compared to the original model's 78.31%. This minimal accuracy drop (less than 1%) proves that the composite approximation effectively manages error accumulation even across hundreds of layers.
Key Insights and Conclusion
The primary breakthrough of this research is the efficiency of polynomial composition. To reach a high precision level ($\alpha=15$), the composite method utilized three polynomials of degree 29. Achieving the same precision with a single minimax polynomial would have required a degree of approximately 4,612, which is computationally infeasible in current HE schemes.
While inference latency remains a challenge due to the inherent overhead of homomorphic encryption and the need for "bootstrapping" to refresh ciphertext noise, this work provides a critical bridge. By enabling the use of pre-trained, standard deep learning models on encrypted data with near-original accuracy, it moves privacy-preserving machine learning closer to practical, large-scale deployment.
Summary updated