Manuscript Offprint
arXiv:2611.07370Breaking via Adaptive Neuron Clustering in Cryptanalytic Model Extraction
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Breaking TraintoDefend via Adaptive Neuron Clustering in Cryptanalytic Model Extraction
Haojie Wu, Haolin Liu, Tianshuo Cong, and Guoyan Zhang
School of Cryptologic Science and Engineering, Shandong University 202337050@mail.sdu.edu.cn
School of Computer Science, Shanghai Jiao Tong University liuhaolinsjtu@sjtu.edu.cn
School of Cryptologic Science and Engineering, Shandong University tianshuo.cong@sdu.edu.cn
School of Cryptologic Science and Engineering, Shandong University guoyanzhang@sdu.edu.cn
Abstract. Cryptanalytic model extraction poses a fundamental threat to deep learning model confidentiality by enabling precise parameter recovery with theoretical guarantees of functional equivalence. To counter this growing threat, TraintoDefend (NeurIPS 2025) was proposed as the first dedicated defense against cryptanalytic extraction and remains the only defense believed to be effective to date. It encourages neurons to learn similar weights so that they switch activation states together, making their individual contributions harder to distinguish. However, we notice that neurons with similar weights need not switch activation states together under small perturbations. Instead, weight similarity can cause the original clustering rule to merge signatures from distinct neurons when only a subset of their normalized weight coordinates agree. Motivated by this observation, we introduce SimBreak, an adaptive clustering rule that breaks the weight-similarity defense of TraintoDefend. SimBreak estimates a relative scale from all jointly observed weight coordinates and uses the same scale to test both weight direction and bias consistency. Across six protected fully connected networks trained on MNIST, SimBreak raises target layer signature recovery from 0% to 100%, with a maximum relative recovery error of . Our work challenges the use of neuron weight similarity as a sufficient basis for protection and establishes adaptive evaluation as essential to assessing cryptanalytic extraction defenses.
Keywords: Cryptanalytic Model Extraction · TraintoDefend · Adaptive Signature Clustering
paradigm, in which clients interact with remotely hosted models solely through inference APIs [7, 9]. Nevertheless, recent progress in cryptanalytic model extraction [2, 4, 5] represents a severe threat. Conventional learning-based extraction mainly approximates task behavior from sampled queries. Cryptanalytic model extraction, by contrast, draws on cryptanalysis principles to design informative queries, thereby recovering hidden parameters with high precision and reconstructing functionally equivalent models, turning black-box access into model possession in effect.
Since Carlini et al. [4] demonstrated how the piecewise affine structure of ReLU networks can be exploited to recover model parameters through output queries, cryptanalytic model extraction has advanced along several directions. Improvements in signature estimation and sign recovery have made extraction more efficient and enabled attacks on deeper networks [16]. Meanwhile, studies of different network architectures [6, 14, 15, 19, 21] and activation functions [1, 18] have explored how structural properties and nonlinear behavior reveal hidden parameters. Moreover, attacks can recover parameter information from hard labels [3, 5, 10, 20] alone by examining decision boundaries. These advances broaden the range of models and interfaces exposed to cryptanalytic extraction, motivating defenses that account for increasingly capable adversaries.
To counter this threat, TraintoDefend [12] was introduced as the first dedicated defense against cryptanalytic extraction, making its robustness a central question for the protection of model parameters. TraintoDefend modifies the training objective to encourage different neurons to learn similar weights. The defense rests on the premise that similar weights cause neurons to switch activation states together, mixing their contributions to local derivative measurements and hindering signature recovery. Because existing attacks recover layers sequentially, the defense can be applied to the first layer alone. The authors report that existing attacks fail to extract the evaluated models within a 48-hour budget. Section 2.3 describes the defense in detail.
However, we highlight that extraction involves several stages, from locating critical points and estimating local signatures to grouping observations and reconstructing individual neurons. The failure of the overall procedure does not by itself establish which stage is affected or whether the obstacle persists under a modified attack. If the defense leaves recoverable signatures accessible but causes the existing implementation to group them incorrectly, its reported protection can be defeated by changing how the attacker processes those observations. Determining whether this is the case directly tests the claimed barrier to parameter recovery. This raises the following question:
Does weight similarity really guarantee security against cryptanalytic model extraction?
1.1 Our Work
Theoretical analysis of weight similarity in cryptanalytic extraction. We characterize when a single perturbation causes multiple neurons to switch activation states in Section 3.1. Joint switching depends on the probe center, direction, and step size, so weight similarity alone does not ensure that a probe crosses multiple activation boundaries. We identify signature clustering as a concrete obstacle introduced by TraintoDefend in the existing extraction attack. As analyzed in Section 3.2, the original rule can merge signatures from distinct neurons when sufficiently many normalized weight coordinates agree, even if the remaining coordinates differ substantially. Graph connectivity then propagates these incorrect matches into mixed clusters, hindering the recovery of individual neuron signatures.
SimBreak for distinguishing neurons with similar weights. To overcome the clustering obstacle introduced by TraintoDefend, SimBreak formulates pairwise signature matching as a test of whether two local observations agree under a common relative scale. It estimates this scale by least squares over all jointly observed weight coordinates, as described in Section 4.1. The resulting normalized residual incorporates discrepancies across every jointly observed coordinate, preventing agreement on a small subset from being sufficient for a match. The rule also applies the fitted scale to the bias estimates, providing an additional check for signatures with nearly collinear weight vectors.
Experimental evaluation of signature recovery with SimBreak. We evaluate SimBreak on six models with varying widths and depths and compare it with the original coordinate agreement rule. Replacing the original rule with SimBreak raises first-layer signature recovery from 0% to 100% across all six models, with a maximum reported relative recovery error of . Complete recovery is achieved across widths from 8 to 64 in two-hidden-layer networks and also in the deeper models, as shown in Section 5.4. These results demonstrate that SimBreak overcomes the clustering barrier imposed by TraintoDefend and restores recovery of the signatures that the defense seeks to protect.
In summary, our main contributions are as follows.
– A theoretical analysis exposes a weakness in TraintoDefend's protection mechanism and identifies signature misclustering as a concrete barrier to the existing attack.
– To overcome this barrier, we propose SimBreak, an adaptive clustering rule that jointly evaluates weight direction and bias consistency under a relative scale fitted over all commonly observed weight coordinates.
– SimBreak bypasses the protected layer signature recovery barrier of TraintoDefend, raising recovery from 0% to 100% across all six evaluated models with a maximum reported relative error of .
1.2 Organization
The paper proceeds from the threat model and extraction background in Section 2, through the failure analysis in Section 3, to the adaptive rule in Section 4. Section 5 presents the experimental evaluation. Section 6 discusses what these findings imply for defense evaluation.
2 Background
In this section, we introduce the basic notation and definitions used throughout this work, largely following the conventions adopted in prior works [4,16].
2.1 Basic Notation and Definitions
Definition 1 (ReLU-Fully Connected Network). A fully connected network with hidden layers is a function with parameters and composition
Given a network input , the affine map in layer yields , where , , and . The activation function acts on each component after each hidden layer; the output layer is affine.
In this work, we consider the ReLU as the activation function, i.e., , which has been the most extensively studied among these lines of research.
Definition 2 (Hidden Layer and Neuron). Starting from , the pre-activation and activation of hidden layer are
Neuron has pre-activation and activation . It is active when and inactive otherwise.
Definition 3 (Critical Point and Critical Set). An input is a critical point of neuron in layer if . Its critical set on the input domain is .
Definition 4 (Signature). A signature of neuron in hidden layer consists of a weight and bias with a shared scale:
2.2 Cryptanalytic Extraction Attacks
Cryptanalytic extraction reconstructs fully connected ReLU networks by exploiting their piecewise affine structure through queries that return raw numerical outputs or hard labels [3–5]. The attack proceeds layer by layer, recovering neuron signatures and then determining their signs before moving to the next layer. Since TraintoDefend modifies the similarity of weights, we focus on the observation and clustering steps of signature recovery in this section.
Step-I: Locating Critical Points. The attacker first searches for critical points where a neuron changes its activation state. Specifically, the attacker probes the network along a chosen input line, on which the output is piecewise affine. Differences between the slopes estimated on nearby intervals indicate a transition between affine regions. The attacker then narrows the interval containing the transition through repeated subdivision and additional queries. This refinement localizes a critical point, around which finite difference measurements can be used to estimate the associated neuron's parameters [4,8].
Step-II: Signature Recovery. At an isolated critical point, finite difference measurements on either side reveal the change in the local derivative. For a neuron in the first layer, this change is proportional to its weight. For deeper neurons, the attacker uses the recovered preceding layers to interpret the measurements in the coordinates of the target layer.
These measurements determine weight ratios rather than absolute parameter values. The unknown scale reflects the contribution of the subsequent network to the observed output change. Signature recovery combines this information to reconstruct the weights and associated bias up to scale. Positive homogeneity of ReLU allows this scaling to be compensated by dividing the weight by [4]. Local derivative measurements initially determine the scale only up to an unknown sign, which is resolved during sign recovery. The information obtained at each critical point is represented as a local signature observation.
Definition 5 (Signature Observation). A local observation at a critical point of a neuron in hidden layer consists of a weight estimate , an associated bias estimate , and observed coordinates . For an observation from neuron , these estimates satisfy
The same scale applies to the weight and bias and may have either sign. For any two observations from the same layer, their common observed coordinates are .
In deeper layers, if some neurons in the preceding layer remain inactive near the critical point, their outputs are locally zero, so the corresponding weights cannot be inferred from that local signature observation. These unresolved coordinates are treated as temporarily missing.
The attacker therefore collects observations at multiple critical points. Points belonging to the same neuron may occur under different activation patterns of the preceding layers, exposing complementary subsets of its weights. Because the neuron identities and scales of these observations are unknown, the attacker clusters them before combining their recovered coordinates.
Definition 6 (Signature Clustering based on Coordinate Agreement). For observations from the same layer, choose a common coordinate with nonzero estimated weights and normalize to eliminate the unknown scaling factor :
The relative discrepancy at coordinate is
Let contain the common coordinates for which this comparison is finite and well defined. The number of agreeing coordinates is
The rule connects observations when for at least one tested normalization coordinate . The connected components form candidate neuron weight clusters.
Within each cluster, the attacker estimates the relative scales of the observations from their overlapping coordinates. The aligned observations are then combined to recover coordinates that were missing at individual critical points. Multiple estimates of the same coordinate also provide redundancy for reducing numerical error [4,8]. If a candidate signature remains incomplete, the attacker collects further critical points and updates the grouping. The recovered direction and a corresponding critical point determine the bias under the same scale.
Step-III: Sign Recovery. It leaves an orientation ambiguity in the Signature Recovery step: multiplying both the weight and bias by a negative scalar preserves their ratios but reverses the active side of the ReLU. Sign recovery aims to resolve this ambiguity. Early extraction attacks used an expensive search over sign assignments, while subsequent work developed more effective procedures for recovering these signs [2,4,8,10,20].
Step-IV: Layer-by-Layer Peeling. Once the signatures and signs of the target layer have been recovered, the attacker can compute its activations for each queried input. These activations serve as known inputs to the next layer, allowing the attacker to repeat the above operations for the next layer [4,16]. The process continues through the hidden layers, after which the final affine layer is recovered by solving a linear system using the recovered hidden activations and oracle outputs.
2.3 TraintoDefend
Kurian and Aysu [12] proposed TraintoDefend as the first dedicated defense against cryptanalytic parameter extraction. The defense targets a premise of signature recovery: when a local perturbation crosses an activation boundary associated with a single neuron, the resulting change in the model's output derivatives can reveal that neuron's weight direction. If the same probe crosses several activation boundaries, the measured change can instead combine contributions from multiple neurons, making it harder to attribute the measurement to any one of them. This motivates the design of TraintoDefend, which encourages neurons to learn similar weights with the aim of making them switch activation states together.
For a scalar model output, consider a perturbation in the input space of layer , with . Suppose that the activation patterns in subsequent layers remain fixed and that only neurons and change states across the probe. The resulting difference between the output gradients with respect to is
where and are the effective downstream coefficients and indicate the directions of the state changes. When only neuron changes state and its contribution is nonzero, the gradient difference reveals its weight direction up to sign. When both neurons change states, the gradient difference combines their contributions and can obscure their individual weight directions. Motivated by this observation, TraintoDefend augments the task loss with a regularizer that encourages selected neuron pairs to learn similar weights.
Specifically, TraintoDefend augments the task loss with a regularization term that penalizes weight differences between selected neuron pairs:
where contains the selected neuron pairs in the protected layer , and controls the strength of the regularizer. The two terms serve different objectives: the task loss rewards predictive performance, while the similarity penalty reduces the distance between the weight vectors of the selected pairs. The defense controls this trade-off through both the regularization strength and the fraction of pairs included in . The regularizer acts on the weights during training, so the defense requires no additional operation at inference time. The authors also consider applying the penalty only to the first layer, corresponding to in Equation (1). This choice exploits the sequential structure of existing extraction attacks, which use the recovered parameters of earlier layers to compute the inputs needed for recovering later ones.
Weight similarity can affect two distinct stages of the attack. During local signature estimation, the relevant question is whether a single probe actually crosses multiple activation boundaries. During clustering, the attack must decide whether signatures estimated at different critical points originate from the same neuron. The original extraction attack matches two signature observations when sufficiently many of their normalized weight coordinates agree within a prescribed tolerance. Agreement on sufficiently many coordinates can therefore cause the rule to merge observations from distinct neurons, even when their activation boundaries can be probed separately. Section 3 analyzes both mechanisms and examines how they arise.
2.4 Other Defenses
Noman et al [17]. investigate output rounding as a defense against cryptanalytic extraction, reducing the precision of returned outputs while leaving the model parameters unchanged. Rounding suppresses the small output differences used by the original attack, disrupting critical point search and local derivative estimation. However, their adaptive attack recovers models by estimating directional derivatives over larger probing intervals. Moreover, cryptanalytic extraction has also been demonstrated in the hard-label setting, where the attacker observes only predicted class labels [3, 5]. Together, these results show that restricting output precision alone does not generally prevent cryptanalytic extraction. Against this backdrop, TraintoDefend emerged as the first, and thus far the only, defense believed to be effective against cryptanalytic model extraction.
2.5 Threat Model
We follow the threat model considered by TraintoDefend, and prior cryptanalytic extraction attacks [4, 8, 12]. A model provider trains and deploys a fully connected ReLU network , and an adversary attempts to recover its parameters through oracle queries. We consider an adaptive adversary that knows the defense mechanism and adjusts the extraction procedure to bypass its protection.
Defender Goals and Resources. The defender controls the training process and may modify the training objective to resist cryptanalytic parameter extraction. It applies TraintoDefend to encourage similarity between the weights of selected neurons while maintaining predictive performance. The defender chooses the regularization strength, the protected layers, and the neuron pairs subject to regularization. Its goal is to prevent the adversary from recovering the model parameters through inference queries. The protection is embedded in the trained parameters, while the network architecture and inference interface remain unchanged. We consider protection embedded in the trained model, with no additional protective mechanism during inference. Accordingly, query filtering, rate limiting, output perturbation, and access monitoring are outside this setting. This allows us to examine whether the similar weights induced by TraintoDefend can resist an adaptive extraction under the same query interface.
Adversarial Goals and Resources. The adversary has adaptive query access to an oracle . It knows the network architecture and activation functions and may submit arbitrary inputs from . We consider raw numerical output access, under which the oracle returns the complete model output. The adversary has no access to the target parameters, training data, or intermediate activations.
The adversary knows the mechanism of TraintoDefend, and may exploit this knowledge when designing the attack. In particular, it may adapt the comparison and clustering of local observations to account for the neuron weight similarity induced by the defense. The adversary aims to recover parameters that yield a functionally equivalent model [4,11]. Parameter recovery accounts for neuron permutations and positive scaling transformations that preserve the network's function. For an evaluation distribution over , the extracted model is -functionally equivalent to the target if
3 Revisiting TraintoDefend
TraintoDefend motivates its defense by arguing that neurons with similar weights can switch activation states together, causing local derivative measurements to combine their contributions. Our key insight is that weight similarity alone does not determine which neurons switch under a given probe, yet it can directly affect how the original attack groups the resulting signature observations. We analyze these two effects separately.
3.1 Conditions for Joint Activation Changes
Consider a critical point of neuron in layer , so that . Let be a perturbation direction and the probe step size. Suppose that the activation patterns in layers remain fixed along the probe segment . The map from the network input to the input of layer is affine along this segment, giving
where is the linear part of the affine map and . The preactivation of another neuron j at the two endpoints is therefore
These endpoint preactivations have strictly opposite signs if and only if
For a probe that crosses the critical boundary of neuron , this inequality determines whether it also strictly crosses the boundary of neuron . The left-hand side measures how far the probe center is from zero preactivation for neuron , while the right-hand side measures how much the probe can change that preactivation. If , a sufficiently small step along the fixed direction avoids crossing neuron 's boundary. Thus, similarity between the weight rows of neurons and alone does not establish that the same probe crosses both boundaries. We will evaluate how often probes around the critical points found by the attack cross multiple activation boundaries in Section 5.2.
3.2 Why Weight Similarity Can Cause Clustering Errors
We next analyze how the signature observations are processed. The next procedure clusters observations believed to originate from the same neuron and combines them to reconstruct its signature. Our inspection identifies a failure mechanism in this association step: observations from distinct neurons can satisfy the original matching criterion and enter the same cluster.
Clustering Based on Coordinate Agreement. The original attack groups local signature observations using the coordinate agreement rule in Definition 6. For each tested normalization coordinate, the rule counts how many common coordinates agree within a relative tolerance. For observations of dimension , the used count threshold
At , agreement on ten valid coordinates suffices, including the normalization coordinate when its comparison is valid. Once the count threshold is met, discrepancies on the remaining coordinates do not prevent a match.
Effect of Weight Similarity. Consider distinct neurons and in layer with . For a normalization coordinate at which both weights are nonzero, the difference between the normalized weights at coordinate is
When the normalization weights and the compared weights are bounded away from zero, sufficiently small differences at coordinates and make the relative discrepancy at coordinate small. If this occurs on enough coordinates, the rule can match observations from distinct neurons even when their full weight vectors are not proportional. The attack then forms clusters as connected components of the matching graph. A single erroneous edge can join two previously separate components, even when most pairs of observations across the two components would fail the matching test. Weight similarity can therefore disrupt signature recovery through incorrect associations even when individual activation boundaries can be probed separately. We will evaluate cross-neuron matches and the resulting mixed clusters in Section 5.3.
4 SimBreak: Clustering beyond Coordinate Agreement
Our analysis shows that coordinate agreement can cause the original clustering rule to associate observations from different neurons. We introduce SimBreak: an adaptive criterion that checks whether a single relative scale consistently aligns the observations over their common coordinates, and also requires biases to agree under the same scale. The resulting rule uses consistency across the observed weights and biases to distinguish neurons with similar weights.
4.1 Aligning Local Observations
Local observations recovered at different critical points may have different scales, even when they originate from the same neuron. Before comparing two observations, we therefore estimate their relative scale over the coordinates available in both. For observations and , let . We require and exclude unobserved coordinates from the comparison.
If both observations originate from neuron in layer , their weight estimates satisfy
Consequently, a single relative scale should align the two estimates across their common coordinates. We estimate this scale by minimizing the squared alignment residual:
When has nonzero norm, the solution is
The estimated scale may be positive or negative because the signs of the local observations have not yet been resolved. This alignment uses all common coordinates rather than dividing by a single selected weight. We next use to assess direction consistency and apply the same scale to check bias consistency.
4.2 Clustering based on Direction and Bias Matching
Using the estimated relative scale , we compare the observations through their weight directions and biases. Observations from the same neuron should agree in both quantities under this shared scale.
Direction Matching. For weight estimates on the common coordinates, we define the distance of direction as
This normalized distance measures how closely the two observations align across all common coordinates. Unlike the original coordinate count, it incorporates discrepancies on every compared coordinate. The observations pass the direction test when .
Since may have either sign, the test accepts both parallel and antiparallel observations. In particular, if is the angle between the restricted weight estimates, then
The comparison therefore does not require resolving the signs before clustering.
Bias Matching. Direction matching alone cannot distinguish neurons whose critical hyperplanes are parallel but have different offsets (i.e., different bias). We therefore compare the bias distance using the same scale obtained from the weights:
The observations pass the bias test when . We accept a pair (i.e., they should be clustered into a group) only when both tests pass:
5 Experiment
We evaluate the behavior of TraintoDefend and the effectiveness of SimBreak through the following research questions (RQs):
– RQ1: Does TraintoDefend cause multiple neurons to change activation states around the critical points?
– RQ2: How does TraintoDefend affect signature clustering in the original extraction attack?
– RQ3: Can SimBreak recover the signatures of neurons in models protected by TraintoDefend?
5.1 Experimental Setup
Implementation and Models. We use the publicly released implementation of TraintoDefend and the public models provided with it [12]. The models are fully connected networks with ReLU hidden layers trained on MNIST [13], with 784 input dimensions and a scalar output. The activation experiments use protected models with hidden layers , , , , , and .
The attacker can directly reuse a recovered signature for all neurons with identical weights and biases to preserve the network’s function. If the grouping is ambiguous, the attacker can enumerate candidate groupings, recover the remaining layers for each, and compare the resulting networks with the target on the same inputs. This search increases extraction cost but can yield a functionally equivalent network.
Table 1. Number of probes crossing multiple first layer activation boundaries in models protected by TraintoDefend. : the number of critical points, : the total number of probes at each step size. At each critical point, we use 1571 perturbation directions.
| Model | Step Size | ||||||
|---|---|---|---|---|---|---|---|
| 784-8 2-1 | 74 | 116254 | 0 | 0 | 0 | 0 | 715 |
| 784-16 2-1 | 187 | 293777 | 0 | 0 | 0 | 0 | 502 |
| 784-16 3-1 | 192 | 301632 | 0 | 0 | 0 | 0 | 19 |
| 784-16 8-1 | 175 | 274925 | 0 | 0 | 0 | 0 | 138 |
| 784-32 2-1 | 192 | 301632 | 0 | 0 | 0 | 15 | 4436 |
| 784-64 2-1 | 192 | 301632 | 0 | 0 | 0 | 0 | 10385 |
Evaluation Procedure. We focus on the signature recovery of the first hidden layer, which is also the configuration recommended by TraintoDefend. For RQ1, we run the public critical point search and inspect the activation states around the returned points using the model parameters. At each critical point, we use 1,571 perturbation directions and evaluate the same directions at different finite difference step sizes. We count the probes in which at least two neurons in the first layer change activation states. For RQ2, we examine the clusters produced by the original attack and record the neuron identities involved in incorrect clustering and the erroneous connections. For RQ3, we evaluate signature recovery after replacing the original matching rule with SimBreak. We report the number of recovered neurons and the relative error of the recovered weights after accounting for scale and sign ambiguity: .
5.2 RQ1: Activation Changes around Critical Points
Figure 1 compares the distributions of coordinate-wise weight differences between pairs of first-layer neurons in models trained with and without TraintoDefend. The

