Model Patching: Closing the Subgroup Performance Gap with Data Augmentation

Karan Goel, Albert Gu, Yixuan Li, Christopher Ré
8/15/2020
cs.LGcs.AIcs.CV

Official code: HazyResearch/model-patching (41 stars, Python, Apache-2.0, last commit 2020-11-17).

Abstract

Classifiers in machine learning are often brittle when deployed. Particularly concerning are models with inconsistent performance on specific subgroups of a class, e.g., exhibiting disparities in skin cancer classification in the presence or absence of a spurious bandage.

Show full abstract

To mitigate these performance differences, we introduce model patching, a two-stage framework for improving robustness that encourages the model to be invariant to subgroup differences, and focus on class information shared by subgroups. Model patching first models subgroup features within a class and learns semantic transformations between them, and then trains a classifier with data augmentations that deliberately manipulate subgroup features. We instantiate model patching with CAMEL, which (1) uses a CycleGAN to learn the intra-class, inter-subgroup augmentations, and (2) balances subgroup performance using a theoretically-motivated subgroup consistency regularizer, accompanied by a new robust objective. We demonstrate CAMEL's effectiveness on 3 benchmark datasets, with reductions in robust error of up to 33% relative to the best baseline. Lastly, CAMEL successfully patches a model that fails due to spurious features on a real-world skin cancer dataset.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Model Patching: Closing the Subgroup Performance Gap with Data Augmentation

414PythonAug 14, 20206 years agoApache-2.0

Similar Papers

Cite this paper

@article{goel2020model,
  title  = {Model Patching: Closing the Subgroup Performance Gap with Data Augmentation},
  author = {Karan Goel and Albert Gu and Yixuan Li and Christopher Ré},
  year   = {2020},
  eprint = {2008.06775},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.06775}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2008.06775.svg)](https://codeofpaper.com/paper/2008.06775)

Discussion