Abstract
Adversarial training (AT) methods have been found to be effective against adversarial attacks on deep neural networks. Many variants of AT have been proposed to improve its performance. Pang et al. [1] have recently shown that incorporating hypersphere embedding (HE) into the existing AT procedures enhances robustness. We observe that the existing AT procedures are not designed for the HE framework, and thus fail to adequately learn the angular discriminative information available in the HE framework. In this paper, we propose integrating HE into AT with regularization terms that exploit the rich angular information available in the HE framework. Specifically, our method, termed angular-AT, adds regularization terms to AT that explicitly enforce weight-feature compactness and inter-class separation; all expressed in terms of angular features. Experimental results show that angular-AT further improves adversarial robustness.
Introduction
Deep Neural Networks (DNNs) are notoriously brittle. A "well-crafted" but imperceptible tweak to an image—known as an adversarial attack—can trick a state-of-the-art model into misidentifying a stop sign as a speed limit sign. The standard defense is Adversarial Training (AT), where models are trained on these malicious examples to learn how to ignore them. Recently, researchers began using Hypersphere Embedding (HE)—a technique that projects data onto the surface of a multi-dimensional ball—to improve AT. However, existing AT methods were not designed for the geometry of a sphere, failing to exploit the rich angular information that HE provides.
Methodology: Angular-AT
Angular-AT integrates HE into the training process using two novel angular-based regularization terms that operate entirely within the angular domain.
Weight-Feature Compactness ($l_{wfc}$)
This term forces the feature vector of an adversarial example to stay as close as possible (in terms of angle) to the weight vector of its true class. This effectively tightens the "tether" between a data point and its correct label.
Inter-Class Separation ($l_{sep}$)
Inspired by the Tammes problem—a classic geometry problem about packing points on a sphere as far apart as possible—this term maximizes the angles between different class weight vectors. By pushing the "poles" of different classes away from each other, the model creates a wider "no-man's land," making it harder for an attacker to push a sample from one class into another.
Experimental Results
The researchers evaluated Angular-AT on three standard computer vision benchmarks: CIFAR-10, CIFAR-100, and TinyImageNet, using robust architectures like ResNet-18 and WideResNet-34-10.
Angular-AT consistently outperformed existing state-of-the-art defenses across all datasets. On CIFAR-10, Angular-AT achieved a robust accuracy of 64.01% against PGD-20 attacks, compared to 59.36% for the previous best HE-based method. For CIFAR-100, it maintained a lead in robustness against AutoAttack (AA), reaching 25.32% accuracy.
Conclusion
The core insight of this work is that adversarial attacks essentially try to "rotate" a feature vector away from its true class. If a model's internal logic is based on angles (HE), the defense should be too. While the method introduces some hyperparameter sensitivity and computational overhead, the gains in robustness against both white-box and black-box attacks are significant. Future work will explore automated hyperparameter tuning and scaling to larger datasets like ImageNet-1k.
Summary updated