[Paper Review] MlTr: Multi-label Classification with Transformer
This paper proposes MlTr, a novel transformer-based architecture for multi-label image classification that addresses limitations in CNNs related to small objects, similar objects, and co-occurring object dependencies. By integrating window partitioning, in-window pixel attention, and cross-window attention, MlTr achieves state-of-the-art performance with 88.5% mAP on MS-COCO, 95.8% on Pascal-VOC, and 66.3% on NUS-WIDE.
The task of multi-label image classification is to recognize all the object labels presented in an image. Though advancing for years, small objects, similar objects and objects with high conditional probability are still the main bottlenecks of previous convolutional neural network(CNN) based models, limited by convolutional kernels' representational capacity. Recent vision transformer networks utilize the self-attention mechanism to extract the feature of pixel granularity, which expresses richer local semantic information, while is insufficient for mining global spatial dependence. In this paper, we point out the three crucial problems that CNN-based methods encounter and explore the possibility of conducting specific transformer modules to settle them. We put forward a Multi-label Transformer architecture(MlTr) constructed with windows partitioning, in-window pixel attention, cross-window attention, particularly improving the performance of multi-label image classification tasks. The proposed MlTr shows state-of-the-art results on various prevalent multi-label datasets such as MS-COCO, Pascal-VOC, and NUS-WIDE with 88.5%, 95.8%, and 65.5% respectively. The code will be available soon at https://github.com/starmemda/MlTr/
Motivation & Objective
- To identify and address three key challenges in multi-label image classification: small object recognition, confusion between similar objects, and misclassification due to frequent co-occurrence.
- To overcome the inductive bias and limited long-range dependency learning of CNNs in multi-label settings.
- To design a transformer-based architecture specifically tailored for multi-label tasks, improving global and local feature representation.
- To introduce a novel attention mechanism—cross-window attention—that enhances spatial dependency modeling across local regions.
- To improve model generalization through object-aware tokens and optimized loss functions, including arc sigmoid.
Proposed method
- The input image is divided into non-overlapping windows to enable localized computation while preserving spatial structure.
- Intra-window self-attention is applied to each window to capture fine-grained pixel-level representations and localize small objects.
- Cross-window attention aggregates features across different windows to model long-range spatial dependencies and resolve ambiguous local predictions.
- Object-aware tokens are introduced in the final layer to dynamically determine the number of predicted labels, improving adaptability to variable label counts.
- An arc sigmoid loss function is used to stabilize training by scaling the cosine similarity between feature embeddings, with optimal performance at scaling factor s=8.
- The model is trained end-to-end with a combination of binary cross-entropy and the arc sigmoid loss to refine feature distribution and improve generalization.
Experimental results
Research questions
- RQ1How can transformer-based architectures better handle small objects that are often lost in downsampling during CNN-based feature extraction?
- RQ2To what extent can cross-window attention improve the model's ability to distinguish between highly similar objects such as backpack and handbag?
- RQ3Can a self-attention mechanism that captures global spatial relationships reduce misclassification due to frequent co-occurrence of certain object classes?
- RQ4How does the integration of object-aware tokens affect the model’s ability to predict variable numbers of labels in multi-label scenarios?
- RQ5What is the optimal configuration of the arc sigmoid loss function for improving mAP in multi-label classification tasks?
Key findings
- MlTr achieves state-of-the-art performance with 88.5% mAP on the MS-COCO dataset, outperforming previous SOTA methods by a significant margin.
- On Pascal-VOC, MlTr achieves 95.8% mAP, demonstrating strong generalization across diverse object categories and complex scenes.
- On NUS-WIDE, MlTr achieves 66.3% mAP, with improvements in CF1 (65.0) and OF1 (75.8), indicating better label consistency and precision.
- The ablation study shows that cross-window attention contributes +1.0 mAP, highlighting its critical role in modeling long-range spatial dependencies.
- For small objects, MlTr improves mAP from 68.8 (ResNet101) to 77.6, a nearly 10-point gain, confirming its effectiveness in detecting fine-grained details.
- Visualization via t-SNE confirms that MlTr better separates similar object classes (e.g., skis vs. snowboard, remote vs. cell phone) and avoids spurious co-occurrence bias.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.