Fig. 1. Distributions of per-coordinate weight differences in the first layer of different models trained on MNIST. Distributions for protected models extend further toward small differences.
Table 2. Clustering results of the original attack on normal and TraintoDefend models. Size, IDs, and Edges denote the number of neurons incorrectly clustered together, their indices, and the resulting erroneous clustering edges.
| Model Mode | Model | Width | Error Clustering | ||
|---|---|---|---|---|---|
| Size | IDs | Edges | |||
| Normal | 784-8 × 2-1 | 8 | 0 | N/A | 0 |
| 784-16 × 2-1 | 16 | 0 | N/A | 0 | |
| 784-32 × 2-1 | 32 | 0 | N/A | 0 | |
| 784-64 × 2-1 | 64 | 0 | N/A | 0 | |
| TraintoDefend | 784-8 × 2-1 | 8 | 8 | 0, 1 ... 6, 7 | 83 |
| 784-16 × 2-1 | 16 | 16 | 0, 1 ... 14, 15 | 337 | |
| 784-32 × 2-1 | 32 | 32 | 0, 1 ... 30, 31 | 12338 | |
| 784-64 × 2-1 | 64 | 64 | 0, 1 ... 62, 63 | 50074 | |
distributions for models trained with TraintoDefend show a greater concentration of small differences, indicating that the similarity penalty brings the weight vectors closer together. We then examine whether this increased weight similarity leads to joint activation changes under small perturbations around the critical points found by the attack. We examine whether perturbations around the critical points returned by the attack cause multiple neurons to change activation states. As shown in Table 1, no probes cross multiple first layer boundaries at step sizes , , or across the six protected models. At , only the model exhibits such crossings, with 15 occurrences among 301,632 probes. The remaining five models exhibit no multiple crossings at this step size. Increasing the step size to produces multiple crossings in all six models, with counts ranging from 19 to 10,385. Since the same critical points and perturbation directions are used across step sizes, this increase reflects the effect of wider probes crossing additional boundaries. The results show that the weight similarity induced by TraintoDefend does not lead to frequent joint activation changes at the inspected critical points under small perturbations.
5.3 RQ2: Clustering Errors in the Original Attack
We examine how TraintoDefend affects the assignment of local observations to individual neurons. Table 2 reports the clustering results for ordinary and protected models with hidden widths 8, 16, 32, and 64. No erroneous connections are reported for the ordinary models. For the protected models, incorrect clustering involves all 8, 16, 32, and 64 neuron identities. The corresponding numbers of erroneous edges are 83, 337, 12,338, and 50,074. These connections show that the original matching rule accepts observations from distinct neurons as belonging to the same neuron. Because the attack forms clusters through graph connectivity, such connections can also merge otherwise separate groups of observations. The results support the mechanism analyzed in Section 3.2: agreement on sufficiently
Table 3. First layer signature recovery on FCNs protected by TraintoDefend. SimBreak achieves complete signature recovery across all six models. N/A indicates unavailable measurements for unsuccessful runs.
| Clustering Rule | Structure | Correct Clustering | Recovery Rate (%) | Relative Error | Critical Points |
|---|---|---|---|---|---|
| Coordinate Agreement | ✕ | 0.00 | N/A | N/A | |
| ✕ | 0.00 | N/A | N/A | ||
| ✕ | 0.00 | N/A | N/A | ||
| ✕ | 0.00 | N/A | N/A | ||
| ✕ | 0.00 | N/A | N/A | ||
| ✕ | 0.00 | N/A | N/A | ||
| SimBreak (Ours) | ✓ | 100.00 | |||
| ✓ | 100.00 | ||||
| ✓ | 100.00 | ||||
| ✓ | 100.00 | ||||
| ✓ | 100.00 | ||||
| ✓ | 100.00 |
many normalized coordinates does not reliably establish neuron identity when weights are similar. Signature clustering is therefore a concrete failure point in the evaluated attack, motivating the use of a criterion that checks consistency across the observed weights and biases.
5.4 RQ3: Signature Recovery with SimBreak
We evaluate whether SimBreak enables signature recovery in the protected models. As shown in Table 3, the original attack fails to cluster correctly and reports a recovery rate of 0% across all six models. With SimBreak, clustering succeeds, and the recovery rate reaches 100% for the first layer in every configuration. The relative errors range from to . For networks with two hidden layers, complete recovery is maintained as the width increases from 8 to 64. The and models also achieve complete first layer signature recovery, with relative errors of and , respectively. These results demonstrate a bypass of the defense at the protected layer signature recovery stage across every evaluated configuration. By checking direction and bias consistency, SimBreak separates local signature observations that the original criterion incorrectly associates, turning the original attack's 0% recovery into 100% recovery without modifying the defended models.
6 Discussion
Our attack challenges the protection offered by the first dedicated defense against cryptanalytic parameter extraction. Across the evaluated models, the defense's reported barrier to protected layer signature recovery disappears once the attacker adapts the clustering criterion. A defense may disrupt assumptions embedded in an existing implementation while leaving useful parameter information accessible through model outputs. In the evaluated models, replacing the original clustering criterion enables protected layer signature recovery without changing the defended networks. The failure of an unchanged attack therefore does not establish resistance to adaptive extraction. Defenses based on neuron similarity must account for attacks that exploit both weight directions and affine offsets, rather than relying on the coordinate matching assumptions of an existing implementation.
7 Conclusion
In this paper, we challenge TraintoDefend's premise that weight similarity prevents cryptanalytic extraction by causing neurons to switch activation states together. Joint activation changes are rare under small perturbations around the critical points, while our analysis identifies a clustering obstacle caused by erroneous matches between distinct neuron signatures. To overcome this obstacle, we propose SimBreak, which jointly assesses weight direction and bias consistency under a relative scale fitted over all observed weight coordinates. Across six models, SimBreak raises signature recovery from 0% to 100% in the protected layer, with maximum relative error of . These results demonstrate that SimBreak can bypass the signature recovery barrier imposed by TraintoDefend and underscore the need to evaluate defenses against adaptive attacks.
References
-
Asselineau, R., Derbez, P., Fouque, P.A., Minaud, B.: Cryptanalytic extraction of deep neural networks with non-linear activations. Cryptology ePrint Archive, Paper 2026/253 (2026), https://eprint.iacr.org/2026/253
-
Canales-Martínez, I.A., Chávez-Saab, J., Hambitzer, A., Rodríguez-Henríquez, F., Satpute, N., Shamir, A.: Polynomial time cryptanalytic extraction of neural network models. In: Annual International Conference on the Theory and Applications of Cryptographic Techniques. pp. 3–33. Springer (2024)
-
Carlini, N., Chávez-Saab, J., Hambitzer, A., Rodríguez-Henríquez, F., Shamir, A.: Polynomial time cryptanalytic extraction of deep neural networks in the hard-label setting. In: Annual International Conference on the Theory and Applications of Cryptographic Techniques. pp. 364–396. Springer (2025)
-
Carlini, N., Jagielski, M., Mironov, I.: Cryptanalytic extraction of neural network models. In: Annual international cryptology conference. pp. 189–218. Springer (2020)
-
Chen, Y., Dong, X., Guo, J., Shen, Y., Wang, A., Wang, X.: Hard-label cryptanalytic extraction of neural network models. In: International Conference on the Theory and Application of Cryptology and Information Security. pp. 207–236. Springer (2024)
-
Chen, Z., Tang, S., Gao, Z., Su, Y., Qin, L., Dong, X.: Algebraic cryptanalytic extraction on hard-label neural networks. Cryptology ePrint Archive, Paper 2026/1164 (2026), https://eprint.iacr.org/2026/1164
-
Crankshaw, D., Wang, X., Zhou, G., Franklin, M.J., Gonzalez, J.E., Stoica, I.: Clipper: A low-latency online prediction serving system (2017), https://arxiv.org/abs/1612.03079
-
Foerster, H., Mullins, R., Shumailov, I., Hayes, J.: Beyond slow signs in high-fidelity model extraction. Advances in Neural Information Processing Systems 37, 19496–19522 (2024)
-
Gan, W., Wan, S., Philip, S.Y.: Model-as-a-service (maas): A survey. In: 2023 IEEE International Conference on Big Data (BigData). pp. 4636–4645. IEEE (2023)
-
Ito, A., Miura, T., Todo, Y.: End-to-end hard-label cryptanalytic model extraction using efficient sign recovery. Cryptology ePrint Archive, Paper 2026/2097 (2026), https://eprint.iacr.org/2026/2097
-
Jagielski, M., Carlini, N., Berthelot, D., Kurakin, A., Papernot, N.: High accuracy and high fidelity extraction of neural networks. In: 29th USENIX security symposium (USENIX Security 20). pp. 1345–1362 (2020)
-
Kurian, A., Aysu, A.: Train to defend: First defense against cryptanalytic neural network parameter extraction attacks. In: Belgrave, D., Zhang, C., Lin, H., Pascanu, R., Koniusz, P., Ghassemi, M., Chen, N. (eds.) Advances in Neural Information Processing Systems. vol. 38, Main Conference, pp. 23926–23946. Curran Associates, Inc. (2025). https://doi.org/10.52202/085713-0807, https://proceedings.neurips.cc/paper_files/paper/2025/file/223eb69a2f2fb97fde58eaa958babb7a-Paper-Conference.pdf
-
LeCun, Y., Bottou, L., Bengio, Y., Haffner, P.: Gradient-based learning applied to document recognition. Proceedings of the IEEE 86(11), 2278–2324 (1998)
-
Li, C., Zhuang, L., Li, D., Tang, Y., Gong, Z.: Polynomial-time cryptanalytic extraction of graph neural networks in the hard-label setting. Cryptology ePrint Archive, Paper 2026/719 (2026), https://eprint.iacr.org/2026/719
-
Liu, H., Siproudhis, A., Boura, C., Peyrin, T.: Model extraction of convolutional neural networks with max-pooling. Cryptology ePrint Archive, Paper 2026/464 (2026), https://eprint.iacr.org/2026/464
-
Liu, H., Siproudhis, A., Experton, S., Lorenz, P., Boura, C., Peyrin, T.: Navigating the deep: End-to-end extraction on deep neural networks. In: Annual International Conference on the Theory and Applications of Cryptographic Techniques. pp. 482–512. Springer (2026)
-
Noman, I., Vukelic, M., Jasuja, V.: Output rounding is not a free defense against cryptanalytic neural network extraction. Course Report 6.5610, Massachusetts Institute of Technology (2026), https://65610.csail.mit.edu/2026/reports/cryptanalytic_nn_extract.pdf, MIT 6.5610: Applied Cryptography, Spring 2026
-
Qi, X., Lei, H., Wei, L., Sun, X., Wang, M.: Cryptanalytic extraction of neural networks with various activation functions. Cryptology ePrint Archive, Paper 2026/178 (2026), https://eprint.iacr.org/2026/178
-
Sun, X., Lei, H., Wei, L., Qi, X., Hu, K., Wang, M., Wang, W.: Cryptanalytic extraction of convolutional neural networks. In: Australasian Conference on Information Security and Privacy. pp. 123–147. Springer (2026)
-
Tang, S., Chen, Z., Su, Y., Gao, Z., Qin, L., Dong, X.: Normal alignment: Improved cryptanalytic sign recovery on hard-label networks. Cryptology ePrint Archive, Paper 2026/2061 (2026), https://eprint.iacr.org/2026/2061
-
Wang, S., Lei, H., Wei, L., Liu, Q., Hu, K., Wang, M.: Cryptanalytic extraction of multi-head softmax attention models. Cryptology ePrint Archive, Paper 2026/1678 (2026), https://eprint.iacr.org/2026/1678