{
  "id": "2023/1269",
  "url": "https://opencryptology.org/2023/1269",
  "original_url": "https://eprint.iacr.org/2023/1269",
  "title": "SIGMA: Secure GPT Inference with Function Secret Sharing",
  "authors": [
    "Kanav Gupta",
    "Neha Jawalkar",
    "Ananta Mukherjee",
    "Nishanth Chandran",
    "Divya Gupta",
    "Ashish Panwar",
    "Rahul Sharma"
  ],
  "affiliations": null,
  "abstract": "Secure 2-party computation (2PC) enables secure inference that offers protection for both proprietary machine learning (ML) models and  sensitive inputs to them. However, the existing secure inference solutions suffer from high latency and communication overheads,\nparticularly for  transformers. Function secret sharing (FSS) is a recent paradigm for\nobtaining efficient 2PC protocols with a preprocessing phase.\nWe provide SIGMA, the first end-to-end system for secure transformer inference based on FSS.\nBy constructing new FSS-based protocols for complex machine learning functionalities, such as Softmax, GeLU and SiLU, and also  accelerating their computation on GPUs, SIGMA improves the latency of secure inference of transformers by $11-19\\times$ over the state-of-the-art that uses preprocessing and GPUs. We present the first  secure inference of generative pre-trained transformer (GPT) models. In particular, SIGMA executes Meta's LLaMA2 (available on HuggingFace) with 13 billion parameters in 44 seconds and GPT2 in 1.6 seconds.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“SIGMA: Secure GPT Inference with Function Secret Sharing” by Kanav Gupta, Neha Jawalkar, Ananta Mukherjee, Nishanth Chandran, Divya Gupta, Ashish Panwar, Rahul Sharma, Cryptology ePrint Archive, Paper 2023/1269, https://eprint.iacr.org/2023/1269. 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-08-22T17:24:55Z",
    "updated": "2024-07-15T10:22:35Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1269.pdf",
    "sha256": "3a2989f1da36bda9e2e9b4b6a2d482e33aeff15b223e18a2d1aa5ebcbf1fea0d",
    "size": 933846,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1269/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/2023/1269.pdf",
      "size": 933846,
      "sha256": "3a2989f1da36bda9e2e9b4b6a2d482e33aeff15b223e18a2d1aa5ebcbf1fea0d",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/1269/versions/20231222T150426Z.pdf",
      "captured_at": "2023-12-22T15:04:26Z",
      "label": "copy captured 2023-12-22",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20231222150426id_/https://eprint.iacr.org/2023/1269.pdf",
      "size": 893790,
      "sha256": "76c108edc70c0ad713048cecb65f22b29cfe42d3a3fcd6b992f388819ed2a1ab",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2023/1269/versions/20231017T022738Z.pdf",
      "captured_at": "2023-10-17T02:27:38Z",
      "label": "copy captured 2023-10-17",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20231017022738id_/https://eprint.iacr.org/2023/1269.pdf",
      "size": 683554,
      "sha256": "0f1e069d51e8c300188c38cd5561a89f7fb44279dc4a12db830b5ec2e8e32cbc",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1269.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 933846
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250615221254id_/https://eprint.iacr.org/2023/1269.pdf",
      "captured_at": "2025-06-15T22:12:54Z",
      "size": 895007
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1269,\n      author = {Kanav Gupta and Neha Jawalkar and Ananta Mukherjee and Nishanth Chandran and Divya Gupta and Ashish Panwar and Rahul Sharma},\n      title = {SIGMA: Secure GPT Inference with Function Secret Sharing},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1269},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1269}\n}"
}
