SpecFormer: Guarding Vision Transformer Robustness via Maximum Singular Value Penalization
Xixu HU, Runkai Zheng, Jindong Wang, Cheuk Hang LEUNG, Qi WU, Xing Xie
OpenReview ground truth
TL;DR — We enhance robustness in adversarial settings by introducing local Lipschitz continuity to the self-attention layer and introducing the robust ViT SpecFormer with Maximum Singular Value Penalization.
Abstract
Vision Transformers (ViTs) have gained prominence as a preferred choice for a wide range of computer vision tasks due to their exceptional performance. However, their widespread adoption has raised concerns about security in the face of malicious attacks. Most existing methods rely on empirical adjustments during the training process, lacking a clear theoretical foundations. In this study, we address this gap by introducing SpecFormer, specifically designed to enhance ViTs' resilience against adversarial attacks, with support from carefully derived theoretical guarantees. We establish local Lipschitz bounds for the self-attention layer and introduce a novel approach, Maximum Singular Value Penalization (MSVP), to attain precise control over these bounds. We seamlessly integrating MSVP into ViTs' attention layers, using the power iteration method for enhanced computational efficiency. The modified model, SpecFormer, effectively reduces the spectral norms of attention weight matrices, thereby enhancing network local Lipschitzness. This, in turn, leads to improved training efficiency and robustness. Extensive experiments on CIFAR and ImageNet datasets confirm SpecFormer's superior performance in defending against adversarial attacks.
Author context
Most prolific author: 15 submissions (credibility 0.79).
No mass-submission penalty for this paper (authors within normal submission volume).
Aggregate statistics only — no individual author rankings.
Ranking trajectory
Percentile by tournament round — convergence indicates rating stability.
Battle history — 28 comparisons
Ranked above opponent in 53% of matchups.
Judge assessments
Mean overall score 0.0 ± 0.0 (n = 28)