mlsanityData to 14 Oct 2026

Horizontal and Vertical Attention in Transformers

arXiv 2207.04399 ↗First posted 10 Jul 2022cs.CVcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformers are built upon multi-head scaled dot-product attention and positional encoding, which aim to learn the feature representations and token dependencies. In this work, we focus on enhancing the distinctive representation by learning to augment the feature maps with the self-attention mechanism in Transformers. Specifically, we propose the horizontal attention to re-weight the multi-head output of the scaled dot-product attention before dimensionality reduction, and propose the vertical attention to adaptively re-calibrate channel-wise feature responses by explicitly modelling inter-dependencies among different channels. We demonstrate the Transformer models equipped with the two attentions have a high generalization capability across different supervised learning tasks, with a very minor additional computational cost overhead. The proposed horizontal and vertical attentions are highly modular, which can be inserted into various Transformer models to further improve the performance. Our code is available in the supplementary material.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 26 of its 31 references that are in the map. First posted on arXiv 10 Jul 2022.

Builds on

26 of 31 references.

References · 26

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2017Squeeze-and-Excitation Networkscited by 4,789
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  6. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,546
  7. 2020Reformer: The Efficient Transformercited by 1,668
  8. 2016Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learningcited by 1,512
  9. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  10. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
  11. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  12. 2017Bottom-Up and Top-Down Attention for Image Captioning and Visual Question Answeringcited by 1,312
14 more
  1. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
  2. 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 968
  3. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
  4. 2020ResNeSt: Split-Attention Networkscited by 445
  5. 2019Meshed-Memory Transformer for Image Captioningcited by 343
  6. 2019Adaptive Attention Span in Transformerscited by 149
  7. 2019An Attentive Survey of Attention Modelscited by 124
  8. 2021Efficient Training of Visual Transformers with Small Datasetscited by 108
  9. 2016Edinburgh Neural Machine Translation Systems for WMT 16cited by 76
  10. 2020Masked Language Modeling for Proteins via Linearly Scalable Long-Context Transformerscited by 49
  11. 2018Multi-Head Attention with Disagreement Regularizationcited by 35
  12. 2017The University of Edinburgh's Neural MT Systems for WMT17cited by 16
  13. 2020Dual Attention on Pyramid Feature Maps for Image Captioningcited by 11
  14. 2019Improving Multi-Head Attention with Capsule Networkscited by 6

Built on by

Cited by year

Citing papers per year: 2022: 1.

1 paper.