[论文解读] Focus Your Attention: A Bidirectional Focal Attention Network for Image-Text Matching
本文提出了一种双向焦点注意力网络(BFAN),通过仅关注语义相关的图像区域和文本词汇来增强图像-文本匹配,消除无关片段的干扰。通过预先分配注意力、利用模态内关系识别相关片段,并通过焦点机制重新分配注意力,BFAN在Flickr30K和MSCOCO基准上均实现了最先进性能,相对Recall@1提升达2.2%。
Learning semantic correspondence between image and text is significant as it bridges the semantic gap between vision and language. The key challenge is to accurately find and correlate shared semantics in image and text. Most existing methods achieve this goal by representing the shared semantic as a weighted combination of all the fragments (image regions or text words), where fragments relevant to the shared semantic obtain more attention, otherwise less. However, despite relevant ones contribute more to the shared semantic, irrelevant ones will more or less disturb it, and thus will lead to semantic misalignment in the correlation phase. To address this issue, we present a novel Bidirectional Focal Attention Network (BFAN), which not only allows to attend to relevant fragments but also diverts all the attention into these relevant fragments to concentrate on them. The main difference with existing works is they mostly focus on learning attention weight while our BFAN focus on eliminating irrelevant fragments from the shared semantic. The focal attention is achieved by pre-assigning attention based on inter-modality relation, identifying relevant fragments based on intra-modality relation and reassigning attention. Furthermore, the focal attention is jointly applied in both image-to-text and text-to-image directions, which enables to avoid preference to long text or complex image. Experiments show our simple but effective framework significantly outperforms state-of-the-art, with relative Recall@1 gains of 2.2% on both Flicr30K and MSCOCO benchmarks.
研究动机与目标
- 解决注意力机制无意中关注无关图像区域和文本词汇所导致的图像-文本匹配中的语义错位问题。
- 通过在注意力计算过程中消除无关片段的影响,提升跨模态语义对应关系的准确性。
- 开发一种双向注意力机制,通过联合建模图像到文本和文本到图像的注意力,避免对长文本或复杂图像的偏向。
- 通过一种仅强调相关片段的焦点注意力机制,实现图像和文本模态之间更精确、更鲁棒的对齐。
提出的方法
- 基于查询片段与图像区域和文本词汇之间的跨模态相关性,预先分配注意力分数。
- 利用模态内关系(如空间或句法连贯性)识别相关片段,以区分重要与无关成分。
- 通过抑制无关片段并将所有注意力集中于最相关项,重新分配注意力权重,形成焦点注意力机制。
- 在图像到文本和文本到图像两个方向应用焦点注意力机制,确保平衡且双向的对齐。
- 使用可学习的评分函数,基于预分配的注意力和跨模态上下文,动态评估片段的相关性。
- 通过集成两种变体——BFAN-prob和BFAN-equal——提升片段选择的鲁棒性与性能。
实验结果
研究问题
- RQ1一种抑制无关片段的焦点注意力机制是否能改善图像-文本匹配中的语义对齐?
- RQ2在图像到文本和文本到图像两个方向上的双向注意力如何影响性能,并减少对更长或更复杂模态的偏向?
- RQ3消除无关片段的干扰在多大程度上能提升Recall@1及其他匹配指标?
- RQ4一种预分配注意力机制结合模态内关系学习,能否在无需显式标注的情况下有效识别相关图像区域和文本词汇?
主要发现
- BFAN在Flickr30K和MSCOCO基准上相对于最先进方法实现了2.2%的相对Recall@1提升。
- BFAN-prob与BFAN-equal两种变体的结合显著提升了性能,表明其在相关片段选择方面具有互补优势。
- 消融实验证明,焦点注意力机制与双向设计均独立且稳定地为不同数据集的性能提升做出贡献。
- 注意力可视化结果表明,BFAN减少了对无关区域(如天空或草地)的关注,同时能正确对齐目标物体(如“moped”或“water”)。
- 定性结果表明,BFAN在短文本和长文本查询下均优于基线模型,尤其在存在干扰元素的复杂场景中表现更优。
- BFAN能成功区分语义相似但不同的概念(如“cookie”与“highchair”),而基线模型因过度关注主导关键词而失败。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。