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

探究使用语义有意义的Token对视觉表征学习的影响

Understanding the Effect of using Semantically Meaningful Tokens for Visual Representation Learning

University of Maryland(马里兰大学);CapitalOne Research(第一资本研究院)

Neha Kalibhat, Priyatham Kattakinda, Sumit Nawathe, Arman Zarei, Nikita Seleznev, Samuel Sharpe, Senthil Kumar, Soheil Feizi

AI总结:

该研究针对视觉Transformer分块处理可能限制表征学习的问题,在视觉-语言预训练框架中引入语义有形/无形Token与加性注意力,在多个检索和组合性基准上取得显著提升。

摘要:

视觉Transformer已确立了将图像划分为统一大小的块再进行处理的范式。我们假设这一设计选择可能会限制模型从视觉数据中学习全面且具有组合性的表征。本文探索了在视觉-语言预训练框架内,为Transformer编码器提供具有语义意义的视觉Token的思路。利用现成的分割模型和场景图模型,我们提取实例分割掩码的表征(称为有形Token)以及关系和动作的表征(称为无形Token)。随后,我们通过纳入这些新提取的Token,并将生成的嵌入与文本侧编码器的字幕嵌入对齐,来预训练视觉侧Transformer。为捕捉视觉Token之间的结构与语义关系,我们引入了加性注意力权重,用于计算自注意力分数。我们在COCO上的实验表明,在文本到图像检索(+47%)和图像到文本检索(+44%)任务中,所学习表征的质量较ViT有显著提升。此外,我们还在ARO(+18%)和Winoground(+10%)等组合性基准上展现了优势。

英文摘要:

Vision transformers have established a precedent of patchifying images into uniformly-sized chunks before processing. We hypothesize that this design choice may limit models in learning comprehensive and compositional representations from visual data. This paper explores the notion of providing semantically-meaningful visual tokens to transformer encoders within a vision-language pre-training framework. Leveraging off-the-shelf segmentation and scene-graph models, we extract representations of instance segmentation masks (referred to as tangible tokens) and relationships and actions (referred to as intangible tokens). Subsequently, we pre-train a vision-side transformer by incorporating these newly extracted tokens and aligning the resultant embeddings with caption embeddings from a text-side encoder. To capture the structural and semantic relationships among visual tokens, we introduce additive attention weights, which are used to compute self-attention scores. Our experiments on COCO demonstrate notable improvements over ViTs in learned representation quality across text-to-image (+47%) and image-to-text retrieval (+44%) tasks. Furthermore, we showcase the advantages on compositionality benchmarks such as ARO (+18%) and Winoground (+10%).

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

↑