[Paper Review] Attention Branch Network: Learning of Attention Mechanism for Visual Explanation
This paper proposes the Attention Branch Network (ABN), a novel CNN architecture that integrates a response-based visual explanation model into a dedicated attention branch to improve image recognition performance through end-to-end training. By leveraging attention maps generated during inference for both interpretability and feature refinement, ABN achieves state-of-the-art accuracy on image classification, fine-grained recognition, and multi-task facial attribute recognition tasks.
Visual explanation enables human to understand the decision making of Deep Convolutional Neural Network (CNN), but it is insufficient to contribute the performance improvement. In this paper, we focus on the attention map for visual explanation, which represents high response value as the important region in image recognition. This region significantly improves the performance of CNN by introducing an attention mechanism that focuses on a specific region in an image. In this work, we propose Attention Branch Network (ABN), which extends the top-down visual explanation model by introducing a branch structure with an attention mechanism. ABN can be applicable to several image recognition tasks by introducing a branch for attention mechanism and is trainable for the visual explanation and image recognition in end-to-end manner. We evaluate ABN on several image recognition tasks such as image classification, fine-grained recognition, and multiple facial attributes recognition. Experimental results show that ABN can outperform the accuracy of baseline models on these image recognition tasks while generating an attention map for visual explanation. Our code is available at https://github.com/machine-perception-robotics-group/attention_branch_network.
Motivation & Objective
- To address the lack of interpretability and performance improvement in deep CNNs by integrating visual explanation into the training process.
- To overcome the limitations of existing response-based visual explanation methods that require architectural modifications and reduce model accuracy.
- To develop a unified framework that simultaneously improves recognition accuracy and provides attention-based visual explanations through end-to-end training.
- To generalize the attention mechanism across diverse CNN architectures and image recognition tasks, including fine-grained and multi-task learning.
- To demonstrate that attention maps used for visual explanation can also serve as effective attention mechanisms to boost model performance.
Proposed method
- ABN introduces a three-branch architecture: a feature extractor, an attention branch for generating response-based attention maps, and a perception branch for classification.
- The attention branch uses a response-based visual explanation mechanism—inspired by Class Activation Mapping (CAM)—to produce attention maps from feature map responses without backpropagation.
- The attention map is applied to the feature maps via element-wise multiplication, allowing the network to focus on salient regions during classification.
- The network is trained end-to-end using combined losses from both the attention and perception branches, enabling joint optimization for accuracy and explainability.
- The method is modular and can be applied to various backbone networks such as VGG16, ResNet, and ResNeXt by inserting the attention branch after a feature extraction block.
- The attention mechanism is derived from the response of the last convolutional layer before global average pooling, enabling gradient-free, forward-pass attention map generation.
Experimental results
Research questions
- RQ1Can a response-based visual explanation method be effectively repurposed as an attention mechanism to improve CNN performance?
- RQ2Can an end-to-end trainable network simultaneously optimize for image recognition accuracy and provide meaningful visual explanations?
- RQ3Does integrating attention maps from visual explanation into the feature learning process lead to consistent performance gains across diverse image recognition tasks?
- RQ4How does the attention map distribution differ across tasks such as fine-grained recognition and multi-task facial attribute prediction?
- RQ5Can the proposed attention mechanism generalize across different CNN architectures and recognition benchmarks?
Key findings
- ABN achieves a 4.9% and 6.2% improvement in car model recognition accuracy on the CompCars dataset when using VGG16 and ResNet101 as backbones, respectively.
- For maker recognition on CompCars, ABN improves accuracy by 2.0% and 7.5% with VGG16 and ResNet101, respectively.
- On the CelebA dataset, ABN achieves a 91.07% average accuracy in multiple facial attribute recognition, outperforming ResNet101 (90.69%) and other state-of-the-art models.
- ABN improves performance on 27 out of 40 facial attribute tasks compared to ResNet101, with notable gains on challenging attributes like 'arched eyebrows' and 'wearing necklace'.
- t-SNE visualization confirms that ABN's feature maps are more discriminative, showing better clustering by car pose and detailed form due to attention-guided feature learning.
- Visualizations of attention maps show that ABN focuses on semantically relevant regions—such as eyes, mouth, and hair—corresponding to the attributes being predicted, validating the interpretability of the attention mechanism.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.