arXiv:2506.08774cs.IRcs.AI2025-06被引 3

对比不同相似度度量,找出跨模态检索最佳对齐方法

Multimodal Representation Alignment for Cross-modal Information Retrieval

  • 用四种标准和两种学习型度量对齐图文表征
  • 余弦相似度表现最优,水氏距离补充分布差异分析
  • 自定义对比损失优于MSE,适用于各类模型结构

不同机器学习模型对同一概念的表达方式各异,这种差异在真实场景下的多模态检索中尤为关键——即给定一种模态输入,从另一模态中找到最语义匹配的表示。该问题可建模为表征对齐任务。本文首先实证研究了视觉-语言模型及单模态模型生成的视觉与文本嵌入之间的几何关系。随后,采用四种标准相似度度量和两种神经网络学习的度量,在多个基准上对表征进行对齐。实验表明,余弦相似度在所有评估度量中表现最优,而水氏距离提供了对跨模态分布差异的互补视角。此外,所提出的自定义对比损失在多层感知机与基于Transformer的模型中均优于MSE损失。研究结果为多模态信息检索,尤其真实场景应用,提供了新见解与实用建议。代码已开源。

原文摘要 · Abstract (English)

Different machine learning models can represent the same underlying concept in different ways. This variability is particularly valuable for in-the-wild multimodal retrieval, where the objective is to identify the corresponding representation in one modality given another modality as input. This challenge can be effectively framed as a representation alignment problem. For example, given a sentence encoded by a language model, retrieve the most semantically aligned image based on representations produced by an image encoder, or vice versa. To gain insights into the performance impact of different metrics, embedding spaces, and representation alignment for retrieval tasks, we first empirically investigate the geometric relationships between visual and textual embeddings derived from both vision-language models and combined unimodal models. We then align these representations using four standard similarity metrics as well as two learned ones, implemented via neural networks of different architectures with varying losses across multiple benchmarks. Our experimental findings indicate that cosine similarity consistently outperforms all the investigated metrics in representation alignment tasks, and that Wasserstein distance provides a complementary perspective on cross-modal distributional differences. We also observe that our proposed custom contrastive loss is advantageous over the MSE loss for aligning image and text representations, for both multilayer perceptrons and transformer-based models. Taken together, our findings offer novel insights and practical considerations for researchers working in multimodal information retrieval, particularly in real-world, cross-modal applications. Our code is publicly available.

跨模态检索表征对齐相似度度量图文匹配

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。