CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction
Song Bian, Zian Zhao, Ruiyu Shen, Zhou Zhang, Ran Mao, Dawei Li, Yizhong Liu, Masaki Waga, Kohei Suenaga, Zhenyu Guan, Jiafeng Hua, Yier Jin, Jianwei Liu
摘要
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 CHLOE can compile programs with complex loop structures into efficient executable codes over FHE, where the performance improvement ranges from 1.5× to 54× (up to 105× for programs containing oblivious loops) when compared to programs produced by the-state-of-the-art FHE compilers.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SoK: General Purpose Compilers for Secure Multi-Party Computation 引用了 ABY3: A Mixed Protocol Framework for Machine Learning
- PEGASUS: Bridging Polynomial and Non-polynomial Evaluations in Homomorphic Encryption 引用了 Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse Keys
- PEGASUS: Bridging Polynomial and Non-polynomial Evaluations in Homomorphic Encryption 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted Data 引用了 PEGASUS: Bridging Polynomial and Non-polynomial Evaluations in Homomorphic Encryption
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted Data 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPU 引用了 Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse Keys
- Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPU 引用了 PEGASUS: Bridging Polynomial and Non-polynomial Evaluations in Homomorphic Encryption
引用它的顶会 Paper2
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted DataKevin Nam, Youyeon Joo, Seungjin Ha, Yunheung PaekUSENIX Security 2025
- Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPUSong Bian, Yintai Sun, Zian Zhao, Haowen Pan 等USENIX Security 2026
它引用的 Paper36
- GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 次引用
- ABY3: A Mixed Protocol Framework for Machine LearningPayman Mohassel, Peter RindalCCS 2018 · 898 次引用
- SoK: General Purpose Compilers for Secure Multi-Party ComputationMarcella Hastings, Brett Hemenway, Daniel Noble, Steve ZdancewicS&P 2019 · 181 次引用
- Efficient Bootstrapping for Approximate Homomorphic Encryption with Non-sparse KeysJean-Philippe Bossuat, Christian Mouchet, Juan Ramón Troncoso-Pastoriza, Jean-Pierre HubauxEUROCRYPT 2021 · 179 次引用
- PEGASUS: Bridging Polynomial and Non-polynomial Evaluations in Homomorphic EncryptionWen-jie Lu, Zhicong Huang, Cheng Hong, Yiping Ma 等S&P 2021 · 139 次引用
相关 Paper
- Bridging Usability and Performance: A Tensor Compiler for Autovectorizing Homomorphic EncryptionEdward Chen, Fraser Brown, Wenting ZhengUSENIX Security 2026 · 3 次引用
- A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic EncryptionAleksandar Krastev, Nikola Samardzic, Simon Langowski, Srinivas Devadas 等PLDI 2024 · 23 次引用
- CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption ComputationsBilel Sefsaf, Abderraouf Dandani, Abdessamed Seddiki, Arab Mohammed 等ASPLOS 2026
- HEIR: A Unified Representation for Cross-Scheme Compilation of Fully Homomorphic ComputationSong Bian, Zian Zhao, Zhou Zhang, Ran Mao 等NDSS 2024
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computationRoshan Dathathri, Blagovesta Kostova, Olli Saarikivi, Wei Dai 等PLDI 2020 · 117 次引用
