{
  "id": "2019/1049",
  "url": "https://opencryptology.org/2019/1049",
  "original_url": "https://eprint.iacr.org/2019/1049",
  "title": "CrypTFlow: Secure TensorFlow Inference",
  "authors": [
    "Nishant Kumar",
    "Mayank Rathee",
    "Nishanth Chandran",
    "Divya Gupta",
    "Aseem Rastogi",
    "Rahul Sharma"
  ],
  "affiliations": null,
  "abstract": "We present CrypTFlow, a first of its kind system that converts TensorFlow inference code into Secure Multi-party Computation (MPC) protocols at the push of a button. To do this, we build three components. Our first component, Athos, is an end-to-end compiler from TensorFlow to a variety of semi-honest MPC protocols. The second component, Porthos, is an improved semi-honest 3-party protocol that provides significant speedups for TensorFlow like applications. Finally, to provide malicious\nsecure MPC protocols, our third component, Aramis, is a novel technique that uses hardware with integrity guarantees to convert any semi-honest MPC protocol into an MPC protocol that provides malicious security. The malicious security of the\nprotocols output by Aramis relies on integrity of the hardware and semi-honest security of MPC. Moreover, our system matches the inference accuracy of plaintext TensorFlow.\n\nWe experimentally demonstrate the power of our system by showing the secure inference of real-world neural networks such as ResNet50 and DenseNet121 over the ImageNet dataset with running times of about 30 seconds for semi-honest security and under two minutes for malicious security. Prior work in the area of secure inference has been limited to semi-honest security of small networks over tiny datasets such as MNIST or CIFAR. Even on MNIST/CIFAR, CrypTFlow outperforms prior work.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“CrypTFlow: Secure TensorFlow Inference” by Nishant Kumar, Mayank Rathee, Nishanth Chandran, Divya Gupta, Aseem Rastogi, Rahul Sharma, Cryptology ePrint Archive, Paper 2019/1049, https://eprint.iacr.org/2019/1049. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2019-09-18T12:35:20Z",
    "updated": "2020-03-19T02:04:07Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/1049.pdf",
    "sha256": "c544c22edef817522359fd61f20342ca1874fd60c47f41a94866e181d01884ce",
    "size": 1904830,
    "source": "github-mirror",
    "source_date": "2020-04-17T10:36:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2019/1049/versions/20200417T103614Z.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "label": "copy captured 2020-04-17",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/1049.pdf",
      "size": 1904830,
      "sha256": "c544c22edef817522359fd61f20342ca1874fd60c47f41a94866e181d01884ce",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251112101957id_/https://eprint.iacr.org/2019/1049.pdf",
      "captured_at": "2025-11-12T10:19:57Z",
      "size": 1821958
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/1049.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 1904830
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/1049,\n      author = {Nishant Kumar and Mayank Rathee and Nishanth Chandran and Divya Gupta and Aseem Rastogi and Rahul Sharma},\n      title = {CrypTFlow: Secure TensorFlow Inference},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/1049},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/1049}\n}"
}
