Towards an Intrinsic Definition of Robustness for a Classifier

Théo Giraudon, Vincent Gripon, Matthias Löwe, Franck Vermet

Abstract

Standard measures of classifier robustness, such as the average radius of robustness across a test set, are significantly influenced by the specific samples chosen for evaluation. This paper introduces a "difficulty-aware" robustness score that weights samples based on their proximity to decision boundaries. By using cross-entropy loss as a proxy for this distance, the proposed metric provides a more stable and intrinsic measure of a model's performance, maintaining consistency even when evaluated on different subsets of data.

Introduction

In machine learning, robustness is typically defined as a model's ability to maintain its prediction under small input perturbations, such as adversarial noise or environmental corruptions. This is often quantified by the radius of robustness: the maximum distance an input can be moved before the classifier's prediction changes. However, this metric is inherently flawed because it does not account for the varying "difficulty" of individual data points.

The Problem with Standard Robustness

A fundamental issue in current robustness evaluation is that data points located in the center of a class region naturally possess a large radius of robustness, while points near the decision boundary have a much smaller one. Consequently, a model's robustness score can be artificially inflated by a validation set containing many "easy" (central) points, or deflated by one with "hard" (boundary) points.

Figure 1: Illustration of the radius of robustness. Point $x_1$ is far from the decision boundary and has a large radius, while $x_2$ is near the boundary and has a small radius.

This dependency makes it difficult to compare different classifiers fairly unless they are evaluated on identical distributions of sample difficulty.

Methods: Difficulty-Aware Robustness

To address this, the authors propose Difficulty-Aware Robustness ($R_\nu$). The core idea is to normalize the radius of robustness by a measure of the sample's difficulty.

Loss as a Compass for Difficulty

The researchers theoretically and empirically demonstrate that a sample's cross-entropy loss is a reliable indicator of its distance from the decision boundary. High loss indicates a sample is near a boundary (hard), while low loss suggests it is deep within its class territory (easy).

Figure 2: Examples of CIFAR-10 images with varying cross-entropy loss values. Low-loss samples (a, b) appear more typical, while high-loss samples (c, d) are more ambiguous or corrupted.

The new score, $R_\nu$, is calculated as the ratio of the radius of robustness to a distance proxy $g(\ell)$ derived from the loss $\ell$. For linear classifiers, this ratio is a constant representing the margin. For deep neural networks, the authors show that the radius of robustness increases approximately linearly with $g(\ell)$.

Key Results

The proposed $R_\nu$ metric demonstrates remarkable stability compared to standard mean robustness ($R_m$):

  • Subset Independence: When evaluated on "easy" vs. "hard" subsets of MNIST and CIFAR-10, $R_m$ varied by up to 44%, whereas $R_\nu$ only varied by 8% to 12%.
  • Adversarial Training: The metric effectively captures the benefits of adversarial training. On CIFAR-10, an adversarially trained network showed a nearly 6x increase in the $R_\nu$ score compared to a naturally trained model.
  • Mitigating Outliers: The method helps reduce the impact of "pathological" samples—roughly 20% of the dataset—that typically skew traditional robustness measures.

Conclusion

By accounting for sample difficulty, the Difficulty-Aware Robustness score provides a more intrinsic measure of a classifier's performance. It essentially measures the "slope" of the decision boundary: a truly robust model is one where the safety margin grows rapidly as a sample moves away from the boundary. Future work may explore integrating this difficulty-aware perspective directly into the training process to develop inherently more robust models.

Summary updated

BibTeX
@inproceedings{giraudon2021towards,
  author = {Théo Giraudon and Vincent Gripon and Matthias Löwe and Franck Vermet},
  title = {{Towards an Intrinsic Definition of Robustness for a Classifier}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp39728.2021.9414573},
}
Figure