Performance-aware Scale Analysis with Reserve for Homomorphic Encryption

被引:0
|
作者
Lee, Yongwoo [1 ]
Cheon, Seonyoung [1 ]
Kim, Dongkwan [1 ]
Lee, Dongyoon [2 ]
Kim, Hanjun [1 ]
机构
[1] Yonsei Univ, Seoul, South Korea
[2] SUNY Stony Brook, New York, NY USA
基金
美国国家科学基金会;
关键词
Homomorphic encryption; CKKS; scale management; static analysis; reserve; compiler; privacy-preserve machine learning;
D O I
10.1145/3617232.3624870
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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 cipher-text 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 exploration-based Hecate yet with 15526x faster scale management time.
引用
收藏
页码:302 / 317
页数:16
相关论文
共 50 条
  • [1] HECATE: Performance-Aware Scale Optimization for Homomorphic Encryption Compiler
    Lee, Yongwoo
    Heo, Seonyeong
    Cheon, Seonyoung
    Jeong, Shinnung
    Kim, Changsu
    Kim, Eunkyung
    Lee, Dongyoon
    Kim, Hanjun
    [J]. CGO '22: PROCEEDINGS OF THE 2022 IEEE/ACM INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION (CGO), 2022, : 193 - 204
  • [2] ELASM: Error-Latency-Aware Scale Management for Fully Homomorphic Encryption
    Lee, Yongwoo
    Cheon, Seonyoung
    Kim, Dongkwan
    Lee, Dongyoon
    Kim, Hanjun
    [J]. PROCEEDINGS OF THE 32ND USENIX SECURITY SYMPOSIUM, 2023, : 4697 - 4714
  • [3] A performance-aware yield analysis and optimization of manycore architectures
    Lee, Jeong-Gun
    Kwak, Sanghoon
    [J]. COMPUTERS & ELECTRICAL ENGINEERING, 2016, 54 : 40 - 52
  • [4] Performance-Aware Multicore Programming
    Lo, Chia-Tien Dan
    [J]. PROCEEDINGS OF THE 49TH ANNUAL ASSOCIATION FOR COMPUTING MACHINERY SOUTHEAST CONFERENCE (ACMSE '11), 2011, : 126 - 131
  • [5] Performance-Aware Speculative Resource Oversubscription for Large-Scale Clusters
    Yang, Renyu
    Hu, Chunming
    Sun, Xiaoyang
    Garraghan, Peter
    Wo, Tianyu
    Wen, Zhenyu
    Peng, Hao
    Xu, Jie
    Li, Chao
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2020, 31 (07) : 1499 - 1517
  • [6] Performance-aware load balancing for multiclusters
    He, Ligang
    Jarvis, Stephen A.
    Bacigalupo, David
    Spooner, Daniel P.
    Nudd, Graham R.
    [J]. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2004, 3358 : 635 - 647
  • [7] Performance-aware load balancing for multiclusters
    He, LG
    Jarvis, SA
    Bacigalupo, D
    Spooner, DP
    Nudd, GR
    [J]. PARALLEL AND DISTRIBUTED PROCESSING AND APPLICATIONS, PROCEEDINGS, 2004, 3358 : 635 - 647
  • [8] Accelerating Fully Homomorphic Encryption Through Microarchitecture-Aware Analysis and Optimization
    Jung, Wonkyung
    Lee, Eojin
    Kim, Sangpyo
    Kim, Namhoon
    Lee, Keewoo
    Min, Chohong
    Cheon, Jung Hee
    Ahn, Jung Ho
    [J]. 2021 IEEE INTERNATIONAL SYMPOSIUM ON PERFORMANCE ANALYSIS OF SYSTEMS AND SOFTWARE (ISPASS 2021), 2021, : 237 - 239
  • [9] Performance-aware Malware Epidemic Confinement in Large-Scale IoT Networks
    Hassan, Rakibul
    Rafatirad, Setareh
    Homayoun, Houman
    Dinakarrao, Sai Manoj Pudukotai
    [J]. IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS (ICC 2021), 2021,
  • [10] Performance-Aware Reliability Assessment of Heterogeneous Chips
    Chatzidimitriou, Athanasios
    Kaliorakis, Manolis
    Tselonis, Sotiris
    Gizopoulos, Dimitris
    [J]. 2017 IEEE 35TH VLSI TEST SYMPOSIUM (VTS), 2017,