Fine-tuning CLIP Text Encoders with Two-step Paraphrasing

Findings Pub Date : 2024-02-23 DOI:10.48550/arXiv.2402.15120
Hyunjae Kim, Seunghyun Yoon, Trung Bui, Handong Zhao, Q. Tran, Franck Dernoncourt, Jaewoo Kang
{"title":"Fine-tuning CLIP Text Encoders with Two-step Paraphrasing","authors":"Hyunjae Kim, Seunghyun Yoon, Trung Bui, Handong Zhao, Q. Tran, Franck Dernoncourt, Jaewoo Kang","doi":"10.48550/arXiv.2402.15120","DOIUrl":null,"url":null,"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 7.6% and 9.6%), Visual Genome Relation and Attribution, as well as seven semantic textual similarity tasks.","PeriodicalId":508951,"journal":{"name":"Findings","volume":"32 7","pages":"2175-2184"},"PeriodicalIF":0.0000,"publicationDate":"2024-02-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Findings","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2402.15120","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

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 7.6% and 9.6%), Visual Genome Relation and Attribution, as well as seven semantic textual similarity tasks.
用两步解析法微调 CLIP 文本编码器
对比语言-图像预训练(CLIP)模型在各种视觉-语言任务(如文本-图像检索)中都取得了相当大的成功,在这些任务中,模型需要有效地处理自然语言输入,以产生准确的视觉输出。然而,目前的模型在处理输入查询中的语言变化(如意译)时仍面临局限性,这使得在实际应用中处理广泛的用户查询具有挑战性。在本研究中,我们引入了一种直接的微调方法来增强 CLIP 模型对转述的表示。我们的方法包括两步意译生成过程,即利用大型语言模型从网络规模的图像标题中自动创建两类意译。随后,我们利用这些生成的转述对 CLIP 文本编码器进行微调,同时冻结图像编码器。我们将由此产生的模型称为 ParaCLIP,与基线 CLIP 模型相比,该模型在各种任务中都有显著改进,包括转述检索(等级相似性得分分别提高了 7.6% 和 9.6%)、视觉基因组关系和归因,以及七种语义文本相似性任务。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信