Abstract
Training multi-label image classifiers typically demands extensive labeled datasets, which are costly and time-consuming to acquire. This paper introduces TaI-Adapter (Text-as-Image Adapter), a framework that trains a lightweight adapter using synthetic text generated by Large Language Models (LLMs) as proxies for images. By employing "random perturbation" (RP) to bridge the modality gap between text and vision embeddings in CLIP, TaI-Adapter achieves state-of-the-art performance in zero-shot and few-shot multi-label classification. Notably, it offers up to 156x greater computational efficiency than existing methods while maintaining constant memory usage regardless of label set size.
Introduction
Open-vocabulary recognition aims to identify objects beyond those seen during training. While vision-language models like CLIP provide a foundation, current "prompt tuning" methods (e.g., CoOp, DualCoOp) face significant scaling challenges. As the number of labels increases—such as the 7,000+ categories in Open Images—the cost of encoding text prompts at every training step becomes prohibitive. Furthermore, a persistent "modality gap" exists: CLIP's shared embedding space does not perfectly align text and image distributions. Adapters trained solely on "clean" text often struggle with the inherent noise of visual data.
Methodology: The TaI-Adapter Framework
The TaI-Adapter framework circumvents the need for manual image annotation by treating text as a surrogate for visual data. The process is divided into three distinct stages:
- LLM-Driven Data Generation: An LLM (e.g., Vicuna) generates diverse multi-label descriptions based on a provided label set. For instance, given "dog" and "boat," the LLM might produce "A scene of a dog sitting on a boat."
- Transferable Adapter Training: A simple three-layer MLP adapter is trained on the embeddings of this synthetic text. To maintain efficiency, the underlying CLIP text and image encoders remain frozen.
- Random Perturbation (RP): To bridge the modality gap, random noise is injected into text embeddings during training. This forces the adapter to learn a broader neighborhood in the embedding space, ensuring robustness when processing actual image embeddings during inference.
The authors also developed specialized variants: Mixed RP for few-shot learning (integrating available real images) and Shifted RP for partial-label scenarios (aligning text embeddings with estimated image clusters).
Key Results and Scalability
TaI-Adapter was evaluated on Pascal VOC 2007, MS-COCO, and NUS-WIDE benchmarks. In zero-shot settings on MS-COCO, it achieved 67.7% mAP, significantly outperforming the previous state-of-the-art TaI-DPT (65.1%) and the zero-shot CLIP baseline (49.7%).
The most striking advantage of TaI-Adapter is its efficiency. Unlike prompt-learning methods where computational costs explode with label count, TaI-Adapter's resource requirements remain nearly flat.
Compared to TaI-DPT, TaI-Adapter requires 156x fewer FLOPs during training and 57x fewer FLOPs during inference. This scalability makes it uniquely suited for large-scale open-vocabulary tasks.
Conclusion
TaI-Adapter demonstrates that high-quality descriptive text can serve as an effective and inexpensive proxy for images in multi-label classification. By using simple random perturbations to bridge the modality gap, the model achieves superior performance with a fraction of the computational overhead of traditional methods. Future work will explore combining LLM-based instructions with prompt templates and scaling the framework to datasets with tens of thousands of labels.
Summary updated