{
  "id": "2023/1429",
  "url": "https://opencryptology.org/2023/1429",
  "original_url": "https://eprint.iacr.org/2023/1429",
  "title": "Leveraging GPU in Homomorphic Encryption: Framework Design and Analysis of BFV Variants",
  "authors": [
    "Shiyu Shen",
    "Hao Yang",
    "Wangchen Dai",
    "Lu Zhou",
    "Zhe Liu",
    "Yunlei Zhao"
  ],
  "affiliations": null,
  "abstract": "Homomorphic Encryption (HE) enhances data security by facilitating computations on encrypted data, opening new paths for privacy-focused computations. The Brakerski-Fan-Vercauteren (BFV) scheme, a promising HE scheme, raises considerable performance challenges. Graphics Processing Units (GPUs), with considerable parallel processing abilities, have emerged as an effective solution.\n\nIn this work, we present an in-depth study focusing on accelerating and comparing BFV variants on GPUs, including Bajard-Eynard-Hasan-Zucca (BEHZ), Halevi-Polyakov-Shoup (HPS), and other recent variants. We introduce a universal framework accommodating all variants, propose optimized BEHZ implementation, and ﬁrst support HPS variants with large parameter sets on GPUs. Moreover, we devise several optimizations for both low-level arithmetic and high-level operations, including minimizing instructions for modular operations, enhancing hardware utilization for base conversion, implementing efficient reuse strategies, and introducing intra-arithmetic and inner-conversion fusion methods, thus decreasing the overall computational and memory consumption.\n\nLeveraging our framework, we offer comprehensive comparative analyses. Our performance evaluation showcases a marked speed improvement, achieving 31.9× over OpenFHE running on a multi-threaded CPU and 39.7% and 29.9% improvement, respectively, over the state-of-the-art GPU BEHZ implementation. Our implementation of the leveled HPS variant records up to 4× speedup over other variants, positioning it as a highly promising alternative for specific applications.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Leveraging GPU in Homomorphic Encryption: Framework Design and Analysis of BFV Variants” by Shiyu Shen, Hao Yang, Wangchen Dai, Lu Zhou, Zhe Liu, Yunlei Zhao, Cryptology ePrint Archive, Paper 2023/1429, https://eprint.iacr.org/2023/1429. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-09-21T02:30:12Z",
    "updated": "2023-09-21T02:30:12Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1429.pdf",
    "sha256": "1eeb9ca73292af156d08ab76e6f164f49c0d618aeb7f2131106d1e5d3c670daf",
    "size": 3120808,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1429/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1429.pdf",
      "size": 3120808,
      "sha256": "1eeb9ca73292af156d08ab76e6f164f49c0d618aeb7f2131106d1e5d3c670daf",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20240423095906id_/https://eprint.iacr.org/2023/1429.pdf",
      "captured_at": "2024-04-23T09:59:06Z",
      "size": 3064865
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1429.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 3120808
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1429,\n      author = {Shiyu Shen and Hao Yang and Wangchen Dai and Lu Zhou and Zhe Liu and Yunlei Zhao},\n      title = {Leveraging GPU in Homomorphic Encryption: Framework Design and Analysis of BFV Variants},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1429},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1429}\n}"
}
