Revisiting Distributionally Robust Supervised Learning in Classification

Weihua Hu, Gang Niu, Issei Sato, Masashi Sugiyama

Abstract

Distributionally Robust Supervised Learning (DRSL) is necessary for building reliable machine learning systems. When machine learning is deployed in the real world, its performance can be significantly degraded because test data may follow a different distribution from training data. Previous DRSL minimizes the loss for the worst-case test distribution. However, our theoretical analyses show that the previous DRSL essentially reduces to ordinary empirical risk minimization in a classification scenario. This implies that the previous DRSL ends up learning classifiers exactly for the given training data even though it is designed to be robust to distribution shift from the training dataset. In order to learn practically useful robust classifiers, our theoretical analyses motivate us to structurally constrain the distribution shift considered by DRSL. To this end, we propose novel DRSL which can incorporate the structural assumptions on distribution shift and that can learn useful robust decision boundaries based on the assumptions. We derive efficient gradient-based optimization algorithms and establish the convergence rate of the model parameter as well as the order of the estimation error for our DRSL. The effectiveness of our DRSL is demonstrated through experiments.

Introduction

Standard Distributionally Robust Supervised Learning (DRSL) aims to handle real-world distribution shifts by minimizing loss against a worst-case "adversary" that shifts the training distribution within a defined uncertainty set. However, this paper identifies a "pessimism paradox" in classification tasks: standard robust methods often collapse back into ordinary Empirical Risk Minimization (ERM). This occurs because the adversary focuses on reweighting individual outliers rather than broader population shifts. To address this, we introduce Structural DRSL, a framework that uses domain knowledge to constrain the adversary's freedom, enabling the learning of truly robust classifiers.

Methodology

Theoretical analysis reveals that standard DRSL (referred to as AERM) is essentially equivalent to ERM in classification settings when using standard $f$-divergence balls (e.g., KL-divergence). This equivalence stems from the adversary's non-parametric freedom to reweight every data point independently, leading the model to overfit to hard-to-classify outliers.

We propose Structural Adversarial Risk Minimization (Structural ARM), which structurally constrains the adversary. Instead of point-wise reweighting, data is grouped into latent categories (e.g., by class label or metadata), and the adversary is restricted to shifting only the prior probabilities of these categories. We provide efficient gradient-based algorithms for:

  • Kullback-Leibler (KL) divergence: Solved via binary search.
  • Pearson (PE) divergence: Solved with a closed-form analytic solution.

Structural adversarial risk is decomposed into ordinary risk (average performance) and a sensitivity term (performance variance across sub-groups). A robust model aims for low sensitivity to changes in sub-group proportions.

Experimental Setup

We evaluated the approach on eight diverse datasets including UCI Repository (blood, adult, fourclass, phishing), Computer Vision (MNIST, satimage, letter), and Text Classification (20newsgroups). Robustness was tested by creating distribution shift scenarios:

  1. Class Prior Change: Shifting the proportions of the main classes.
  2. Sub-category Prior Change: Converting multi-class problems into binary problems and treating original labels as sub-categories with shifting proportions.

Results

Experimental results confirm that while standard AERM often performs poorly, Structural AERM achieves significantly better robustness.

As shown in Table 1a, Structural AERM consistently achieved the lowest estimated structural adversarial risk across almost all datasets in the class prior change scenario. For instance, on the 'blood' dataset, Structural AERM reduced the risk to 36.7% compared to 62.3% for ERM.

Table 1a: Experimental results for Class Prior Change

In the sub-category prior change scenario (Table 1b), the improvements were even more pronounced. On the 'letter' dataset, Structural AERM achieved a robust risk of 43.0%, while standard AERM actually performed worse than ERM (60.1% vs 52.1%).

Table 1b: Experimental results for Sub-category Prior Change

Conclusion

Structural ARM effectively addresses the pessimism paradox in classification by incorporating structural assumptions. A primary limitation is the requirement for predefined groupings. Future research will focus on automatically discovering latent categories and extending the framework to handle shifts in conditional distributions.

Summary updated

BibTeX
@inproceedings{hu2018revisiting,
  author = {Weihua Hu and Gang Niu and Issei Sato and Masashi Sugiyama},
  title = {{Revisiting Distributionally Robust Supervised Learning in Classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=HJZ8EjZdZH},
}
Figure