Validating the link between superposition and adversarial examples in vision Transformers
Confirming Claims of Superposition and Adversarial Examples in Vision Transformers
The author reproduces a vision Transformer experiment on the relationship between feature superposition and adversarial examples, confirming on CIFAR-10/100, STL-10 and Tiny-ImageNet that the stronger the superposition, the more closely adversarial attack perturbations align with the geometry of class vectors. The study adds a linear encoder and decoder before the classification head to form a bottleneck; when the bottleneck dimension is smaller than the number of classes, class directions are forced to overlap, and PGD attacks are used to measure the correlation between the input-space profile and the latent-space profile, which rises as the bottleneck tightens. The author also tests the gradient-free Square black-box attack and the CW attack, with the same trend, indicating that this coupling is not a product of gradient attack algorithms. After adversarial training, robust accuracy improves by about 5 times, but head interference and effective dimensionality remain essentially unchanged; widening the ViT reduces the coupling between input and latent space, while interference and robustness do not change accordingly. The author notes that beyond toy models superposition cannot be measured directly, and causal judgments remain limited.