arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.04343cs.CVcs.IRcs.MM
收藏

用 Transformer 统一双流编码器以实现跨模态检索

Unifying Two-Stream Encoders with Transformers for Cross-Modal Retrieval

National University of Singapore(新加坡国立大学);University of Electronic Science and Technology of China(电子科技大学)

Yi Bin, Haoxuan Li, Yahui Xu, Xing Xu, Yang Yang, Heng Tao Shen

AI总结:

本文提出基于双流 Transformer 的层次对齐框架 HAT,通过统一图像与文本编码器架构并建模多层对应关系,在 MSCOCO 和 Flickr30K 上显著提升跨模态检索性能。

摘要:

现有的大多数跨模态检索方法对图像和文本采用不同架构的双流编码器,例如图像使用 CNN,文本使用 RNN/Transformer。这种架构上的差异可能会诱导出不同的语义分布空间,限制图像与文本之间的交互,并进一步导致图像与文本之间的对齐效果较差。为了填补这一研究空白,受 Transformer 在视觉任务中最新进展的启发,我们提出对两种模态统一使用 Transformer 编码器架构。具体来说,我们设计了一个完全基于双流 Transformer 的跨模态检索框架,称为 Hierarchical Alignment Transformers (HAT),它由一个图像 Transformer、一个文本 Transformer 和一个层次对齐模块组成。借助这种相同的架构,编码器可以为图像和文本生成具有更相似特征的表示,并使它们之间的交互和对齐更加容易。此外,为了利用丰富的语义信息,我们设计了一种层次对齐方案,以探索图像和文本之间不同层的多级对应关系。为了评估所提出的 HAT 的有效性,我们在两个基准数据集 MSCOCO 和 Flickr30K 上进行了大量实验。实验结果表明,HAT 大幅优于 SOTA 基线。具体来说,在两个关键任务上,即图像到文本和文本到图像检索,HAT 在 MSCOCO 上的 Recall@1 相对得分分别提高了 7.6% 和 16.7%,在 Flickr30k 上分别提高了 4.4% 和 11.6%。代码可在 https://github.com/LuminosityX/HAT 获取。

英文摘要:

Most existing cross-modal retrieval methods employ two-stream encoders with different architectures for images and texts, \textit{e.g.}, CNN for images and RNN/Transformer for texts. Such discrepancy in architectures may induce different semantic distribution spaces and limit the interactions between images and texts, and further result in inferior alignment between images and texts. To fill this research gap, inspired by recent advances of Transformers in vision tasks, we propose to unify the encoder architectures with Transformers for both modalities. Specifically, we design a cross-modal retrieval framework purely based on two-stream Transformers, dubbed \textbf{Hierarchical Alignment Transformers (HAT)}, which consists of an image Transformer, a text Transformer, and a hierarchical alignment module. With such identical architectures, the encoders could produce representations with more similar characteristics for images and texts, and make the interactions and alignments between them much easier. Besides, to leverage the rich semantics, we devise a hierarchical alignment scheme to explore multi-level correspondences of different layers between images and texts. To evaluate the effectiveness of the proposed HAT, we conduct extensive experiments on two benchmark datasets, MSCOCO and Flickr30K. Experimental results demonstrate that HAT outperforms SOTA baselines by a large margin. Specifically, on two key tasks, \textit{i.e.}, image-to-text and text-to-image retrieval, HAT achieves 7.6\% and 16.7\% relative score improvement of Recall@1 on MSCOCO, and 4.4\% and 11.6\% on Flickr30k respectively. The code is available at \url{https://github.com/LuminosityX/HAT}.

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

↑