Manuscript Offprint
arXiv:2610.33525Pacifo: An Efficient Fully Homomorphic Encryption-based Lightweight ResNet for Trustworthy Machine Learning as a Service
Yang Li, Gang He, Ruichen Zhang, Guangyuan Liu, and Yinqiu Liu
Abstract—Machine Learning as a Service (MLaaS) has become a popular paradigm for deploying AI applications. However, it raises significant privacy concerns that the raw client data needs to be uploaded to the server for inference services. Private inference using Fully Homomorphic Encryption (FHE) offers a solution by allowing computations directly on encrypted data, with only the final results decrypted on a client side. However, current practical implementations still suffer from large computational overhead and high latency due to the cost of FHE operations. In this paper, we propose Pacifo, a framework that adapts customized fine-tuning strategies to efficiently evaluate the ResNet20 model in the context of FHE. Specifically, Pacifo introduces a public-private layer partitioning scheme and an efficient ReLU approximation, significantly reducing the number of private layers and costly FHE operations during inference. It also offers flexible security configurations to accommodate varying client privacy requirements. Compared to state-of-the-art FHE implementations of ResNet20, Pacifo achieves a speedup of in runtime while effectively preserving 95% – 99% of the original plaintext model accuracy across downstream tasks. Pacifo is open-sourced at https://github.com/BryceYangLi/Pacifo.
Index Terms—Privacy-preserving machine learning, fully homomorphic encryption, private inference, ResNet20, fine-tuning
I. Introduction
In recent years, deep learning-based models have shown remarkable capabilities across a wide range of tasks, including image recognition [1], [2], sentiment analysis [3], and content generation [4]. In this case, Machine Learning as a Service (MLaaS) [5], [6] has emerged as a popular business use case to facilitate the development of diverse AI applications. Fig. 1 presents a typical MLaaS workflow: the well-trained model is often deployed on the remote server, and the clients need to upload their data to the server and receive the inference result in return. This setup allows clients to avoid the cost of training computationally intensive models locally, while the server retains ownership of its valuable model.
However, the data handling process in MLaaS could raise significant privacy concerns. Specifically, MLaaS often operates through an online platform or APIs, requiring clients to transmit input data to the server. This reliance could lead to potential misuse of private data, such as unauthorized processing or resale to third parties. Even when the server is considered trustworthy, clients with sensitive data (e.g., medical records or financial information) may be unwilling to grant direct access to their data. These concerns have triggered responses scuh as Italy's temporary ban of ChatGPT [7], [8]. Hence, different private outsourced computation techniques have been applied to MLaaS to mitigate data privacy concerns, e.g., Differential Privacy (DP) [9], secure Multi-Party Computation (MPC) [10], and Homomorphic Encryption (HE) [11]. These approaches belong to the broader field of Privacy-Preserving Machine Learning (PPML) and focus on private inference (PI), which means performing model inference service without exposing client data [12].
FHE for Private Inference. Among existing solutions, FHE-based approaches are considered highly promising. In this setting, clients encrypt their private inputs before transmission, and only decrypt the final inference results returned by the server, ensuring that the server gains no knowledge of the input [13]. The privacy guarantees of FHE are grounded in the hardness of well-established cryptographic assumptions, i.e., the Ring Learning With Errors (RLWE) problem [14]. In addition, FHE-based protocols are usually non-interactive, which means no additional communication is required between the client and server during the inference process. Thereafter, there are several studies on HE-based private inference [15]–[24], with recent works [25]–[29] targeting deep and wide Convolutional Neural Networks (CNNs). Specifically, CNNs excel at capturing two-dimensional spatial features, making them effective for a wide range of image processing tasks and a popular choice for private inference [30].
Challenges in FHE-Based CNN Inference. Most existing HE-based solutions [25]–[29] utilize the Cheon-Kim-Kim-Song (CKKS) scheme [31] (except Benamira et al. [27] with TFHE [32]). CKKS supports approximate arithmetic over real and complex numbers, making it well-suited for PPML. Nonetheless, current implementations on CNNs still face the following challenges:
Y. Li and G. Liu are with the College of Computing and Data Science, the Energy Research Institute @ NTU, Interdisciplinary Graduate Program, Nanyang Technological University, Singapore (e-mail: yang048@e.ntu.edu.sg; liug0022@e.ntu.edu.sg).
G. He is with the School of Communication and Information Engineering, Shanghai University, Shanghai, China (e-mail: hegang@shu.edu.cn).
- Advanced CNNs such as ResNet involve many convolutions and non-linear activations, which require
R. Zhang, and Y. Liu are with the College of Computing and Data Science, Nanyang Technological University, Singapore (e-mails: ruichen.zhang@ntu.edu.sg; yinqiu001@e.ntu.edu.sg)

