Papers › Attention Branch Network: Learning of Attention Mechanism for Visual Explanation

Attention Branch Network: Learning of Attention Mechanism for Visual Explanation

25 Dec 2018CVPR 2019 6arXiv:1812.10025archive 2025-07-28

Hiroshi Fukui, Tsubasa Hirakawa, Takayoshi Yamashita, Hironobu Fujiyoshi

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1812.10025")

Code

Syntology Ran 2 of 24 code samples harvested from 2 repositories linked to this paper; 22 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

By repository: official repository: 10 samples from 1 repository, 2 ran; community (archive-listed): 14 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

machine-perception-robotics-group/attention_branch_network officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 2 ran; 0 honoured the contract we drafted; 22 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
22unverified

Licence: 0 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv3x3 machine-perception-robotics-group/attention_branch_network/models/cifar/resnet.py official repository ran · our draft was wrong MIT (permissive) · fac5364e2f53c6db · report
plot_overlap machine-perception-robotics-group/attention_branch_network/utils/logger.py official repository ran · our draft was wrong MIT (permissive) · 50afa2863ffd9fde · report
colorize machine-perception-robotics-group/attention_branch_network/utils/visualize.py official repository unverified MIT (permissive) · c87e7665fde6cdfc · report
gauss machine-perception-robotics-group/attention_branch_network/utils/visualize.py official repository unverified MIT (permissive) · d66f0a3cbb86204c · report
get_mean_and_std machine-perception-robotics-group/attention_branch_network/utils/misc.py official repository unverified MIT (permissive) · 1d6e2edb8832d7b0 · report
make_image machine-perception-robotics-group/attention_branch_network/utils/visualize.py official repository unverified MIT (permissive) · 1394422d51c4b126 · report
resnet18 machine-perception-robotics-group/attention_branch_network/models/imagenet/resnet.py official repository unverified MIT (permissive) · ac0a3fc9f67b5838 · report
resnet34 machine-perception-robotics-group/attention_branch_network/models/imagenet/resnet.py official repository unverified MIT (permissive) · 38fb052bcacc8fd4 · report
se_resnet_18 machine-perception-robotics-group/attention_branch_network/models/imagenet/senet_resnet.py official repository unverified MIT (permissive) · 0743eaa7c20d2dcd · report
se_resnet_34 machine-perception-robotics-group/attention_branch_network/models/imagenet/senet_resnet.py official repository unverified MIT (permissive) · a2e7b01d49ea2d31 · report
binary_focal_loss_with_logits machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/nn/functional.py community (archive-listed) unverified MIT (permissive) · 47c2b42c776a53cb · report
destandardize machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/attention.py community (archive-listed) unverified MIT (permissive) · e720010f01055473 · report
get_celeba_frequency_histogram machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/datasets/celeba.py community (archive-listed) unverified MIT (permissive) · 234594541416d949 · report
load_args machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/utils.py community (archive-listed) unverified MIT (permissive) · 65829cf2917b3558 · report
load_checkpoint machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/utils.py community (archive-listed) unverified MIT (permissive) · c7d8d95541a374e2 · report
mtabn_v1_resnet18 machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/models/resnet_mtabn_v1.py community (archive-listed) unverified MIT (permissive) · 6592afe32745dc44 · report
mtabn_v1_resnet34 machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/models/resnet_mtabn_v1.py community (archive-listed) unverified MIT (permissive) · edc297b39164c0b0 · report
mtabn_v1_resnet50 machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/models/resnet_mtabn_v1.py community (archive-listed) unverified MIT (permissive) · 18214b6aedae72b0 · report
mtabn_v2_resnet18 machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/models/resnet_mtabn_v2.py community (archive-listed) unverified MIT (permissive) · cfb9271275aaa4a0 · report
mtabn_v2_resnet34 machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/models/resnet_mtabn_v2.py community (archive-listed) unverified MIT (permissive) · 75ac9db68ee7f5ec · report
mtabn_v2_resnet50 machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/models/resnet_mtabn_v2.py community (archive-listed) unverified MIT (permissive) · aeb1f09ac10440c0 · report
normalize machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/attention.py community (archive-listed) unverified MIT (permissive) · bcc372d89673d501 · report
normalize_pos_neg machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/attention.py community (archive-listed) unverified MIT (permissive) · da0371a734c15317 · report
weighted_binary_focal_loss_with_logits machine-perception-robotics-group/ABN_CelebA_PyTorch/mtabn/nn/functional.py community (archive-listed) unverified MIT (permissive) · 923b2c3bc7b852da · report

Tasks

Decision MakingImage Classificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections