Outlier Robust Adversarial Training

Shu Hu, Zhenhuan Yang, Xin Wang, Yiming Ying, Siwei Lyu

Abstract

Supervised learning models are challenged by the intrinsic complexities of training data such as outliers and minority subpopulations and intentional attacks at inference time with adversarial samples. While traditional robust learning methods and the recent adversarial training approaches are designed to handle each of the two challenges, to date, no work has been done to develop models that are robust with regard to the low-quality training data and the potential adversarial attack at inference time simultaneously. It is for this reason that we introduce Outlier Robust Adversarial Training (ORAT). ORAT is based on a bi-level optimization formulation of adversarial training with a robust rank-based loss function. Theoretically, we show that the learning objective of ORAT satisfies the $\mathcal{H}$-consistency in binary classification, which establishes it as a proper surrogate to adversarial 0/1 loss. Furthermore, we analyze its generalization ability and provide uniform convergence rates in high probability. ORAT can be optimized with a simple algorithm. Experimental evaluations on three benchmark datasets demonstrate the effectiveness and robustness of ORAT in handling outliers and adversarial attacks.

Introduction

In modern machine learning, models face two primary threats to reliability: dirty training data and adversarial attacks. Dirty data includes outliers, mislabeled samples, or minority subpopulations that can bias a model during training. Adversarial attacks occur at inference time, where small, intentional perturbations to inputs can cause a model to fail.

While "Robust Learning" addresses the former and "Adversarial Training" (AT) addresses the latter, these issues are rarely tackled together. Standard AT often exacerbates the outlier problem because it attempts to enforce robustness even on fundamentally incorrect or noisy samples. This paper introduces ORAT (Outlier Robust Adversarial Training), a unified framework designed to remain stable even when the training set is heavily corrupted.

The ORAT Framework: A "Goldilocks" Approach

The core of ORAT is a novel rank-based loss function called Average of Ranked Range (AoRR). Instead of minimizing the average loss across all samples, ORAT sorts the losses and focuses on a specific "middle" range.

The AoRR Loss Function

ORAT ignores the top $m$ samples—typically outliers with extremely high losses—and the bottom $n-k$ samples—the "easy" majority samples that the model has already mastered. By focusing on the "just right" middle range of hard but clean samples, ORAT builds a more accurate and robust decision boundary.

Optimization and Efficiency

The framework uses a bi-level optimization strategy:

  1. Inner Loop: Generates adversarial versions of training data using Projected Gradient Descent (PGD).
  2. Outer Loop: Updates model parameters using the AoRR loss.

To avoid the high computational cost of sorting samples in every iteration, the authors reformulated the objective using auxiliary variables, allowing for optimization via standard stochastic gradient descent (SGD) without an explicit sorting step.

Visualizing Robustness

The impact of ORAT is most visible when comparing decision boundaries on synthetic datasets containing outliers. Standard methods often struggle to maintain a clean boundary when noise is present.

Comparison of decision boundaries for Standard Training (ST), Adversarial Training (AT), and ORAT on synthetic datasets with outliers.

As shown in the figure, standard AT is often "pulled" by outliers, leading to distorted decision boundaries. In contrast, ORAT successfully ignores these noisy points, maintaining a boundary that better reflects the true underlying data distribution in both linear and non-linear scenarios.

Theoretical Guarantees

The authors provide rigorous theoretical backing for ORAT:

  • $\mathcal{H}$-consistency: The paper proves that ORAT is a mathematically sound surrogate for the ideal adversarial 0/1 loss in binary classification.
  • Generalization: The work provides uniform convergence rates in high probability, ensuring that the model's performance on training data translates well to unseen test data.

Experimental Results

ORAT was evaluated on MNIST, CIFAR-10, and CIFAR-100 with varying levels of injected noise (10% to 40%).

  • Superior Accuracy: On CIFAR-10 with 30% symmetric noise, ORAT achieved nearly 10% higher accuracy against adversarial attacks compared to state-of-the-art baselines like GAIRAT and MAIL.
  • Resilience to Strong Attacks: ORAT maintained its lead even against AutoAttack, an ensemble of the strongest known adversarial methods.
  • Stability: In high-noise environments, ORAT demonstrated significantly lower variance across runs, indicating higher reliability for real-world applications.

Conclusion

ORAT represents a significant step forward in building truly robust machine learning systems. By acknowledging that not all training data is equally valuable, ORAT filters out both noise and trivial samples to focus on the most informative data points. Future work will focus on automating hyperparameter selection and scaling the framework to larger architectures like Transformers.

Summary updated

BibTeX
@inproceedings{hu2023outlier,
  author = {Shu Hu and Zhenhuan Yang and Xin Wang and Yiming Ying and Siwei Lyu},
  title = {{Outlier Robust Adversarial Training}},
  booktitle = {ACML},
  year = {2023},
  url = {https://openreview.net/forum?id=m9HpDd63BL},
}
Figure