[Paper Review] Unified Contrastive Learning in Image-Text-Label Space
This paper proposes Unified Contrastive Learning (UniCL), a novel contrastive learning framework that unifies image-label and image-text data in a shared image-text-label space using a single learning objective. By leveraging both supervised and web-crawled data, UniCL achieves state-of-the-art performance across zero-shot, linear-probing, fine-tuning, and transfer learning benchmarks, outperforming CLIP and supervised methods by up to 14.5% and 9.2% respectively on average.
Visual recognition is recently learned via either supervised learning on human-annotated image-label data or language-image contrastive learning with webly-crawled image-text pairs. While supervised learning may result in a more discriminative representation, language-image pretraining shows unprecedented zero-shot recognition capability, largely due to the different properties of data sources and learning objectives. In this work, we introduce a new formulation by combining the two data sources into a common image-text-label space. In this space, we propose a new learning paradigm, called Unified Contrastive Learning (UniCL) with a single learning objective to seamlessly prompt the synergy of two data types. Extensive experiments show that our UniCL is an effective way of learning semantically rich yet discriminative representations, universally for image recognition in zero-shot, linear-probe, fully finetuning and transfer learning scenarios. Particularly, it attains gains up to 9.2% and 14.5% in average on zero-shot recognition benchmarks over the language-image contrastive learning and supervised learning methods, respectively. In linear probe setting, it also boosts the performance over the two methods by 7.3% and 3.4%, respectively. Our study also indicates that UniCL stand-alone is a good learner on pure image-label data, rivaling the supervised learning methods across three image classification datasets and two types of vision backbones, ResNet and Swin Transformer. Code is available at https://github.com/microsoft/UniCL.
Motivation & Objective
- To address the limitation of existing methods that treat image-label and image-text data separately, leading to either strong discriminative power or broad concept coverage but not both.
- To unify supervised learning and language-image contrastive learning under a single objective by introducing a common image-text-label space.
- To develop a unified learning paradigm that seamlessly integrates both data types to learn semantically rich and discriminative visual representations.
- To demonstrate that UniCL can outperform both supervised learning and contrastive learning methods across diverse downstream vision tasks.
- To show that UniCL is effective even when trained solely on image-label data, rivaling supervised baselines on multiple datasets and backbones.
Proposed method
- The method introduces a unified image-text-label space where each image is associated with a label and its corresponding textual description, enabling joint learning from both data types.
- A visual encoder and a text encoder are trained to align image and text features using a contrastive loss with softened targets derived from the shared labels.
- The unified contrastive learning objective combines supervision from image-label pairs and alignment from image-text pairs using a single loss function with temperature-scaled cross-attention.
- The framework supports training on pure image-label data, pure image-text data, or both, with no architectural or training pipeline changes.
- The method uses data augmentation and a temperature-based contrastive loss to improve feature discrimination and semantic alignment.
- The approach enables end-to-end training that synergistically improves feature quality by leveraging the strengths of both data types.
Experimental results
Research questions
- RQ1Can a unified learning framework effectively combine image-label and image-text data to improve visual representation learning?
- RQ2Does combining supervised and contrastive learning in a shared space lead to better performance across zero-shot, linear probing, and fine-tuning settings?
- RQ3Can UniCL achieve strong performance even when trained only on image-label data, rivaling supervised baselines?
- RQ4How does the inclusion of image-label data affect the discriminative power of models pre-trained on image-text pairs?
- RQ5What is the impact of data unification on feature space quality, particularly in terms of class separability?
Key findings
- UniCL achieves a 9.2% average gain over language-image contrastive learning methods and a 14.5% gain over supervised learning methods on zero-shot recognition benchmarks.
- In the linear probe setting, UniCL improves performance by 7.3% over CLIP and 3.4% over supervised baselines.
- When trained on half of YFCC-14M and half of ImageNet-21K, UniCL achieves a 6% absolute improvement on ImageNet-1K zero-shot accuracy compared to CLIP.
- The method shows a 7% absolute gain on 14 downstream datasets when combining both data types, with wins on 11 out of 14 datasets.
- t-SNE visualization confirms that UniCL produces more discriminative feature spaces, with fine-grained classes like dog breeds clearly separated even without explicit supervision on those classes.
- UniCL trained solely on image-label data rivals supervised learning methods across three image classification datasets and two backbone architectures (ResNet and Swin Transformer).
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.