Skip to main content
QUICK REVIEW

[Paper Review] Precise Approximation of Convolutional Neural Networks for Homomorphically Encrypted Data

Junghyun Lee, Eunsang Lee|arXiv (Cornell University)|May 23, 2021
Cryptography and Data SecurityComputer Science13 citations
TL;DR

This paper proposes a precise polynomial approximation technique for ReLU and max-pooling functions in convolutional neural networks (CNNs) to enable efficient, privacy-preserving inference on homomorphically encrypted data. By composing minimax polynomials of small degrees, the method enables direct use of well-established models like ResNet and VGGNet with pre-trained weights on word-wise fully homomorphic encryption (FHE), achieving 77.52% top-1 accuracy on ImageNet—within 0.79% of the original model’s 78.31% accuracy.

ABSTRACT

Homomorphic encryption is one of the representative solutions to privacy-preserving machine learning (PPML) classification enabling the server to classify private data of clients while guaranteeing privacy. This work focuses on PPML using word-wise fully homomorphic encryption (FHE). In order to implement deep learning on word-wise homomorphic encryption (HE), the ReLU and max-pooling functions should be approximated by some polynomials for homomorphic operations. Most of the previous studies focus on HE-friendly networks, where the ReLU and max-pooling functions are approximated using low-degree polynomials. However, for the classification of the CIFAR-10 dataset, using a low-degree polynomial requires designing a new deep learning model and training. In addition, this approximation by low-degree polynomials cannot support deeper neural networks due to large approximation errors. Thus, we propose a precise polynomial approximation technique for the ReLU and max-pooling functions. Precise approximation using a single polynomial requires an exponentially high-degree polynomial, which results in a significant number of non-scalar multiplications. Thus, we propose a method to approximate the ReLU and max-pooling functions accurately using a composition of minimax approximate polynomials of small degrees. If we replace the ReLU and max-pooling functions with the proposed approximate polynomials, well-studied deep learning models such as ResNet and VGGNet can still be used without further modification for PPML on FHE. Even pre-trained parameters can be used without retraining. We approximate the ReLU and max-pooling functions in the ResNet-152 using the composition of minimax approximate polynomials of degrees 15, 27, and 29. Then, we succeed in classifying the plaintext ImageNet dataset with 77.52% accuracy, which is very close to the original model accuracy of 78.31%.

Motivation & Objective

  • Address the challenge of performing inference on homomorphically encrypted data using standard deep learning models without retraining.
  • Overcome the limitations of low-degree polynomial approximations used in prior HE-friendly networks, which require model redesign and cannot scale to deeper architectures.
  • Enable the use of well-studied, pre-trained models such as ResNet and VGGNet on encrypted data via accurate, composition-based polynomial approximations.
  • Achieve high inference accuracy close to the original model while maintaining compatibility with existing FHE schemes and minimizing computational overhead.

Proposed method

  • Propose a composition of minimax approximate polynomials of small degrees (e.g., 15, 27, 29) to precisely approximate ReLU and max-pooling functions.
  • Use a precision parameter α to control approximation error, ensuring that the difference between original and approximated model outputs is bounded by C·2⁻ᵅ for a constant C.
  • Generalize the error propagation analysis to residual blocks in models like ResNet, proving that the error remains bounded by C·2⁻ᵅ even in deep architectures.
  • Demonstrate that the approximation preserves model structure and enables direct use of pre-trained weights without retraining.
  • Leverage recent improvements in FHE bootstrapping to handle high-degree polynomial evaluations efficiently.
  • Formalize the error propagation using error functions Eₐᵅ(e) and derive bounds through induction on network depth, ensuring theoretical guarantees on approximation accuracy.

Experimental results

Research questions

  • RQ1Can ReLU and max-pooling functions be approximated with high precision using low-degree polynomials without requiring model retraining?
  • RQ2How can the approximation error be bounded in deep residual networks like ResNet when using polynomial approximations?
  • RQ3To what extent can pre-trained models like ResNet-152 be used for privacy-preserving inference on encrypted ImageNet data using FHE?
  • RQ4What is the trade-off between approximation precision (controlled by α) and computational cost in homomorphic evaluation?
  • RQ5Can the composition of minimax polynomials achieve near-original model accuracy while remaining compatible with existing FHE schemes?

Key findings

  • The proposed method achieves 77.52% top-1 accuracy on the ImageNet dataset using ResNet-152 with homomorphic encryption, compared to 78.31% for the original model.
  • The approximation error between the original and approximated model is bounded by C·2⁻ᵅ, ensuring that increasing the precision parameter α reduces error exponentially.
  • Well-studied models such as ResNet and VGGNet can be used directly with pre-trained weights after replacing ReLU and max-pooling with the proposed polynomial approximations.
  • The method supports deeper networks than prior HE-friendly approaches, which are limited by large approximation errors from low-degree polynomials.
  • The theoretical analysis proves that the error remains bounded even in residual networks, with the error propagation function Eᵣᵅ(e) satisfying Eᵣᵅ(e) ≤ C·2⁻ᵅ + (||P||∞ + C'₉)e.
  • The approach enables practical privacy-preserving inference on complex datasets like ImageNet using standard, pre-trained models without architectural modification or retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.