Adversarial Examples Are Not Bugs, They Are Superposition PhenomenaAdversarial Examples Are Not Bugs, They Are Superposition
The authors intervene on superposition and robustness in the toy model and ResNet18, and state that superposition is at least a causal factor in adversarial examples.
- Perturbations too small to be perceptible can still fool neural networks, and for nearly a decade there has been no widely accepted mechanistic explanation. The authors ask whether superposition is a major contributing factor, or even the primary cause.
- On a toy model with 100 features and 20 hidden units, sparsity is used to intervene on superposition, and adversarial training is used to intervene on robustness. Robust ResNet18 on ImageNet uses SAE reconstruction loss and L0 as proxies for superposition.
- In the toy model, higher sparsity is accompanied by higher vulnerability, with a drop at antipodal superposition; adversarial training reduces superposition at certain sparsities. The authors state that the more robust ResNet18 reconstructs better at a fixed SAE sparsity; on layer 4, PGD's L0 is 2.8× that of clean input (Figure 6).
- The authors point out that real models rely on proxy variables and superposition cannot be directly manipulated, so its relative contribution cannot be quantified. The experiments cover bidirectional intervention in the toy model and ResNet18 on ImageNet with ε of 0, 1, 3, 5; the paper does not report the attack ε or SAE type for Figure 6.
- Evaluated models
- Toy modelsResNet18
- Benchmarks
- ImageNettoy models of superposition
- Metrics
- features per dimensionrelative adversarial vulnerabilityMSEL0mean off-diagonal interference
The paper proposes that superposition, a phenomenon in mechanistic interpretability, may be a primary cause or important factor of adversarial examples, extending the argument of Elhage et al. (2022). The authors provide four lines of evidence: superposition can theoretically explain a range of adversarial phenomena; intervening on superposition in toy models can control robustness; intervening on robustness via adversarial training in toy models can also control superposition; and intervening on robustness via adversarial training on ResNet18 can likewise control superposition. The paper therefore argues that adversarial examples are not a defect of the model but a product of superposition.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Goodfire Researchgives the paper's titleGoodfire:对抗样本不是缺陷,而是叠加表示
Paper analysis
What problem does this paper attempt to solve?
The authors test whether superposition causally contributes to adversarial examples, with evidence from bidirectional intervention in toy models and ResNet18.
Are adversarial examples caused by superposition, and can robustness and superposition control each other?
- Scenario: The authors state that networks can achieve superhuman performance on many tasks yet be fooled by perturbations too small for humans to perceive; over the past decade there have been various hypotheses and defenses, but still no widely accepted mechanistic explanation.
- Existing gap: Superposition represents far more than n sparse features in n dimensions, but the directions cannot all be orthogonal, so they interfere with each other. Elhage et al. [2022] conjectured that this interference is related to adversarial examples and showed in toy models that interference can be exploited by attacks; the authors state that this hypothesis has not been tested since.
- Hypothesis of this paper: The authors believe superposition can be a major contributing factor, possibly even the primary cause, and consider it sufficient to theoretically explain the adversarial phenomena they know of (Table 1). They also write that the results do not imply superposition is the only factor.
- What this paper does: The abstract lists four pieces of evidence: theoretical correspondence; intervening on superposition in toy models to observe robustness; intervening on robustness in toy models via adversarial training to observe superposition; intervening on robustness in ResNet18 via adversarial training, using SAE loss as a proxy for superposition. The introduction calls the last three experiments the main contributions (Figure 1). There is no method to control superposition on real models, so the reverse direction was not done.
What related research exists?
Related work is grouped by attacks, theoretical explanations, defenses, and superposition; the authors position this paper as extending Elhage et al. [2022].
Adversarial examples and attacks
- Szegedy et al. [2014] and Goodfellow et al. [2015] discovered adversarial examples. The paper then lists DeepFool (Moosavi-Dezfooli et al., 2015), Carlini and Wagner [2016], Madry et al. [2019], Croce and Hein [2020], as well as physical perturbations (Kurakin et al., 2016) and universal perturbations (Moosavi-Dezfooli et al., 2017). These are only listed, not critiqued one by one.
Theoretical explanations
- The linearity hypothesis (Goodfellow et al., 2015). Geometric perspectives include Gilmer et al. [2018], Khoury and Hadfield-Menell [2019], Shafahi et al. [2020], Shamir et al. [2022]; also measure concentration (Mahloujifar et al., 2018, 2019), high-dimensional statistical models (Tanner et al., 2024), and manifold analysis (Xiao et al., 2022).
- The "robust features" hypothesis (Ilyas et al., 2019): related work is described as models exploiting non-robust but predictive patterns. The paper does not judge this hypothesis as wrong in this section.
Defenses, trade-offs, and interpretability
- The paper states adversarial training remains dominant (Madry et al., 2019; Zhang et al., 2019; Shafahi et al., 2019). Certification routes include verification (Zhang et al., 2018; Gowal et al., 2019; Wang et al., 2021) and randomized smoothing (Cohen et al., 2019; Lecuyer et al., 2019).
- There is tension between standard accuracy and robust accuracy (Tsipras et al., 2019; Zhang et al., 2019; Javanmard et al., 2020; Rice et al., 2020; Schmidt et al., 2018); unlabeled data is used to mitigate it (Carmon et al., 2022; Raghunathan et al., 2020).
- Robust models are described as having aligned gradients and interpretable features (Engstrom et al., 2019; Tsipras et al., 2019; Ganz et al., 2023; Srinivas et al., 2024). Disentangled representations are reported to improve robustness (Yang et al., 2021; Guesmi et al., 2024). Transfer is linked to shared representations (Demontis et al., 2019; Wu et al., 2018); compression and robustness are used to discuss capacity constraints (Ye et al., 2021; Gui et al., 2019; Xie et al., 2019; Yi et al., 2020).
Superposition and SAEs
- Elhage et al. [2022] proposed that superposition can represent many features in high-dimensional space. SAEs are used to decompose superposed features (Cunningham et al., 2023; Bricken et al., 2023; Templeton et al., 2024; Gao et al., 2024). Adler and Shavit [2025] discuss complexity bounds of neural computation in superposition.
Baselines and benchmarks
- The toy model's vulnerability is measured relative to the model with the highest input feature density, where every feature appears in all training inputs; the authors treat that model as a no-superposition reference. The data are synthetic features with n=100, not a named benchmark.
- The real model is a robust ResNet18 from Salman et al. [2020] trained on ImageNet (Russakovsky et al., 2015). Figure 5 compares L2 ε∈{0, 1, 3, 5}. The main text's toy model attack is a one-step gradient L2 after adding noise; the appendix reproduces the Elhage-style analytic attack.
The authors state the paper substantially extends Elhage et al. [2022]: where they showed in a toy model that interference can support attacks, this paper performs bidirectional intervention and examines on ResNet18 whether robustness changes superposition proxies. The authors state that to their knowledge, these results are the first to show a causal relationship from robustness to superposition (Section 3.3).
How does the paper address this problem?
Using sparsity and adversarial training for bidirectional intervention on the toy model, and using SAE loss and L0 as proxies for superposition on ResNet18.
The overall idea is to treat superposition as an intervenable variable: the toy model, where superposition can be precisely measured, receives bidirectional intervention; ResNet18 only allows intervening on robustness, with SAE loss and the number of activated features as proxies for superposition.
Toy model setup
- A simplified version of the basic setup of Elhage et al. [2022]: n=100 features linearly projected to m=20 hidden units, then reconstructed with ReLU. A footnote states that only uniform feature importance is considered, so the loss is mean squared error.
- Sparsity S is the probability that an input feature is zero. When features are sparse, the model represents more features than hidden dimensions; superposition increases with sparsity. What the authors use to change superposition is sparsity, not direct editing of weight geometry.
- Non-orthogonality causes one feature's activation to produce apparent activations on other features proportional to the inner product. The model can use a negative bias to suppress small spurious activations; the authors state that in the worst case the summed interference can overpower that bias. Compressed sensing guarantees reconstruction with high probability only under random, not adversarial, conditions.
Metrics and training protocol
- The superposition metric is features per dimension, i.e., (|W|F2)/n. The authors state that learned features are roughly unit norm, so a value greater than 1 implies superposition must be used.
- Vulnerability is measured by a perturbation maximizing reconstruction error within an L2 ball, with ε at 10% of the average input norm. The comparison is against a no-superposition reference, in terms of how many times more vulnerable. The main text does not give a specific value for this multiple.
- The main text does not use Elhage's per-output feature-wise analytic attack. The authors consider that attack optimal under output L∞ but possibly suboptimal for L2/MSE. The main text instead adds a small amount of noise and then takes a one-step gradient L2 step, to avoid ReLU gradient issues. The noise magnitude is not given.
- The adversarial training loss is Ladv=α· L(x)+(1−α)· L(xadv), with α=0.5 and the attack being L2 with ε=0.1||x||_2. The same configuration is trained for 150,000 steps with learning rate 10^-3.
Bidirectional intervention and geometry
- Density experiments: feature density 1−S varies exponentially from 1.0 to 0.1, with 30 models trained. Figure 2A is used to confirm that sparsity changes features per dimension and produces a temporary plateau corresponding to antipodal superposition.
- The reverse experiment performs adversarial training over the same density range and then measures superposition. Section 3.3.1 gives an informal intuition: ordinary training is like minimizing average interference, while adversarial training is like minimizing worst-case expected interference on out-of-distribution data. The authors state this is not a formal derivation.
- Geometry figures: one node per feature, with edge (i, j) corresponding to (W_i·W_j)^2. Figure 3 marks in orange the superposition involved for that input, with the heatmap being W^T W. Figure 4 places models on a superposition axis, connecting robust and non-robust models of the same sparsity with lines.
Proxies on real models
- Uses ImageNet robust ResNet18 models from Salman et al. [2020], adversarially trained with different attack magnitudes.
- SAEs are trained on outputs of the four residual stages conv2_x through conv5_x, with dimensions 256, 512, 1024, 2048. Both L1 ReLU SAEs and TopK SAEs are trained, with activations standardized by that model's mean and standard deviation.
- The authors treat higher SAE loss as a proxy for more superposition, giving three reasons: at fixed SAE scale, more total features; more active features per sample; denser superposition forces the SAE to attribute strong activations to other features or miss small activations.
- Appendix B: batch 4096, learning rate 5×10^-4, expansion factor 8×; TopK's top-kaux is 512, with auxiliary loss weight 1.
- The L0 experiment's design assumption is that if attacks exploit interference, adversarial examples should activate more SAE features. The comparison is L0 of FGSM and PGD relative to clean input. The paper does not state the ε, number of steps, or SAE variant for this set of experiments.
Phenomena to be explained theoretically
Table 1 lists six phenomena and superposition explanations. The authors state this is not the paper's focus, but they believe superposition is sufficient to explain these phenomena.
- Existence: each layer perturbs other features superposed with the target, iterating layer by layer.
- Noise-like structure: perturbed features are unrelated to each other except for being superposed with the target, so the perturbation looks like unstructured high-frequency noise.
- Transfer: if different models place the same features in each other's superposition, superposition-based attacks transfer; anticorrelated features are more likely to be placed together.
- Training difficulty: superposition increases capacity; if improving robustness requires reducing superposition, capacity will drop.
- Interpretability: without superposition, neurons can be monosemantic and less noisy.
- Adversarial training on mislabeled data still transfers to clean data: the authors state the attack encodes interference combinations of useful circuits, corresponding to the phenomenon described by Ilyas et al. [2019].
What experiments did the paper conduct?
The authors state that under certain sparsities adversarial training reduces superposition; on ResNet18 layer 4, PGD's L0 relative to clean is 2.8×.
Experimental Setup
- Toy models: n=100, m=20, uniform feature importance, MSE. Density varies exponentially from 1.0 to 0.1, with 30 models trained simultaneously. Adversarial training for 150,000 steps, learning rate 10^-3, α=0.5, ε=0.1||x||_2.
- Toy model attacks: All main-text results use a one-step gradient L2 with a small amount of noise; measured ε is 10% of the mean input norm. The reference is the model with the highest feature density, which the authors regard as having no superposition. Appendix Figure 7 additionally reports Elhage-style attacks. The paper does not report multi-seed repetition.
- Real models: ResNet18 from Salman et al. [2020], trained on ImageNet. Figure 5 uses L2 robustness ε∈{0, 1, 3, 5}. The paper does not report clean accuracy or adversarial accuracy for these models.
- SAE: Both L1 ReLU and TopK were trained; Figure 5 reports only TopK, k∈{8, 16, 32}. Training hyperparameters are in Appendix B. The main text does not give MSE for each ε and each k.
- L0: FGSM and PGD relative to clean images. Table 2 is mean±SEM, n=100,000 per condition. The paper does not specify the image split, attack ε and steps, nor whether the L0 comes from L1 or TopK, which k, or which ε of ResNet18.
- Metrics: features per dimension; vulnerability multiplier relative to the no-superposition model; reconstruction L2/MSE; SAE MSE; L0; mean off-diagonal interference. No LLM evaluation.
Main Results
In the main text, the ratios that can be checked cell by cell come mainly from the interference heatmap and the L0 experiments. The point values of the curves in Figure 2 and Figure 5 are not listed in the main text.
Swipe horizontally to read the table
Metric Condition Value Source Mean off-diagonal interference Non-robust vs. robust toy model 2× Figure 3B L0 ratio FGSM / clean, conv1 1.3× Section 4.3 L0 ratio FGSM / clean, layer 4 1.02× Section 4.3 L0 ratio PGD / clean, conv1 and layer1 1.1–1.3× Section 4.3 L0 ratio PGD / clean, layer 2–3 1.2–1.4× Section 4.3 L0 ratio PGD / clean, layer 4 2.8× Figure 6 - The figure caption states: blue before adversarial training, orange after training; features per dimension decreases at a given sparsity; vulnerability increases with superposition and sparsity, with a decrease at antipodal superposition. The authors state the decrease occurs at certain original input sparsities, not written as all sparsities.
- The authors state that robust models are often more robust than expected from their total amount of superposition, and conjecture that the structure of the interference matrix, not just the total amount of superposition, affects L2 vulnerability (Section 3.3, Discussion).
- The authors state that in Figure 6 the two attacks separate at the last layer, and argue that iterative attacks can better exploit interference accumulated in deeper layers. The paper does not report attack success rates for this experiment. The authors connect this to the existing claim in Madry et al. [2019] that PGD is usually stronger than FGSM, not to success rates measured in this experiment.
Bidirectional Intervention in Toy Models
- Sparsity to robustness: The authors state that Figure 2A first confirms that sparsity changes features per dimension, including a temporary plateau corresponding to antipodal superposition; in Figure 2B vulnerability increases with sparsity and features per dimension, with one decrease at the antipodal point. The main text does not give vulnerability multipliers.
- Robustness to superposition: The authors state that models after adversarial training reduce adversarial vulnerability and, at certain original sparsities, reduce features per dimension. The authors state that, to their knowledge, this is the first time the causal direction from robustness to superposition has been demonstrated. One other exception is: when switching to antipodal superposition, vulnerability decreases.
- Distribution comparison: The authors argue that comparing across feature densities would bias in the direction opposite to the observed trend, because fewer features activating should make the model more robust, so this comparison may underestimate the relationship between superposition and vulnerability. They treat the robust models in the next section, which change superposition outside the data distribution, as a cross-check of the same trend.
ResNet18: SAE Reconstruction and L0
- Reconstruction: The figure caption states that with TopK SAE at k∈{8, 16, 32} and model L2 ε∈{0, 1, 3, 5}, more robust models reconstruct better at a given sparsity; lower MSE may indicate less interference and hence less superposition. The authors state that, unless there are other changes that reduce SAE loss but are unrelated to superposition, this supports robustness affecting superposition; they write that they have no such hypothesis. A footnote states that this hypothesis predicts an unexpected phenomenon. Per-point MSE is not reported. Reconstruction values for the L1 ReLU SAE are also not reported.
- L0 raw values: Table 2, mean±SEM, n=100,000 per condition.
Swipe horizontally to read the table
Layer Clean L0 FGSM L0 PGD L0 conv1 35.958±0.0256 46.201±0.0201 40.353±0.0230 layer1 32.876±0.0195 42.426±0.0102 42.092±0.0081 layer2 61.630±0.0266 67.601±0.0151 75.876±0.0097 layer3 72.798±0.0341 74.987±0.0282 101.469±0.0227 layer4 126.016±0.0680 128.128±0.0643 351.368±0.1148 - Geometry and revision: The figure caption states that the mean off-diagonal interference of non-robust models is 2× that of robust models. The authors state that on non-robust models, adversarial inputs simultaneously activate many mutually interfering features; on robust models, both clean and adversarial inputs are sparser. The Figure 4 caption states that adversarial training reduces superposition and preserves geometric structure; the main text states that at the same sparsity, robust models have lower superposition and similar geometry. The revision record (15 September 2025) states that the plotting of Figure 6 had exaggerated the difference between clean and adversarial images and has now been corrected; the table above and the ratios in the main text belong to the corrected text.
Other Ablations and Analyses
- Appendix Figure 7, Elhage-style attack: features per dimension and adversarial vulnerability r≈0.99, p<0.0001; each point is a model at one sparsity. This is not the correlation for the gradient attack in the main text.
- Appendix Figure 7: the horizontal axis is 1/(1−S); the caption states that phase transitions occur at ∼1.7 and ∼4, corresponding to the onset of superposition and beyond antipodal arrangements, and cites Elhage et al. [2022].
- SAE: expansion 8×, batch 4096, learning rate 5×10^-4; TopK has top-kaux=512, auxiliary loss weight 1 (Appendix B).
- Measured ε is 10% of the mean input norm; training attack ε=0.1||x||_2. The two are written differently, and the paper does not state whether they are the same per-sample budget.
- Main-text Figure 2 does not report correlation coefficients or vulnerability multipliers for the gradient attack version.
- The L1 ReLU SAE was trained, but the main text does not report its MSE, nor does it state whether the qualitative conclusions of Figure 5 cover it.
What are some points that can be further explored?
The authors note that real models rely on proxies and that the relative contribution of superposition cannot be quantified.
Limitations and Future Directions Noted by the Authors
- The analysis relies heavily on proxy variables to control and measure effects, especially on real models; these proxies may not capture the full complexity of the phenomenon (Discussion).
- The experimental results can coexist with multiple causal factors beyond superposition, especially on real models. Without a method to directly manipulate superposition in real models and observe changes in robustness, the relative magnitude of superposition's contribution cannot be quantified; only the possibility of a causal relationship can be established (Discussion).
- The authors state that further increasing confidence in this hypothesis requires finer-grained tools to measure and manipulate superposition in real models (Discussion).
- The temporary improvement in robustness near antipodal superposition deserves further study (Discussion).
- Models with the same overall level of superposition but different superposition structure differ in robustness to L2 adversarial attacks, which deserves further theoretical and empirical examination (Discussion).
Experimental Coverage
- Toy models have n=100 features, m=20 hidden units, uniform importance, MSE; feature density varies exponentially from 1.0 to 0.1, with 30 models trained simultaneously (Section 3.1–3.2).
- The main-text toy model attack is a one-step gradient L2 after adding a small amount of noise, with measured ε at 10% of the mean input norm; adversarial training uses α=0.5, 150,000 steps, learning rate 10^-3, ε=0.1||x||_2. Appendix Figure 7 is an Elhage-style attack (Section 3.1, Appendix A). The paper does not report the noise magnitude or multi-seed repetition.
- Real models are ImageNet ResNet18 from Salman et al. [2020]; Figure 5 uses L2 ε∈{0, 1, 3, 5}. SAEs are trained on conv2_x through conv5_x (256, 512, 1024, 2048 dimensions), including L1 ReLU and TopK; Figure 5 reports TopK, k∈{8, 16, 32} (Section 4, Appendix B).
- L0 compares FGSM and PGD; Table 2 has n=100,000 per condition. The paper does not specify the image split, attack ε and steps, or which SAE the L0 comes from. The paper also does not report classification accuracy or attack success rates for these ResNet18 models.
- The paper states that there is no method to intervene on superposition in real models, so real models only test the direction from robustness to the superposition proxy (Introduction, Discussion).
Summarize the main content of the paper
The authors use bidirectional intervention and SAE proxies to argue that superposition is at least one cause of adversarial examples, and discuss the trade-off between capacity and robustness.
The authors test superposition as an intervenable cause of adversarial examples, rather than only describing correlations.
- Problem: Small perturbations can fool well-performing networks; multiple hypotheses exist, but there is no widely accepted mechanism. The authors ask whether superposition in mechanistic interpretability is a major contributor, or even the primary cause.
- Approach: In a toy model with 100 features and 20 hidden units, they vary superposition with feature density and vary robustness with adversarial training at α=0.5. On ResNet18, superposition cannot be directly changed, so they compare SAE reconstructions across Salman et al. [2020] models with different L2 robustness (ε of 0, 1, 3, 5), and check whether FGSM and PGD activate more SAE features.
- Toy model: Figure captions and the main text state that vulnerability rises with sparsity and features per dimension, and drops at antipodal superposition; adversarial training reduces vulnerability and, at certain original sparsities, reduces features per dimension. The non-robust model's average off-diagonal interference is 2× that of the robust model (Figure 3). The authors state that robust models are often more robust than the total amount of superposition would predict, and conjecture that superposition structure also plays a role.
- ResNet18: Figure captions state that at fixed k∈{8, 16, 32}, more robust models reconstruct better; the main text does not give MSE. FGSM's L0 is 1.3× in conv1 and 1.02× in layer 4 relative to clean; PGD is 2.8× in layer 4 (Figure 6, Section 4.3). The authors consider this consistent with interference accumulating layer by layer. In the appendix, the Elhage-style attack's superposition–vulnerability correlation is r≈0.99, p<0.0001, which is not the same setting as the main text's gradient attack.
- Authors' conclusion: These results strongly suggest superposition is at least a causal factor; whether it is the primary cause and how large its share is in real models will require tools that can directly manipulate superposition. If it is the primary cause, the authors believe improving robustness would require sacrificing the capacity superposition provides, making interpretability and robustness goals aligned.