Polynomial Time Cryptanalytic Extraction of Neural Network Models
Isaac Andrés Canales Martinez, Jorge Chávez-Saab, Anna Hambitzer, Francisco Rodríguez-Henríquez, Nitin Satpute, Adi Shamir
Abstract
Billions of dollars and countless GPU hours are currently spent on training Deep Neural Networks (DNNs) for a variety of tasks. Thus, it is essential to determine the difficulty of extracting all the parameters of such neural networks when given access to their black-box implementations. Many versions of this problem have been studied over the last 30 years, and the best current attack on ReLU-based deep neural networks was presented at Crypto'20 by Carlini, Jagielski, and Mironov. It resembles a differential chosen plaintext attack on a cryptosystem, which has a secret key embedded in its black-box implementation and requires a polynomial number of queries but an exponential amount of time (as a function of the number of neurons). In this paper, we improve this attack by developing several new techniques that enable us to extract with arbitrarily high precision all the real-valued parameters of a ReLU-based DNN using a polynomial number of queries and a polynomial amount of time. We demonstrate its practical efficiency by applying it to a full-sized neural network for classifying the CIFAR10 dataset, which has 3072 inputs, 8 hidden layers with 256 neurons each, and about 1.2 million neuronal parameters. An attack following the approach by Carlini et al. requires an exhaustive search over 2 256 possibilities. Our attack replaces this with our new techniques, which require only 30 minutes on a 256-core computer.
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.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- 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
- Cryptanalytic Extraction of Neural Network Models cites CSI NN: Reverse Engineering of Neural Network Architectures Through Electromagnetic Side Channel
- 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
- CSI NN: Reverse Engineering of Neural Network Architectures Through Electromagnetic Side Channel cites Stealing Machine Learning Models via Prediction APIs
- Privacy Backdoors: Stealing Data with Corrupted Pretrained Models cites Cryptanalytic Extraction of Neural Network Models
- Privacy Backdoors: Stealing Data with Corrupted Pretrained Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Privacy Backdoors: Stealing Data with Corrupted Pretrained Models cites Stealing Machine Learning Models via Prediction APIs
- Privacy Backdoors: Stealing Data with Corrupted Pretrained Models cites Reverse-engineering deep ReLU networks
- Stealing part of a production language model cites Cryptanalytic Extraction of Neural Network Models
- Stealing part of a production language model cites Stealing Machine Learning Models via Prediction APIs
- Stealing part of a production language model cites Reverse-engineering deep ReLU networks
- SoK: Neural Network Extraction Through Physical Side Channels cites CSI NN: Reverse Engineering of Neural Network Architectures Through Electromagnetic Side Channel
- Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting cites Beyond Slow Signs in High-fidelity Model Extraction
- Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting cites Cryptanalytic Extraction of Neural Network Models
- Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting cites Stealing Machine Learning Models via Prediction APIs
- Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting cites Reverse-engineering deep ReLU networks
Cited by top-tier papers12
- Stealing part of a production language modelNicholas Carlini, Daniel Paleka, Krishnamurthy Dj Dvijotham, Thomas Steinke et al.ICML 2024 · 157 citations
- Privacy Backdoors: Stealing Data with Corrupted Pretrained ModelsShanglun Feng, Florian TramèrICML 2024 · 32 citations
- Beyond Slow Signs in High-fidelity Model ExtractionHanna Foerster, Robert Mullins, Ilia Shumailov, Jamie HayesNeurIPS 2024 · 19 citations
- SoK: Neural Network Extraction Through Physical Side ChannelsPéter Horváth, Dirk Lauret, Zhuoran Liu, Lejla BatinaUSENIX Security 2024 · 11 citations
- Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label SettingNicholas Carlini, Jorge Chávez-Saab, Anna Hambitzer, Francisco Rodríguez-Henríquez et al.EUROCRYPT 2025 · 10 citations
Builds on6
- 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
- Stealing Machine Learning Models via Prediction APIsFlorian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter et al.USENIX Security 2016 · 2,088 citations
- CSI NN: Reverse Engineering of Neural Network Architectures Through Electromagnetic Side ChannelLejla Batina, Shivam Bhasin, Dirmanto Jap, Stjepan PicekUSENIX Security 2019 · 334 citations
- Reverse-engineering deep ReLU networksDavid Rolnick, Konrad P. KordingICML 2020 · 121 citations
- Cryptanalytic Extraction of Neural Network ModelsNicholas Carlini, Matthew Jagielski, Ilya MironovCRYPTO 2020 · 109 citations
Related papers
- Is the Hard-Label Cryptanalytic Model Extraction Really Polynomial?Akira Ito, Takayuki Miura, Yosuke TodoCRYPTO 2026
- Navigating the Deep: End-to-End Extraction on Deep Neural NetworksHaolin Liu, Adrien Siproudhis, Samuel Experton, Peter Lorenz et al.EUROCRYPT 2026 · 2 citations
- Deep Neural CryptographyDavid Gérault, Anna Hambitzer, Eyal Ronen, Adi ShamirEUROCRYPT 2026 · 1 citation
- An Exact Poly-Time Membership-Queries Algorithm for Extracting a Three-Layer ReLU NetworkAmit Daniely, Elad GranotICLR 2023
- Efficiently Learning One Hidden Layer ReLU Networks From QueriesSitan Chen, Adam R. Klivans, Raghu MekaNeurIPS 2021 · 8 citations
