NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model-Based Robust Deep Learning: Generalizing to Natural, Out-of-Distribution Data

Alexander Robey, Hamed Hassani, George J. PappasOpenReview 2020

TL;DR

This paper introduces "model-based robust deep learning," a new paradigm that trains neural networks to be resilient against natural variations in data (like lighting or weather changes) by first learning models of these variations. This approach significantly outperforms existing methods in handling real-world data shifts, achieving up to a 30% improvement in accuracy on challenging benchmarks.

What Problem Does This Paper Address?

Deep learning models, despite their impressive performance, are notoriously brittle. While much research has focused on making them robust to imperceptible, artificially crafted "adversarial examples" (small, norm-bounded perturbations), these models often fail dramatically when faced with more common, natural variations in data. Think about how a self-driving car's perception system might struggle with sudden changes in lighting, fog, or rain. These "out-of-distribution" shifts, which are unbounded and don't follow simple mathematical constraints, pose a significant threat to safety-critical applications. Existing adversarial training methods are ill-equipped to handle these natural, often perceptually distinct, variations. This paper aims to bridge this gap by developing a general framework for training models that are robust to these real-world data shifts.

Methods

The core innovation is a shift from perturbing data to modeling natural variation. The authors propose a "model-based robust deep learning" paradigm. This involves two key steps:

  1. Modeling Natural Variation: They first obtain models, denoted as $G(x, \delta)$, that describe how data $x$ can be transformed by a nuisance parameter $\delta$ into a new data point $x'$. These models can either be known a priori (e.g., geometric transformations) or, more importantly, learned from unlabeled data using deep generative models like MUNIT. This allows them to capture complex, non-linear variations.
  2. Model-Based Robust Training: Using these learned or known variation models, they formulate a novel robust optimization problem. Instead of finding the worst-case norm-bounded perturbation, they search for the most challenging natural variation $\delta$ that maximizes the loss. They then train the neural network to be robust against these challenging, model-generated variations. Three training algorithms are proposed:
  3. Model-based Robust Training (MRT): A sampling-based approach that randomly samples nuisance parameters to find challenging variations.
  4. Model-based Adversarial Training (MAT): Uses gradient-based ascent in the nuisance space to find worst-case variations, assuming the variation model is differentiable.
  5. Model-based Data Augmentation (MDA): Randomly samples nuisance parameters to create a diverse set of augmented data, aiming for broader robustness.

Datasets

The paper leverages a wide array of datasets for training and evaluation, including:

  • Standard Benchmarks: MNIST, SVHN, GTSRB, CURE-TSR, ImageNet.
  • ImageNet-c: A recently curated dataset specifically designed to test robustness against various corruptions like snow, rain, and fog.
  • Newly Curated Datasets: The authors created new datasets to evaluate robustness against simultaneous distributional shifts (e.g., changes in both brightness and contrast).

Key Insights and Ideas

  • Natural Variation is a Distinct Challenge: The paper clearly distinguishes between norm-bounded adversarial perturbations and unbounded natural variations, highlighting that existing defenses are insufficient for the latter.
  • Modeling is Key: The ability to learn and utilize models of natural variation is central to achieving robustness against real-world shifts. This moves beyond simple data augmentation to a more principled approach.
  • Transferability of Models: Models of natural variation learned on one dataset can be effectively reused on entirely unseen datasets, demonstrating a powerful form of transfer learning for robustness.
  • Composability of Variations: Models of natural variation can be combined to create robustness against multiple simultaneous shifts, mimicking complex real-world scenarios.

Key Results

  • Significant Accuracy Improvements: Across numerous experiments on twelve datasets, model-based training algorithms consistently outperformed baselines like ERM, PGD-based adversarial training, and domain adaptation techniques.
  • ImageNet-c Performance: When tested on ImageNet-c, the proposed algorithms improved top-1 accuracy by up to 30 percentage points compared to baselines.
  • Robustness to Unseen Domains: Models of natural variation trained on one dataset could be applied to unseen datasets, yielding robustness improvements of up to 40 percentage points.
  • Unsupervised Domain Adaptation: In the setting of unsupervised domain adaptation, the model-based approach significantly outperformed traditional methods, often by 10-20 percentage points.

Limitations and Future Work

  • Model Quality: The effectiveness of the model-based approach is directly tied to the quality of the learned models of natural variation. The paper acknowledges that ensuring deep generative models accurately reflect natural conditions is an open problem.
  • Algorithm Selection: The paper discusses the impact of hyperparameters like $k$ (number of samples/steps) and suggests that sampling-based methods (MRT, MDA) might be more suitable for diverse natural variations, while gradient-based methods (MAT) could be better for single, challenging shifts.
  • Theoretical Foundations: The authors identify open questions regarding the types of models that provide significant robustness, the required accuracy of variation models, and the theoretical underpinnings of this paradigm.
  • Broader Applications: While demonstrated on image classification, the paradigm is expected to extend to other domains like robotics and semantic segmentation.
  • Learning Models: Exploring new architectures and more rigorous statistical analyses for learning models of natural variation is a key future direction.

Summary updated

BibTeX
@misc{robey2020model,
  author = {Alexander Robey and Hamed Hassani and George J. Pappas},
  title = {{Model-Based Robust Deep Learning: Generalizing to Natural, Out-of-Distribution Data}},
  year = {2020},
  url = {https://openreview.net/forum?id=RgDq8-AwvtN},
  howpublished = {OpenReview},
}

Loading related content...

Figure