Fig. 1: MLaaS without privacy protection
a large number of expensive homomorphic computations and customized polynomial approximations in the context of FHE. This results in significant computational overhead and high runtime costs. For instance, Kim et al. [28] reported a runtime of 368 seconds to evaluate a single CIFAR-10 image using ResNet20.
-
CNNs often have deep architectures—for example, even the lightweight ResNet20 consists of 20 network layers. Designing an FHE circuit to evaluate the entire model typically requires frequent and costly bootstrapping operations to manage noise during computation. In Lee et al. [26] and Kim et al. [28], bootstrapping accounts for 72.6% and 82.3% of the total runtime, respectively.
-
Existing solutions [25]–[29] typically adopt a fixed security standard in HE (e.g., 128-bit), which is reasonable but lacks flexibility. We believe that the security levels should align with different application scenarios. Highly sensitive data, e.g., government communications, requires stronger security (e.g., 256-bit) to counter potential quantum threats.
To address challenges 1) and 2), prior studies have targeted computationally expensive operations, e.g., using single instruction multiple data (SIMD) to accelerate the linear computations [25], [26], [28] and proposing HE-friendly approximations for non-linear operations [29]. They have also optimized the design and placement of bootstrapping to further reduce overhead [33]. However, despite significant advancements in efficiency, these protocols remain impractical for real-world applications due to high runtime costs. Besides, none of them considers challenge 3) for further optimizing security standards. Given these limitations, we are motivated to re-consider how to design an efficient and practical private inference framework from a higher level, while ensuring the model performance.
Our Solutions. In this paper, we present Pacifo, a client-server private inference framework that minimizes FHE overhead through high-level circuit design. Pacifo leverages open-source pretrained models and strategically modifies the fine-tuning process to shift most of the computations outside the FHE domain without compromising security. As a result, the associated computational cost becomes relatively negligible. Furthermore, it introduces aggressive ReLU approximations and incorporates knowledge distillation (KD) during fine-tuning to preserve accuracy. Additionally, Pacifo supports flexible security levels, allowing clients to balance efficiency and security standards based on their specific requirements.
-
Layer Partitioning for Efficient Private Inference. We propose a layer-freezing-based fine-tuning strategy that partitions ResNet20 into public and private layers. Clients process inputs through public layers to generate intermediate features, which are encrypted and sent to the server. The server computes on the encrypted features using private layers and returns the encrypted output for the client to decrypt. Adjusting the partition offers a flexible trade-off between performance and efficiency.
-
HE-friendly Approximation for ReLU Activations. We present a highly efficient approximation for the expensive non-linear ReLU function. Unlike prior work, we trade partial functional accuracy for significantly reduced computational overhead, consuming only two multiplicative depths in HE. By leveraging knowledge distillation, we experimentally show that this simplification results in only minimal performance degradation.
-
Customized Security Standards. We have also investigated the relationship between security and HE configurations using the Learning With Errors (LWE)-estimator, enabling clients to choose different security levels based on privacy requirements. For instance, clients with higher privacy needs can opt for stronger security (e.g., 192-bit security) to effectively defend against potential quantum attacks.
-
An End-to-End Implementation using FHE. We also provide a full-fledged implementation of ResNet20 using the residue number system (RNS) variant of CKKS, i.e., RNS-CKKS, and evaluate its performance, including runtime, communication overhead, and model accuracy. Our approach could achieve a runtime of 16.9 seconds and 10.5 MB of communication—over faster than previous studies [28], [29], while maintaining accuracy comparable to the plaintext model. Our source codes are also available at https://github.com/BryceYangLi/Pacifo.
B. Organization
We summarize the related work and present the preliminaries in Section II and Section III, respectively. The basic design for an HE-based Resnet20 circuit is presented in Section IV. Our fine-tuning and layer partition strategy is given in Section V. Section VI discusses the customization of different security standards. Section VII analyzes the security of our proposed framework. Finally, we demonstrate the experimental results in Section VIII and conclude the paper in Section IX.
II. Related Work
This section reviews prior work on private inference targeting on CNNs. In general, Table I and Fig. 2 provide a summarization of the most related works compared to our proposed method. After that, we discuss these works in detail according to their underlying techniques.
A. HE-only Private Inference
We first present private inference studies based on HE schemes only, as they are closely related to our work. HE-only methods typically operates in a non-interactive manner: the client encrypts inputs, the server evaluates the network under encryption, and the client decrypts the result.
Early HE-only approaches such as CryptoNets [15] and HCNN [39] demonstrated the feasibility of evaluating neural networks over encrypted data, but they lacked support for privacy-preserving nonlinear activations. Consequently, they either delegated nonlinear computations to the client or employed HE-friendly polynomial approximations, which compromised model privacy or reduced accuracy. Lee et al. [25] employed more advanced RNS-CKKS [40] and polynomial approximation methods to implement a ResNet20 model, achieving high accuracy comparable to the plaintext model at the cost of considerable computational overhead. They further optimized their bootstrapping design and HE parameter configurations in a subsequent work [26], but it still requires half an hour of computations for a single inference. To improve the computational efficiency, Kim et al. [28] optimized the encoding process in HE and enabled more efficient convolutions, reducing the per-inference time to roughly six minutes. Rovida et al. [29] focused on the memory usage and proposed an optimized vector encoding strategy, significantly decreasing the number of stored rotation keys required by HE. Notably, They allows the evaluation of an encrypted ResNet20 in around five minutes on a laptop by using 15GB of memory. EPCNN [30] presented an interactive private inference framework and allowed the client to participate in evaluating non-linear activations and judge the sign of blinded convolution results. Their approach can improve efficiency with minimal client-server interaction.
Different from these HE-only studies, our proposed Pacifo shifts emphasis to high-level circuit design for improving efficiency: it uses a layer-freezing-based fine-tuning strategy to adaptively trims the portion of the model evaluated under HE, thereby fundamentally reducing the expensive computations in the context of HE.
B. Alternative Approaches to Private Inference
Beyond HE-only solutions, some recent studies [34]–[38] using alternative techniques, e.g., Garbled Circuit

Fig. 2: Performance comparison between existing HE-based methods and ours on ResNet20 using the CIFAR-10 dataset.
(GC) and Secret Sharing (SS), for private inference. These approaches are typically interactive, requiring the server and client to collaborate online during evaluation.
Sonic [36] adopted an SS-based two-server setting, secret-sharing both user inputs and model parameters and assuming the two servers do not collude (honest-majority). This removes the need for the user to stay online during inference process, but the security and correctness are fragile to server collusion or compromise. Zhao et al. [38] also used an SS-based dual-server setting. They optimized the secure convolution protocol, and further designed several lightweight secure building blocks, hence effectively improving the communication efficiency. Besides, some studies proposed hybrid frameworks to combine the strengths of different schemes. For instance, Gazelle [34] used HE for the linear layers of CNN and employed GC for the non-linear ones, while the communication between the client and server is supported by SS. This brings Gazelle a high computation efficiency in a typical single-server setting with limited communicatio costs. Similarly, MUSE [35] combined HE, GC and SS and designed an efficient two-party protocol resilient to malicious clients. It enables efficient switching between authenticated additive shares and GC labels via conditional disclosure, and accelerates Beaver triple generation in SS.
Notably, the above solutions all work in an interactive manner, and some of them [36]–[38] require multiple servers, which is significantly different from our design of Pacifo. Compared with them, the non-interactivity of Pacifo allows minimal communication overhead, and aligns naturally with client–server deployments such as MLaaS.
III. Preliminaries
A. Notations
We use symbols and to denote sets of real numbers and integers, respectively. The uppercase bold letter is used for a matrix with real values, and denotes the element indexed by row and column of . The bold lowercase letter is for vectors, and denotes its -th element. The lowercase letter is used for scalar
TABLE I: Comparison of privacy-preserving schemes for private neural network inference.
| Framework | Cryptographic Method | Threat Model | Data Privacy | Model Privacy | Output Privacy | Non-Interactivity | Computation Efficiency | Communication Efficiency |
|---|---|---|---|---|---|---|---|---|
| CryptoNets [15] | HE | Semi-honest | ● | ○ | ● | ● | Low | Low |
| Gazelle [34] | HE,GC,SS | Semi-honest | ● | ○ | ● | ○ | High | Low |
| MUSE [35] | HE,GC,SS | Semi-honest | ● | ● | ● | ○ | Medium | Low |
| Lee et al. [25] | HE | Semi-honest | ● | ● | ● | ● | Low | High |
| Lee et al. [26] | HE | Semi-honest | ● | ● | ● | ● | Low | High |
| Sonic [36] | SS | Honest-majority | ○ | ○ | ○ | ○ | Medium | High |
| Kim et al. [28] | HE | Semi-honest | ● | ● | ● | ● | Medium | High |
| Pio [37] | HE,GC,SS | Honest-majority | ○ | ● | ○ | ○ | High | Medium |
| Zhao et al. [38] | SS | Honest-majority | ○ | ○ | ○ | ○ | Medium | Medium |
| Rovida et al. [29] | HE | Semi-honest | ● | ● | ● | ● | Medium | High |
| EPCNN [30] | HE | Semi-honest | ● | ● | ● | ○ | Medium | Low |
| Pacifo (proposed) | HE | Semi-honest | ● | ● | ● | ● | High | High |
HE: Homomorphic Encryption; GC: Garbled Circuits; SS: Secret Sharing.
Symbols: ● conditions met; ○ partially met; ○ not met.
Efficiency levels are reported relative to our proposed Pacifo method.
values. We write to represent the set . A symbol with a tilde, e.g., , denotes the encrypted result of by HE.
B. Threat Model
Following related studies, e.g., [41]-[44], we adopt the semi-honest (i.e., honest-but-curious) adversarial model. In this setting, the parties involved adhere to the established protocols faithfully but may attempt to extract additional private information passively. This assumption is practical, as a foundational level of mutual trust is necessary for implementing inference services. Malicious deviations from the inference protocol would lead to inference failures, offering no benefit to either the client or the server.
C. ResNet20 Model.
ResNet20 is a convolutional neural network with residual connections to address the vanishing gradient problem [45]. Fig. 3 presents the architecture of a typical ResNet20 model and highlights its layer categorizations. The model primarily consists of nine residual blocks, each comprising convolutional layers, batch normalization, and ReLU activations.
Residual Block. The residual block in ResNet20 introduces shortcut connections to preserve input information for deeper layers. A basic residual block is presented on the right side of Fig. 3, and it could be defined as follows:
where represents the transformation applied on input , consisting of two convolutional layers, batch normalization, and ReLU activation. Specifically, it is expressed as follows:
where denotes a convolution operation followed by batch normalization for simplicity; and denote the corresponding convolution parameters.

