arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.05756cs.CV
收藏

基于指令感知对比学习的组合式图像检索

Compositional Image Retrieval via Instruction-Aware Contrastive Learning

UT Arlington(德克萨斯大学阿灵顿分校)

Wenliang Zhong, Weizhi An, Feng Jiang, Hehuan Ma, Yuzhi Guo, Junzhou Huang

AI总结:

针对零样本组合式图像检索中现有模型指令遵循能力弱、多模态信息融合不足的问题,提出基于指令微调多模态大模型的嵌入方法与两阶段训练策略,在四个公开数据集上显著超越SOTA基线。

摘要:

组合式图像检索(Composed Image Retrieval, CIR)的任务是基于由参考图像与指定图像修改内容的文本配对组成的组合查询,检索出目标图像。CIR本质上是一项指令遵循任务,因为模型需要解读修改指令并将其应用到参考图像上。在实际应用中,由于下游任务的标注数据稀缺,零样本组合式图像检索(Zero-Shot CIR, ZS-CIR)具备很高的应用价值。现有基于CLIP的ZS-CIR模型虽已取得不错的效果,但在解读和遵循修改指令方面的能力仍然有限。部分研究尝试通过引入大语言模型(Large Language Models, LLMs)来解决这一问题,但这类方法在有效整合多模态信息与指令理解方面仍面临挑战。\n为解决上述问题,我们提出了一种全新的嵌入方法,利用经过指令微调的多模态大语言模型(Multimodal LLM, MLLM)生成组合表征,显著增强模型的指令遵循能力,实现图像与指令的全面融合。但直接应用MLLM也带来了新的挑战:MLLM主要为文本生成任务设计,并不适配CIR所需的嵌入提取任务。针对这一问题,我们提出了两阶段训练策略:第一阶段高效学习联合多模态嵌入空间;第二阶段通过在格式与CIR类似的三元组数据集上微调模型,进一步优化模型遵循修改指令的能力。\n我们在FashionIQ、CIRR、GeneCIS、CIRCO四个公开数据集上开展了大量实验,结果表明所提模型性能优异,以显著优势超越了当前最优基线模型。相关代码已在GitHub仓库开源。

英文摘要:

Composed Image Retrieval (CIR) involves retrieving a target image based on a composed query of an image paired with text that specifies modifications or changes to the visual reference. CIR is inherently an instruction-following task, as the model needs to interpret and apply modifications to the image. In practice, due to the scarcity of annotated data in downstream tasks, Zero-Shot CIR (ZS-CIR) is desirable. While existing ZS-CIR models based on CLIP have shown promising results, their capability in interpreting and following modification instructions remains limited. Some research attempts to address this by incorporating Large Language Models (LLMs). However, these approaches still face challenges in effectively integrating multimodal information and instruction understanding. To tackle above challenges, we propose a novel embedding method utilizing an instruction-tuned Multimodal LLM (MLLM) to generate composed representation, which significantly enhance the instruction following capability for a comprehensive integration between images and instructions. Nevertheless, directly applying MLLMs introduces a new challenge since MLLMs are primarily designed for text generation rather than embedding extraction as required in CIR. To address this, we introduce a two-stage training strategy to efficiently learn a joint multimodal embedding space and further refining the ability to follow modification instructions by tuning the model in a triplet dataset similar to the CIR format. Extensive experiments on four public datasets: FashionIQ, CIRR, GeneCIS, and CIRCO demonstrates the superior performance of our model, outperforming state-of-the-art baselines by a significant margin. Codes are available at the GitHub repository.

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

↑