# Learn To Pay Attention

Source: [Learn To Pay Attention](<https://www.sota2.com/research/paper/68fa644e1e209131cea03e58>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T21:01:12.135Z

Authors: Saumya Jetley, Nicholas A. Lord, Namhoon Lee, Philip H.S. Torr

Published: 2018-04-06T10:47:26.000Z

## Abstract

We propose an end-to-end-trainable attention module for convolutional neural network (CNN) architectures built for image classification. The module takes as input the 2D feature vector maps which form the intermediate representations of the input image at different stages in the CNN pipeline, and outputs a 2D matrix of scores for each map. Standard CNN architectures are modified through the incorporation of this module, and trained under the constraint that a convex combination of the intermediate 2D feature vectors, as parameterised by the score matrices, must \\textit{alone} be used for classification. Incentivised to amplify the relevant and suppress the irrelevant or misleading, the scores thus assume the role of attention values. Our experimental observations provide clear evidence to this effect: the learned attention maps neatly highlight the regions of interest while suppressing background clutter. Consequently, the proposed function is able to bootstrap standard CNN architectures for the task of image classification, demonstrating superior generalisation over 6 unseen benchmark datasets. When binarised, our attention maps outperform other CNN-based attention maps, traditional saliency maps, and top object proposals for weakly supervised segmentation as demonstrated on the Object Discovery dataset. We also demonstrate improved robustness against the fast gradient sign method of adversarial attack.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Image Classification on CIFAR-100 (val)](<https://www.sota2.com/research/sota/image-classification-on-cifar-100-val.md>): Image Classification; CIFAR-100 (val); Accuracy: not recorded.

- [Image Classification on CIFAR-100](<https://www.sota2.com/research/sota/image-classification-on-cifar-100.md>): Image Classification; CIFAR-100; Accuracy: not recorded.

- [Image Classification on CIFAR-10](<https://www.sota2.com/research/sota/image-classification-on-cifar-10.md>): Image Classification; CIFAR-10; Accuracy: not recorded.

- [Image Classification on CIFAR-10 (val)](<https://www.sota2.com/research/sota/image-classification-on-cifar-10-val.md>): Image Classification; CIFAR-10 (val); Top-1 Accuracy: not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/1804.02391>)

[PDF](<https://arxiv.org/pdf/1804.02391.pdf>)
