Adversarial examples crafted on one model often fool another model. This property, called transferability, is what makes zero-query black-box attacks practical. The threat is sharpest when a company publishes a compressed on-device copy of its private server model: that copy becomes an almost perfect local stand-in for the attacker. The usual defenses each pay a different price. Adversarial training lowers clean accuracy. Diffusion purification, which washes every input through a generative denoiser, distorts clean images and costs many network passes per query. Detectors that read a model's hidden activations reject unusual but legitimate inputs.
This note proposes measuring a specific asymmetry and then exploiting it. Misclassification may transfer between models because models trained on the same data share the same geometry of overlapping features. The low-density "weirdness" an attack leaves in hidden activations may instead be specific to each model. If that holds, an attacker working from a surrogate cannot make an example that both fools the private model and looks normal to that model's private activation monitor. A server could then run cheap activation monitoring on every query, send only the flagged ones to an expensive purifier, and keep clean accuracy and throughput almost untouched. The first deliverable is the measurement itself. The defense is only worth building if the measured gap exists.
Core Claim
Two published findings suggest the asymmetry. The superposition account of vulnerability (Adversarial Vulnerability from Interference Between Features in Superposition) shows that when networks pack more concepts than they have hidden dimensions, attacks exploit cross-feature interference. Models trained on correlated data converge to the same interference geometry, and transfer rises from 5% to 98%. That explains why the label flip transfers. Separately, I-defender (Robust Detection of Adversarial Attacks by Modeling the Intrinsic Properties of Deep Neural Networks) models per-class hidden-state densities with Gaussian mixtures. It reports that surrogate-crafted attacks land in low-density regions of the target, with detection AUC up to 0.97 on ImageNet, which it attributes to models learning distinct internal manifolds.
Neither paper asks the decisive question. I-defender's transfer numbers pool successful and failed transfers, and its surrogate attacker never tried to evade a monitor. The superposition paper never looks at density. Our claim is about successful, monitor-aware transfer attacks. We define the evasion transfer gap as
$$ \Delta = P(\text{fool } T) - P(\text{fool } T \wedge \text{evade } M_T), $$
where $T$ is the private target classifier and $M_T$ is its activation monitor. Both probabilities are computed over examples that an attacker crafted on a surrogate $S$ to fool $S$ and evade the surrogate's own monitor $M_S$.
We predict three things. $\Delta$ is large for independently trained surrogates. It shrinks for compressed siblings of the target, as in Publishing Efficient On-device Models Increases Adversarial Vulnerability, which reports up to 100× more vulnerability from siblings. It stays meaningfully positive even then, because pruning and quantization change density structure more than they change decision geometry. If $\Delta$ is large, gated purification is sound against transfer attackers. That is precisely the threat model where the attacker cannot query or differentiate through the private gate.
How This Differs From the Closest Work
Three prior lines motivate the gating idea but leave the transfer question untouched.
CARSO (Blending adversarial training and representation-conditional purification via aggregation improves adversarial robustness) conditions a generative purifier on classifier activations. It sends every input through eight reconstructions, pays about 5.6% clean accuracy on CIFAR-10, and does not study transfer.
ATAC (ATAC: Augmentation-Based Test-Time Adversarial Correction for CLIP) already uses a gate: it corrects CLIP embeddings only when drift across augmentations is aligned. So "gate the correction to protect clean accuracy" is not new. ATAC also does not ask whether its gate survives a surrogate-crafted, gate-aware attack.
DiffPure (Diffusion Models for Adversarial Purification) and GDMP (Guided Diffusion Model for Adversarial Purification) purify every input independently of the classifier's internal state.
What is new here is not the gate. It is the claim, which can be tested and falsified, that monitor evasion transfers worse than misclassification, together with a defense whose security argument rests on that measured gap.
Some prior work constrains the design. I-defender itself warns that white-box attackers who know the mixture parameters can stay in high-density regions, so we make no white-box security claim. Distillation-guided routing (Interpret Neural Networks by Identifying Critical Data Routing Paths) shows that adversarial inputs follow the true class's internal paths in early layers and diverge in deep layers. Its per-input optimization is too slow for a gate, so we keep only the qualitative signal and compute it cheaply.
Research Program
The monitor. It must cost about one forward pass and work on convolutional networks and ViTs. The file notes that spatial position dependence makes mixture models hard to apply to convolutional feature maps. We sidestep this by globally pooling feature maps (or averaging ViT tokens) at three to four depths. At each depth we fit class-conditional Gaussians on clean training data, and we score an input by its likelihood under the predicted class.
We add one trajectory feature in the spirit of the routing mismatch: the disagreement between the nearest class prototype at an early layer and the final prediction. A small logistic combiner is fit on clean data plus generic noise, never on attack examples. This keeps the monitor attack-agnostic. Its threshold is set so that a fixed fraction of clean validation inputs is flagged; we use 5%.
The measurement. For each surrogate–target pair we run four attacker variants against the surrogate:
- plain PGD;
- AutoAttack-style ensembles from RobustBench: a standardized adversarial robustness benchmark;
- a monitor-aware attack that adds the surrogate's own density loss, so the attacker builds and evades a replica monitor;
- the same monitor-aware attack with input-transformation averaging to improve transfer.
We record misclassification transfer, monitor evasion on the target, and their conjunction. From these we compute $\Delta$.
We vary the surrogate–target relationship along one axis:
- pruned, quantized, and distilled siblings, using the pairs from the on-device paper;
- independently trained models of the same architecture;
- models of different architectures, CNN to ViT.
The superposition paper predicts that transfer tracks shared interference geometry. We test whether evasion tracks something else. Concretely, we correlate per-pair $\Delta$ with the similarity of class-direction geometry in the penultimate layer and with the overlap of the two models' Gaussian densities. This tells us why the gap exists, not just whether it does.
The defense. Flagged inputs go to diffusion purification (DiffPure with a fixed timestep, plus GDMP's guided variant) and are then classified. Unflagged inputs are classified directly. Because purification only runs on a few percent of clean traffic, its clean-accuracy damage and latency are confined to that slice.
Baselines
The naive reference is the undefended target. It sets clean accuracy and shows how badly transfer attacks hurt.
The strongest competitor on robustness is always-on diffusion purification. Its clean penalty and per-query cost are exactly what gating aims to avoid. GDMP reports 90.1% robust accuracy under PGD on CIFAR-10 and 70.94% on ImageNet under adaptive attacks. DiffPure reports +5.44% robust accuracy over the best adversarial training on CIFAR-10. We found no reported result on Lacuna for either method's accuracy against transfer attacks from on-device siblings. We therefore run both ourselves, using the same classifier, the same attack sets, and the same diffusion checkpoint and timestep as the gated system. Beating them means matching their transfer-robust accuracy within two points while recovering at least half of their clean-accuracy loss and cutting mean per-query cost by roughly an order of magnitude.
The strongest representation-coupled competitor is CARSO, which reports 76.13% AutoAttack robust accuracy on CIFAR-10 with a ~5.6% clean drop. It needs an adversarially trained backbone, so we compare it against our gate placed on top of the same RobustBench backbone, both evaluated under our transfer attacks.
For the sibling setting, the strongest training-time competitor is Similarity-Unpairing from the on-device paper. It fine-tunes the released model so its input gradients diverge from the server's. The paper reports 50–80% lower transferability and about 93% clean accuracy on CIFAR-10. We apply it to the same sibling pairs, both alone and combined with our gate. Beating it means higher transfer-robust accuracy without retraining the released model; showing that the two are complementary is also a useful result.
We run two ablations to isolate the key ingredient:
- Monitor signal. We replace the internal-activation monitor with a gate on output softmax confidence or entropy, at the same flag rate. This tests whether hidden layers matter at all.
- Gate value. We replace the learned gate with a random gate at the same flag rate. This shows how much of the benefit comes merely from purifying some fraction of inputs.
All systems get the same tuning budget, a threshold or timestep sweep on a held-out validation split, and are reported at matched clean flag rates.
Why not just…?
Why not just purify everything? Always-on purification is the robustness ceiling we compare against, not something we argue away. The evidence against making it the default is its cost structure. DiffPure's timestep trades label semantics against cleaning strength. Early reverse-diffusion steps amplify the clean–adversarial discrepancy by more than 2×, with mean discrepancy rising from ~2.1 to ~26.0 (When Does Diffusion Purification Amplify Perturbations?). Purification also requires many network passes per image. If our gated system cannot approach always-on robust accuracy, the experiment will show it directly, and the honest conclusion is that gating is only a cost saving.
Why not just gate on output confidence? This is the most serious threat to the idea. If transfer attacks that succeed tend to land with low target confidence, a softmax gate would work as well as a hidden-layer gate and be simpler. I-defender argues that output layers discard distributional detail and are overconfident on attacks, but it did not test this in the conditional, successful-transfer setting. The confidence-gate ablation settles the question. If it matches the activation gate within noise, we drop the hidden-layer claim and report that the transfer gap lives in the output layer.
Why not just use JPEG or blurring as the purifier, or as the whole defense? APBench (APBench: A Unified Benchmark for Availability Poisoning Attacks and Defenses) shows simple compression neutralizing fragile perturbations. MetaCloak (MetaCloak: Preventing Unauthorized Subject-Driven Text-to-Image Diffusion-Based Synthesis via Meta-Learning) shows that averaging over transformations during the attack makes perturbations survive blurring. IMPRESS (IMPRESS: Evaluating the Resilience of Imperceptible Perturbations Against Unauthorized Data Usage in Diffusion-Based Generative AI) shows standard processing failing against model-aware protections. Our transform-averaged attacker variant tests exactly this, and we include gated JPEG as a cheap purifier option. If it holds up, the defense gets simpler, which counts as a result, not a loss.
Why not just adversarially train the server model? RobustBench documents its clean-accuracy and calibration costs. CARSO's gains over its adversarially trained base suggest a ceiling. We still include a RobustBench model as a baseline and as a backbone, because the gate is orthogonal to training and could sit on top of it.
Proposed Experiments and Decisive Checks
CIFAR-10 is the primary setting, using the sibling pairs from the on-device paper and RobustBench zoo models. CIFAR-100 and an ImageNet subset test scale, and a CNN→ViT pair tests transfer across architectures. Attacks are bounded to $\ell_\infty$ 8/255 on CIFAR and 4/255 on ImageNet.
We report:
- $\Delta$ per pair and per attacker variant;
- clean accuracy;
- robust accuracy under transfer;
- the fraction of clean and adversarial inputs that get purified;
- mean wall-clock time per query.
The kill criterion is concrete. Take sibling surrogates under the strongest monitor-aware, transform-averaged attack. If joint fool-and-evade success on the target comes within a few points of plain misclassification transfer, the asymmetry fails and we publish that negative result instead of the defense.
As a separate stress test, we run a white-box adaptive attack on the full gated pipeline, differentiating through the target monitor and purifier. We expect the gate to be bypassed here and will report it, so that the scope of the claim (transfer threat only) is unambiguous.
References
- Adversarial Vulnerability from Interference Between Features in Superposition
- Robust Detection of Adversarial Attacks by Modeling the Intrinsic Properties of Deep Neural Networks
- Publishing Efficient On-device Models Increases Adversarial Vulnerability
- Blending adversarial training and representation-conditional purification via aggregation improves adversarial robustness
- ATAC: Augmentation-Based Test-Time Adversarial Correction for CLIP
- Diffusion Models for Adversarial Purification
- Guided Diffusion Model for Adversarial Purification
- Interpret Neural Networks by Identifying Critical Data Routing Paths
- RobustBench: a standardized adversarial robustness benchmark
- When Does Diffusion Purification Amplify Perturbations?
- APBench: A Unified Availability Poisoning Attack and Defenses Benchmark
- MetaCloak: Preventing Unauthorized Subject-Driven Text-to-Image Diffusion-Based Synthesis via Meta-Learning
- IMPRESS: Evaluating the Resilience of Imperceptible Perturbations Against Unauthorized Data Usage in Diffusion-Based Generative AI