Cryptanalytic Extraction of Neural Networks Without Known Architecture Assumption
Yantian Shen, Yi Chen, Anyu Wang, Hongbo Yu, Xiaoyun Wang
Key points
From the paper's conclusion- To the best of our knowledge, this is the first cryptanalytic extraction attack that removes the assumption of known network architecture.
Abstract
Cryptanalytic extraction attacks recover the parameters of a neural network given only black-box access to its raw output. However, all existing attacks rely on a fundamental assumption: the attacker knows the network architecture. For example, regarding ReLU activation-based fully connected networks, the network depth and the dimension of each hidden layer are known. In this paper, we study whether this assumption can be removed. We focus on ReLU fully connected networks and propose a guess-and-determine framework that recovers the architecture and the parameters jointly. The core of our approach is a simple but powerful observation: dimension guessing leaves architecture-sensitive traces in the parameter recovery process. We identify two such traces: (i) a \emph{zero suffix} in the merged weight vectors produced by signature recovery, whose length reveals the number of excess guesses; and (ii) an \emph{equality pattern} in the preimage-based sign recovery, which occurs only when the dimension guess is correct. These two signals give rise to two complementary recovery routes. We further propose two criteria for identifying the second-to-last layer, which is necessary for terminating the guessing process. We implement end-to-end attacks on a wide range of ReLU networks, including both expansive and non-expansive architectures. To the best of our knowledge, this is the first cryptanalytic extraction attack that removes the assumption of known network architecture.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Extraction meets Distillation - cryptanalytic techniques to recover parameters from a Deep Neural NetworkarXiv · 2026
- End-to-End Hard-Label Cryptanalytic Model Extraction Using Efficient Sign RecoveryarXiv · 2026
- Breaking $\mathsf{TraintoDefend}$ via Adaptive Neuron Clustering in Cryptanalytic Model ExtractionarXiv · 2026
- ML Models Are Not Ciphers: Power Analysis for Weight Extraction Is Harder Than You ThinkarXiv · 2026
- Curvature Cryptanalysis of Smooth Transformer Feed-Forward NetworksarXiv · 2026
- NeuroMask: Hardening White-Box Lookup Primitives via Secret-Dependent Neural Network for Time-Critical Autonomous Edge ApplicationsACM Transactions on Autonomous and Adaptive Systems · 2026