Paper 2024/1284
Plaintext-Ciphertext Matrix Multiplication and FHE Bootstrapping: Fast and Fused
Abstract
Homomorphically multiplying a plaintext matrix with a ciphertext matrix (PC-MM) is a central task for the private evaluation of transformers, commonly used for large language models. We provide several RLWE-based algorithms for PC-MM that consist of multiplications of plaintext matrices (PC-MM) and comparatively cheap pre-processing and post-processing steps: for small and large dimensions compared to the RLWE ring degree, and with and without precomputation. For the algorithms with precomputation, we show how to perform a PC-MM with a single floating-point PP-MM of the same dimensions. This is particularly meaningful for practical purposes as a floating-point PC-MM can be implemented using high-performance BLAS libraries. The algorithms rely on the multi-secret variant of RLWE, which allows to represent multiple ciphertexts more compactly. We give algorithms to convert from usual shared-secret RLWE ciphertexts to multi-secret ciphertexts and back. Further, we show that this format is compatible with homomorphic addition, plaintext-ciphertext multiplication, and key-switching. This in turn allows us to accelerate the slots-to-coeffs and coeffs-to-slots steps of CKKS bootstrapping when several ciphertexts are bootstrapped at once. Combining batch-bootstrapping with efficient PC-MM results in MaMBo (Matrix Multiplication Bootstrapping), a bootstrapping algorithm that can perform a PC-MM for a limited overhead.
Metadata
- Available format(s)
- Category
- Public-key cryptography
- Publication info
- A minor revision of an IACR publication in CRYPTO 2024
- Keywords
- Homomorphic EncryptionMatrix MultiplicationBatch Bootstrapping
- Contact author(s)
-
youngjin bae @ cryptolab co kr
jhcheon @ snu ac kr
guillaume hanrot @ cryptolab co kr
jhyunp @ snu ac kr
damien stehle @ cryptolab co kr - History
- 2024-08-16: approved
- 2024-08-15: received
- See all versions
- Short URL
- https://ia.cr/2024/1284
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2024/1284, author = {Youngjin Bae and Jung Hee Cheon and Guillaume Hanrot and Jai Hyun Park and Damien Stehlé}, title = {Plaintext-Ciphertext Matrix Multiplication and {FHE} Bootstrapping: Fast and Fused}, howpublished = {Cryptology {ePrint} Archive, Paper 2024/1284}, year = {2024}, url = {https://eprint.iacr.org/2024/1284} }