HEIR: A Universal Compiler for Homomorphic Encryption
Reviewed by Pithpith:2WEENQOHopen to challenge →
read the original abstract
This work presents Homomorphic Encryption Intermediate Representation (HEIR), a unified approach to building homomorphic encryption (HE) compilers. HEIR aims to support all mainstream techniques in homomorphic encryption, integrate with all major software libraries and hardware accelerators, and advance the field by providing a platform for research and benchmarking. Built on the MLIR compiler framework, HEIR introduces HE-specific abstraction layers at which existing optimizations and new research ideas may be easily implemented. Although many HE optimization techniques have been proposed, it remains difficult to combine or compare them effectively. HEIR provides a means to effectively explore the space of HE optimizations. HEIR addresses the entire HE stack and includes support for various frontends, including Python. The contribution of this work includes: (1) We introduce HEIR as a framework for building HE compilers. (2) We validate HEIR's design by porting a large fraction of the HE literature to HEIR, and we argue that HEIR can tackle more complicated and diverse programs than prior literature. (3) We provide evidence that HEIR is emerging as the de facto HE compiler for academic research and industry development.
This paper has not been read by Pith yet.
Forward citations
Cited by 3 Pith papers
-
Detecting and Understanding Vulnerabilities in Fully Homomorphic Encryption Frameworks
HERTA is the first metamorphic-testing tool for FHE frameworks that found 21 previously unknown bugs across three industry frameworks, some already fixed by developers.
-
Bifrost: Hybrid TEE-FHE Inference for Privacy-Preserving Transformer and LLM Serving
Bifrost achieves significant latency reductions in privacy-preserving transformer inference through a hybrid CPU TEE and accelerator FHE design, with Bifrost+ further optimizing via prefill/decode split.
-
Adapting AlphaEvolve to Optimize Fully Homomorphic Encryption on TPUs
AlphaEvolve automates optimization of TFHE and CKKS FHE kernels on TPUv5e, finding changes that cut bootstrap latency by 2.5x and rotation/multiplication by 1.31x/1.18x versus human baselines.
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.