{
  "id": "2019/131",
  "url": "https://opencryptology.org/2019/131",
  "original_url": "https://eprint.iacr.org/2019/131",
  "title": "Secure Evaluation of Quantized Neural Networks",
  "authors": [
    "Anders Dalskov",
    "Daniel Escudero",
    "Marcel Keller"
  ],
  "affiliations": null,
  "abstract": "We investigate two questions in this paper: First, we ask to what\nextent \"MPC friendly\" models are already supported by major Machine\nLearning frameworks such as TensorFlow or PyTorch. Prior works provide\nprotocols that only work on fixed-point integers and specialized\nactivation functions, two aspects that are not supported by popular\nMachine Learning frameworks, and the need for these specialized model\nrepresentations means that it is hard, and often impossible, to use\ne.g., TensorFlow to design, train and test models that later have to\nbe evaluated securely. Second, we ask to what extent the functionality\nfor evaluating Neural Networks already exists in general-purpose MPC\nframeworks. These frameworks have received more scrutiny, are better\ndocumented and supported on more platforms. Furthermore, they are\ntypically flexible in terms of the threat model they support. In\ncontrast, most secure evaluation protocols in the literature are\ntargeted to a specific threat model and their implementations are only\na \"proof-of-concept\", making it very hard for their adoption in\npractice. We answer both of the above questions in a positive way: We\nobserve that the quantization techniques supported by both TensorFlow,\nPyTorch and MXNet can provide models in a representation that can be\nevaluated securely; and moreover, that this evaluation can be\nperformed by a general purpose MPC framework. We perform extensive\nbenchmarks to understand the exact trade-offs between different\ncorruption models, network sizes and efficiency. These experiments\nprovide an interesting insight into cost between active and passive\nsecurity, as well as honest and dishonest majority. Our work shows\nthen that the separating line between existing ML frameworks and\nexisting MPC protocols may be narrower than implicitly suggested by\nprevious works.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Secure Evaluation of Quantized Neural Networks” by Anders Dalskov, Daniel Escudero, Marcel Keller, Cryptology ePrint Archive, Paper 2019/131, https://eprint.iacr.org/2019/131. 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-02-13T17:29:57Z",
    "updated": "2020-06-23T11:24:46Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/131.pdf",
    "sha256": "c2ab8f210e15afea21e71f965e62e1822bde3fc431b160a642dfc13bcb47a0a9",
    "size": 645949,
    "source": "wayback",
    "source_date": "2025-06-29T01:12:16Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2019/131/versions/20250629T011216Z.pdf",
      "captured_at": "2025-06-29T01:12:16Z",
      "label": "copy captured 2025-06-29",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250629011216id_/https://eprint.iacr.org/2019/131.pdf",
      "size": 645949,
      "sha256": "c2ab8f210e15afea21e71f965e62e1822bde3fc431b160a642dfc13bcb47a0a9",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2019/131/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/131.pdf",
      "size": 3869355,
      "sha256": "b1f9797805c598cf2c0bda4f620fecf8f3b77bed28a694656dd192daf920862d",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250629011216id_/https://eprint.iacr.org/2019/131.pdf",
      "captured_at": "2025-06-29T01:12:16Z",
      "size": 646882
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/131.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 3869355
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/131,\n      author = {Anders Dalskov and Daniel Escudero and Marcel Keller},\n      title = {Secure Evaluation of Quantized Neural Networks},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/131},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/131}\n}"
}
