Abstract
Multi-label image recognition is a challenging task that requires identifying multiple objects of varying scales and complex inter-class relationships within a single scene. Traditional approaches often utilize static graph structures or local convolutional features, which fail to capture image-specific semantic dynamics and long-range spatial dependencies. This paper introduces the Transformer-based Dual Relation Graph (TDRG) framework. TDRG employs a Structural Relation Graph using a cross-scale Transformer to capture global spatial context and a dynamic Semantic Relation Graph to model image-dependent label correlations. By fusing these two relational perspectives, the model achieves superior performance on major benchmarks, including MS-COCO and VOC 2007.
Introduction
Recognizing multiple objects in an image involves navigating challenges such as scale variance, occlusion, and inconsistent lighting. A critical component of successful multi-label recognition is understanding the relationships between objects—for instance, the presence of "skis" strongly implies a "person" and "snow."
While Graph Convolutional Networks (GCNs) and Recurrent Neural Networks (RNNs) have been used to model these co-occurrences, they typically rely on static relationships derived from word embeddings or dataset statistics. These static models do not adapt to the specific visual evidence of an individual image. Furthermore, standard Convolutional Neural Networks (CNNs) are limited by their local receptive fields, making it difficult to capture long-range spatial dependencies.
Methodology: The TDRG Framework
The TDRG framework addresses these limitations through a dual-graph architecture that operates collaboratively to bridge the gap between spatial layout and semantic meaning.
1. Structural Relation Graph
To capture global spatial context, the model utilizes a Transformer-based architecture. Unlike CNNs, Transformers allow every region of an image to attend to every other region, facilitating the recognition of objects based on distant contextual cues. To handle objects at different scales, a Cross-scale Attention module is introduced. This module fuses features from multiple resolutions (e.g., 1/16, 1/32, and 1/64 of the original size), ensuring that small objects are preserved and emphasized during the feature extraction process.
2. Semantic Relation Graph
Rather than using a fixed graph, this module constructs a dynamic, image-specific semantic graph. It employs "Semantic-aware Constraints" to learn class-specific feature vectors directly from the image's activations. This allows the model to adapt its understanding of label relationships based on the actual visual content present in the specific scene.
3. Joint Learning and Structural Guidance
A key innovation of TDRG is the integration of structural and semantic information. The spatial correlations learned by the Transformer provide "Structural Guidance" to the semantic graph. This ensures that the model's understanding of object categories is informed by their specific spatial layout. The entire system is trained using a collaborative loss function ($L_{trans}$, $L_{sac}$, and $L_{gcn}$) to optimize both individual components and the final joint prediction.
Experimental Results
The TDRG framework was evaluated on the MS-COCO and VOC 2007 datasets, setting new state-of-the-art (SOTA) benchmarks.
- MS-COCO: The model achieved a mean Average Precision (mAP) of 84.6% at 448x448 resolution and 86.0% at 576x576 resolution. This performance surpasses previous leading models such as ADD-GCN and SSGRL.
- VOC 2007: TDRG reached a high-water mark of 95.0% mAP.
- Ablation Studies: Removing the Transformer-based structural module resulted in a significant performance drop (~4.3% on COCO), highlighting the critical role of global spatial context in multi-label tasks.
Conclusion
The Transformer-based Dual Relation Graph (TDRG) demonstrates that combining global spatial context with dynamic semantic modeling significantly enhances multi-label image recognition. By leveraging Transformers for structural relations and image-specific graphs for semantic relations, TDRG effectively addresses the complexities of multi-object scenes. Future work may involve optimizing the computational efficiency of the dual-graph structure and exploring the integration of pure Vision Transformer (ViT) backbones.
Summary updated