{
  "id": "2024/1730",
  "url": "https://opencryptology.org/2024/1730",
  "original_url": "https://eprint.iacr.org/2024/1730",
  "title": "Secure and Efficient Outsourced Matrix Multiplication with Homomorphic Encryption",
  "authors": [
    "Aikata Aikata",
    "Sujoy Sinha Roy"
  ],
  "affiliations": null,
  "abstract": "Fully Homomorphic Encryption (FHE) is a promising privacy-enhancing technique that enables secure and private data processing on untrusted servers, such as privacy-preserving neural network (NN) evaluations. However, its practical application presents significant challenges. Limitations in how data is stored within homomorphic ciphertexts and restrictions on the types of operations that can be performed create computational bottlenecks. As a result, a growing body of research focuses on optimizing existing evaluation techniques for efficient execution in the homomorphic domain.\n\nOne key operation in this space is matrix multiplication, which forms the foundation of most neural networks. Several studies have even proposed new FHE schemes specifically to accelerate this operation. The optimization of matrix multiplication is also the primary goal of our work. We leverage the Single Instruction Multiple Data (SIMD) capabilities of FHE to increase data packing and significantly reduce the KeySwitch operation count— an expensive low-level routine in homomorphic encryption. By minimizing KeySwitching, we surpass current state-of-the-art solutions, requiring only a minimal multiplicative depth of two.\n\nThe best-known complexity for matrix multiplication at this depth is $\\mathcal{O}(d)$ for matrices of size  $d\\times d$. Remarkably, even the leading techniques that require a multiplicative depth of three still incur a KeySwitch complexity of $\\mathcal{O}(d)$. In contrast, our method reduces this complexity to $\\mathcal{O}(\\log{d})$ while maintaining the same level of data packing. Our solution broadly applies to all FHE schemes supporting Single Instruction Multiple Data (SIMD) operations.\nWe further generalize the technique in two directions: allowing arbitrary packing availability and extending it to rectangular matrices. This versatile approach offers significant improvements in matrix multiplication performance and enables faster evaluation of privacy-preserving neural network applications.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Secure and Efficient Outsourced Matrix Multiplication with Homomorphic Encryption” by Aikata Aikata, Sujoy Sinha Roy, Cryptology ePrint Archive, Paper 2024/1730, https://eprint.iacr.org/2024/1730. 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-22T12:34:34Z",
    "updated": "2024-10-22T12:34:34Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1730.pdf",
    "sha256": "69847d0bdffe3bd148b1f9bd76278057aa24cfa02f1aab8e8c2e9ac80820a412",
    "size": 3272003,
    "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/1730/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/1730.pdf",
      "size": 3272003,
      "sha256": "69847d0bdffe3bd148b1f9bd76278057aa24cfa02f1aab8e8c2e9ac80820a412",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1730.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 3272003
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260113154113id_/https://eprint.iacr.org/2024/1730.pdf",
      "captured_at": "2026-01-13T15:41:13Z",
      "size": 2373745
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1730,\n      author = {Aikata Aikata and Sujoy Sinha Roy},\n      title = {Secure and Efficient Outsourced Matrix Multiplication with Homomorphic Encryption},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1730},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1730}\n}"
}
