LLM2CLIP: Powerful Language Model Unlocks Richer Cross-Modality Representation

Weiquan Huang, Aoqi Wu, Yifan Yang, Xufang Luo, Yuqing Yang +9 more
11/7/2024
18 citations
cs.CVcs.CL

Official code: microsoft/LLM2CLIP (695 stars, Python, MIT, last commit 2026-02-01).

Abstract

CLIP is a seminal multimodal model that maps images and text into a shared representation space through contrastive learning on billions of image-caption pairs. Inspired by the rapid progress of large language models (LLMs), we investigate how the superior linguistic understanding and broad world knowledge of LLMs can further strengthen CLIP, particularly in handling long and complex captions.

Show full abstract

We introduce an efficient fine-tuning framework that embeds an LLM into a pretrained CLIP while incurring nearly the same training cost as standard CLIP fine-tuning. Our method first converts the LLM into an embedding-compatible form for the CLIP setting, and then couples it with the pretrained CLIP vision encoder through a lightweight adaptor trained on only a few million image-caption pairs. With this strategy, we achieve large performance gains without large-scale retraining, outperforming state-of-the-art CLIP variants such as EVA02 and SigLIP-2. The LLM-enhanced CLIP delivers consistent improvements across a wide range of downstream tasks, including linear-probe classification, zero-shot image-text retrieval with both short and long captions (in English and other languages), zero-shot and supervised image segmentation, object detection, and serving as a tokenizer backbone for multimodal large-model benchmarks. Code and models are available at: https://aka.ms/llm2clip

View on arXivView PDF

Code Implementations(1)

microsoft/LLM2CLIPOfficial100%
MIT

LLM2CLIP significantly improves already state-of-the-art CLIP models.

69535Python, ShellJul 22, 202410 months agoMIT
clipfundation-modelsmultimodality

Similar Papers

Cite this paper

@article{huang2024llmclip,
  title  = {LLM2CLIP: Powerful Language Model Unlocks Richer Cross-Modality Representation},
  author = {Weiquan Huang and Aoqi Wu and Yifan Yang and Xufang Luo and Yuqing Yang and Usman Naseem and Chunyu Wang and Chunyu Wang and Qi Dai and Xiyang Dai and Dongdong Chen and Chong Luo and Lili Qiu and Liang Hu},
  year   = {2024},
  eprint = {2411.04997},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.04997v6}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.04997.svg)](https://codeofpaper.com/paper/2411.04997)

Discussion