HEIR: A Unified Representation for Cross-Scheme Compilation of Fully Homomorphic Computation
Song Bian, Zian Zhao, Zhou Zhang, Ran Mao, Kohei Suenaga, Yier Jin, Zhenyu Guan, Jianwei Liu
摘要
We propose a new compiler framework that automates code generation over multiple fully homomorphic encryption (FHE) schemes. While it was recently shown that algorithms combining multiple FHE schemes (e.g., CKKS and TFHE) achieve high execution efficiency and task utility at the same time, developing fast cross-scheme FHE algorithms for real-world applications generally require heavy hand-tuned optimizations by cryptographic experts, resulting in either high usability costs or low computational efficiency. To solve the usability and efficiency dilemma, we design and implement HEIR, a compiler framework based on multi-level intermediate representation (IR). To achieve cross-scheme compilation of efficient FHE circuits, we develop a two-stage code-lowering structure based on our custom IR dialects. First, the plaintext program along with the associated data types are converted into FHE-friendly dialects in the transformation stage. Then, in the optimization stage, we apply FHE-specific optimizations to lower the transformed dialect into our bottom-level FHE library operators. In the experiment, we implement the entire software stack for HEIR, and demonstrate that complex endto-end programs, such as homomorphic K-Means clustering and homomorphic data aggregation in databases, can easily be compiled to run 72-179× faster than the program generated by the state-of-the-art FHE compilers.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- CrypTFlow2: Practical 2-Party Secure Inference 引用了 ABY3: A Mixed Protocol Framework for Machine Learning
- CrypTFlow2: Practical 2-Party Secure Inference 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- ABY2.0: Improved Mixed-Protocol Secure Two-Party Computation 引用了 ABY3: A Mixed Protocol Framework for Machine Learning
- ABY2.0: Improved Mixed-Protocol Secure Two-Party Computation 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction 引用了 ABY3: A Mixed Protocol Framework for Machine Learning
- CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- PrivDNFIS: Privacy-preserving and Efficient Deep Neuro-Fuzzy Inference System 引用了 CrypTFlow2: Practical 2-Party Secure Inference
- Secure Outsourced Matrix Computation and Application to Neural Networks 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted Data 引用了 CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted Data 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Sok: Private Transformer-based Model Inference 引用了 CrypTFlow2: Practical 2-Party Secure Inference
- Sok: Private Transformer-based Model Inference 引用了 ABY2.0: Improved Mixed-Protocol Secure Two-Party Computation
- Sok: Private Transformer-based Model Inference 引用了 ABY3: A Mixed Protocol Framework for Machine Learning
- Sok: Private Transformer-based Model Inference 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
- Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPU 引用了 CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path Reduction
- Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPU 引用了 Secure Outsourced Matrix Computation and Application to Neural Networks
引用它的顶会 Paper6
- PrivDNFIS: Privacy-preserving and Efficient Deep Neuro-Fuzzy Inference SystemHao Ren, Xiao Lan, Rui Tang, Xingshu ChenAAAI 2025 · 3 次引用
- CHLOE: Loop Transformation over Fully Homomorphic Encryption via Multi-Level Vectorization and Control-Path ReductionSong Bian, Zian Zhao, Ruiyu Shen, Zhou Zhang 等S&P 2025
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted DataKevin Nam, Youyeon Joo, Seungjin Ha, Yunheung PaekUSENIX Security 2025
- Sok: Private Transformer-based Model InferenceYuntian Chen, Tianpei Lu, Zhanyong Tang, Bingsheng Zhang 等USENIX Security 2026
- Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPUSong Bian, Yintai Sun, Zian Zhao, Haowen Pan 等USENIX Security 2026
它引用的 Paper32
- 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 次引用
- Secure Outsourced Matrix Computation and Application to Neural NetworksXiaoqian Jiang, Miran Kim, Kristin E. Lauter, Yongsoo SongCCS 2018 · 359 次引用
- ABY2.0: Improved Mixed-Protocol Secure Two-Party ComputationArpita Patra, Thomas Schneider, Ajith Suresh, Hossein YalameUSENIX Security 2021 · 307 次引用
- CrypTFlow2: Practical 2-Party Secure InferenceDeevashwer Rathee, Mayank Rathee, Nishant Kumar, Nishanth Chandran 等CCS 2020 · 294 次引用
相关 Paper
- HEaaN.MLIR: An Optimizing Compiler for Fast Ring-Based Homomorphic EncryptionSunjae Park, Woosung Song, Seunghyeon Nam, Hyeongyu Kim 等PLDI 2023 · 8 次引用
- CROPHE: Cross-Operator Dataflow Optimization for Fully Homomorphic Encryption AcceleratorsXinhua Chen, Jiangbin Dong, Hongren Zheng, Tian Tang 等HPCA 2026 · 1 次引用
- A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic EncryptionAleksandar Krastev, Nikola Samardzic, Simon Langowski, Srinivas Devadas 等PLDI 2024 · 23 次引用
- MetaKernel: Enabling Efficient Encrypted Neural Network Inference through Unified MVM and ConvolutionPeng Yuan, Yan Liu, Jianxin Lai, Long Li 等OOPSLA 2025 · 2 次引用
- HECO: Fully Homomorphic Encryption CompilerAlexander Viand, Patrick Jattke, Miro Haller, Anwar HithnawiUSENIX Security 2023
