arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.16553cs.CV
收藏

思考快与慢:使用Transformers的高效文本到视觉检索

Thinking Fast and Slow: Efficient Text-to-Visual Retrieval with Transformers

DeepMind;ENS/Inria(巴黎高等师范学院/法国国家信息与自动化研究所);CIIRC CTU(捷克理工大学工业与机器人计算机中心);VGG Oxford(牛津大学视觉几何组)

Antoine Miech, Jean-Baptiste Alayrac, Ivan Laptev, Josef Sivic, Andrew Zisserman

摘要:

我们的目标是大规模图像和视频数据集的基于语言的搜索。对于这项任务,该方法包括独立地将文本和视觉映射到联合嵌入空间,即双编码器,是有吸引力的检索规模,是有效的数十亿的图像使用近似最近邻搜索。另一种方法是使用视觉文本Transformers与交叉注意力的联合嵌入的准确性得到了相当大的改善,但在实践中往往是不适用于大规模的检索成本的交叉注意力机制所需的每个样本在测试时间。这项工作结合了两个世界的最佳。我们作出以下三项贡献。首先,我们为基于transformer的模型配备了一个新的细粒度交叉注意架构,在保持可扩展性的同时显著提高了检索准确性。其次,我们介绍了一种通用的方法,通过蒸馏和重新排名将快速双编码器模型与我们缓慢但准确的基于变换器的模型相结合。最后,我们验证了我们的方法在Flickr30K图像数据集上,我们显示了几个数量级的推理速度的增加,同时具有竞争力的结果的最先进的状态。我们还扩展了我们的方法到视频域,提高了VATEX数据集的最先进的。

英文摘要:

Our objective is language-based search of large-scale image and video datasets. For this task, the approach that consists of independently mapping text and vision to a joint embedding space, a.k.a. dual encoders, is attractive as retrieval scales and is efficient for billions of images using approximate nearest neighbour search. An alternative approach of using vision-text transformers with cross-attention gives considerable improvements in accuracy over the joint embeddings, but is often inapplicable in practice for large-scale retrieval given the cost of the cross-attention mechanisms required for each sample at test time. This work combines the best of both worlds. We make the following three contributions. First, we equip transformer-based models with a new fine-grained cross-attention architecture, providing significant improvements in retrieval accuracy whilst preserving scalability. Second, we introduce a generic approach for combining a Fast dual encoder model with our Slow but accurate transformer-based model via distillation and re-ranking. Finally, we validate our approach on the Flickr30K image dataset where we show an increase in inference speed by several orders of magnitude while having results competitive to the state of the art. We also extend our method to the video domain, improving the state of the art on the VATEX dataset.

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

↑