Distributionally Robust Learning With Stable Adversarial Training

Jiashuo Liu, Zheyan Shen, Peng Cui, Linjun Zhou, Kun Kuang, Bo Li · DOI

TL;DR

This paper introduces Stable Adversarial Learning (SAL), a novel approach to robust machine learning that tackles the "over-pessimism" problem in distributionally robust learning. SAL achieves this by learning to assign different levels of importance to different input features, focusing robustness efforts on the most unstable ones, leading to more practical and effective models under distributional shifts.

What Problem Does This Paper Address?

Traditional machine learning models, which optimize for average performance on training data, often fail when faced with real-world data that has shifted distributions. Distributionally Robust Learning (DRL) aims to fix this by optimizing for the worst-case scenario within an "uncertainty set" of possible distributions. However, existing DRL methods often create overly large uncertainty sets by treating all input features equally, leading to models that are too conservative ("over-pessimistic") and perform poorly in practice. This paper addresses the challenge of constructing a more practical and effective uncertainty set that accounts for the fact that some input features (covariates) are more stable than others, and thus should be treated differently in robustness training.

Methods

The core of the proposed method is Stable Adversarial Learning (SAL). SAL builds upon the framework of Wasserstein Distributionally Robust Learning (WDRL) but introduces a key innovation: an anisotropic uncertainty set. Instead of perturbing all covariates equally, SAL learns a set of covariate weights that determine how much each feature is perturbed during adversarial training.

Here's how it works:

  • Covariate Weighting: SAL learns a weight vector w where each element corresponds to a feature. Higher weights are assigned to stable features, meaning they are less perturbed, while lower weights are assigned to unstable features, making them more susceptible to adversarial attacks. This focuses the robustness effort on the features most likely to change and cause performance degradation.
  • Joint Optimization: The algorithm jointly optimizes the model's parameters (θ) and the covariate weights (w). This ensures that the learned weights are tailored to produce a robust model.
  • Objective Function: The objective function for learning w balances minimizing the average loss across training environments with maximizing the difference in loss between environments. This encourages weights that lead to stable performance across diverse conditions.
  • Tractable Optimization: The paper provides theoretical analysis and algorithmic details to show that SAL can be optimized efficiently using stochastic gradient-based methods.

Datasets

The paper uses both synthetic and real-world datasets for evaluation:

  • Synthetic Data:
    • A toy example to illustrate the over-pessimism of WDRL.
  • Data generated to simulate selection bias and anti-causal effects, introducing strong distributional shifts.
  • Real-world Data:
    • King County House Sales Dataset: A regression dataset used to evaluate performance under simulated distributional shifts based on the build year of houses.
  • Adult Dataset: A classification dataset used to predict income levels, with environments defined by demographic attributes.

Key Insights and Ideas

  • Covariate Stability Matters: The paper's central insight is that not all input features are created equal when it comes to distributional shifts. Stable features maintain their correlation with the target, while unstable features are more prone to change. SAL leverages this by differentially weighting covariates.
  • Anisotropic Uncertainty Sets: SAL's ability to learn anisotropic uncertainty sets is a significant departure from traditional DRL, which typically uses isotropic (uniform) uncertainty sets. This allows for more targeted and effective robustness.
  • Mitigating Over-Pessimism: By focusing perturbations on unstable features, SAL avoids the extreme conservatism of WDRL, leading to better performance and higher confidence in predictions.
  • Theoretical Guarantees: The paper provides theoretical analysis demonstrating that SAL constructs a more compact uncertainty set and offers robustness guarantees.

Key Results

  • Improved Performance: SAL consistently outperforms ERM, WDRL, and IRM across various simulation scenarios (selection bias, anti-causal effects) and real-world datasets (house price prediction, income prediction).
  • Reduced Prediction Error: SAL achieves significantly lower Mean Error and Std Error, indicating both better average performance and more stable predictions under distributional shifts.
  • Effective Covariate Weighting: Visualizations and learned coefficients show that SAL effectively assigns higher weights to stable features and lower weights to unstable ones, aligning with the intuition of the method.
  • Addressing Over-Pessimism: In classification tasks, SAL maintains higher prediction confidence compared to WDRL, which degrades to random guessing as the uncertainty set grows.

Limitations and Future Work

  • Assumption of Covariate Decomposition: The theoretical analysis relies on the assumption that covariates can be decomposed into stable and unstable sets. While this is a reasonable practical assumption, it might not hold in all complex real-world scenarios.
  • Hyperparameter Tuning: Like most machine learning methods, SAL's performance can be sensitive to hyperparameter choices (e.g., α, ρ).
  • Future Work: The authors suggest exploring more sophisticated methods for identifying stable and unstable covariates and extending SAL to more complex model architectures and data types. Further investigation into the theoretical properties of learned covariate weights and their impact on model interpretability is also a promising direction.

Summary updated

BibTeX
@article{liu2021distributionally,
  author = {Jiashuo Liu and Zheyan Shen and Peng Cui and Linjun Zhou and Kun Kuang and Bo Li},
  title = {{Distributionally Robust Learning With Stable Adversarial Training}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2021},
  doi = {10.1109/tkde.2022.3224056},
}
Figure