Paper 2024/1991

CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction

Song Bian, Beihang University
Zian Zhao, Beihang University
Ruiyu Shen, Beihang University
Zhou Zhang, Beihang University
Ran Mao, Beihang University
Dawei Li, Beihang University
Yizhong Liu, Beihang University
Masaki Waga, Kyoto University
Kohei Suenaga, Kyoto University
Zhenyu Guan, Beihang University
Jiafeng Hua, Huawei Technology
Yier Jin, University of Science and Technology of China
Jianwei Liu, Beihang University
Abstract

This work proposes a multi-level compiler framework to transform programs with loop structures to efficient algorithms over fully homomorphic encryption (FHE). We observe that, when loops operate over ciphertexts, it becomes extremely challenging to effectively interpret the control structures within the loop and construct operator cost models for the main body of the loop. Consequently, most existing compiler frameworks have inadequate support for programs involving non-trivial loops, undermining the expressiveness of programming over FHE. To achieve both efficient and general program execution over FHE, we propose CHLOE, a new compiler framework with multi-level control-flow analysis for the effective optimization of compound repetition control structures. We observe that loops over FHE can be classified into two categories depending on whether the loop condition is encrypted, namely, the transparent loops and the oblivious loops. For transparent loops, we can directly inspect the control structures and build operator cost models to apply FHE-specific loop segmentation and vectorization in a fine-grained manner. Meanwhile, for oblivious loops, we derive closed-form expressions and static analysis techniques to reduce the number of potential loop paths and conditional branches. In the experiment, we show that \NAME can compile programs with complex loop structures into efficient executable codes over FHE, where the performance improvement ranges from $1.5\times$ to $54\times$ (up to $10^{5}\times$ for programs containing oblivious loops) when compared to programs produced by the-state-of-the-art FHE compilers.

Metadata
Available format(s)
PDF
Publication info
Published elsewhere. Minor revision. IEEE Symposium on Security and Privacy (SP) 2025
DOI
10.1109/SP61157.2025.00035
Keywords
Fully Homomorphic Encryptionprivacy-preserving computation
Contact author(s)
sbian @ buaa edu cn
zhaozian @ buaa edu cn
History
2024-12-12: approved
2024-12-09: received
See all versions
Short URL
https://ia.cr/2024/1991
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2024/1991,
      author = {Song Bian and Zian Zhao and Ruiyu Shen and Zhou Zhang and Ran Mao and Dawei Li and Yizhong Liu and Masaki Waga and Kohei Suenaga and Zhenyu Guan and Jiafeng Hua and Yier Jin and Jianwei Liu},
      title = {{CHLOE}: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1991},
      year = {2024},
      doi = {10.1109/SP61157.2025.00035},
      url = {https://eprint.iacr.org/2024/1991}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.