Skip to main content
QUICK REVIEW

[Paper Review] Causal Attention for Vision-Language Tasks

Xu Yang, Hanwang Zhang|arXiv (Cornell University)|Mar 5, 2021
Multimodal Machine Learning ApplicationsComputer Science76 references5 citations
TL;DR

This paper proposes Causal Attention (CATT), a novel attention mechanism that mitigates spurious correlations in vision-language models by leveraging front-door adjustment to counteract unobserved confounders. By combining In-Sample Attention and Cross-Sample Attention, CATT improves model generalization across vision-language tasks, achieving state-of-the-art performance with significant gains on LXMERT and Transformer-based models.

ABSTRACT

We present a novel attention mechanism: Causal Attention (CATT), to remove the ever-elusive confounding effect in existing attention-based vision-language models. This effect causes harmful bias that misleads the attention module to focus on the spurious correlations in training data, damaging the model generalization. As the confounder is unobserved in general, we use the front-door adjustment to realize the causal intervention, which does not require any knowledge on the confounder. Specifically, CATT is implemented as a combination of 1) In-Sample Attention (IS-ATT) and 2) Cross-Sample Attention (CS-ATT), where the latter forcibly brings other samples into every IS-ATT, mimicking the causal intervention. CATT abides by the Q-K-V convention and hence can replace any attention module such as top-down attention and self-attention in Transformers. CATT improves various popular attention-based vision-language models by considerable margins. In particular, we show that CATT has great potential in large-scale pre-training, e.g., it can promote the lighter LXMERT~\cite{tan2019lxmert}, which uses fewer data and less computational power, comparable to the heavier UNITER~\cite{chen2020uniter}. Code is published in \url{https://github.com/yangxuntu/catt}.

Motivation & Objective

  • Address the persistent issue of confounding bias in attention-based vision-language models, where models learn spurious correlations from training data.
  • Overcome the limitation of existing deconfounding methods that require observed confounders or strong assumptions.
  • Develop a plug-in attention mechanism compatible with existing Transformer architectures to improve model robustness and generalization.
  • Enable effective causal intervention without observing the confounder, using the front-door adjustment principle.
  • Demonstrate the effectiveness of CATT across multiple vision-language benchmarks, including image captioning and VQA, especially in low-data and large-scale pre-training settings.

Proposed method

  • Propose Causal Attention (CATT) as a replacement for standard attention modules, combining In-Sample Attention (IS-ATT) and Cross-Sample Attention (CS-ATT) to simulate causal intervention.
  • Implement IS-ATT as standard attention over features from the same sample, while CS-ATT introduces attention over a global dictionary of features from other samples to mimic interventional distributions.
  • Use the front-door adjustment framework to estimate the causal effect of visual input on language output without observing the confounder, relying on observed backdoor paths.
  • Maintain the standard Q-K-V attention mechanism, enabling CATT to be directly plugged into existing models like Transformers and top-down attention modules.
  • Train the global visual and word dictionaries end-to-end via K-means initialization and fine-tuning, ensuring the model learns representative causal features.
  • Share parameters between IS-ATT and CS-ATT in each CATT block to maintain feature space consistency and reduce parameter overhead.
Figure 1: Top: an example of image captioner with a self-attention and a top-down attention modules. Bottom: the corresponding causal graph. The reason why the prediction is “riding” but not “driving” is explained in Figure 3 .
Figure 1: Top: an example of image captioner with a self-attention and a top-down attention modules. Bottom: the corresponding causal graph. The reason why the prediction is “riding” but not “driving” is explained in Figure 3 .

Experimental results

Research questions

  • RQ1Can a causal attention mechanism reduce spurious correlations in vision-language models without requiring knowledge of the confounder?
  • RQ2How does CATT improve model generalization in the presence of dataset biases such as Zipf’s law and social conventions?
  • RQ3To what extent can CATT enhance performance in low-data and large-scale pre-training scenarios, such as with LXMERT?
  • RQ4Does CATT outperform standard attention mechanisms in both image captioning and VQA benchmarks?
  • RQ5Can CATT be seamlessly integrated into existing Transformer-based architectures without architectural overhaul?

Key findings

  • CATT significantly improves performance on image captioning and VQA, with Transformer + CATT achieving 38.8 BLEU-4, 70.6 CIDEr, and 128.8 test loss, outperforming the base Transformer.
  • On the LXMERT model, CATT enables a lighter model to match the performance of a heavier UNITER model, demonstrating strong efficiency and generalization gains.
  • Qualitative results show CATT correctly predicts gender in image captioning without relying on spurious correlations (e.g., 'woman' with 'kitchen').
  • CATT mitigates the negative impact of pre-training on attention quality, reversing the degradation trend observed in standard models after large-scale pre-training.
  • The method effectively reduces attention to spurious object pairs (e.g., 'person' and 'horse' for 'riding') when the correct context is 'driving carriage'.
  • CATT maintains performance gains across multiple datasets and tasks, including VQA and image captioning, with consistent improvements in BLEU, CIDEr, and exact match metrics.
Figure 2: Before pre-training ( \eg , LXMERT [ 61 ] ), attentions are correct (blue). After pre-training, attentions are wrong (red). This is because the co-occurrences of some concepts appear much more often than others, \eg , “Sport+Man” appears 213 times more than “Sport+Screen” in the pre-traini
Figure 2: Before pre-training ( \eg , LXMERT [ 61 ] ), attentions are correct (blue). After pre-training, attentions are wrong (red). This is because the co-occurrences of some concepts appear much more often than others, \eg , “Sport+Man” appears 213 times more than “Sport+Screen” in the pre-traini

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.