[Paper Review] Multi-Label Image Classification with Contrastive Learning
This paper proposes MulCon, a novel contrastive learning framework for multi-label image classification that learns label-specific image representations using multi-head attention, enabling effective positive/negative sample definition per label. By training with a two-step policy combining binary cross-entropy and supervised contrastive loss, MulCon achieves state-of-the-art performance on COCO and NUS-WIDE datasets.
Recently, as an effective way of learning latent representations, contrastive learning has been increasingly popular and successful in various domains. The success of constrastive learning in single-label classifications motivates us to leverage this learning framework to enhance distinctiveness for better performance in multi-label image classification. In this paper, we show that a direct application of contrastive learning can hardly improve in multi-label cases. Accordingly, we propose a novel framework for multi-label classification with contrastive learning in a fully supervised setting, which learns multiple representations of an image under the context of different labels. This facilities a simple yet intuitive adaption of contrastive learning into our model to boost its performance in multi-label image classification. Extensive experiments on two benchmark datasets show that the proposed framework achieves state-of-the-art performance in the comparison with the advanced methods in multi-label classification.
Motivation & Objective
- To address the challenge of applying contrastive learning to multi-label image classification, where standard image-level representations fail to define meaningful positive/negative samples due to multiple labels.
- To design a framework that learns distinct, label-aware image representations to improve feature discriminativeness in multi-label settings.
- To enable supervised contrastive learning in multi-label scenarios by decomposing images into label-specific components using attention mechanisms.
- To empirically validate that contrastive learning improves multi-label classification when properly applied with a staged training strategy.
Proposed method
- Introduces label-level embeddings by applying multi-head attention to global class-specific embeddings and local CNN features, producing representations specific to each label.
- Defines positive samples for a label-level embedding as other images in the minibatch sharing the same label, and negatives as those without the label.
- Applies supervised contrastive loss (SCL) on label-level embeddings to pull together positive samples and push apart negatives in embedding space.
- Employs a two-step training procedure: first pretraining with binary cross-entropy loss on label-level embeddings, then fine-tuning with both BCE and SCL losses.
- Uses a dual-branch network architecture where the image encoder processes the input, and the label-level embedding head generates per-label representations via attention.
- Leverages the contrastive loss to enhance consistency and coherence of representations across images for the same label, improving downstream classification.
Experimental results
Research questions
- RQ1Can contrastive learning be effectively adapted to multi-label image classification, where standard image-level representations make positive/negative sample definition ambiguous?
- RQ2Does learning label-specific image representations improve feature discriminativeness and classification accuracy in multi-label settings?
- RQ3What training strategy enables contrastive learning to boost performance without disrupting label correlation learning in multi-label tasks?
- RQ4How do label-level embeddings compare to image-level representations in capturing semantic content relevant to individual labels?
Key findings
- MulCon achieves state-of-the-art performance on MS-COCO and NUS-WIDE, outperforming existing methods in multi-label image classification.
- The ablation study shows that the label-level embedding network alone improves mAP from 80.8 to 83.0 without any contrastive loss, demonstrating its effectiveness.
- Directly applying SCL on image-level features yields only a minor gain (80.8 vs 81.0 mAP), indicating limited benefit in standard multi-label settings.
- Training with SCL from the beginning degrades performance (81.1 mAP), suggesting that early contrastive learning may overemphasize distinctiveness at the cost of label correlation learning.
- The two-step training policy—pretraining with BCE followed by fine-tuning with BCE+SCL—achieves the best performance, confirming its necessity.
- Qualitative results show that attention maps correctly localize objects corresponding to their ground-truth labels, and image retrieval with label-level embeddings retrieves semantically relevant images.
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.