Skip to main navigation Skip to search Skip to main content

Performance-aware Scale Analysis with Reserve for Homomorphic Encryption

  • Yongwoo Lee
  • , Seonyoung Cheon
  • , Dongkwan Kim
  • , Dongyoon Lee
  • , Hanjun Kim
  • Yonsei University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

9 Scopus citations

Abstract

Thanks to the computation ability on encrypted data and the efficient fixed-point execution, the RNS-CKKS fully homo-morphic 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 cipher-texts, 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 15526× faster scale management time.

Original languageEnglish
Title of host publicationSpring Cycle
PublisherAssociation for Computing Machinery
Pages302-317
Number of pages16
ISBN (Electronic)9798400703720
DOIs
StatePublished - Apr 17 2024
Event29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS 2024 - San Diego, United States
Duration: Apr 27 2024May 1 2024

Publication series

NameInternational Conference on Architectural Support for Programming Languages and Operating Systems - ASPLOS
Volume1

Conference

Conference29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS 2024
Country/TerritoryUnited States
CitySan Diego
Period04/27/2405/1/24

Keywords

  • CKKS
  • compiler
  • homomorphic encryption
  • privacy-preserve machine learning
  • reserve
  • scale management
  • static analysis

Fingerprint

Dive into the research topics of 'Performance-aware Scale Analysis with Reserve for Homomorphic Encryption'. Together they form a unique fingerprint.

Cite this