Lune

PLDI2021顶会

Porcupine: a synthesizing compiler for vectorized homomorphic encryption

Meghan Cowan, Deeksha Dangwal, Armin Alaghi, Caroline Trippel, Vincent T. Lee, Brandon Reagen

摘要

Homomorphic encryption (HE) is a privacy-preserving technique that enables computation directly on encrypted data. Despite its promise, HE has seen limited use due to performance overheads and compilation challenges. Recent work has made significant advances to address the performance overheads but automatic compilation of efficient HE kernels remains relatively unexplored.

This paper presents Porcupine -an optimizing compilerand HE DSL named Quill to automatically generate HE code using program synthesis. HE poses three major compilation challenges: it only supports a limited set of SIMD-like operators, it uses long-vector operands, and decryption can fail if ciphertext noise growth is not managed properly. Quill captures the underlying HE operator behavior that enables Porcupine to reason about the complex trade-offs imposed by the challenges and generate optimized, verified HE kernels. To improve synthesis time, we propose a series of optimizations including a sketch design tailored to HE and instruction restriction to narrow the program search space. We evaluate Porcupine using a set of kernels and show speedups of up to 51% (11% geometric mean) compared to heuristic-driven hand-optimized kernels. Analysis of Porcupine's synthesized code reveals that optimal solutions are not always intuitive, underscoring the utility of automated reasoning in this domain.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning 引用了 A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning 引用了 Cheetah: Optimizing and Accelerating Homomorphic Encryption for Private Inference
  • Orion: A Fully Homomorphic Encryption Framework for Deep Learning 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • ZENO: A Type-based Optimization Framework for Zero Knowledge Neural Network Inference 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • ZENO: A Type-based Optimization Framework for Zero Knowledge Neural Network Inference 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation 引用了 SoK: General Purpose Compilers for Secure Multi-Party Computation
  • EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • Cheetah: Optimizing and Accelerating Homomorphic Encryption for Private Inference 引用了 HEAX: An Architecture for Computing on Encrypted Data
  • Cheetah: Optimizing and Accelerating Homomorphic Encryption for Private Inference 引用了 GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • Performance-aware Scale Analysis with Reserve for Homomorphic Encryption 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper19

  1. Orion: A Fully Homomorphic Encryption Framework for Deep LearningAustin Ebel, Karthik Garimella, Brandon ReagenASPLOS 2025 · 40 次引用
  2. A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic EncryptionAleksandar Krastev, Nikola Samardzic, Simon Langowski, Srinivas Devadas 等PLDI 2024 · 23 次引用
  3. ZENO: A Type-based Optimization Framework for Zero Knowledge Neural Network InferenceBoyuan Feng, Zheng Wang, Yuke Wang, Shu Yang 等ASPLOS 2024 · 13 次引用
  4. Performance-aware Scale Analysis with Reserve for Homomorphic EncryptionYongwoo Lee, Seonyoung Cheon, Dongkwan Kim, Dongyoon Lee 等ASPLOS 2024 · 12 次引用
  5. Hydride: A Retargetable and Extensible Synthesis-based Compiler for Modern Hardware ArchitecturesAkash Kothari, Abdul Rafae Noor, Muchen Xu, Hassam Uddin 等ASPLOS 2024 · 8 次引用

它引用的 Paper6

  1. GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 次引用
  2. HEAX: An Architecture for Computing on Encrypted DataM. Sadegh Riazi, Kim Laine, Blake Pelton, Wei DaiASPLOS 2020 · 244 次引用
  3. SoK: General Purpose Compilers for Secure Multi-Party ComputationMarcella Hastings, Brett Hemenway, Daniel Noble, Steve ZdancewicS&P 2019 · 181 次引用
  4. Cheetah: Optimizing and Accelerating Homomorphic Encryption for Private InferenceBrandon Reagen, Wooseok Choi, Yeongil Ko, Vincent T. Lee 等HPCA 2021 · 147 次引用
  5. EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computationRoshan Dathathri, Blagovesta Kostova, Olli Saarikivi, Wei Dai 等PLDI 2020 · 117 次引用

相关 Paper

  1. 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
  2. Circuit Optimization using Arithmetic Table LookupsRaghav Malik, Vedant Paranjape, Milind KulkarniPLDI 2025
  3. AutoFHE: An Automatic Hardware Generation Framework for Domain-Specific FHE AcceleratorsYibo Du, Cangyuan Li, Bing Li, Mengdi Wang 等ISCA 2026
  4. HECO: Fully Homomorphic Encryption CompilerAlexander Viand, Patrick Jattke, Miro Haller, Anwar HithnawiUSENIX Security 2023
  5. Bridging Usability and Performance: A Tensor Compiler for Autovectorizing Homomorphic EncryptionEdward Chen, Fraser Brown, Wenting ZhengUSENIX Security 2026 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