cs.CROct 24, 2026

Pacifo: An Efficient Fully Homomorphic Encryption-based Lightweight ResNet for Trustworthy Machine Learning as a Service

Authors: Yang Li, Gang He, Ruichen Zhang, Guangyuan Liu, Yinqiu Liu

Organizations: School of Communication and Information Engineering, Shanghai University, Shanghai, China · College of Computing and Data Science, Nanyang Technological University, Singapore

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 3.7−21.7×3.7-21.7\times in runtime while effectively preserving 95%−99%95\%-99\% of the original plaintext model accuracy across downstream tasks. Pacifo is open-sourced at https://github.com/BryceYangLi/Pacifo.

Figures & tables

Explore similar work

CardsList
  1. Practical and Private Hybrid ML Inference with Fully Homomorphic Encryption

    Sep 1, 2025Sayan Biswas, Philippe Chartier, Akash Dhasade +7Privacy-Preserving MLHomomorphic Encryption

  2. Towards Deep Encrypted Training: Low-Latency, Memory-Efficient, and High-Throughput Inference for Privacy-Preserving Neural Networks

    Apr 18, 2026Nges Brian Njungle, Eric Jahns, Michel A. KinsyEfficient Neural Network InferenceMemory-Efficient Inference

  3. FEnc2^2: Unifying Data Packing for Efficient Private Inference via Convolution and Architecture-Aware Fragment Encoding

    Jun 15, 2026Ran Ran, Zhaoting Gong, Nuo Xu +3Efficient Neural Network InferenceHomomorphic Encryption