arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.01936cs.CVcs.LG
收藏

在保持联合嵌入对齐的前提下优化用于图像检索的CLIP模型

Optimizing CLIP Models for Image Retrieval with Maintained Joint-Embedding Alignment

HTW Berlin(柏林工程应用科学大学)

Konstantin Schall, Kai Uwe Barthel, Nico Hezel, Klaus Jung

AI总结:

本文针对CLIP模型在图像检索中难以区分视觉不同但标题相似的图像的问题,提出顺序微调和伪标题对齐两种优化方法,在保持文本-图像对齐的同时提升图像检索、k-NN分类和零样本分类性能,并简化多模态检索系统基础设施。

摘要:

对比语言与图像配对(CLIP)是多媒体检索中的一种变革性方法,通常同时训练两个神经网络,为文本和图像对生成联合嵌入。然而,当直接应用时,这些模型往往难以区分具有相似标题但在视觉上不同的图像,导致基于图像的相似性搜索性能欠佳。本文解决了在各种基于图像的相似性搜索场景中优化CLIP模型的挑战,同时保持其在基于文本的搜索任务(如文本到图像检索和零样本分类)中的有效性。我们提出并评估了两种新方法,旨在在不损害文本与图像嵌入之间对齐的前提下提升CLIP的检索能力。第一种方法采用顺序微调过程:首先优化图像编码器以实现更精确的图像检索,随后将文本编码器重新对齐到这些优化后的图像嵌入。第二种方法在检索优化阶段引入伪标题,以促进嵌入空间内的直接对齐。通过全面实验,我们证明这些方法在多个基准上提升了CLIP的性能,包括图像检索、k-NN分类和零样本文本分类,同时保持了文本到图像检索的鲁棒性。我们优化后的模型允许每张图像仅维护一个嵌入,显著简化了大规模多模态相似性搜索系统所需的基础设施。

英文摘要:

Contrastive Language and Image Pairing (CLIP), a transformative method in multimedia retrieval, typically trains two neural networks concurrently to generate joint embeddings for text and image pairs. However, when applied directly, these models often struggle to differentiate between visually distinct images that have similar captions, resulting in suboptimal performance for image-based similarity searches. This paper addresses the challenge of optimizing CLIP models for various image-based similarity search scenarios, while maintaining their effectiveness in text-based search tasks such as text-to-image retrieval and zero-shot classification. We propose and evaluate two novel methods aimed at refining the retrieval capabilities of CLIP without compromising the alignment between text and image embeddings. The first method involves a sequential fine-tuning process: initially optimizing the image encoder for more precise image retrieval and subsequently realigning the text encoder to these optimized image embeddings. The second approach integrates pseudo-captions during the retrieval-optimization phase to foster direct alignment within the embedding space. Through comprehensive experiments, we demonstrate that these methods enhance CLIP's performance on various benchmarks, including image retrieval, k-NN classification, and zero-shot text-based classification, while maintaining robustness in text-to-image retrieval. Our optimized models permit maintaining a single embedding per image, significantly simplifying the infrastructure needed for large-scale multi-modal similarity search systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