Fig. 3: The architecture of a ResNet20 model.
D. RNS-CKKS Scheme
We employ residue number system (RNS) variant of Cheon-Kim-Kim-Song (CKKS) in this paper, which is a leveled FHE scheme supporting a multiplicative depth of . Once the level of a ciphertext becomes too high, a bootstrapping operation is required to refresh it for more computations. A summary of basic homomorphic operations used in this paper is as follows, and we employ them in a black-box manner:
-
. The encoding protocol inputs a vector and outputs a polynomial .
-
. The encryption protocol inputs a vector and outputs a SIMD ciphertext .
-
. The decryption protocol inputs a SIMD ciphertext and outputs a vector .
-
. The ciphertext-plaintext addition protocol inputs a ciphertext and a plaintext ; outputs the result: .
-
. The ciphertext-ciphertext addition
protocol inputs two ciphertexts and ; outputs the result: .
-
. The ciphertext-plaintext multiplication protocol inputs a ciphertext and a plaintext ; outputs the result: .
-
. The ciphertext-ciphertext multiplication protocol inputs two ciphertexts and ; outputs the result: .
-
. The bootstrapping protocol inputs a ciphertext and outputs a refreshed ciphertext with reduced noise. This operation is naturally supported in the OpenFHE library [46].
IV. Basic Circuit Design
This section provides an overview of our circuit design for ResNet20. Specifically, Section IV-A details the convolution design; Section IV-B describes the implementation of batch normalization; Section IV-C discusses the ReLU implementation; Section IV-D covers bootstrapping; and Section IV-E summarizes the overall circuit architecture.
A. Convolution
We utilize the Vector Encoding approach [18], [34], [47] to facilitate the convolutional computation in the context of FHE. Let denote an input feature map and assume , we are allowed to encrypt into a single ciphertext in a row-major fashion as follows:
(3)
For a plaintext filter , we need to create plaintext vectors containing repetitions of the corresponding kernel value. For instance, a plaintext vector encoding the kernel value can be formally defined as follows:
and the final output H containing vectors is defined as:
With the obtained plaintext kernel vector, we could perform rotations on the ciphertext to create another ciphertext for the alignment. Particularly, the required rotations on the input are dependent on the size of the kernels [28], [29]. After creating a set of input rotations , we are able to align them with their corresponding plaintext kernel vectors and perform the following FHE computations:
(6)
where denotes the output ciphertext containing the convolution result. Until now, we have successfully applied a filter containing filters of size over an input feature map of . The whole process above requires rotations and multiplications. To better illustrate the whole process, we present a toy example in Fig. 4, where a kernel of is applied on an input feature map of .
Most of the convolutions in ResNet20 (excluding downsampling) are evaluated with kernels of size on an input map of size , and our described vector encoding approach can be easily extended to this setting [26], [29]. Moreover, it is worth noting that a complete convolutional layer usually contains filters, and we could denote the -th filter as , for . The final convolution result is obtained by aggregating the results of applying all filters on the input feature map. We present the complete secure convolution process in Algorithm 1. For the downsampling operations in ResNet20, we follow Rovidà et al. [29] and implement them by rearranging values in the output ciphertext through additional masking and rotations.
Computational Complexity. According to Algorithm 1, we can calculate that there are multiplications, rotations, and additions, which means the overall complexity is only related to kernel size and output channels.
B. Batch Normalization
For a given feature map x in a mini-batch, BatchNorm applies the following transformation on each element :
where and are the mean and variance computed over the current mini-batch, is a small constant to prevent division by zero, and and are trainable affine parameters. Our starting point is that when doing inference, values of and are actually pre-computed and can be regarded as constants. In this case, we can simplify the computation in Equation (7) by reformulating the coefficients as follows:
It is obvious that Equation (9) can be viewed as an affine transformation: , where and , and its computation consumes 1 circuit depth. However,

Fig. 4: A toy example of our utilized vector encoding method for 2D convolutional computation with an input feature map I of size and a kernel K of size k = 2. Specifically, the input I needs to be packed and encrypted before computation.
Algorithm 1: Secure Convolution
Input: Encrypted feature map (cf. Equation (3)), rotation indexes , set of filters , input feature map width
Output: Encrypted result
1 Function Convolution( ): 2 // Apply rotations on the input feature map 3 4 for each index in do 5 6 end 7 // Apply filters on the input rotations 8 9 for to do 10 (cf. Equations (4), (5)) 11 (cf. Equation (6)) 12 13 end 14 Return 15 End function
we can combine BatchNorm with the former convolution to save the depth consumption further. Algorithm 2 describes our method for integrating BatchNorm with convolution computations.
C. ReLU
ReLU is a widely used activation function that introduces non-linearity in neural networks. For an input value x, the ReLU activation is defined as follows:
Algorithm 2: Convolution with BatchNorm (ConvBN)
Input: Encrypted input feature map , rotation indexes , set of filters , BN parameters , input width
Output: Encrypted output after Conv+BN
1 Function ConvBN( ): 2 3 for each index in do 4 5 end 6 7 for to do 8 9 10 11 12 13 14 15 end 16 Return 17 End function
As FHE only supports polynomial operations, it is non-trivial to compute in a non-interactive manner. Previous works [25], [29] usually approximated ReLU with a large-degree polynomial to maintain its precision. However, while this method maintains function accuracy, it often consumes many FHE level budgets, and a large running time is required. In this paper, we provide an aggressive but much more efficient approximation for ReLU. Specifically, we first experimentally observe the range of input values (i.e, ) to ReLU with the plaintext model. Then, we scale all the input into the range of by setting a scale in the previous convolutional layer. By doing so, we are able to use an aggressive quadratic to efficiently approximate ReLU within the range of :
where we use the Remez exchange algorithm [48] to determine the optimal coefficients , , and . This iterative method minimizes the maximum error between the polynomial and the target function over a given interval. The obtained results are , , . However, since we approximate ReLU using only a quadratic polynomial in (11), the maximum error remains . There are two main reasons why we could use this aggressive approximation:
• With layer freezing optimization, most ReLU activations can be computed accurately in plaintext on the client side, with only a small subset requiring the approximation.
• We utilize knowledge distillation to effectively mitigate the performance drop caused by approximated ReLUs, ensuring minimal impact on overall model accuracy.
Efficient Polynomial Computation. We could utilize the standard Horner's method [49] to optimize the cost of evaluating equation (11) further. Specifically, we first evaluate , and then compute , saving one multiplication compared to the naive method . Algorithm 3 presents the details of our secure ReLU evaluation.
Algorithm 3: Secure ReLU
Input: ; Output: (cf. Equation (11))
1 Function ReLU( ): 2 3 4 Return 5 End function
D. Design of bootstrapping
Once a ciphertext’s level becomes too low, a bootstrapping operation is required to restore it to a higher level, enabling further computations. However, the operation itself also consumes a certain number of levels. The bootstrapping operation is often the most expensive in FHE-based transformers. For instance, it accounts for 37.72% and 53.96% of the total runtime in NEXUS [23] and THOR [24], respectively. Therefore, careful design and strategic placement of bootstrapping operations are crucial for optimizing runtime performance.
In this work, we use the bootstrapping scheme proposed by Bossuat et al. [50]. Our goal is to increase the efficiency of each bootstrapping while reducing the number of times it is invoked. Specifically, we use the sparse ternary scheme [31] for secret key distribution, which provides lower computational complexity and higher precision. For the level budgets required for encoding and decoding operations in bootstrapping, i.e., CoeffToSlot (CtoS) and SlotToCoeff (StoC), we allocate them as to ensure high computational efficiency. Additionally, an extra 9 levels are required for ModRaise, Chebyshev approximations, and double-angle iterations during bootstrapping, bringing the total level budget for a single bootstrapping operation to 15. By carefully setting the multiplicative depth, we limit the number of bootstrapping operations to just two per residual block. We will further analyze the impact of each bootstrapping operation on accuracy and computational overhead in Section VIII-C.

