Fine-tuning CLIP Text Encoders with Two-step Paraphrasing

Hyunjae Kim, Seunghyun Yoon, Trung Bui, Handong Zhao, Quan Tran +2 more
2/23/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: dmis-lab/ParaCLIP (11 stars, last commit 2024-11-23).

Abstract

Contrastive language-image pre-training (CLIP) models have demonstrated considerable success across various vision-language tasks, such as text-to-image retrieval, where the model is required to effectively process natural language input to produce an accurate visual output. However, current models still face limitations in dealing with linguistic variations in input queries, such as paraphrases, making it challenging to handle a broad range of user queries in real-world applications. In this study, we introduce a straightforward fine-tuning approach to enhance the representations of CLIP models for paraphrases. Our approach involves a two-step paraphrase generation process, where we automatically create two categories of paraphrases from web-scale image captions by leveraging large language models. Subsequently, we fine-tune the CLIP text encoder using these generated paraphrases while freezing the image encoder. Our resulting model, which we call ParaCLIP, exhibits significant improvements over baseline CLIP models across various tasks, including paraphrased retrieval (with rank similarity scores improved by up to 2.0% and 5.6%), Visual Genome Relation and Attribution, as well as seven semantic textual similarity tasks.

View on arXivView PDF

Code Implementations(1)

dmis-lab/ParaCLIPCommunity71%

Fine-tuning CLIP Text Encoders with Two-step Paraphrasing (EACL 2024, Findings)

111Python, Jupyter NotebookApr 19, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{kim2024finetuning,
  title  = {Fine-tuning CLIP Text Encoders with Two-step Paraphrasing},
  author = {Hyunjae Kim and Seunghyun Yoon and Trung Bui and Handong Zhao and Quan Tran and Franck Dernoncourt and Jaewoo Kang},
  year   = {2024},
  eprint = {2402.15120},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.15120v1}
}

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/2402.15120.svg)](https://codeofpaper.com/paper/2402.15120)

Discussion