Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Attention Mechanisms in Computer Vision: A Survey

Survey sorts computer vision attention methods by the operation they perform

  • Problem Attention methods in vision are usually grouped by task, so a reader cannot see which design choices carry across tasks. Earlier surveys also covered only parts of the field, such as RNN-based attention.
  • Method The authors sort attention methods by the data domain each one weights. Four basic groups are channel, spatial, temporal and branch attention, plus two hybrids that combine them.
  • Results The survey sorts existing methods into six categories, four basic and two hybrid. Empty cells in the grid mark combinations that no method has yet reported.

Why application-based grouping hides the design choices

Attention is, in this survey's framing, a way of weighting features by how much they matter for the input. Such methods now appear in image classification, object detection, semantic segmentation, video understanding and more. The field has also moved quickly, and the authors split its history into four loose phases, from recurrent models to self-attention.

Because the same idea returns in different tasks, a list organised by task makes it hard to see which design choices carry over.

Earlier surveys mostly organised the topic around the fields where the methods were applied. One covers attention in deep networks for natural language processing, and others focus on visual transformers only. The survey by Wang et al. covers only RNN-based attention in vision, which is one part of the picture. So a reader looking for a channel reweighting module has to search across tasks, and the operation the module shares with others stays hidden.

Attention as a weighting step over features

The key idea is that most attention methods share one structure: a signal is computed from the input, and that signal reweights the input. The survey writes this as \( Attention = f(g(x), x) \), where g(x) produces the attention signal and f combines it with the input x. The g(x) part is meant to find the discriminative regions, which is the role attention plays in human vision.

The authors argue this form is necessary but not sufficient, because GoogleNet fits the formula without being an attention mechanism.

In many of the surveyed modules the output is \( Y = sX \), where s is a mask and X is the input feature map. Table 1 defines X as an input feature map of size C by H by W, and Y as the output feature map. A soft attention weight can be read as the relative importance of a location, while a hard attention weight can be read as the probability that the location is the right one to focus on.

Four basic categories and two hybrids

The survey sorts existing methods into six groups, and the sorting follows the data domain each method acts on. Four groups are basic: channel attention asks what to attend to, spatial attention asks where, temporal attention asks when, and branch attention asks which branch. Channel, spatial and temporal attention act on different axes of a feature, while branch attention is complementary to them and works across parallel branches.

The two hybrids combine channel with spatial attention, or spatial with temporal attention.

This domain-based sorting is the paper's main contribution, since it ties a method to its operation rather than to the task where it was tested. The authors also mark the combinations that don't yet exist, so the empty cells show where no method has been reported. Under this scheme SENet is read as a channel method whether it is used for classification or for detection.

How spatial attention chooses regions

RAM takes a different route, reaching regions through a sequence of glimpses rather than through one weight map. The glimpse sensor takes a coordinate and the image, then returns patches centred on that coordinate. An RNN combines the glimpse feature with its internal state, then outputs the next coordinate and an action. Choosing the next coordinate is not differentiable, so RAM is updated with reinforcement learning rather than ordinary backpropagation.

STN takes a more direct route, predicting an affine transformation with a sub-network so the network samples the most relevant regions. Deformable ConvNets go further and learn offsets, so the sampling grid moves with the input. Because those offsets are fractional, bilinear interpolation is used to sample the feature map at them.

Self-attention works differently, with each position weighing every other position through queries, keys and values. The attention matrix is N by N, so the cost grows quadratically with the number of positions.

Temporal and branch attention

GLTR pairs a dilated temporal pyramid for short-range context with a self-attention module for global temporal interaction. Its self-attention has quadratic time complexity, which limits where it can be applied. TAM replaces self-attention with an adaptive kernel for its global branch, while a local branch uses 1D convolutions. The authors report that TAM has lower time complexity than GLTR.

Branch attention starts from the highway network, which uses a learned gate to mix a transformed signal with a skip path. SKNet builds branches with different kernel sizes, fuses them by element-wise summation, and uses a gate vector to select among them. CondConv instead combines several convolution kernels, which raises capacity without the extra cost of a deeper or wider network.

Combining channel and spatial weights

DANet runs a position attention module and a channel attention module in parallel, then sums their outputs. The position branch uses a softmax over query-key similarities, while the channel branch works on the similarity of the features themselves. This captures long-range context well, but it is costly for large feature maps.

Coordinate attention pools along each axis separately, so the two resulting weights keep positional information. SimAM takes the opposite route with no learned parameters, computing an energy for each neuron. It applies a sigmoid to one over the energy and multiplies the input by the result.

Open problems

The authors couldn't find a necessary and sufficient condition for all attention mechanisms. They propose a general attention block that could choose channel, spatial or temporal weights per task, since each task now needs its own design. Interpretability is another gap, because attention maps give an intuitive feel rather than a precise account of what the model does.

Visualised attention maps from ViT show sparse activation, and the authors suggest that sparsity may help performance. Attention models often need optimisers other than SGD and Adam, and deploying them on edge devices is harder than deploying CNNs. The survey reports no new experiments, so its claims rest on the works it cites.

Paper info

Authors
Meng-Hao Guo, Tian-Xing Xu, Jiang-Jiang Liu, Zheng-Ning Liu, Peng-Tao Jiang, Tai-Jiang Mu, Song-Hai Zhang, Ralph R. Martin, Ming-Ming Cheng, Shi-Min Hu
Venue
arXiv · Preprint
First published
2021-11-15
Added
2026-11-12
Updated
2021-11-15
Version
v1
arXiv
2111.07624
DOI
10.1007/s41095-022-0271-y
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Meng-Hao Guo, Tian-Xing Xu, Jiang-Jiang Liu, Zheng-Ning Liu, Peng-Tao Jiang, Tai-Jiang Mu, Song-Hai Zhang, Ralph R. Martin, Ming-Ming Cheng, Shi-Min Hu (2021). Attention Mechanisms in Computer Vision: A Survey. arXiv:2111.07624v1. https://doi.org/10.1007/s41095-022-0271-y

BibTeX
@article{guo2021attention,
  title = {{Attention Mechanisms in Computer Vision: A Survey}},
  author = {Meng-Hao Guo and Tian-Xing Xu and Jiang-Jiang Liu and Zheng-Ning Liu and Peng-Tao Jiang and Tai-Jiang Mu and Song-Hai Zhang and Ralph R. Martin and Ming-Ming Cheng and Shi-Min Hu},
  year = {2021},
  eprint = {2111.07624},
  archivePrefix = {arXiv},
  doi = {10.1007/s41095-022-0271-y},
  url = {https://arxiv.org/abs/2111.07624v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up