Paper 2024/1991
CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction
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)
- 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
-
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} }