Robustness Should Not Be at Odds with Accuracy

Sadia Chowdhury, Ruth UrnerFORC 2022 · DOI

TL;DR

This paper argues that adversarial robustness shouldn't be a one-size-fits-all parameter but rather adapt to the underlying data distribution's properties. They introduce a novel "adaptive robust loss" and a data augmentation strategy that, empirically, improves both accuracy and robustness, challenging the common trade-off.

What Problem Does This Paper Address?

Deep learning models, despite their impressive accuracy on clean data, are notoriously vulnerable to adversarial examples – tiny, imperceptible perturbations that can cause misclassifications. Much of the research has focused on developing defenses or training models with a "worst-case" adversarial loss. However, this often leads to a trade-off: increasing robustness can significantly decrease accuracy. This paper questions whether this trade-off is inherent or a consequence of how we define and measure robustness. They propose that robustness should be a local property, adapting to the data's inherent "separability" or "margin," rather than a global, fixed parameter.

Methods

The core of the paper is the proposal of a locally adaptive notion of robustness.

  • Adaptive Robust Loss: Instead of a fixed radius r for adversarial perturbations, they define robustness based on the local properties of the data distribution. Specifically, they introduce the concept of a "margin rate" of a distribution, which describes how quickly the probability mass vanishes near decision boundaries.
  • Empirical Adaptive Robust Loss: To make this practical, they derive an empirical version of this adaptive loss. This involves creating a "c-adaptive robust expansion" of the dataset, where each data point is expanded by a ball whose radius is a fraction of the distance to its nearest neighbor with a different label.
  • Adaptive Robust Data Augmentation: This expansion is then used as a data augmentation technique. The idea is to train models on this augmented data, encouraging them to be robust in a way that's tailored to the data's structure.
  • Theoretical Guarantees: They provide theoretical results, including proving that their adaptive data augmentation maintains the consistency of 1-nearest neighbor classification under deterministic labels, suggesting it doesn't harm accuracy.

Datasets

The authors use both synthetic datasets and real-world datasets from the UCI repository for evaluation.

  • Synthetic Datasets: These are designed to highlight scenarios where data lies on a lower-dimensional manifold, a known source of adversarial vulnerability. Examples include shapes like "Sines," "S-figure," "NNN," "circles," and "boxes."
  • UCI Datasets: Standard datasets like "Iris," "Breast Cancer," "Bank Note Authentication," "Heart Disease," "Immunotherapy," and "Parkinsons" are used to evaluate the practical applicability of their method.

Key Insights and Ideas

  • Robustness is Local: The most significant insight is that a fixed, global robustness parameter is often inappropriate. The data itself has varying degrees of "separability," and robustness should reflect this.
  • Challenging the Trade-off: The paper provides strong empirical evidence that adaptive augmentation can improve both accuracy (binary loss) and robustness, directly contradicting the commonly accepted accuracy-robustness trade-off.
  • Margin Rate as a Key Metric: The "margin rate" of a distribution emerges as a crucial theoretical concept for understanding and defining adaptive robustness.
  • Data Augmentation as a Natural Fit: The proposed adaptive data augmentation method is shown to be a natural way to imbue models with this locally adaptive robustness.

Key Results

  • Improved Accuracy and Robustness: Across various synthetic and real-world datasets, networks trained with adaptive robust augmentation consistently achieved the lowest binary loss (highest accuracy) and competitive adaptive robust loss. For instance, on the "Sines" dataset, adaptive augmentation resulted in a binary loss of 0.038 and an adaptive robust loss of 0.1403, outperforming many fixed augmentation strategies.
  • Consistency for 1-NN: They theoretically prove that their adaptive augmentation method maintains consistency for 1-nearest neighbor classifiers on deterministic label tasks, meaning it doesn't sacrifice asymptotic accuracy.
  • Visual Evidence: Visualizations show that networks trained on original data often have decision boundaries too close to the data manifold, making them vulnerable. Adaptive augmentation helps create smoother, more robust boundaries.

Limitations and Future Work

  • Theoretical Guarantees for Complex Models: While consistency is proven for 1-NN, extending these theoretical guarantees to more complex models like deep neural networks remains an open area.
  • Computational Complexity: Estimating the adaptive robust loss and generating the augmented data might have computational implications, though the paper doesn't delve deeply into this.
  • Search for Optimal Parameter: The paper suggests that their adaptive approach can save the need to search for an optimal fixed expansion parameter for different tasks, implying a more generalizable solution. Future work could explore this further and investigate the theoretical underpinnings of why adaptive augmentation is so effective across diverse datasets.

Summary updated

BibTeX
@inproceedings{chowdhury2022robustness,
  author = {Sadia Chowdhury and Ruth Urner},
  title = {{Robustness Should Not Be at Odds with Accuracy}},
  booktitle = {FORC},
  year = {2022},
  doi = {10.4230/lipics.forc.2022.5},
}
Figure