Paper 2026/1340

Generalized Batched Decomposition Key-Switching for CKKS

Antonio J. Peña, Barcelona Supercomputing Center
Zaira Pindado, Barcelona Supercomputing Center
Hugo Sanz-González, Barcelona Supercomputing Center
Abstract

In lattice-based homomorphic encryption schemes, ciphertexts carry an inherent noise that grows as computation advances. The key-switching procedure of these schemes allows the homomorphic re-encryption of a ciphertext under a new secret key, but it incurs substantial noise growth and computational cost. In this work, we generalize the RNS-based decomposition technique of the CKKS scheme to an arbitrary number of input polynomials and secret keys. Performing multiple relinearizations and rotations in batch enables one to hoist the modulus lowering and decomposition steps of key-switching, respectively, which restricts noise growth and avoids redundant computation. We prove the security and correctness of all the proposed algorithms, and derive explicit noise bounds for them. As an application, we introduce a ternary multiplication algorithm that relinearizes the non-affine components of a product of three ciphertexts in batch, and performs rescaling in two phases so that relinearization runs at a lower modulus level. Compared with the usual sequence of two binary multiplications, this algorithm introduces a single key-switching error term, improving precision by up to half a bit and reducing latency by up to 1.31×. We generalize to n-ary ciphertext multiplication via a polynomial-time algorithm that combines binary and ternary multiplications into a tree of optimum depth minimizing a given latency cost function. Such products arise, for instance, in the SHIP bootstrapping algorithm; experiments with 128-bit-secure parameters on top of the Lattigo library show an average speedup of 1.20× over the standard approach for n = 192 with 32 threads. Further examples illustrate the impact of these optimizations on private deep neural network inference. In addition, we provide—to the best of our knowledge—the first noise analysis of the double-hoisted BSGS matrix-vector multiplication algorithm of Bossuat et al. (2021), a building block of state-of-the-art CKKS bootstrapping circuits. We discuss a novel optimization concerning the automorphism applications during its giant steps.

Metadata
Available format(s)
PDF
Category
Public-key cryptography
Publication info
Preprint.
Keywords
Fully Homomorphic EncryptionKey-SwitchingGadget Decomposition
Contact author(s)
antonio pena @ bsc es
zaira pindado @ bsc es
hugo sanzgonzalez @ bsc es
History
2026-11-08: last of 3 revisions
2026-06-29: received
See all versions
Short URL
https://ia.cr/2026/1340
License
Creative Commons Attribution-NonCommercial-ShareAlike
CC BY-NC-SA

BibTeX

@misc{cryptoeprint:2026/1340,
      author = {Antonio J. Peña and Zaira Pindado and Hugo Sanz-González},
      title = {Generalized Batched Decomposition Key-Switching for {CKKS}},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1340},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1340}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.