Lune

ASPLOS2024顶会

Performance-aware Scale Analysis with Reserve for Homomorphic Encryption

Yongwoo Lee, Seonyoung Cheon, Dongkwan Kim, Dongyoon Lee, Hanjun Kim

摘要

Thanks to the computation ability on encrypted data and the efficient fixed-point execution, the RNS-CKKS fully homomorphic encryption (FHE) scheme is a promising solution for privacy-preserving machine learning services. However, writing an efficient RNS-CKKS program is challenging due to its manual scale management requirement. Each ciphertext has a scale value with its maximum scale capacity. Since each RNS-CKKS multiplication increases the scale, programmers should properly rescale a ciphertext by reducing the scale and capacity together. Existing compilers reduce the programming burden by automatically analyzing and managing the scales of ciphertexts, but they either conservatively rescale ciphertexts and thus give up further optimization opportunities, or require time-consuming scale management space exploration.

This work proposes a new performance-aware static scale analysis for an RNS-CKKS program, which generates an efficient scale management plan without expensive space exploration. This work analyzes the scale budget, called "reserve", of each ciphertext in a backward manner from the end of a program and redistributes the budgets to the ciphertexts, thus enabling performance-aware scale management. This work also designs a new type system for the proposed scale analysis and ensures the correctness of the analysis result. This work achieves 41.8% performance improvement over EVA that uses conservative static scale analysis. It also shows similar performance improvement to explorationbased Hecate yet with 15526× faster scale management time.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Fenc2: Unifying Data Packing for Efficient Private Inference via Convolution and Architecture-Aware Fragment Encoding 引用了 EFFACT: A Highly Efficient Full-Stack FHE Acceleration Platform
  • Fenc2: Unifying Data Packing for Efficient Private Inference via Convolution and Architecture-Aware Fragment Encoding 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • Leveraging ASIC AI Chips for Homomorphic Encryption 引用了 DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption
  • DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption 引用了 ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
  • DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption 引用了 Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
  • DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • Porcupine: a synthesizing compiler for vectorized homomorphic encryption 引用了 Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
  • Porcupine: a synthesizing compiler for vectorized homomorphic encryption 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • Optimizing homomorphic evaluation circuits by program synthesis and term rewriting 引用了 ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
  • SoK: Fully Homomorphic Encryption Compilers 引用了 ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
  • SoK: Fully Homomorphic Encryption Compilers 引用了 Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
  • SoK: Fully Homomorphic Encryption Compilers 引用了 EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
  • EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation 引用了 ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
  • Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPU 引用了 ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
  • Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPU 引用了 Porcupine: a synthesizing compiler for vectorized homomorphic encryption
  • Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPU 引用了 Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic EncryptionSeonyoung Cheon, Yongwoo Lee, Dongkwan Kim, Ju Min Lee 等USENIX Security 2024 · 25 次引用
  2. EFFACT: A Highly Efficient Full-Stack FHE Acceleration PlatformYi Huang, Xinsheng Gong, Xiangyu Kong, Dibei Chen 等HPCA 2025 · 10 次引用
  3. Leveraging ASIC AI Chips for Homomorphic EncryptionJianming Tong, Tianhao Huang, Jingtian Dang, Leo de Castro 等HPCA 2026 · 2 次引用
  4. Fenc2: Unifying Data Packing for Efficient Private Inference via Convolution and Architecture-Aware Fragment EncodingRan Ran, Zhaoting Gong, Nuo Xu, Yuanchao Xu 等ISCA 2026
  5. Libra: Pattern-Scheduling Co-Optimization for Cross-Scheme FHE Code Generation over GPGPUSong Bian, Yintai Sun, Zian Zhao, Haowen Pan 等USENIX Security 2026

它引用的 Paper8

  1. SoK: Fully Homomorphic Encryption CompilersAlexander Viand, Patrick Jattke, Anwar HithnawiS&P 2021 · 117 次引用
  2. EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computationRoshan Dathathri, Blagovesta Kostova, Olli Saarikivi, Wei Dai 等PLDI 2020 · 117 次引用
  3. ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easYEric Crockett, Chris Peikert, Chad SharpCCS 2018 · 68 次引用
  4. Porcupine: a synthesizing compiler for vectorized homomorphic encryptionMeghan Cowan, Deeksha Dangwal, Armin Alaghi, Caroline Trippel 等PLDI 2021 · 41 次引用
  5. Optimizing homomorphic evaluation circuits by program synthesis and term rewritingDongKwon Lee, Woosuk Lee, Hakjoo Oh, Kwangkeun YiPLDI 2020 · 30 次引用

相关 Paper

  1. ELASM: Error-Latency-Aware Scale Management for Fully Homomorphic EncryptionYongwoo Lee, Seonyoung Cheon, Dongkwan Kim, Dongyoon Lee 等USENIX Security 2023
  2. ReSBM: Region-based Scale and Minimal-Level Bootstrapping Management for FHE via Min-CutYan Liu, Jianxin Lai, Long Li, Tianxiang Sui 等ASPLOS 2025 · 11 次引用
  3. Orbit: Optimizing Rescale and Bootstrap Placement with Integer Linear Programming Techniques for Secure InferenceZikai Zhou, William Seo, Edward Chen, Alex Ozdemir 等USENIX Security 2026
  4. High-Precision Bootstrapping of RNS-CKKS Homomorphic Encryption Using Optimal Minimax Polynomial Approximation and Inverse Sine FunctionJoon-Woo Lee, Eunsang Lee, Yongwoo Lee, Young-Sik Kim 等EUROCRYPT 2021 · 110 次引用
  5. BitPacker: Enabling High Arithmetic Efficiency in Fully Homomorphic Encryption AcceleratorsNikola Samardzic, Daniel SánchezASPLOS 2024 · 19 次引用
黄昏的海面,两侧是细线勾勒的悬崖