{
  "id": "2022/892",
  "url": "https://opencryptology.org/2022/892",
  "original_url": "https://eprint.iacr.org/2022/892",
  "title": "Piranha: A GPU Platform for Secure Computation",
  "authors": [
    "Jean-Luc Watson",
    "Sameer Wagh",
    "Raluca Ada Popa"
  ],
  "affiliations": null,
  "abstract": "Secure multi-party computation (MPC) is an essential tool for privacy-preserving machine learning (ML). However, secure training of large-scale ML models currently requires a prohibitively long time to complete. Given that large ML inference and training tasks in the plaintext setting are significantly accelerated by Graphical Processing Units (GPUs), this raises the natural question: can secure MPC leverage GPU acceleration? A few recent works have studied this question in the context of accelerating specific components or protocols, but do not provide a general-purpose solution. Consequently, MPC developers must be both experts in cryptographic protocol design and proficient at low-level GPU kernel development to achieve good performance on any new protocol implementation.\n\nWe present Piranha, a general-purpose, modular platform for accelerating secret sharing-based MPC protocols using GPUs. Piranha allows the MPC community to easily leverage the benefits of a GPU without requiring GPU expertise. Piranha contributes a three-layer architecture: (1) a device layer that can independently accelerate secret-sharing protocols by providing integer-based kernels absent in current general-purpose GPU libraries, (2) a modular protocol layer that allows developers to maximize utility of limited GPU memory with in-place computation and iterator-based support for non-standard memory access patterns, and (3) an application layer that allows applications to remain completely agnostic to the underlying protocols they use.\n\nTo demonstrate the benefits of Piranha, we implement 3 state-of-the-art linear secret sharing MPC protocols for secure NN training: 2-party SecureML (IEEE S&P ’17), 3-party Falcon (PETS ’21), and 4-party FantasticFour (USENIX Security ’21). Compared to their CPU-based implementations, the same protocols implemented on top of Piranha’s protocol-agnostic acceleration exhibit a 16−48× decrease in training time. For the first time, Piranha demonstrates the feasibility of training a realistic neural network (e.g. VGG), end-to-end, using MPC in a little over one day. Piranha is open source and available at https://github.com/ucbrise/piranha.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Piranha: A GPU Platform for Secure Computation” by Jean-Luc Watson, Sameer Wagh, Raluca Ada Popa, Cryptology ePrint Archive, Paper 2022/892, https://eprint.iacr.org/2022/892. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-07-07T21:51:38Z",
    "updated": "2022-08-26T07:35:44Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/892.pdf",
    "sha256": "3cac10ff083abbd3d441695b13d3923a82065328c34b7479013d869d6667902c",
    "size": 1468950,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/892/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/892.pdf",
      "size": 1468950,
      "sha256": "3cac10ff083abbd3d441695b13d3923a82065328c34b7479013d869d6667902c",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/892/versions/20220709T103639Z.pdf",
      "captured_at": "2022-07-09T10:36:39Z",
      "label": "copy captured 2022-07-09",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20220709103639id_/https://eprint.iacr.org/2022/892.pdf",
      "size": 1405920,
      "sha256": "989d2def572d915f195bc613b22e19cc61bb93c5f4ab3397bf06f9408b2fdeb0",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260929212637id_/https://eprint.iacr.org/2022/892.pdf",
      "captured_at": "2026-09-29T21:26:37Z",
      "size": 1412270
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/892.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 1468950
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/892,\n      author = {Jean-Luc Watson and Sameer Wagh and Raluca Ada Popa},\n      title = {Piranha: A GPU Platform for Secure Computation},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/892},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/892}\n}"
}
