{
  "id": "2026/1340",
  "url": "https://opencryptology.org/2026/1340",
  "original_url": "https://eprint.iacr.org/2026/1340",
  "title": "Generalized Batched Decomposition Key-Switching for CKKS",
  "authors": [
    "Antonio J. Peña",
    "Zaira Pindado",
    "Hugo Sanz-González"
  ],
  "affiliations": null,
  "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. \n\nAs 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.\n\nIn 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.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY-NC-SA",
    "url": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
    "label": "CC BY-NC-SA 4.0",
    "attribution": "“Generalized Batched Decomposition Key-Switching for CKKS” by Antonio J. Peña, Zaira Pindado, Hugo Sanz-González, Cryptology ePrint Archive, Paper 2026/1340, https://eprint.iacr.org/2026/1340. Licensed under CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": true
  },
  "dates": {
    "submitted": "2026-06-29T18:52:32Z",
    "updated": "2026-11-08T08:39:26Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/1340.pdf",
    "sha256": "3209613e0f5e12294ada4daa3080005dffeafed20dabc7cf75d36947daf50bd0",
    "size": 768074,
    "source": "upload",
    "source_date": "2026-11-13T08:36:25.023Z",
    "maybe_stale": false,
    "newer_on_eprint": false,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/1340/versions/20261113T083625Z.pdf",
      "captured_at": "2026-11-13T08:36:25.023Z",
      "label": "copy captured 2026-11-13",
      "source": "upload",
      "source_url": null,
      "size": 768074,
      "sha256": "3209613e0f5e12294ada4daa3080005dffeafed20dabc7cf75d36947daf50bd0",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/1340,\n      author = {Antonio J. Peña and Zaira Pindado and Hugo Sanz-González},\n      title = {Generalized Batched Decomposition Key-Switching for CKKS},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1340},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/1340}\n}"
}