Fig. 5: Placement of bootstrappings in a block of ResNet20.
E. Overall Circuit
In this subsection, we discuss our FHE circuit designed for a basic residual block in ResNet20. Specifically, Algorithm 4 generalizes the FHE operations required to evaluate a block, which is also aligned with the process in Fig. 5. Given that ResNet20 is composed of multiple residual blocks stacked sequentially, our design for an individual block can be seamlessly extended to the entire model, as illustrated in Fig. 3.
V. Fine-Tuning based Layer Partition
In this section, we describe our approach to reducing the reliance on expensive HE operations from a model architecture perspective. Section V-A introduces a layer partitioning strategy designed to minimize the number of model layers evaluated under HE. Section V-B further details how we apply transfer learning to maintain model accuracy after partitioning.
Algorithm 4: Secure ResidualBlock
Input: ; Output: (cf. Equation (11))
1 Function ResidualBlock( ): 2 // Convolution + BatchNorm 3 4 5 6 7 8 // Residual connection 9 Return 10 End function
A. Layer Partition for Efficiency
Our starting point is that when an open-source, pre-trained model is fine-tuned on a downstream dataset, updating only a subset of model parameters can achieve good performance. In such cases, only the fine-tuned layers need to remain private during inference, while the unchanged layers can be deemed as “public” and shared without compromising model privacy. Consequently, leveraging these public layers appropriately can lead to improvements in computational efficiency. This insight is also leveraged in prior works [51], [52]. However, [51] applies this idea solely within the context of MPC, while [52] adds extra network layers and evaluates on a relatively simple binary image classification task (Cat vs Dog).
Recall from Section III-D that a key property of HE is that any computation involving ciphertext inputs always produces a ciphertext output. Hence, to reduce the number of operations under HE, one must separate the fine-tuned layers (i.e., private layers) from the public layers. Specifically, we could restrict fine-tuning updates to the final layers of the model, with only these layers needing to be protected and retained on the server, which is as shown in Fig. 6. Let and denote the public and private portions of the model, respectively. The client first performs inference over the public layers to obtain an intermediate representation , which is then encrypted into and sent to the server. The server continues inference using the private layers, producing the encrypted prediction . Finally, the client decrypts to obtain the prediction . The whole process is also generalized in Algorithm 5. Consequently, assume and consist of and residual blocks, respectively. Then, under the assumption that each residual block incurs a similar HE cost, the overall HE computation overhead is reduced by a factor of , effectively saving of homomorphic computation. In practice, since each block typically involves bootstrapping and nonlinear approximation steps, the reduction in latency could be higher than the linear estimate (Section VIII-D).
While delegating the computation of public layers to
Algorithm 5: Private Inference via Layer Partitioning
Input: Input image ; Output: Predicted label probabilities ;
1 Let: 2 denote the full ResNet20 model, where each is a ResidualBlock; 3 : public layers (client side); 4 : private layers (server side); 5 : final classifier layer (server side); 6 Client executes: 7 ; // Apply public layers 8 ; 9 Send ciphertext to the server; 10 Server executes: 11 ; // Apply private layers (cf. Algorithm 4) 12 ; 13 Send ciphertext back to the client; 14 Client executes: 15 ; // Decrypt to obtain the result
clients may seem like a limitation, it imposes minimal computational overhead [51]. In fact, plaintext inference is less intensive than the encryption and decryption operations that clients must perform regardless.
B. Transfer learning for Accuracy
Although layer partition can significantly reduce the computational overhead of HE, it also introduces constraints on the fine-tuning process, as only the final layers of the model (i.e., the private portion) are permitted to be updated. To ensure high efficiency, the number of private layers is typically much smaller than that of public layers. This limited parameter space restricts the model's capacity to adapt to new tasks or datasets, which could lead to degraded performance.
To mitigate this issue, we adopt the Transfer Learning (TL) technique to keep useful features during pre-training and help the model adapt to the new dataset. Specifically, given a target downstream dataset , we begin by selecting an open-source model that has been pre-trained on a related source dataset . The source dataset is typically larger or more diverse than the target dataset, while sharing similar data modalities and semantic domains (e.g., CIFAR-10 vs. CIFAR-100). This enables the model to learn general representations from that transfer well to . In this case, the pre-trained model parameters from serve as a powerful initialization. Then, during the subsequent fine-tuning process on , we could freeze public layers to retain low-level feature extraction capabilities and update only the private layers to adapt high-level features to the target task. This TL-based approach is essential in our layer-partitioned setting:

