Lune

EUROCRYPT2025Top-tier venue

Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting

Nicholas Carlini, Jorge Chávez-Saab, Anna Hambitzer, Francisco Rodríguez-Henríquez, Adi Shamir

Abstract

Deep neural networks (DNNs) are valuable assets, yet their public accessibility raises security concerns about parameter extraction by malicious actors. Recent work by Carlini et al. (Crypto'20) and has drawn parallels between this issue and block cipher key extraction via chosen plaintext attacks. Leveraging differential cryptanalysis, they demonstrated that all the weights and biases of black-box ReLU-based DNNs could be inferred using a polynomial number of queries and computational time. However, their attacks relied on the availability of the exact numeric value of output logits, which allowed the calculation of their derivatives. To overcome this limitation, Chen et al. (Asiacrypt'24) tackled the more realistic hard-label scenario, where only the final classification label (e.g., "dog" or "car") is accessible to the attacker. They proposed an extraction method requiring a polynomial number of queries but an exponential execution time. In addition, their approach was applicable only to a restricted set of architectures, could deal only with binary classifiers, and was demonstrated only on tiny neural networks with up to four neurons split among up to two hidden layers. This paper introduces new techniques that, for the first time, achieve cryptanalytic extraction of DNN parameters in the most challenging hard-label setting, using both a polynomial number of queries and polynomial time. We validate our approach by extracting nearly one million parameters from a DNN trained on the CIFAR-10 dataset, comprising 832 neurons in four hidden layers. Our results reveal the surprising fact that all the weights of a ReLU-based DNN can be efficiently determined by analyzing only the geometric shape of its decision boundaries.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Cryptanalytic Extraction of Deep Neural Networks with Non-linear Activations cites Beyond Slow Signs in High-fidelity Model Extraction
  • Cryptanalytic Extraction of Deep Neural Networks with Non-linear Activations cites Cryptanalytic Extraction of Neural Network Models
  • Beyond Slow Signs in High-fidelity Model Extraction cites Cryptanalytic Extraction of Neural Network Models
  • Beyond Slow Signs in High-fidelity Model Extraction cites Stealing Machine Learning Models via Prediction APIs
  • Beyond Slow Signs in High-fidelity Model Extraction cites Reverse-engineering deep ReLU networks
  • Algebraic Attack on Convolutional Neural Networks with Max Pooling cites Cryptanalytic Extraction of Deep Neural Networks with Non-linear Activations
  • Algebraic Attack on Convolutional Neural Networks with Max Pooling cites Beyond Slow Signs in High-fidelity Model Extraction
  • Algebraic Attack on Convolutional Neural Networks with Max Pooling cites Cryptanalytic Extraction of Neural Network Models
  • Algebraic Attack on Convolutional Neural Networks with Max Pooling cites Reverse-engineering deep ReLU networks
  • Algebraic Attack on Convolutional Neural Networks with Max Pooling cites Navigating the Deep: End-to-End Extraction on Deep Neural Networks
  • Cryptanalytic Extraction of Neural Network Models cites Stealing Machine Learning Models via Prediction APIs
  • Cryptanalytic Extraction of Neural Network Models cites Reverse-engineering deep ReLU networks
  • AICrypto: Evaluating Cryptography Capabilities of Large Language Models cites Cryptanalytic Extraction of Neural Network Models
  • GateBleed: Exploiting On-Core Accelerator Power Gating for High Performance and Stealthy Attacks on AI cites Cryptanalytic Extraction of Neural Network Models
  • GateBleed: Exploiting On-Core Accelerator Power Gating for High Performance and Stealthy Attacks on AI cites Stealing Machine Learning Models via Prediction APIs
  • Navigating the Deep: End-to-End Extraction on Deep Neural Networks cites Beyond Slow Signs in High-fidelity Model Extraction
  • Navigating the Deep: End-to-End Extraction on Deep Neural Networks cites Cryptanalytic Extraction of Neural Network Models
  • Navigating the Deep: End-to-End Extraction on Deep Neural Networks cites Stealing Machine Learning Models via Prediction APIs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Cryptanalytic Extraction of Deep Neural Networks with Non-linear ActivationsRoderick Asselineau, Patrick Derbez, Pierre-Alain Fouque, Brice MinaudCRYPTO 2026 · 8 citations
  2. Algebraic Attack on Convolutional Neural Networks with Max PoolingZirui Chen, Shi Tang, Zhengchao Gao, Yongjia Su et al.CRYPTO 2026 · 4 citations
  3. AICrypto: Evaluating Cryptography Capabilities of Large Language ModelsYu Wang, Yijian Liu, Liheng Ji, Han Luo et al.ICML 2026 · 3 citations
  4. GateBleed: Exploiting On-Core Accelerator Power Gating for High Performance and Stealthy Attacks on AIJoshua Kalyanapu, Farshad Dizani, Darsh Asher, Azam Ghanbari et al.MICRO 2025 · 3 citations
  5. Navigating the Deep: End-to-End Extraction on Deep Neural NetworksHaolin Liu, Adrien Siproudhis, Samuel Experton, Peter Lorenz et al.EUROCRYPT 2026 · 2 citations

Builds on8

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Stealing Machine Learning Models via Prediction APIsFlorian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter et al.USENIX Security 2016 · 2,088 citations
  3. Reverse-engineering deep ReLU networksDavid Rolnick, Konrad P. KordingICML 2020 · 121 citations
  4. Cryptanalytic Extraction of Neural Network ModelsNicholas Carlini, Matthew Jagielski, Ilya MironovCRYPTO 2020 · 109 citations
  5. Beyond Slow Signs in High-fidelity Model ExtractionHanna Foerster, Robert Mullins, Ilia Shumailov, Jamie HayesNeurIPS 2024 · 19 citations

Related papers

  1. Polynomial Time Cryptanalytic Extraction of Neural Network ModelsIsaac Andrés Canales Martinez, Jorge Chávez-Saab, Anna Hambitzer, Francisco Rodríguez-Henríquez et al.EUROCRYPT 2024 · 13 citations
  2. Is the Hard-Label Cryptanalytic Model Extraction Really Polynomial?Akira Ito, Takayuki Miura, Yosuke TodoCRYPTO 2026
  3. Efficiently Learning One Hidden Layer ReLU Networks From QueriesSitan Chen, Adam R. Klivans, Raghu MekaNeurIPS 2021 · 8 citations
  4. Deep Neural CryptographyDavid Gérault, Anna Hambitzer, Eyal Ronen, Adi ShamirEUROCRYPT 2026 · 1 citation
  5. An Exact Poly-Time Membership-Queries Algorithm for Extracting a Three-Layer ReLU NetworkAmit Daniely, Elad GranotICLR 2023
Dusk over the sea between two cliffs drawn in fine vertical lines