Abstract
Weakly Supervised Object Localization (WSOL) aims to localize objects using only image-level labels. While Convolutional Neural Networks (CNNs) often focus on small discriminative regions and Vision Transformers (ViTs) produce coarse localization maps due to a lack of local inductive bias, we propose the Local Continuity TRansformer (LCTR). LCTR "awakens" local continuity within the transformer architecture by integrating two novel modules: the Relational Patch-Attention Module (RPAM) and the Cue Digging Module (CDM). RPAM enhances global structure with local feature details, while CDM encourages the model to identify less prominent object parts. LCTR achieves state-of-the-art performance on CUB-200-2011 and ILSVRC benchmarks, demonstrating superior ability in capturing full object extents and fine details.
Introduction
Weakly Supervised Object Localization (WSOL) is a challenging task in computer vision where the goal is to identify the spatial extent of objects using only image-level category labels for training. Traditional approaches have relied heavily on Convolutional Neural Networks (CNNs). However, CNN-based methods, such as Class Activation Mapping (CAM), typically suffer from an "over-focusing" problem, where the network only highlights the most discriminative parts of an object (e.g., the head of a bird) rather than its entire body.
Recently, Vision Transformers (ViTs) have been explored for WSOL due to their ability to capture long-range dependencies via self-attention. While ViTs provide a more global view, they lack the "locality inductive bias" inherent in CNNs. This often results in coarse, blurry localization maps that fail to capture sharp boundaries and fine-grained details. LCTR addresses this by re-introducing local continuity into the transformer framework, bridging the gap between global context and local precision.
Methods
The LCTR framework is built upon a standard transformer backbone (e.g., DeiT-S) and introduces two primary components to enhance localization: the Relational Patch-Attention Module (RPAM) and the Cue Digging Module (CDM).
Relational Patch-Attention Module (RPAM)
Standard transformers often localize objects based on the attention weights between image patches and a special "class token." While effective for classification, this can be insufficient for precise localization. RPAM extends this by modeling global patch-to-patch relationships. It utilizes the class-token attention as a guide to weight a comprehensive "patch relation map." This ensures that the model maintains local feature continuity while benefiting from the transformer's global structural understanding.
Cue Digging Module (CDM)
To prevent the model from focusing solely on the most salient features, the CDM employs a strategy inspired by adversarial erasing. It identifies highly discriminative regions and suppresses them, forcing the network to "dig" for weaker, secondary cues that constitute the rest of the object (such as tails or limbs). This is implemented using learnable convolutional kernels that are dynamically weighted to reward activations from these subtle regions, effectively "filling in" the localization map.
Results
LCTR was evaluated on two major benchmarks: CUB-200-2011 (fine-grained birds) and ILSVRC (large-scale ImageNet).
Quantitative Performance
LCTR established new state-of-the-art (SOTA) results:
- CUB-200-2011: LCTR achieved a Top-1 localization accuracy of 79.2%, representing a significant 7.9% improvement over the previous transformer-based baseline, TS-CAM.
- ILSVRC: The model reached 56.1% Top-1 localization accuracy, outperforming both established CNN-based methods and recent transformer-based competitors.
Qualitative Analysis
Visual comparisons demonstrate LCTR's superiority in capturing complete object regions. Unlike previous methods that produce fragmented or overly focused heatmaps, LCTR generates maps that closely align with ground-truth bounding boxes across diverse categories and complex object shapes.
Conclusion
LCTR successfully addresses the limitations of both CNNs and standard transformers in the context of WSOL. By "awakening" local continuity through the RPAM and CDM modules, the framework achieves a better balance between global context and local detail. The significant performance gains on benchmark datasets underscore the importance of local feature continuity in transformer-based localization. Future work will focus on automating parameter tuning for the CDM and extending these principles to weakly supervised semantic segmentation.
Summary updated