Fig. 6: Leverage layer freezing techniques on an open-source pretrained ResNet20 model.
without pre-training, randomly initialized public layers would hinder feature extraction and degrade accuracy, while a strong initialization enables robust fine-tuning performance with limited trainable layers.
In conclusion, layer partition and transfer learning complement each other to improve both the efficiency and accuracy of private inference. Layer partition reduces the computational burden of encrypted operations, while transfer learning preserves model performance under limited trainable parameters. Figure 6 illustrates how these two techniques can be integrated for fine-tuning on a downstream task. Additional details on our experimental setup are provided in Section VIII-B.
VI. Customized Security Levels
In this section, we outline the approach to achieving different security standards. In the context of HE, security is typically quantified in terms of security levels, which correspond to the computational cost required to breach the cryptographic security [53]. A scheme offers -bit security if breaking it requires about operations. The most common security levels in HE are 128-bit, 192-bit, and 256-bit.
Previous related works [25]–[29] only support a fixed 128-bit security, the most widely adopted level due to its balance between efficiency and protection. However, 128-bit security could be inadequate for sensitive or long-term applications, especially with the rise of quantum threats. For instance, lower levels like 80-bit security have already been deprecated due to vulnerability to modern attacks. Table II shows the estimated time required to break different security levels. The estimates are based on the capabilities of different computers as follows:
- Personal computer: Capable of operations per second, representing standard personal computing devices.
TABLE II: Cracking costs for different bit-security levels using various computing systems.
| Security | Personal computer | Supercomputer | Quantum computer |
|---|---|---|---|
| 80-bit | 1000 years | 14 days | 1 seconds |
| 96-bit | years | 2500 years | 10 seconds |
| 128-bit | years | years | 16 hours |
| 192-bit | years | years | 10 years |
| 256-bit | years | years | years |
-
Supercomputer: Capable of operations per second, denoting cutting-edge computational systems like Frontier [54] or Fugaku [55].
-
Quantum computer: Leverages Grover's algorithm [56] to reduce brute-force complexity to . The time estimates further assume an idealized quantum computer capable of performing Grover iterations per second.
To address these evolving needs, our framework is designed to provide flexible support for multiple HE security levels, allowing clients to trade off between performance and security based on their application requirements. Specifically, we have carefully designed three different HE parameter schemes (Table III). And their security levels are estimated using the LWE Estimator [57] with best-known lattice attacks (e.g., primal, dual, and hybrid attacks).
When configuring these parameters, we ensure that all encryption schemes used in our framework meet at least 128-bit security under the standard RLWE assumption. For use cases requiring higher assurances, we provide parameter sets supporting 192-bit and 256-bit security with adjusted ring dimensions and modulus sizes, taking into account the increased computational overhead.
TABLE III: Key parameters for our RNS-CKKS schemes to achieve different HE security levels.
| Scheme | Ring (N) | Moduli chain | Noise distribution | Security level |
|---|---|---|---|---|
| 1 | 1228 bits | 128-bit | ||
| 2 | 1188 bits | 192-bit | ||
| 3 | 1289 bits | 256-bit |
VII. Security Analysis
In this section, we formally analyze the security of the proposed Pacifo. We adopt the simulation-based security paradigm under the static semi-honest adversary model, assuming the adversary corrupts either the client C or the server S during protocol execution.
A. Threat Model and Security Definition
Following standard definitions, we define the correctness and security of the secure inference protocol as follows:
This exceeds the capabilities of current or near-term hardware by several orders of magnitude; and it only serves as a theoretical lower bound to illustrate best-case quantum threats.
Definition 1 (Secure inference protocol): Let be an inference protocol executed between a server S holding model parameters and a client C holding a private input A. The protocol is secure if the following two properties hold:
• Correctness: The output of the protocol execution is always equal to the correct inference result .
• Security:
– Corrupted Client: There exists an efficient simulator such that the client's view (consisting of the client's input, randomness, and protocol transcript) is computationally indistinguishable from the simulated view:
where out denotes the encrypted inference output.
– Corrupted Server: There exists an efficient simulator such that the server's view during execution of is computationally indistinguishable from the simulated view:
B. Security Proof of Pacifo
Based on this definition, we state the following theorem regarding the security of Pacifo:
Theorem 1: Under the semantic security of the underlying RLWE-based FHE scheme, the proposed Pacifo protocol securely realizes the secure inference functionality against a static semi-honest adversary.
Proof 1: Correctness: The correctness of Pacifo directly follows from the correctness of the underlying homomorphic operations. Specifically, due to the correctness of RLWE-based FHE computations, Pacifo always produces the correct inference result in encrypted form, ensuring the protocol satisfies correctness.
Corrupted Client. The client’s view in the protocol execution consists solely of ciphertexts encrypting the server’s model parameters, denoted as . We construct an efficient simulator as follows:
• Sim generates ciphertexts encrypting zero ( ) with the same size and structure as real ciphertexts and outputs these simulated ciphertexts to the corrupted client.
Due to the semantic security of the underlying RLWE encryption scheme, ciphertexts encrypting the actual model parameters are computationally indistinguishable from ciphertexts encrypting zeros. Thus, the real client view and simulated view are computationally indistinguishable:
Hence, security against a corrupted client directly reduces to the semantic security assumption of the underlying RLWE encryption.
Corrupted Server. The server’s view consists of ciphertexts encrypting the client’s input data and the encrypted inference result . We construct an efficient simulator as follows:
• Sim randomly samples plaintext data , encrypts it to obtain simulated ciphertexts , and provides these ciphertexts to the corrupted server.
• After receiving the encrypted output from the ideal inference functionality, the simulator forwards this ciphertext to the corrupted server.
Given the semantic security of the RLWE-based encryption scheme, ciphertexts encrypting random plaintexts ( ) are computationally indistinguishable from ciphertexts encrypting the actual client input ( ). Thus, we have:
Therefore, the server’s view is indistinguishable from the simulated view, ensuring security against a corrupted server.
Since both corrupted views are indistinguishable from their simulated counterparts, Pacifo is secure under the static semi-honest adversary model, relying directly on the semantic security of the underlying RLWE-based FHE scheme.
VIII. Experimental Results
A. Implementation
We implement Pacifo in C++, utilizing the OpenFHE library [46] for CKKS, and use HEXL [58] to accelerate OpenFHE on an Intel(R) Xeon(R) Gold 5218R CPU. Initially, we follow the HE standard and employ 128-bit security. For the ResNet20 layer (1 downsampling block + 2 residual blocks) circuit, we set the polynomial degree to , ciphertext modulus as 1756 bits, and multiplicative depth to L = 24 for sufficient computation depth and available bootstrappings. When freezing most blocks, for a more efficient block circuit, we choose , 797 bits and L = 17 for higher efficiency. The first modulus size is configured to be 50 bits, whereas the scaling modulus sizes are set to 46 bits.
B. Models and Datasets
We use a standard ResNet-20 and pretrain it on CIFAR-100 for 200 epochs to learn general representations. We then freeze the first six and eight residual blocks, respectively, to instantiate Pacifo and Pacifo . Intuitively, compared with Pacifo , Pacifo retains more trainable parameters and thus higher learning capacity, but it incurs greater computational cost during inference as more parameters must be kept private. Finally, we employ KD using a fully trained ResNet-20 teacher on the target downstream dataset (MNIST or CIFAR-10) to supervise Pacifo and Pacifo , respectively.
C. Micro-benchmark Evaluation of ReLU
ReLU Approximations. Recall that a 2-degree polynomial is used for our ReLU approximations; here we further investigate its computational efficiency and influence on accuracy. Table IV compares computational efficiency for different ReLU approximations in the context of FHE. It is worth noting that our ReLU approximation consumes only 2 circuit depths, much less than the other studies [25], [26], [28], [29].
TABLE IV: Comparison of the computational efficiency for different ReLU approximations in FHE.
| System | Method | Interval | Degree | Depth |
|---|---|---|---|---|
| Lee et al. [25] | Remez. [33] | [-1,1] | 50 | 12 |
| Lee et al. [26] | Remez. [33] | [-1,1] | 50 | 12 |
| Kim et al. [28] | Lee. [59] | [-1,1] | 28 | 10 |
| Rovida et al. [29] | Chebyshev. [60] | [-1,1] | 59 | 5 |
| Ours | Remez. [48] | [-1,1] | 2 | 2 |
We have also evaluated the impact of our ReLU approximations on model accuracy, and the results are shown in Table V. By leveraging layer freezing and knowledge distillation techniques, we observed that the accuracy degradation remains within only 0.01% and 0.02% on MNIST and CIFAR-10 datasets, respectively. These results demonstrate that our ReLU approximation not only preserves model accuracy but also significantly enhances computational efficiency.
TABLE V: Comparison of model accuracy with ReLU and approximated ReLU activations on different datasets.
| Dataset | Model | Acc. (ReLU) | Acc. (Approx) | Loss |
|---|---|---|---|---|
| MNIST | ResNet20 | 99.59% | 99.60% | -0.01% |
| ResNet20 | 99.40% | 99.39% | 0.01% | |
| CIFAR-10 | ResNet20 | 92.31% | 92.58% | -0.27% |
| ResNet20 | 88.11% | 88.14% | -0.03% |
D. Macro-benchmark Evaluations
End-to-End Performance. We first present a summarization of the most recent works compared with our proposed method in Table VI. It is obvious that Pacifo achieves the best runtime performance, outperforms Kim et al. [28] and Rovida et al. [29] by a magnitude of and , with only a limited accuracy degradation of compared with Kim et al. [28]. Additionally, Pacifo with more private parameters could achieve the highest accuracy of and is still and faster than Kim et al. [28] and Rovida et al. [29], respectively. In the following, we will provide a more detailed analysis of Pacifo, including end-to-end performance, communication overhead, accuracy, etc.
Performance Breakdown. Table VII provides a detailed runtime breakdown of each operation within a basic residual block of Pacifo. Notably, “Conv+BatchNorm” and “bootstrapping” are the most time-consuming components, requiring 9.39s and 7.97s, respectively, which correspond to 50.75% and 43.07% of the total runtime. Additionally, we observe that the optimized ReLU implementation contributes less than 0.05% to the overall execution time, demonstrating its computational efficiency.

