Abstract
Multi-label image recognition (MLIR) involves identifying all objects within an image, a task complicated by varying object scales, locations, and overlaps. Traditional methods utilizing Convolutional Neural Networks (CNNs) often struggle with long-range dependencies and frequently require external object detectors or complex priors. We present the Diverse Instance Discovery (DiD) framework, which utilizes a pure Vision Transformer (ViT) backbone to automatically identify and zoom in on multiple objects. By leveraging patch tokens and self-attention mechanisms, DiD achieves state-of-the-art performance on major benchmarks without requiring expensive bounding-box annotations.
Introduction
Multi-label image recognition is significantly more challenging than single-label classification. Objects in a single frame can appear at vastly different scales and often overlap, requiring a model that can capture both local details and global context. Historically, CNNs have been the standard; however, their limited receptive fields often necessitate "strong priors," such as pre-defined label correlations or external detectors, which can limit model adaptability.
The DiD framework addresses these issues by asking whether the inherent strengths of a Vision Transformer can be harnessed for MLIR. Unlike standard ViT applications that rely solely on a global class token, DiD utilizes under-exploited patch tokens to capture localized information and uses the internal self-attention matrix as a spatial prior for object discovery.
The Diverse Instance Discovery (DiD) Framework
The DiD pipeline is built on a pure ViT backbone and consists of four primary components designed to refine object localization and classification.
- Semantic Category-Aware Module: Patch tokens are mapped into 2D feature maps, allowing the model to associate specific image regions with target categories.
- Spatial Relationship-Aware Module: This module extracts self-attention weights from ViT layers, providing a map of spatial dependencies that indicates how different parts of the image relate to one another.
- Re-constraint Strategy: Semantic and spatial maps are fused via element-wise multiplication (Hadamard product). This refinement process helps the model focus on distinct, high-confidence instances.
- Dynamic Instance Localization: Using the refined maps, the model generates "proposals" for potential objects under weak supervision. These regions are cropped and re-processed by the model in a "multi-view" approach, effectively providing a "digital zoom" that preserves high-resolution details for small objects.
Experimental Results
The DiD model was evaluated on three standard benchmarks: MS-COCO, PASCAL VOC 2007, and PASCAL VOC 2012. Using a ViT-B/16 backbone pre-trained on ImageNet-21k, DiD established new state-of-the-art records across all datasets.
- MS-COCO: Achieved 86.4% mAP, outperforming the previous best (ADD-GCN) by 1.2%.
- PASCAL VOC 2007: Reached 96.2% mAP, exceeding specialized GCN-based models.
- PASCAL VOC 2012: Achieved 96.8% mAP, a 1.3% improvement over previous SOTA methods.
Ablation studies indicated that discovering four local instances per image (topN=4) offered the optimal balance between accuracy and computational efficiency.
Qualitative Analysis and Conclusion
The effectiveness of the DiD framework is most evident in its ability to localize diverse objects without explicit bounding-box training data. By re-processing localized crops, the model circumvents the resolution loss typical of standard downsampling.
While DiD is highly effective, the authors note that instance localization precision can be further refined. Future work may explore more sophisticated cropping methods or deeper integration of instance-aware logic within the Transformer layers to reduce the computational overhead of the multi-view inference process. Overall, DiD demonstrates that pure Vision Transformers, when properly utilized, can outperform complex hybrid models in multi-label recognition tasks.
Summary updated