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

一种降低组合图像检索中文本编码器任务差异的高效事后框架

An Efficient Post-hoc Framework for Reducing Task Discrepancy of Text Encoders for Composed Image Retrieval

Seoul National University(首尔大学);NAVER AI Lab(NAVER AI实验室)

Jaeseok Byun, Seokhyeon Jeong, Wonjae Kim, Sanghyuk Chun, Taesup Moon

AI总结:

针对零样本组合图像检索中文本编码器预训练与目标任务不一致的问题,提出纯文本事后框架RTD,通过目标锚定对比学习及采样、拼接增强,以极低训练成本提升投影式方法性能。

摘要:

组合图像检索(Composed Image Retrieval, CIR)旨在基于一张参考图像和条件文本检索目标图像,从而实现可控的图像搜索。主流的零样本(Zero-Shot, ZS)CIR方法通过将图像嵌入投影到文本token嵌入空间,形成用于检索的组合查询,从而避免了对昂贵CIR三元组训练数据的需求。然而,我们强调这些基于投影的CIR存在一个固有局限:文本编码器在其原始预训练任务(文本↔图像)与目标CIR任务(图像+文本↔图像)之间存在任务差异,这可能对CIR性能产生负面影响。为减少这种差异,一种朴素方案是使用CIR三元组以监督方式同时训练图像编码器和文本编码器。与之不同,我们提出Reducing Task Discrepancy of Text Encoders(RTD,降低文本编码器任务差异),这是一种高效的纯文本事后框架,可补充基于投影的CIR方法。我们设计了新颖的目标锚定文本对比学习,旨在增强文本编码器面向CIR的能力。我们还提出两项关键增强:(1)基于难负例的精细化批次采样策略;(2)精细化拼接方案,以进一步缓解训练与推理之间的差异。将RTD集成到最先进的基于投影方法中,仅需在4块A100 GPU上额外训练23分钟(训练速度最高快100倍),即可达到与资源密集型、基于合成CIR三元组的最先进方法相当甚至更优的性能。我们的代码将在论文被接收后公开。

英文摘要:

Composed Image Retrieval (CIR) aims to retrieve a target image based on a reference image and conditioning text, enabling controllable image searches. The mainstream Zero-Shot (ZS) CIR methods bypass the need for expensive training CIR triplets by projecting image embeddings into the text token embedding space, forming a composed query for retrieval. However, we highlight an inherent limitation in these projection-based CIR: a task discrepancy of text encoders between the original pre-training task of the encoders (text $\leftrightarrow$ image) and the target CIR task (image + text $\leftrightarrow$ image), which potentially negatively impacts CIR performance. To reduce such a discrepancy, a naive solution would be to train both image and text encoders with CIR triplets in a supervised manner. Instead, we introduce Reducing Task Discrepancy of Text Encoders (RTD), an efficient text-only post-hoc framework that complements projection-based CIR methods. We devise a novel target-anchored text contrastive learning designed to enhance the capability of the text encoder for CIR. We also propose two key enhancements: (1) a hard negative-based refined batch sampling strategy and (2) a refined concatenation scheme to further mitigate training-inference discrepancy. Integrating RTD into state-of-the-art projection-based methods achieves performance comparable to, or even surpassing, resource-intensive state-of-the-art synthetic CIR triplet-based approaches only with 23 minutes of additional training on 4 A100 GPUs (up to $100\times$ faster in training). Our code will be available upon acceptance.

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

↑