Fig. 7: Flattened output size of different block in ResNet20 and the corresponding FHE ciphertext size (MB).
Communication Overhead. Here, we present the communication cost of Pacifo. Recall that we set the ring dimension into , the number of available slots in one ciphertext will be . Figure 7 presents the dimension changes of an input image as it passes through the ResNet20 model, and we can see that the maximum output size is 16384 in layer 1. Hence, we are allowed to pack the output of an arbitrary block into a single ciphertext, significantly decreasing the communication cost. Since Pacifo is non-interactive, the client only needs to transmit one ciphertext, and the server returns the final inference result in one ciphertext. Specifically, in the case where , the communication overhead for Pacifo is roughly 11.5MB, i.e., 10.5MB (client)+1.0MB (server). For Pacifo, the overall communication cost is reduced to 10.5MB, as the output size of Layer 3.1 is 4096, requiring fewer slots than in PacifoL (8192).
Accuracy and Precision. We evaluate the accuracy performance of Pacifo on three datasets: MNIST, CIFAR-10 and CIFAR-100. Table VIII summarizes the inference accuracy of Pacifo when evaluated in the context of plaintext and ciphertext. Specifically, Pacifo in ciphertext demonstrates comparable accuracy performance to that of the plaintext.
In addition, to further investigate the influence of FHE noise on model accuracy, we follow Rovida et al. [29] and introduce the concept of relative precision, quantifying the accuracy of an approximation relative to the correct values. We compute the value of relative precision (P) as follows:
where and represent the correct and approximate values, respectively, and is the total number of values.
TABLE VI: Comparison of the inference performance for HE-based ResNet20 on CIFAR-10.
| Framework | Scheme | #Private Params | Processor | #Threads | Runtime (s) | Accuracy |
|---|---|---|---|---|---|---|
| Lee et al. [25] | CKKS | 298.8K | Xeon Platinum 8280 CPU | 64 | 10602 | 90.67% |
| Lee et al. [26] | CKKS | 278.3K | Threadripper PRO 3995WX@2.096GHz | 1 | 2271 | 91.31% |
| Benamira et al. [27] | TFHE | 278.3K | i7-8650U@1.9GHz | 4 | 570 | 74.10% |
| Kim et al. [28] | CKKS | 278.3K | EYPC 7402P@2.8GHz | 4 | 368 | 90.32% |
| Rovida et al. [29] | CKKS | 278.3K | Xeon Gold 5218R CPU@2.1GHz | 8 | 426.5 | 91.67% |
| Pacifo (Ours) | CKKS | 206.3K | Xeon Gold 5218R CPU@2.1GHz | 8 | 135.1 | 92.58% |
| Pacifo (Ours) | CKKS | 74.6K | Xeon Gold 5218R CPU@2.1GHz | 8 | 16.9 | 88.19% |
The results are evaluated on the full CIFAR-10 validation set (10,000 images), whereas some others use only subsets.
TABLE VII: End-to-end runtime breakdown of a basic block in layer 3 of Pacifo.
| Operation | Available Depth | Time (s) | % |
|---|---|---|---|
| Conv+BatchNorm | 2→1 | 4.60 | 24.86% |
| Bootstrapping | 1→4 | 4.11 | 22.21% |
| ReLU | 4→2 | 0.23 | 0.01% |
| Conv+BatchNorm | 2→1 | 4.79 | 25.89% |
| Residual Connection | 1→1 | 0.12 | 0.01% |
| Bootstrapping | 1→4 | 3.86 | 20.86% |
| ReLU | 4→2 | 0.36 | 0.02% |
| Total | - | 18.50 | - |
TABLE VIII: Inference accuracy on different datasets.
| System | Dataset | Plaintext | Ciphertext | Loss↓ |
|---|---|---|---|---|
| Pacifo | MNIST | 99.65% | 99.63% | 0.02% |
| CIFAR10 | 92.58% | 92.58% | 0.00% | |
| Pacifo | MNIST | 99.39% | 99.40% | -0.01% |
| CIFAR10 | 88.14% | 88.19% | -0.05% |
A higher precision value indicates a closer approximation to the ground truth. Fig. 8 presents the evaluated relative precision results throughout the inference process. As noise accumulates, a gradual decline in is observed. However, always remains above 0.98, ensuring that the ciphertext model maintains precision comparable to the plaintext one. This also illustrates why the accuracy degradation in Table VIII is limited.
E. Scalability on Tuning HE Parameters.
In this subsection, we explore how to adjust FHE parameters to balance security and efficiency. While previous experiments maintain a 128-bit security level for fair comparisons with existing works, we further analyze how different security levels can be tailored to specific applications.
Highly sensitive information, such as financial transactions or government communications, demands higher security (e.g., 128-bit or above) to defend against computational attacks, including those posed by quantum threats in future. Based on our discussion in Section VI, we adopt two additional security levels, i.e., 192-bit and 256-bit, and compare the end-to-end runtime performance of Pacifo in Table IX.
192-bit Security. To achieve a 192-bit security, we could maintain the ring dimension as , but slightly decrease the moduli chain size into below 1200 bits. The change of moduli chain size will not significantly affect the computation complexity, and thus we can obtain an end-to-end runtime of 149.7 s, only slightly higher than the time of 135.1 s under standard 128-bit security.

