USENIX Security2023Top-tier venue
ELASM: Error-Latency-Aware Scale Management for Fully Homomorphic Encryption
Yongwoo Lee, Seonyoung Cheon, Dongkwan Kim, Dongyoon Lee, Hanjun Kim
Abstract
Thanks to its fixed-point arithmetic and SIMD-like vectorization, among fully homomorphic encryption (FHE) schemes that allow computation on encrypted data, RNS-CKKS is widely used for privacy-preserving machine learning services. Prior works have partly automated a daunting scale management task required for RNS-CKKS fixed-point arithmetic, yet none takes an output error into consideration, preventing users from exploring a better error-latency trade-off. This work proposes a new error-and latency-aware scale management (ELASM) scheme for the RNS-CKKS FHE scheme. By actively controlling the scale of a ciphertext, one can effectively make the impact of noise on an error smaller because an error is a scaled noise introduced by an RNS-CKKS operation. ELASM explores different scale management plans that repurpose an upscale operation as an error reduction operation, estimates the output error and latency of each plan, and iteratively finds the best plan that minimizes the error-latency cost function. In addition, this work proposes a new scale-to-noise ratio (SNR) parameter and introduces fine-grained noise-aware waterlines (a minimum scale requirement) for different RNS-CKKS operations, opening a new opportunity to further improve an error-latency trade-off. This work implements the proposed ideas in the ELASM compiler along with a new FHE language and type system that enforces the RNS-CKKS constraints including SNR-based noise-aware waterlines. For ten machine and deep learning benchmarks, ELASM finds the better error and latency tradeoffs (lower Pareto curves) than the state-of-the-art solutions such as EVA and Hecate.
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.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption cites ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
- A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption cites DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption
- A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption cites Porcupine: a synthesizing compiler for vectorized homomorphic encryption
- A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption cites Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
- A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption cites 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 cites AHEC: End-to-end Compiler Framework for Privacy-preserving Machine Learning Acceleration
- DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption cites ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
- DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption cites Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
- DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption cites EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
- DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption cites Performance-aware Scale Analysis with Reserve for Homomorphic Encryption
- Porcupine: a synthesizing compiler for vectorized homomorphic encryption cites Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
- Porcupine: a synthesizing compiler for vectorized homomorphic encryption cites EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
- ReSBM: Region-based Scale and Minimal-Level Bootstrapping Management for FHE via Min-Cut cites A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption
- ReSBM: Region-based Scale and Minimal-Level Bootstrapping Management for FHE via Min-Cut cites DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic Encryption
- ReSBM: Region-based Scale and Minimal-Level Bootstrapping Management for FHE via Min-Cut cites EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
- Optimizing homomorphic evaluation circuits by program synthesis and term rewriting 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 A Tensor Compiler with Automatic Data Packing for Simple and Efficient Fully Homomorphic Encryption
- 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
- Orion: A Fully Homomorphic Encryption Framework for Deep Learning cites Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
- Orion: A Fully Homomorphic Encryption Framework for Deep Learning cites EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation cites ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
- Performance-aware Scale Analysis with Reserve for Homomorphic Encryption cites ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easY
- Performance-aware Scale Analysis with Reserve for Homomorphic Encryption cites Porcupine: a synthesizing compiler for vectorized homomorphic encryption
- Performance-aware Scale Analysis with Reserve for Homomorphic Encryption cites Optimizing homomorphic evaluation circuits by program synthesis and term rewriting
- Performance-aware Scale Analysis with Reserve for Homomorphic Encryption cites EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computation
- Performance-aware Scale Analysis with Reserve for Homomorphic Encryption cites AHEC: End-to-end Compiler Framework for Privacy-preserving Machine Learning Acceleration
Cited by top-tier papers12
- Orion: A Fully Homomorphic Encryption Framework for Deep LearningAustin Ebel, Karthik Garimella, Brandon ReagenASPLOS 2025 · 40 citations
- DaCapo: Automatic Bootstrapping Management for Efficient Fully Homomorphic EncryptionSeonyoung Cheon, Yongwoo Lee, Dongkwan Kim, Ju Min Lee et al.USENIX Security 2024 · 25 citations
- 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
- Performance-aware Scale Analysis with Reserve for Homomorphic EncryptionYongwoo Lee, Seonyoung Cheon, Dongkwan Kim, Dongyoon Lee et al.ASPLOS 2024 · 12 citations
- ReSBM: Region-based Scale and Minimal-Level Bootstrapping Management for FHE via Min-CutYan Liu, Jianxin Lai, Long Li, Tianxiang Sui et al.ASPLOS 2025 · 11 citations
Builds on5
- EVA: an encrypted vector arithmetic language and compiler for efficient homomorphic computationRoshan Dathathri, Blagovesta Kostova, Olli Saarikivi, Wei Dai et al.PLDI 2020 · 117 citations
- ALCHEMY: A Language and Compiler for Homomorphic Encryption Made easYEric Crockett, Chris Peikert, Chad SharpCCS 2018 · 68 citations
- Porcupine: a synthesizing compiler for vectorized homomorphic encryptionMeghan Cowan, Deeksha Dangwal, Armin Alaghi, Caroline Trippel et al.PLDI 2021 · 41 citations
- Optimizing homomorphic evaluation circuits by program synthesis and term rewritingDongKwon Lee, Woosuk Lee, Hakjoo Oh, Kwangkeun YiPLDI 2020 · 30 citations
- AHEC: End-to-end Compiler Framework for Privacy-preserving Machine Learning AccelerationHuili Chen, Rosario Cammarota, Felipe Valencia, Francesco Regazzoni et al.DAC 2020 · 10 citations
Related papers
- 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 et al.EUROCRYPT 2021 · 110 citations
- EFFACT: A Highly Efficient Full-Stack FHE Acceleration PlatformYi Huang, Xinsheng Gong, Xiangyu Kong, Dibei Chen et al.HPCA 2025 · 10 citations
- Orbit: Optimizing Rescale and Bootstrap Placement with Integer Linear Programming Techniques for Secure InferenceZikai Zhou, William Seo, Edward Chen, Alex Ozdemir et al.USENIX Security 2026
- FxHENN: FPGA-based acceleration framework for homomorphic encrypted CNN inferenceYilan Zhu, Xinyao Wang, Lei Ju, Shanqing GuoHPCA 2023 · 39 citations
- AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHEWei Ao, Vishnu Naresh BoddetiUSENIX Security 2024 · 43 citations
