{
  "id": "2024/1284",
  "url": "https://opencryptology.org/2024/1284",
  "original_url": "https://eprint.iacr.org/2024/1284",
  "title": "Plaintext-Ciphertext Matrix Multiplication and FHE Bootstrapping: Fast and Fused",
  "authors": [
    "Youngjin Bae",
    "Jung Hee Cheon",
    "Guillaume Hanrot",
    "Jai Hyun Park",
    "Damien Stehlé"
  ],
  "affiliations": null,
  "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.\n\nThe 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.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Plaintext-Ciphertext Matrix Multiplication and FHE Bootstrapping: Fast and Fused” by Youngjin Bae, Jung Hee Cheon, Guillaume Hanrot, Jai Hyun Park, Damien Stehlé, Cryptology ePrint Archive, Paper 2024/1284, https://eprint.iacr.org/2024/1284. 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-08-15T07:01:36Z",
    "updated": "2024-08-15T07:01:36Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1284.pdf",
    "sha256": "61bb2d8630b9e595cf91385c7238395ea0c4e4baeeb7db53d37f848bbed51e92",
    "size": 808282,
    "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/1284/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/1284.pdf",
      "size": 808282,
      "sha256": "61bb2d8630b9e595cf91385c7238395ea0c4e4baeeb7db53d37f848bbed51e92",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1284.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 808282
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260105090134id_/https://eprint.iacr.org/2024/1284.pdf",
      "captured_at": "2026-01-05T09:01:34Z",
      "size": 641980
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1284,\n      author = {Youngjin Bae and Jung Hee Cheon and Guillaume Hanrot and Jai Hyun Park and Damien Stehlé},\n      title = {Plaintext-Ciphertext Matrix Multiplication and FHE Bootstrapping: Fast and Fused},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1284},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1284}\n}"
}