Fig. 8: Comparison of relative precision of Pacifo with plaintext model.
TABLE IX: Runtime performance of Pacifo under different security levels.
| Security level | Ring size | Moduli chain size | Runtime (s) |
|---|---|---|---|
| 128-bit | 1228 bits | 135.1 | |
| 192-bit | 1188 bits | 149.7 | |
| 256-bit | 1289 bits | 256.5 |
256-bit Security. To achieve a 256-bit security, we have to raise into to strengthen the lattice hardness assumptions, and the moduli chain size is also expanded correspondingly. The change of substantially raise the overall computational overhead. As a result, the end-to-end runtime increases to 256.5 s, representing nearly a slowdown compared to the 128-bit configuration.
IX. Conclusion
In this paper, we proposed Pacifo, an efficient FHE-based private inference framework for MLaaS. By combining layer partitioning, lightweight ReLU approximation, and flexible security configurations, Pacifo significantly reduces computational overhead while preserving model accuracy and privacy. Experimental results show up to speedup over existing solutions with minimal accuracy loss, along with strong scalability to higher security levels. These results demonstrate that Pacifo makes privacy-preserving deep learning inference more practical and adaptable for real-world applications.
References
[1] M. R. S. Devi, V. V. Kumar, and P. Sivakumar, “A review of image classification and object detection on machine learning and deep learning techniques,” in 2021 5th International Conference on Electronics, Communication and Aerospace Technology (ICECA). IEEE, 2021, pp. 1–8.
[2] M. A. HASAN, T. Bhargav, V. SANDEEP, V. S. REDDY, and R. AJAY, “Image classification using convolutional neural networks,” International Journal of Mechanical Engineering Research and Technology, vol. 16, no. 2, pp. 173–181, 2024.
[3] A. Alslaity and R. Orji, “Machine learning techniques for emotion detection and sentiment analysis: current state, challenges, and future directions,” Behaviour & Information Technology, vol. 43, no. 1, pp. 139–164, 2024.
[4] Y. Lu, M. Shen, H. Wang, X. Wang, C. van Rechem, T. Fu, and W. Wei, “Machine learning for synthetic data generation: a review,” arXiv preprint arXiv:2302.04062, 2023.
[5] M. Ribeiro, K. Grolinger, and M. A. Capretz, “Mlaas: Machine learning as a service,” in 2015 IEEE 14th international conference on machine learning and applications (ICMLA). IEEE, 2015, pp. 896–902.
[6] R. Philipp, A. Mladenow, C. Strauss, and A. Völz, “Machine learning as a service: Challenges in research and applications,” in Proceedings of the 22nd International Conference on Information Integration and Web-based Applications & Services, 2020, pp. 396–406.
[7] C. Mauran, “Whoops, samsung workers accidentally leaked trade secrets via chatgpt,” Mashable [online]. Dostupné z: https://mashable.com/article/samsungchatgpt-leak-details, 2023.
[8] N. Lomas, “Italy orders chatgpt blocked citing data protection concerns,” TechCrunch, March, vol. 31, 2023.
[9] C. Dwork, A. Roth et al., “The algorithmic foundations of differential privacy,” Foundations and Trends® in Theoretical Computer Science, vol. 9, no. 3–4, pp. 211–407, 2014.
[10] A. C. Yao, “Protocols for secure computations,” in 23rd annual symposium on foundations of computer science (sfcs 1982). IEEE, 1982, pp. 160–164.
[11] C. Gentry, “Fully homomorphic encryption using ideal lattices,” in Proceedings of the forty-first annual ACM symposium on Theory of computing, 2009, pp. 169–178.
[12] Y. Li, X. Zhou, Y. Wang, L. Qian, and J. Zhao, “A survey on private transformer inference,” arXiv preprint arXiv:2412.08145, 2024.
[13] R. Podschwadt, D. Takabi, P. Hu, M. H. Rafiei, and Z. Cai, "A survey of deep learning architectures for privacy-preserving machine learning with fully homomorphic encryption," IEEE Access, vol. 10, pp. 117477–117500, 2022.
[14] V. Lyubashevsky, C. Peikert, and O. Regev, “On ideal lattices and learning with errors over rings,” in Advances in Cryptology–EUROCRYPT 2010: 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques, French Riviera, May 30–June 3, 2010. Proceedings 29. Springer, 2010, pp. 1–23.
[15] R. Gilad-Bachrach, N. Dowlin, K. Laine, K. Lauter, M. Naehrig, and J. Wernsing, “Cryptonets: Applying neural networks to encrypted data with high throughput and accuracy,” in International conference on machine learning. PMLR, 2016, pp. 201–210.
[16] E. Chou, J. Beal, D. Levy, S. Yeung, A. Haque, and L. Fei-Fei, "Faster cryptonets: Leveraging sparsity for real-world encrypted inference," arXiv preprint arXiv:1811.09953, 2018.
[17] X. Jiang, M. Kim, K. Lauter, and Y. Song, “Secure outsourced matrix computation and application to neural networks,” in Proceedings of the 2018 ACM SIGSAC conference on computer and communications security, 2018, pp. 1209–1222.
[18] R. Dathathri, O. Saarikivi, H. Chen, K. Laine, K. Lauter, S. Maleki, M. Musuvathi, and T. Mytkowicz, “Chet: an optimizing compiler for fully-homomorphic neural-network inferencing,” in Proceedings of the 40th ACM SIGPLAN conference on programming language design and implementation, 2019, pp. 142–156.
[19] F. Boemer, Y. Lao, R. Cammarota, and C. Wierzynski, “ngraphhe: a graph compiler for deep learning on homomorphically encrypted data,” in Proceedings of the 16th ACM international conference on computing frontiers, 2019, pp. 3–13.
[20] Q. Lou and L. Jiang, “Hemet: A homomorphic-encryption-friendly privacy-preserving mobile neural network architecture,” in International conference on machine learning. PMLR, 2021, pp. 7102–7110.
[21] J. Park, M. J. Kim, W. Jung, and J. H. Ahn, “Aespa: Accuracy preserving low-degree polynomial activation for fast private inference,” arXiv preprint arXiv:2201.06699, 2022.
[22] L. Rovida and A. Leporati, “Transformer-based language models and homomorphic encryption: An intersection with bertiny,” in Proceedings of the 10th ACM International Workshop on Security and Privacy Analytics, 2024, pp. 3–13.
[23] J. Zhang, J. Liu, X. Yang, Y. Wang, K. Chen, X. Hou, K. Ren, and X. Yang, “Secure transformer inference made non-interactive,” Cryptology ePrint Archive, 2024.
[24] J. Moon, D. Yoo, X. Jiang, and M. Kim, “Thor: Secure transformer inference with homomorphic encryption,” Cryptology ePrint Archive, 2024.
[25] J.-W. Lee, H. Kang, Y. Lee, W. Choi, J. Eom, M. Deryabin, E. Lee, J. Lee, D. Yoo, Y.-S. Kim et al., “Privacy-preserving machine learning with fully homomorphic encryption for deep neural network,” IEEE Access, vol. 10, pp. 30039–30054, 2022.
[26] E. Lee, J.-W. Lee, J. Lee, Y.-S. Kim, Y. Kim, J.-S. No, and W. Choi, “Low-complexity deep convolutional neural networks on fully homomorphic encryption using multiplexed parallel convolutions,” in International Conference on Machine Learning. PMLR, 2022, pp. 12403–12422.
[27] A. Benamira, T. Guérand, T. Peyrin, and S. Saha, “TT-TFHE: a torus fully homomorphic encryption-friendly neural network architecture,” arXiv preprint arXiv:2302.01584, 2023.
[28] D. Kim and C. Guyot, “Optimized privacy-preserving cnn inference with fully homomorphic encryption,” IEEE Transactions on Information Forensics and Security, vol. 18, pp. 2175–2187, 2023.
[29] L. Rovida and A. Leporati, “Encrypted image classification with low memory footprint using fully homomorphic encryption,” Cryptology ePrint Archive, 2024.
[30] G. He, Y. Ren, J. Zhao, G. Feng, and X. Zhang, “Epcnn: Efficient and practical privacy-preserving convolutional neural network inference,” IEEE Transactions on Network Science and Engineering, 2025.
[31] J. H. Cheon, A. Kim, M. Kim, and Y. Song, “Homomorphic encryption for arithmetic of approximate numbers,” in International Conference on the Theory and Application of Cryptology and Information Security, 2017.
[32] I. Chillotti, N. Gama, M. Georgieva, and M. Izabachene, “Faster fully homomorphic encryption: Bootstrapping in less than 0.1 seconds,” in Advances in Cryptology–ASIACRYPT 2016: 22nd International Conference on the Theory and Application of Cryptology and Information Security, Hanoi, Vietnam, December 4-8, 2016, Proceedings, Part I 22. Springer, 2016, pp. 3–33.
[33] J.-W. Lee, E. Lee, Y. Lee, Y.-S. Kim, and J.-S. No, “High-precision bootstrapping of rns-ckks homomorphic encryption using optimal minimax polynomial approximation and inverse sine function,” in Advances in Cryptology–EUROCRYPT 2021: 40th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Zagreb, Croatia, October 17–21, 2021, Proceedings, Part I 40. Springer, 2021, pp. 618–647.
[34] C. Juvekar, V. Vaikuntanathan, and A. Chandrakasan, “{GAZELLE}: A low latency framework for secure neural network inference,” in 27th USENIX security symposium (USENIX security 18), 2018, pp. 1651–1669.
[35] R. Lehmkuhl, P. Mishra, A. Srinivasan, and R. A. Popa, “Muse: Secure inference resilient to malicious clients,” in 30th USENIX Security Symposium (USENIX Security 21), 2021, pp. 2201–2218.
[36] X. Liu, Y. Zheng, X. Yuan, and X. Yi, “Securely outsourcing neural network inference to the cloud with lightweight techniques,” IEEE Transactions on Dependable and Secure Computing, vol. 20, no. 1, pp. 620–636, 2022.
[37] X. Yang, J. Chen, K. He, H. Bai, C. Wu, and R. Du, “Efficient privacy-preserving inference outsourcing for convolutional neural networks,” IEEE Transactions on Information Forensics and Security, vol. 18, pp. 4815–4829, 2023.
[38] R. Zhao, Y. Xie, D. He, K.-K. R. Choo, and Z. L. Jiang, “Practical privacy-preserving convolutional neural network inference framework with edge computing for health monitoring,” IEEE Transactions on Network Science and Engineering, 2024.
[39] A. Al Badawi, C. Jin, J. Lin, C. F. Mun, S. J. Jie, B. H. M. Tan, X. Nan, K. M. M. Aung, and V. R. Chandrasekhar, “Towards the alexnet moment for homomorphic encryption: Hcnn, the first homomorphic cnn on encrypted data with gpus,” IEEE Transactions on Emerging Topics in Computing, vol. 9, no. 3, pp. 1330–1343, 2020.
[40] J. H. Cheon, K. Han, A. Kim, M. Kim, and Y. Song, “A full rns variant of approximate homomorphic encryption,” in International Conference on Selected Areas in Cryptography. Springer, 2018, pp. 347–368.
[41] M. Hao, H. Li, H. Chen, P. Xing, G. Xu, and T. Zhang, "Iron: Private inference on transformers," Advances in neural information processing systems, vol. 35, pp. 15718–15731, 2022.
[42] Q. Pang, J. Zhu, H. Möllering, W. Zheng, and T. Schneider, "Bolt: Privacy-preserving, accurate and efficient inference for transformers," in 2024 IEEE Symposium on Security and Privacy (SP). IEEE Computer Society, 2024, pp. 130–130.
[43] Y. Dong, W.-j. Lu, Y. Zheng, H. Wu, D. Zhao, J. Tan, Z. Huang, C. Hong, T. Wei, and W. Cheng, “Puma: Secure inference of llama-7b in five minutes,” arXiv preprint arXiv:2307.12533, 2023.
[44] X. Hou, J. Liu, J. Li, Y. Li, W.-j. Lu, C. Hong, and K. Ren, "Ciphergpt: Secure two-party gpt inference," Cryptology ePrint Archive, 2023.
[45] K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2016, pp. 770–778.
[46] A. A. Badawi, A. Alexandru, J. Bates, F. Bergamaschi, D. B. Cousins, S. Erabelli, N. Genise, S. Halevi, H. Hunt, A. Kim, Y. Lee, Z. Liu, D. Micciancio, C. Pascoe, Y. Polyakov, I. Quah, S. R.V., K. Rohloff, J. Saylor, D. Suponitsky, M. Triplett, V. Vaikuntanathan, and V. Zucca, “OpenFHE: Open-source fully homomorphic encryption library,” Cryptology ePrint Archive, Paper 2022/915, 2022, https://eprint.iacr.org/2022/915. [Online]. Available: https://eprint.iacr.org/2022/915
[47] R. Dathathri, B. Kostova, O. Saarikivi, W. Dai, K. Laine, and M. Musuvathi, “Eva: An encrypted vector arithmetic language and compiler for efficient homomorphic computation,” in Proceedings of the 41st ACM SIGPLAN conference on programming language design and implementation, 2020, pp. 546–561.
[48] E. Y. Remez, “Sur la détermination des polynômes d’approximation de degré donnée,” Comm. Soc. Math. Kharkov, vol. 10, no. 196, pp. 41–63, 1934.
[49] L. Wang and J. Needham, “Horner’s method in chinese mathematics: Its origins in the root-extraction procedures of the han dynasty,” T’oung Pao, vol. 43, no. Livr. 5, pp. 345–401, 1955.
[50] J.-P. Bossuat, C. Mouchet, J. Troncoso-Pastoriza, and J.-P. Hubaux, “Efficient bootstrapping for approximate homomorphic encryption with non-sparse keys,” in Annual International Conference on the Theory and Applications of Cryptographic Techniques. Springer, 2021, pp. 587–617.
[51] D. Rathee, D. Li, I. Stoica, H. Zhang, and R. Popa, "Mpc-minimized secure llm inference," arXiv preprint arXiv:2408.03561, 2024.
[52] K.-Y. Lam, X. Lu, L. Zhang, X. Wang, H. Wang, and S. Q. Goh, “Efficient fhe-based privacy-enhanced neural network for trustworthy ai-as-a-service,” IEEE Transactions on Dependable and Secure Computing, vol. 21, no. 5, pp. 4451–4468, 2024.
[53] M. Albrecht, M. Chase, H. Chen, J. Ding, S. Goldwasser, S. Gorbunov, S. Halevi, J. Hoffstein, K. Laine, K. Lauter et al., “Homomorphic encryption standard,” Protecting privacy through homomorphic encryption, pp. 31–62, 2021.
[54] V. Rajaraman, “Frontier—world’s first exaflops supercomputer,” Resonance, vol. 28, no. 4, pp. 567–576, 2023.
[55] M. Sato, Y. Ishikawa, H. Tomita, Y. Kodama, T. Odajima, M. Tsuji, H. Yashiro, M. Aoki, N. Shida, I. Miyoshi et al., “Codesign for a64fx manycore processor and” fugaku,” in SC20: International Conference for High Performance Computing, Networking, Storage and Analysis. IEEE, 2020, pp. 1–15.
[56] L. K. Grover, “A fast quantum mechanical algorithm for database search,” in Proceedings of the twenty-eighth annual ACM symposium on Theory of computing, 1996, pp. 212–219.
[57] M. R. Albrecht, R. Player, and S. Scott, “On the concrete hardness of learning with errors,” Journal of Mathematical Cryptology, 2015.
[58] F. Boemer, S. Kim, G. Seifu, F. DM de Souza, and V. Gopal, "Intel hexl: Accelerating homomorphic encryption with intel avx512-ifma52," in Proceedings of the 9th on Workshop on Encrypted Computing & Applied Homomorphic Cryptography, 2021, pp. 57–62.
[59] E. Lee, J.-W. Lee, Y.-S. Kim, and J.-S. No, “Optimization of homomorphic comparison algorithm on rns-ckks scheme,” IEEE Access, vol. 10, pp. 26163–26176, 2022.
[60] M. Hernández, “Chebyshev’s approximation algorithms and applications,” Computers & Mathematics with Applications, vol. 41, no. 3-4, pp. 433–445, 2001.