Abstract
Adversarial training is the primary defense against malicious perturbations, yet it typically suffers from a trade-off between clean accuracy and adversarial robustness. This paper proposes a novel training paradigm that entirely removes hard ground-truth labels from the adversarial training loop. Instead, the model learns from "soft" labels provided by a standard teacher network and through self-alignment between clean and perturbed inputs. This approach effectively mitigates the robustness-accuracy trade-off while producing models with more balanced performance across classes.
Introduction
Building robust AI models often involves adversarial training—training on examples specifically designed to trick the model. While effective at increasing robustness, this process usually degrades performance on normal, clean data. Most existing adversarial training frameworks rely on hard labels (one-hot vectors), which the authors argue may contribute to this trade-off by forcing overconfidence and ignoring natural inter-class similarities. This research explores whether adversarial training can be successfully conducted using only soft labels, thereby preserving the "dark knowledge" of class relationships.
Methodology
The proposed method replaces traditional cross-entropy loss with a combination of Distillation and Self-Alignment:
- Distillation: The student model matches the outputs of a pre-trained, non-robust teacher model. This teacher is trained only on clean data, making it computationally inexpensive to obtain.
- Self-Alignment: The model is incentivized to produce consistent outputs for both a clean image and its adversarial counterpart.
The researchers evaluated two alignment strategies: a softmax-based approach using Kullback-Leibler (KL) divergence and a logit-based approach using Mean Squared Error (MSE). The final loss function is a weighted sum of these alignments, notably containing zero contribution from ground-truth labels ($y$) during the adversarial phase.
Key Insights and Ideas
- The Power of Soft Labels: The study demonstrates that hard labels are not strictly necessary for adversarial training. Soft labels provide sufficient guidance by capturing the nuanced relationships between different classes.
- Logit Pairing Superiority: Matching raw logits (MSE) generally outperformed matching probability distributions (KL). Raw logits appear to preserve more critical information about model uncertainty than values processed through a softmax layer.
- Representation Quality: By focusing on alignment rather than rigid classification, the model develops more coherent internal representations.
As shown in the t-SNE visualizations above, the proposed method ("Ours") results in significantly tighter and better-separated class clusters compared to standard adversarial training (SAT) or other state-of-the-art methods like TRADES and HAT.
Key Results
The logit-based implementation (with $\beta=0.2$) was benchmarked against the AutoAttack suite on CIFAR-10 and CIFAR-100 datasets.
On CIFAR-10, the method achieved a clean accuracy of 86.33% and a robust accuracy of 50.56%, outperforming both TRADES and HAT. On CIFAR-100, it reached 62.25% clean accuracy and 24.20% robust accuracy. Beyond raw performance, the method improved class-wise fairness; the standard deviation of accuracy across classes on CIFAR-10 dropped to 6.9%, compared to 9.0% for TRADES and 9.4% for SAT.
Limitations and Future Work
While promising, the approach has some limitations. The experiments were conducted on low-resolution CIFAR datasets, and its scalability to high-resolution benchmarks like ImageNet remains to be tested. Additionally, the student's performance is inherently linked to the quality of the teacher's soft labels, and the $\beta$ hyperparameter requires careful tuning to balance guidance and robustness. Future research will focus on large-scale validation of this soft-label-only philosophy.
Summary updated