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

DevFeed: [Pacifo: An Efficient Fully Homomorphic Encryption-based Lightweight ResNet for Trustworthy Machine Learning as a Service](<https://devfeed.tech/articles/pacifo-an-efficient-fully-homomorphic-encryption-based-lightweight-resnet-for-trustworthy-machine-learning-as-a-service-101401.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.33525>)

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

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [FHE](<https://devfeed.tech/topics/fhe.md>), [homomorphic encryption](<https://devfeed.tech/topics/homomorphic-encryption.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>)

Tags: [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [efficiently](<https://devfeed.tech/tags/efficiently.md>), [encrypted](<https://devfeed.tech/tags/encrypted.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [homomorphic-encryption](<https://devfeed.tech/tags/homomorphic-encryption.md>), [inference](<https://devfeed.tech/tags/inference.md>), [latency](<https://devfeed.tech/tags/latency.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [model](<https://devfeed.tech/tags/model.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [partitioning](<https://devfeed.tech/tags/partitioning.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [relu](<https://devfeed.tech/tags/relu.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

Pacifo reduces the cost of private ResNet20 inference under fully homomorphic encryption by combining public-private layer partitioning with an efficient ReLU approximation, which cuts the number of encrypted layers and costly FHE operations. It also provides configurable security settings for different client privacy requirements. The abstract reports 3.7-21.7x faster runtime than state-of-the-art FHE implementations of ResNet20 while retaining 95%-99% of the plaintext model's accuracy across downstream tasks.

## Source excerpt

arXiv:2610.33525v1 Announce Type: new 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\times$ 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.