Causal Attention for Unbiased Visual Recognition
Authors:
- 1 October 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 3071-3080
Abstract
Attention module does not always help deep models learn causal features that are robust in any confounding context, e.g., a foreground object feature is invariant to different backgrounds. This is because the confounders trick the attention to capture spurious correlations that benefit the prediction when the training and testing data are IID (identical & independent distribution); while harm the prediction when the data are OOD (out-of-distribution). The sole fundamental solution to learn causal attention is by causal intervention, which requires additional annotations of the confounders, e.g., a "dog" model is learned within "grass+dog" and "road+dog" respectively, so the "grass" and "road" contexts will no longer confound the "dog" recognition. However, such annotation is not only prohibitively expensive, but also inherently problematic, as the confounders are elusive in nature. In this paper, we propose a causal attention module (CaaM) that self-annotates the confounders in unsupervised fashion. In particular, multiple CaaMs can be stacked and integrated in conventional attention CNN and self-attention Vision Transformer. In OOD settings, deep models with CaaM outperform those without it significantly; even in IID settings, the attention localization is also improved by CaaM, showing a great potential in applications that require robust visual saliency. Codes are available at https://github.com/Wangt-CN/CaaM.Keywords
All Related Versions
Funding Information
- Ministry of Education
This publication has 25 references indexed in Scilit:
- Squeeze-and-Excitation Networks2018
- Non-local Neural Networks2018
- Information Dropout: Learning Optimal Representations Through Noisy ComputationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2018
- Arbitrary Style Transfer in Real-Time with Adaptive Instance Normalization2017
- SCA-CNN: Spatial and Channel-Wise Attention in Convolutional Networks for Image Captioning2017
- Adversarial Discriminative Domain Adaptation2017
- Deep Residual Learning for Image Recognition2016
- Causality2009
- Control of goal-directed and stimulus-driven attention in the brainNature Reviews Neuroscience, 2002
- Statistics and Causal InferenceJournal of the American Statistical Association, 1986