{
  "id": "2024/1638",
  "url": "https://opencryptology.org/2024/1638",
  "original_url": "https://eprint.iacr.org/2024/1638",
  "title": "Modular Reduction in CKKS",
  "authors": [
    "Jaehyung Kim",
    "Taeyeong Noh"
  ],
  "affiliations": null,
  "abstract": "The Cheon-Kim-Kim-Song (CKKS) scheme is renowned for its efficiency in encrypted computing over real numbers. However, it lacks an important functionality that most exact schemes have, an efficient modular reduction. This derives from the fundamental difference in encoding structure. The CKKS scheme encodes messages to the least significant bits, while the other schemes encode to the most significant bits (or in an equivalent manner). As a result, CKKS could enjoy an efficient rescaling but lost the ability to modular reduce inherently.\n\nInstead of homomorphically approximating the modular reduction function, we suggest to use the inherent modular reduction over $\\mathbb{Z}_q[X]/(X^N+1)$. We construct a novel homomorphic modular reduction algorithm using the discrete bootstrapping from Bae et al. [Asiacrypt'24] and a new discretization algorithm from modulus switching. One of the key advantages of our modular reduction is that its computational complexity grows sublinearly ($O(\\log k)$) as we increase the input range $[0,k)$, which is asymptotically better than the state-of-the-art with $\\geq O(k)$.\n\nWe checked our algorithms with concrete experiments. Notably, our modulo 1 function for input range $[0, 2^{20})$ takes only 44.9 seconds with 13.3 bits of (mean) precision, in a single-threaded CPU. Recall that modular reduction over such a large range was almost infeasible in the previous works, as they need to evaluate a polynomial of degree $> 2^{20}$ (or equivalent). As an application of our method, we compared a bit decomposition based on our framework with the state-of-the-art method from Drucker et al. [J.Cryptol'24]. Our method is $7.1 \\times$ faster while reducing the failure probability by more than two orders of magnitude.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Modular Reduction in CKKS” by Jaehyung Kim, Taeyeong Noh, Cryptology ePrint Archive, Paper 2024/1638, https://eprint.iacr.org/2024/1638. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-10-11T21:25:49Z",
    "updated": "2025-07-16T01:11:48Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1638.pdf",
    "sha256": "42c754f42c32f1be95d7bb306330f9ec30f60ec8d4a272caa586ad8d9b1d7438",
    "size": 639244,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1638/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1638.pdf",
      "size": 639244,
      "sha256": "42c754f42c32f1be95d7bb306330f9ec30f60ec8d4a272caa586ad8d9b1d7438",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/1638/versions/20241021T162753Z.pdf",
      "captured_at": "2024-10-21T16:27:53Z",
      "label": "copy captured 2024-10-21",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20241021162753id_/https://eprint.iacr.org/2024/1638.pdf",
      "size": 620869,
      "sha256": "e787656021bc9ac8309b44532461f0767504229d39ac9d188973e8505c7e08f7",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1638.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 639244
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260306110524id_/https://eprint.iacr.org/2024/1638.pdf",
      "captured_at": "2026-03-06T11:05:24Z",
      "size": 639099
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1638,\n      author = {Jaehyung Kim and Taeyeong Noh},\n      title = {Modular Reduction in CKKS},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1638},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1638}\n}"
}
