Paper 2024/1014
Grafting: Complementing RNS in CKKS
Abstract
The Residue Number System (RNS) variant of the Cheon-Kim-Kim-Song (CKKS) scheme (SAC 2018) has been widely implemented due to its computational efficiency. However, state-of-the-art implementations fail to use the machine word size tightly, creating inefficiency. As rescaling moduli are chosen to be approximately equal to the scaling factors, the machine's computation budget can be wasted when the scaling factors are not close to the machine's word size.
To solve this problem, we present a novel moduli management system called Grafting, that fills the ciphertext moduli with word-sized factors while allowing arbitrary rescaling. Grafting speeds up computations, reduces memory footprints, and makes universal parameters that can be used regardless of target precision. The key ingredient of Grafting is the sprout, which can repeatedly used as a part of the ciphertext modulus. In general, when using an arbitrary ciphertext modulus, several copies of evaluation keys in various moduli are required. However, sprout allows rescaling by various amounts with the same keys, which can be extended to universal sprout that accommodates rescaling by an arbitrary amount. By breaking the dependency of the rescaling amount, scale factors, and RNS modulus, Grafting resolves restrictions in previous RNS-CKKS implementations. We revisit the polynomial approximation and multiplication techniques to reduce the modulus consumption or improve the performance, respectively.
We grafted a parameter preset in the HEaaN library and implemented a grafted and non-grafted RNS-CKKS library to measure the improvements with concrete experiments. Benchmark results demonstrate the significance of Grafting, showing a speed-up of
Metadata
- Available format(s)
-
PDF
- Category
- Implementation
- Publication info
- Preprint.
- Keywords
- Homomorphic EncryptionRNS-CKKS
- Contact author(s)
-
jhcheon @ snu ac kr
sixtail528 @ snu ac kr
kaiser351 @ snu ac kr
jaehyungkim @ cryptolab co kr
ksh @ cryptolab co kr
johannes mono @ rub de
tynoh0219 @ cryptolab co kr - History
- 2025-02-19: last of 2 revisions
- 2024-06-24: received
- See all versions
- Short URL
- https://ia.cr/2024/1014
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2024/1014, author = {Jung Hee Cheon and Hyeongmin Choe and Minsik Kang and Jaehyung Kim and Seonghak Kim and Johannes Mono and Taeyeong Noh}, title = {Grafting: Complementing {RNS} in {CKKS}}, howpublished = {Cryptology {ePrint} Archive, Paper 2024/1014}, year = {2024}, url = {https://eprint.iacr.org/2024/1014} }