Attention Consistency on Visual Corruptions for Single-Source Domain Generalization

Ilke Cugu, Massimiliano Mancini, Yanbei Chen, Zeynep Akata
4/27/2022
cs.CV

Official code: ExplainableML/ACVC (29 stars, Python, MIT, PyTorch, last commit 2023-02-22).

Abstract

Generalizing visual recognition models trained on a single distribution to unseen input distributions (i.e. domains) requires making them robust to superfluous correlations in the training set. In this work, we achieve this goal by altering the training images to simulate new domains and imposing consistent visual attention across the different views of the same sample.

Show full abstract

We discover that the first objective can be simply and effectively met through visual corruptions. Specifically, we alter the content of the training images using the nineteen corruptions of the ImageNet-C benchmark and three additional transformations based on Fourier transform. Since these corruptions preserve object locations, we propose an attention consistency loss to ensure that class activation maps across original and corrupted versions of the same training sample are aligned. We name our model Attention Consistency on Visual Corruptions (ACVC). We show that ACVC consistently achieves the state of the art on three single-source domain generalization benchmarks, PACS, COCO, and the large-scale DomainNet.

View on arXivView PDF

Code Implementations(1)

ExplainableML/ACVCOfficial100%
PyTorchMIT

Official PyTorch implementation of CVPRW 2022 paper "Attention Consistency on Visual Corruptions for Single-Source Domain Generalization"

290Python, ShellApr 8, 20223 years agoMIT
computer-visioncvprcvpr2022cvprwcvprw2022+7 more

Similar Papers

Cite this paper

@article{cugu2022attention,
  title  = {Attention Consistency on Visual Corruptions for Single-Source Domain Generalization},
  author = {Ilke Cugu and Massimiliano Mancini and Yanbei Chen and Zeynep Akata},
  year   = {2022},
  eprint = {2204.13091},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.13091}
}

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

Discussion