Adversarial training (AT) is the gold standard for securing deep neural networks against malicious perturbations. However, standard AT relies heavily on an idealized assumption: that the training dataset is perfectly balanced across all categories. In real-world applications, data almost always follows a long-tailed distribution, where a handful of "head" classes contain the vast majority of samples, and a long tail of "minority" classes contains very few.
When AT meets long-tailed data, a striking paradox emerges. As shown by Seungju Cho et al. in Long-tailed Adversarial Training with Self-Distillation, applying standard adversarial training to imbalanced datasets can actually make minority classes more vulnerable to attacks than they would be under standard, non-robust training. This "double whammy"—identified by Ziwei Liu et al. in Adversarial Robustness Under Long-Tailed Distribution—creates a severe performance gap. While a model might achieve high average robustness by securing the frequent head classes, its defensive capabilities collapse on the rare tail classes.
Why the Tail Collapses: Geometry and Sampling Bias
To understand why standard AT fails on the tail, we must look at how class imbalance distorts the optimization landscape during robust training.
Decision Boundary Shift and Norm Shrinkage
During AT, the optimization process forces the model to maintain stable predictions within a small neighborhood around every training input. When data is heavily skewed, the model prioritizes the high-frequency head classes to minimize the global robust loss. As a result, the decision boundaries are pushed disproportionately toward the minority classes, shrinking their territory in the feature space.
Yuzheng Hu et al. mathematically formalize this in Understanding the Impact of Adversarial Robustness on Accuracy Disparity, demonstrating that AT enforces a "norm-shrinkage" effect on the classifier to prevent small input perturbations from changing labels. In imbalanced settings, this shrinkage acts as a regularizer that disproportionately penalizes minority groups, causing their decision boundaries to collapse inward and widening the robustness disparity between head and tail classes.
Biased Neighborhood Sampling
Another intuitive way to view this failure is through data sampling. As argued by Guanlin Li et al. in Adversarial Training Over Long-Tailed Distribution, the generation of adversarial examples during training acts as a mechanism for sampling the local neighborhoods around clean inputs.
If the training data is long-tailed, this neighborhood exploration becomes highly biased. The model thoroughly maps out and secures the local regions surrounding head samples, but leaves the neighborhoods of tail samples under-explored. Consequently, the model fails to establish robust boundaries for rare classes, leaving them highly fragile to minor perturbations.
The Failure of Naive Reweighting
In standard long-tailed learning, a common fix is to reweight the loss function, giving more importance to rare classes. However, when applied directly to adversarial training, traditional reweighting techniques often fail or even degrade overall performance.
The authors of Imbalanced Adversarial Training with Reweighting (Han Xu et al.) uncover the root cause: AT inherently tends to learn poorly separated features when data is imbalanced. When features from different classes are tangled together, simply scaling up the loss weights for minority classes forces the decision boundaries to cut aggressively through dense clusters of head-class features. This severely damages the model's accuracy on frequent classes without genuinely protecting the tail. Achieving long-tailed robustness requires more than just adjusting loss magnitudes; it requires explicitly managing feature separation and boundary geometry.
Engineering Robust and Fair Boundaries
To overcome these geometric distortions, researchers have developed specialized architectures, regularization techniques, and training paradigms designed to equalize protection across the data distribution.
Feature Separation and Margin Engineering
To prevent the feature entanglement that plagues naive reweighting, Han Xu et al. propose Separable Reweighted Adversarial Training (SRAT). This approach uses a contrastive-style loss to explicitly push different classes apart in the feature space before applying weights, ensuring that boundaries can be drawn cleanly.
Similarly, the RoBal framework by Ziwei Liu et al. addresses boundary distortion by utilizing a scale-invariant cosine classifier combined with a two-stage margin engineering strategy, ensuring that tail classes retain adequate margin protection regardless of class frequency.
Spectral and Confusion Regularization
Rather than focusing solely on individual sample weights, some approaches regularize the global relationships between classes. For instance, Gaojie Jin et al. in Enhancing Robust Fairness via Confusional Spectral Regularization derive a theoretical bound showing that the spectral norm of a model's class-wise confusion matrix limits its worst-case robust performance. By regularizing this norm, they prevent the model from easily misclassifying rare tail samples into dominant head categories under attack.
Balanced Knowledge Distillation and Augmentation
Other strategies leverage multi-stage training or data augmentation to stabilize tail features. Seungju Cho et al. introduce a self-distillation framework where a balanced "self-teacher" guides the adversarial student model, preventing the decision boundaries from collapsing toward the majority classes.
From an augmentation perspective, Xiaoling Zhou in Boosting Model Resilience via Implicit Adversarial Data Augmentation introduces Implicit Adversarial Data Augmentation (IADA). This method dynamically applies anti-adversarial noise to majority samples to prevent overfitting, while applying adversarial noise to minority samples, forcing the model to learn robust, generalized features even from sparse data.
Key Foundational Work
Adversarial Robustness Under Long-Tailed Distribution (2021) — contributed 3 concept elements to this direction.
Imbalanced Adversarial Training with Reweighting (2021) — contributed 1 concept elements to this direction.
Oversampling Adversarial Network for Class-Imbalanced Fault Diagnosis (2020) — contributed 1 concept elements to this direction.