Sparse and Structured Visual Attention

Pedro Henrique Martins, Vlad Niculae, Zita Marinho, André Martins
2/13/2020
cs.CLcs.CV
transformer-attention

Official code: deep-spin/TVmax (2 stars, Python, last commit 2021-12-21).

Abstract

Visual attention mechanisms are widely used in multimodal tasks, as visual question answering (VQA). One drawback of softmax-based attention mechanisms is that they assign some probability mass to all image regions, regardless of their adjacency structure and of their relevance to the text.

Show full abstract

In this paper, to better link the image structure with the text, we replace the traditional softmax attention mechanism with two alternative sparsity-promoting transformations: sparsemax, which is able to select only the relevant regions (assigning zero weight to the rest), and a newly proposed Total-Variation Sparse Attention (TVmax), which further encourages the joint selection of adjacent spatial locations. Experiments in VQA show gains in accuracy as well as higher similarity to human attention, which suggests better interpretability.

View on arXivView PDF

Code Implementations(1)

deep-spin/TVmaxOfficial100%
21PythonMay 26, 20214 years ago

Similar Papers

Cite this paper

@article{martins2020sparse,
  title  = {Sparse and Structured Visual Attention},
  author = {Pedro Henrique Martins and Vlad Niculae and Zita Marinho and André Martins},
  year   = {2020},
  eprint = {2002.05556},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.05556}
}

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

Discussion