Lune

PLDI2020Top-tier venue

Optimizing homomorphic evaluation circuits by program synthesis and term rewriting

DongKwon Lee, Woosuk Lee, Hakjoo Oh, Kwangkeun Yi

Abstract

We present a new and general method for optimizing homomorphic evaluation circuits. Although fully homomorphic encryption (FHE) holds the promise of enabling safe and secure third party computation, building FHE applications has been challenging due to their high computational costs. Domain-specific optimizations require a great deal of expertise on the underlying FHE schemes, and FHE compilers that aims to lower the hurdle, generate outcomes that are typically sub-optimal as they rely on manually-developed optimization rules. In this paper, based on the prior work of FHE compilers, we propose a method for automatically learning and using optimization rules for FHE circuits. Our method focuses on reducing the maximum multiplicative depth, the decisive performance bottleneck, of FHE circuits by combining program synthesis and term rewriting. It first uses program synthesis to learn equivalences of small circuits as rewrite rules from a set of training circuits. Then, we perform term rewriting on the input circuit to obtain a new circuit that has lower multiplicative depth. Our rewriting method maximally generalizes the learned rules based on the equational matching and its soundness and termination properties are formally proven. Experimental results show that our method generates circuits that can be homomorphically evaluated 1.18x – 3.71x faster (with the geometric mean of 2.05x) than the state-of-the-art method. Our method is also orthogonal to existing domain-specific optimizations.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

17 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption cites ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning cites ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning cites DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning cites Porcupine: a synthesizing compiler for vectorized homomorphic encryption
  • SoK: Fully Homomorphic Encryption Compilers cites ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers17

  1. SoK: Fully Homomorphic Encryption CompilersAlexander Viand, Patrick Jattke, Anwar HithnawiS&P 2021 · 117 citations
  2. Porcupine: a synthesizing compiler for vectorized homomorphic encryptionMeghan Cowan, Deeksha Dangwal, Armin Alaghi, Caroline Trippel et al.PLDI 2021 · 41 citations
  3. Orion: A Fully Homomorphic Encryption Framework for Deep LearningAustin Ebel, Karthik Garimella, Brandon ReagenASPLOS 2025 · 40 citations
  4. Combining the top-down propagation and bottom-up enumeration for inductive program synthesisWoosuk LeePOPL 2021 · 34 citations
  5. DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic EncryptionSeonyoung Cheon, Yongwoo Lee, Dongkwan Kim, Ju Min Lee et al.USENIX Security 2024 · 25 citations

Builds on2

  1. Using Fully Homomorphic Encryption for Statistical Analysis of Categorical, Ordinal and Numerical DataWenjie Lu, Shohei Kawasaki, Jun SakumaNDSS 2017 · 105 citations
  2. ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easYEric Crockett, Chris Peikert, Chad SharpCCS 2018 · 68 citations

Related papers

  1. Efficient Batchable Secure Outsourced Computation: Depth-Aware Arithmetization of Common Primitives for BFV & BGVJelle Vos, Mauro Conti, Zekeriya ErkinUSENIX Security 2025
  2. Circuit Optimization using Arithmetic Table LookupsRaghav Malik, Vedant Paranjape, Milind KulkarniPLDI 2025
  3. A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic EncryptionAleksandar Krastev, Nikola Samardzic, Simon Langowski, Srinivas Devadas et al.PLDI 2024 · 23 citations
  4. CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption ComputationsBilel Sefsaf, Abderraouf Dandani, Abdessamed Seddiki, Arab Mohammed et al.ASPLOS 2026
  5. EFFACT: A Highly Efficient Full-Stack FHE Acceleration PlatformYi Huang, Xinsheng Gong, Xiangyu Kong, Dibei Chen et al.HPCA 2025 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines