Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Weakly Supervised Object Localization via Transformer with Implicit Spatial Calibration

About

Weakly Supervised Object Localization (WSOL), which aims to localize objects by only using image-level labels, has attracted much attention because of its low annotation cost in real applications. Recent studies leverage the advantage of self-attention in visual Transformer for long-range dependency to re-active semantic regions, aiming to avoid partial activation in traditional class activation mapping (CAM). However, the long-range modeling in Transformer neglects the inherent spatial coherence of the object, and it usually diffuses the semantic-aware regions far from the object boundary, making localization results significantly larger or far smaller. To address such an issue, we introduce a simple yet effective Spatial Calibration Module (SCM) for accurate WSOL, incorporating semantic similarities of patch tokens and their spatial relationships into a unified diffusion model. Specifically, we introduce a learnable parameter to dynamically adjust the semantic correlations and spatial context intensities for effective information propagation. In practice, SCM is designed as an external module of Transformer, and can be removed during inference to reduce the computation cost. The object-sensitive localization ability is implicitly embedded into the Transformer encoder through optimization in the training phase. It enables the generated attention maps to capture the sharper object boundaries and filter the object-irrelevant background area. Extensive experimental results demonstrate the effectiveness of the proposed method, which significantly outperforms its counterpart TS-CAM on both CUB-200 and ImageNet-1K benchmarks. The code is available at https://github.com/164140757/SCM.

Haotian Bai, Ruimao Zhang, Jiong Wang, Xiang Wan• 2022

Related benchmarks

TaskDatasetResultRank
Weakly Supervised Object LocalizationCUB (test)
Top-1 Loc Acc76.4
80
Object LocalizationImageNet-1k (val)
Top-1 Loc Acc56.1
80
Object LocalizationCUB-200-2011 (test)
Top-1 Loc. Accuracy76.4
68
Image ClassificationCUB (test)
Top-1 Accuracy78.5
31
Object LocalizationCUB v2
Max Box Acc V289.9
20
Image ClassificationGBC dataset (test)
Accuracy79.5
15
Weakly Supervised Object LocalizationILSVRC (test)
Top-1 Loc Acc56.1
14
Weakly Supervised Object LocalizationCUB-200-2011 v2
MaxBoxAccV289.9
10
Weakly Supervised Object LocalizationImageNet-1k (val)
Top-1 Loc Acc56.1
10
Image ClassificationILSVRC (test)
Top-1 Accuracy76.7
9
Showing 10 of 14 rows

Other info

Code

Follow for update