Paper 2025/713

LOHEN: Layer-wise Optimizations for Neural Network Inferences over Encrypted Data with High Performance or Accuracy

Kevin Nam, Seoul National University
Youyeon Joo, Seoul National University
Dongju Lee, Seoul National University
Seungjin Ha, Seoul National University
Hyunyoung Oh, Gachon University
Hyungon Moon, Ulsan National Institute of Science and Technology
Yunheung Paek, Seoul National University
Abstract

Fully Homomorphic Encryption (FHE) presents unique challenges in programming due to the contrast between traditional and FHE language paradigms. A key challenge is selecting ciphertext configurations (CCs) to achieve the desired level of security, performance, and accuracy simultaneously. Finding the design point satisfying the goal is often labor-intensive (probably impossible), for which reason previous works settle down to a reasonable CC that brings acceptable performance. When FHE is applied to neural networks (NNs), we have observed that the distinct layered architecture of NN models opens the door for a performance improvement by using layer-wise CCs, because a globally chosen CC may not be the best possible CC for every layer individually. This paper introduces LOHEN, a technique crafted to attain high performance of NN inference by enabling to use layer-wise CC efficiently. Empowered with a cryptographic gadget that allows switching between arbitrary CCs, LOHEN allocates layer-wise CCs for individual layers tailored to their structural properties, while minimizing the increased overhead incurred by CC switching with its capability to replace costly FHE operations. LOHEN can also be engineered to attain higher accuracy, yet deliver higher performance compared to state-of-the-art studies, by additionally adopting the multi-scheme techniques in a layer-wise manner. Moreover, the developers using LOHEN are given the capability of customizing the selection policy to adjust the desired levels of performance and accuracy, subject to their demands. Our evaluation shows that LOHEN improves the NN inference performance in both of these cases when compared to the state-of-the-art. When used to improve the CKKS-only inference, LOHEN improves the NN inference performance of various NNs 1.08--2.88x. LOHEN also improves the performance of mixed-scheme NN inference by 1.34--1.75x without accuracy loss. These two results along with other empirical analyses, advocate that LOHEN can widely help improve the performance of NN inference over FHE.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Published elsewhere. Major revision. USENIX SECURITY 25
Keywords
Fully Homomorphic EncryptionPrivacy Preserving Computation
Contact author(s)
kvnam @ sor snu ac kr
History
2025-04-21: approved
2025-04-20: received
See all versions
Short URL
https://ia.cr/2025/713
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/713,
      author = {Kevin Nam and Youyeon Joo and Dongju Lee and Seungjin Ha and Hyunyoung Oh and Hyungon Moon and Yunheung Paek},
      title = {{LOHEN}: Layer-wise Optimizations for Neural Network Inferences over Encrypted Data with High Performance or Accuracy},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/713},
      year = {2025},
      url = {https://eprint.iacr.org/2025/713}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.