{
  "id": "2025/1319",
  "url": "https://opencryptology.org/2025/1319",
  "original_url": "https://eprint.iacr.org/2025/1319",
  "title": "Bridging Usability and Performance: A Tensor Compiler for Autovectorizing Homomorphic Encryption",
  "authors": [
    "Edward Chen",
    "Fraser Brown",
    "Wenting Zheng"
  ],
  "affiliations": null,
  "abstract": "Homomorphic encryption (HE) offers strong privacy guarantees by enabling computation over encrypted data. However, the performance of tensor operations in HE is highly sensitive to how the plaintext data is packed into ciphertexts. Large tensor programs introduce numerous possible layout assignments, making it both challenging and tedious for users to manually write efficient HE programs.\n\nIn this paper, we present Rotom, a compilation framework\nthat autovectorizes tensor programs into optimized HE programs. Rotom systematically explores a wide range of layout assignments, applies state-of-the-art optimizations, and automatically generates an equivalent, efficient HE program. At its core, Rotom utilizes a novel, lightweight ApplyRoll layout conversion operator to easily modify the underlying data layouts and unlock new avenues for performance gains. Our evaluation demonstrates Rotom scalably compiles all tensor workloads in under 5 minutes, reduces rotations in hand-tuned protocols by up to 3×, and achieves up to 80× performance improvement over prior autovectorization systems.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Bridging Usability and Performance: A Tensor Compiler for Autovectorizing Homomorphic Encryption” by Edward Chen, Fraser Brown, Wenting Zheng, Cryptology ePrint Archive, Paper 2025/1319, https://eprint.iacr.org/2025/1319. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-07-18T16:17:50Z",
    "updated": "2026-03-18T04:09:48Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/1319.pdf",
    "sha256": "f0927eb8eb5c7ab6ef3fdb63971d21bca15f252b9b0daa50b20f3cd6f08ea253",
    "size": 4421857,
    "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/2025/1319/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/2025/1319.pdf",
      "size": 4421857,
      "sha256": "f0927eb8eb5c7ab6ef3fdb63971d21bca15f252b9b0daa50b20f3cd6f08ea253",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2025/1319/versions/20250719T071358Z.pdf",
      "captured_at": "2025-07-19T07:13:58Z",
      "label": "copy captured 2025-07-19",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250719071358id_/https://eprint.iacr.org/2025/1319.pdf",
      "size": 4384765,
      "sha256": "4771f87ec7f370eef20a19cacfcd18e204f41f73eefc97c8aec3468f1d571459",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/1319.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 4421857
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260421144041id_/https://eprint.iacr.org/2025/1319.pdf",
      "captured_at": "2026-04-21T14:40:41Z",
      "size": 4010829
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/1319,\n      author = {Edward Chen and Fraser Brown and Wenting Zheng},\n      title = {Bridging Usability and Performance: A Tensor Compiler for Autovectorizing Homomorphic Encryption},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1319},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/1319}\n}"
}
