Towards Robust Classification Model by Counterfactual and Invariant Data Generation

Chun-Hao Chang, George Alexandru Adam, Anna Goldenberg
6/2/2021
cs.CVcs.AI

Official code: zzzace2000/robust_cls_model (16 stars, Python, Apache-2.0, last commit 2021-07-29).

Abstract

Despite the success of machine learning applications in science, industry, and society in general, many approaches are known to be non-robust, often relying on spurious correlations to make predictions. Spuriousness occurs when some features correlate with labels but are not causal; relying on such features prevents models from generalizing to unseen environments where such correlations break.

Show full abstract

In this work, we focus on image classification and propose two data generation processes to reduce spuriousness. Given human annotations of the subset of the features responsible (causal) for the labels (e.g. bounding boxes), we modify this causal set to generate a surrogate image that no longer has the same label (i.e. a counterfactual image). We also alter non-causal features to generate images still recognized as the original labels, which helps to learn a model invariant to these features. In several challenging datasets, our data generations outperform state-of-the-art methods in accuracy when spurious correlations break, and increase the saliency focus on causal features providing better explanations.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The code to reproduce CVPR 2021 paper "Towards Robust Classification Model by Counterfactual and Invariant Data Generation"

161Python, ShellMar 29, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{chang2021towards,
  title  = {Towards Robust Classification Model by Counterfactual and Invariant Data Generation},
  author = {Chun-Hao Chang and George Alexandru Adam and Anna Goldenberg},
  year   = {2021},
  eprint = {2106.01127},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.01127}
}

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/2106.01127.svg)](https://codeofpaper.com/paper/2106.01127)

Discussion