CHEHAB: Automatic Compiler Code Optimization for Fully Homomorphic Encryption
Fully Homomorphic Encryption (FHE) enables meaningful computations directly on encrypted data, eliminating the need for trust. Despite its transformative potential, FHE is still computationally expensive. Moreover, writing efficient code for FHE is an error-prone, tedious, and time-consuming task that requires cryptographic expertise. Programmers may not be aware of all possible optimizations, and some optimizations require substantial effort. In this paper, we propose CHEHAB, a compiler that automatically vectorizes scalar code, optimizes it, and generates highly efficient code for FHE. CHEHAB supports the optimization of both structured and unstructured code. It takes as input a program expressed in the CHEHAB domain-specific language (embedded in C++) and uses a Term Rewriting System (TRS) to simplify it. CHEHAB targets two problems: 1) the vectorization of scalar code and 2) the reduction of instruction latency and noise growth. It solves these two problems using a TRS that leverages equality saturation to vectorize code, reduce the number of instructions, and reduce the circuit depth. Compared to related work, the proposed approach not only scales better to larger arithmetic circuits but also generates faster code. We evaluate CHEHAB on a set of kernels and compare it to Coyote, a state-of-the-art vectorizing compiler for FHE. We show that CHEHAB generates code that is, on average, 7.38× faster in execution, 2.49× lower in consumed noise, and 251× faster in compilation compared to Coyote (geometric means), enabling CHEHAB to compile larger circuits.
Sat 31 JanDisplayed time zone: Hobart change
13:45 - 15:30 | |||
13:45 26mTalk | DiTOX: Fault Detection and Localization in the ONNX Optimizer Main Conference | ||
14:11 26mTalk | SSMR: Statically Detecting Speculation Safe Memory Regions to Mitigate Transient Execution Attacks Main Conference Ange-Thierry Ishimwe University of Colorado Boulder, Sam Mcdiarmid-sterling University of Colorado Boulder, Zack McKevitt University of Colorado Boulder, Tamara Silbergleit Lehman University of Colorado Boulder | ||
14:37 26mTalk | CHEHAB: Automatic Compiler Code Optimization for Fully Homomorphic Encryption Main Conference Riyadh Baghdadi New York University Abu Dhabi, Abdessamed Seddiki New York University Abu Dhabi and Ecole Superieure d'Informatique, Arab Mohammed New York University Abu Dhabi and Ecole Superieure d'Informatique, Zakaria Hebbal Ecole nationale Supérieure d'Informatique, Aimad Chabounia Ecole Superieure d'Informatique; New York University Abu Dhabi, Eduardo Chielle New York University Abu Dhabi, Michail Maniatakos New York University Abu Dhabi, MENACER Djamel Eddine Ecole Superieure d'Informatique, Karima Benatchba Ecole Nationale Supérieure d'Informatique, Challal Yacine University of Doha for Science and Technology | ||
15:03 26mTalk | Parallel and Customizable Equality Saturation Main Conference Jonathan Van der Cruysse McGill University, Abd-El-Aziz Zayed McGill University, Mai Jacob Peng McGill University, Christophe Dubach McGill University | ||