TL;DR
This paper introduces T2I-PAL, a novel method for multi-label image recognition (MLR) that tackles the "modality gap" between text and images when using pre-trained vision-language models like CLIP. By leveraging text-to-image generation models to create synthetic images from text captions, T2I-PAL significantly improves MLR performance without requiring fully annotated training images, achieving state-of-the-art results.
What Problem Does This Paper Address?
The advent of powerful pre-trained vision-language models (VLMs) like CLIP has opened up new avenues for parameter-efficient fine-tuning (PEFT) on downstream tasks. A promising approach for MLR is to use text captions as a proxy for images, known as "text as image" (TaI) methods. While CLIP excels at aligning text and image features, a persistent "modality gap" hinders the performance of TaI methods, especially in MLR where identifying all objects in an image is crucial. Traditional MLR methods often require extensive manual annotation of training images, which is costly and time-consuming. This paper aims to bridge this modality gap and reduce annotation burden by using synthetic images generated from text captions for training MLR models.
Methods
T2I-PAL's core innovation lies in its use of pre-trained text-to-image (T2I) generation models (like Stable Diffusion) to create synthetic images from text captions. These synthetic images then serve as training data for MLR, effectively reducing the modality gap that plagues purely text-based TaI methods.
Key components of T2I-PAL include:
- Text Caption Preparation: Captions are extracted from public datasets and filtered to include relevant class labels.
- Synthetic Image Generation: These filtered captions are fed into a T2I model to generate photo-realistic and diverse synthetic images.
- Joint Prompt-Adapter Learning: T2I-PAL combines prompt tuning (learning soft prompts for class tokens) and adapter learning (adding small, learnable modules to the VLM). Crucially, a shared adapter is used for both text and synthetic image branches, encouraging knowledge transfer and further bridging the modality gap.
- Class-wise Heatmap and Prototypes: To enhance local feature representation, a class-wise heatmap is computed to aggregate local similarities, and learnable prototypes are introduced to represent class affinities.
The method preserves the original CLIP architecture, allowing for seamless integration.
Datasets
The paper evaluates T2I-PAL on three standard multi-label image recognition benchmarks:
- MS-COCO: A widely used dataset for object detection and image captioning.
- VOC2007: Part of the PASCAL VOC challenge, commonly used for object detection and classification.
- NUS-WIDE: A large-scale dataset for multi-label image annotation.
The authors extract text captions from the training splits of these datasets for generating synthetic images.
Key Insights and Ideas
- Synthetic Images as a Bridge: The most significant insight is that generating synthetic images from text captions can effectively bridge the modality gap between text and images for MLR, outperforming methods that solely rely on text.
- Shared Adapter is Key: A shared adapter between the text and synthetic image branches is crucial for transferring knowledge and improving the model's ability to recognize multiple classes. This shared component encourages the synthetic images to learn from the text representations.
- Parameter Efficiency: T2I-PAL is a Parameter-Efficient Fine-Tuning (PEFT) method, meaning it only updates a small subset of parameters, making it computationally efficient and reducing the need for extensive annotated data.
- No Original Images Needed: The method eliminates the requirement for fully semantically annotated training images, significantly reducing the manual annotation workload.
Key Results
T2I-PAL demonstrates significant improvements across multiple benchmarks:
- State-of-the-Art Performance: T2I-PAL achieves an average improvement of 3.47% over top-ranked state-of-the-art methods on MS-COCO, VOC2007, and NUS-WIDE datasets in the zero-shot setting.
- Zero-Shot Improvement: On MS-COCO, VOC2007, and NUS-WIDE, T2I-PAL outperforms the strong baseline TaI-DPT by 0.6%, 1.5%, and 0.8% respectively in the zero-shot setting.
- Few-Shot Performance: In few-shot settings, T2I-PAL surpasses existing methods, even outperforming a 5-shot ML-FSL method with its own 0-shot performance.
- Partial-Label Setting: T2I-PAL also shows strong performance in the partial-label setting, outperforming strong baselines like DualCoOp and Dong et al. [21].
- Modality Gap Reduction: Ablation studies show that T2I-PAL significantly reduces the modality gap, with cosine similarity between synthetic training images and text prompts increasing from 0.3178 to 0.6110 compared to TaI.
Limitations and Future Work
- Reliance on T2I Models: The performance of T2I-PAL is inherently dependent on the quality and capabilities of the pre-trained text-to-image generation models used. Potential limitations of these T2I models, such as biases or failure to represent certain objects, could impact T2I-PAL.
- Computational Complexity: While PEFT, the use of adapters and attention mechanisms can increase computational complexity and training time.
- Future Work: The authors suggest exploring the impact of different visual encoders and further investigating the balance between synthetic images and text captions. They also mention the potential of using more advanced T2I models (like SDXL) and exploring the impact of additional text data. The paper also hints at future work on learning a learnable attention block for more adaptive weighting.
Summary updated