{
  "id": "2023/1526",
  "url": "https://opencryptology.org/2023/1526",
  "original_url": "https://eprint.iacr.org/2023/1526",
  "title": "Polynomial Time Cryptanalytic Extraction of Neural Network Models",
  "authors": [
    "Isaac A. Canales-Martínez",
    "Jorge Chavez-Saab",
    "Anna Hambitzer",
    "Francisco Rodríguez-Henríquez",
    "Nitin Satpute",
    "Adi Shamir"
  ],
  "affiliations": null,
  "abstract": "Billions of dollars and countless GPU hours are currently\nspent on training Deep Neural Networks (DNNs) for a variety of tasks.\nThus, it is essential to determine the difficulty of extracting all the parameters of such neural networks when given access to their black-box\nimplementations. Many versions of this problem have been studied over\nthe last 30 years, and the best current attack on ReLU-based deep neural\nnetworks was presented at Crypto’20 by Carlini, Jagielski, and Mironov.\nIt resembles a differential chosen plaintext attack on a cryptosystem,\nwhich has a secret key embedded in its black-box implementation and\nrequires a polynomial number of queries but an exponential amount of\ntime (as a function of the number of neurons).\nIn this paper, we improve this attack by developing several new techniques that enable us to extract with arbitrarily high precision all the\nreal-valued parameters of a ReLU-based DNN using a polynomial number of queries and a polynomial amount of time. We demonstrate its\npractical efficiency by applying it to a full-sized neural network for classifying the CIFAR10 dataset, which has 3072 inputs, 8 hidden layers with\n256 neurons each, and about 1.2 million neuronal parameters. An attack\nfollowing the approach by Carlini et al. requires an exhaustive search\nover 2^256 possibilities. Our attack replaces this with our new techniques,\nwhich require only 30 minutes on a 256-core computer.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Polynomial Time Cryptanalytic Extraction of Neural Network Models” by Isaac A. Canales-Martínez, Jorge Chavez-Saab, Anna Hambitzer, Francisco Rodríguez-Henríquez, Nitin Satpute, Adi Shamir, Cryptology ePrint Archive, Paper 2023/1526, https://eprint.iacr.org/2023/1526. 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-10-06T16:24:50Z",
    "updated": "2024-06-11T08:24:40Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1526.pdf",
    "sha256": "bdcbb2a5e1de1b0eeec5618ac4b0086578071806187d8a972a8cfcb21082239f",
    "size": 693173,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1526/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/1526.pdf",
      "size": 693173,
      "sha256": "bdcbb2a5e1de1b0eeec5618ac4b0086578071806187d8a972a8cfcb21082239f",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/1526/versions/20231017T041010Z.pdf",
      "captured_at": "2023-10-17T04:10:10Z",
      "label": "copy captured 2023-10-17",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20231017041010id_/https://eprint.iacr.org/2023/1526.pdf",
      "size": 708963,
      "sha256": "122b9659b3dcd0a3d3ca66eda4d238e93596b5f5103408eb7cc1ec9cc3a5c656",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260521142958id_/https://eprint.iacr.org/2023/1526.pdf",
      "captured_at": "2026-05-21T14:29:58Z",
      "size": 690084
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1526.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 693173
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1526,\n      author = {Isaac A. Canales-Martínez and Jorge Chavez-Saab and Anna Hambitzer and Francisco Rodríguez-Henríquez and Nitin Satpute and Adi Shamir},\n      title = {Polynomial Time Cryptanalytic Extraction of Neural Network Models},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1526},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1526}\n}"
}
