TY - GEN
T1 - HECATE
T2 - 20th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2022
AU - Lee, Yongwoo
AU - Heo, Seonyeong
AU - Cheon, Seonyoung
AU - Jeong, Shinnung
AU - Kim, Changsu
AU - Kim, Eunkyung
AU - Lee, Dongyoon
AU - Kim, Hanjun
N1 - Publisher Copyright:
© 2022 IEEE.
PY - 2022
Y1 - 2022
N2 - Despite the benefit of Fully Homomorphic Encryption (FHE) that supports encrypted computation, writing an efficient FHE application is challenging due to magnitude scale management. Each FHE operation increases scales of ciphertext and leaving the scales high harms performance of the following FHE operations. Thus, rescaling ciphertext is inevitable to optimize an FHE application, but since FHE requires programmers to match the rescaling levels of operands of each FHE operation, programmers should rescale ciphertext reflecting the entire FHE application. Although recently proposed FHE compilers reduce the programming burden by automatically manipulating ciphertext scales, they fail to fully optimize the FHE application because they greedily rescale the ciphertext without considering their performance impacts throughout the entire application. This work proposes HECATE, a new FHE compiler framework that optimizes scales of ciphertext reflecting their rescaling levels and performance impact. With a new type system that embeds the scale and rescaling level, and a new rescaling operation called downscale, HECATE makes various scale management plans, analyzes their expected performance, and finds the optimal rescaling points throughout the entire FHE application. This work implements HECATE on top of the MLIR framework with a Python frontend and shows that HECATE achieves 27% speedup over the state-of-The-Art approach for various FHE applications.
AB - Despite the benefit of Fully Homomorphic Encryption (FHE) that supports encrypted computation, writing an efficient FHE application is challenging due to magnitude scale management. Each FHE operation increases scales of ciphertext and leaving the scales high harms performance of the following FHE operations. Thus, rescaling ciphertext is inevitable to optimize an FHE application, but since FHE requires programmers to match the rescaling levels of operands of each FHE operation, programmers should rescale ciphertext reflecting the entire FHE application. Although recently proposed FHE compilers reduce the programming burden by automatically manipulating ciphertext scales, they fail to fully optimize the FHE application because they greedily rescale the ciphertext without considering their performance impacts throughout the entire application. This work proposes HECATE, a new FHE compiler framework that optimizes scales of ciphertext reflecting their rescaling levels and performance impact. With a new type system that embeds the scale and rescaling level, and a new rescaling operation called downscale, HECATE makes various scale management plans, analyzes their expected performance, and finds the optimal rescaling points throughout the entire FHE application. This work implements HECATE on top of the MLIR framework with a Python frontend and shows that HECATE achieves 27% speedup over the state-of-The-Art approach for various FHE applications.
KW - compiler
KW - deep learning
KW - Homomorphic encryption
KW - privacypreserving machine learning
UR - https://www.scopus.com/pages/publications/85128425393
U2 - 10.1109/CGO53902.2022.9741265
DO - 10.1109/CGO53902.2022.9741265
M3 - Conference contribution
AN - SCOPUS:85128425393
T3 - CGO 2022 - Proceedings of the 2022 IEEE/ACM International Symposium on Code Generation and Optimization
SP - 193
EP - 204
BT - CGO 2022 - Proceedings of the 2022 IEEE/ACM International Symposium on Code Generation and Optimization
A2 - Lee, Jae W.
A2 - Hack, Sebastian
A2 - Shpeisman, Tatiana
PB - Institute of Electrical and Electronics Engineers Inc.
Y2 - 2 April 2022 through 6 April 2022
ER -