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

面向聚焦图像检索的提示引导注意力头选择

Prompt-Guided Attention Head Selection for Focus-Oriented Image Retrieval

Kioxia Corporation(铠侠公司)

Yuji Nozawa, Yu-Chieh Lin, Kazumoto Nakamura, Youyang Ng

AI总结:

本文提出了Prompt-guided attention Head Selection (PHS)方法,通过将ViT的注意力图与用户视觉提示匹配来选择特定注意力头,无需重新训练即可聚焦多对象图像中的特定目标,显著提升了FOIR任务的检索性能。

摘要:

本文旨在通过视觉提示增强预训练 Vision Transformer (ViT) 模型,以实现面向聚焦的图像检索。在真实世界的图像检索场景中,查询图像和数据库图像通常表现出复杂性,包含多个对象和复杂的背景。用户通常希望检索具有特定对象的图像,我们将此定义为 Focus-Oriented Image Retrieval (FOIR) 任务。虽然可以使用标准图像编码器提取图像特征进行相似度匹配,但在基于多对象的 FOIR 任务中可能无法达到最佳效果。这是因为每张图像仅由单一全局特征向量表示。为克服此问题,需要基于提示的图像检索解决方案。我们提出了一种名为 Prompt-guided attention Head Selection (PHS) 的方法,以可提示的方式利用 ViT 中多头注意力机制的逐头潜力。PHS 通过将特定注意力头的注意力图与用户的视觉提示(如点、框或分割)进行匹配来选择这些注意力头。这使模型能够聚焦于特定的感兴趣对象,同时保留周围的视觉上下文。值得注意的是,PHS 无需模型重新训练,且避免了对图像的任何修改。实验结果表明,PHS 在多个数据集上显著提升了性能,为增强 FOIR 任务中的模型性能提供了一种实用且免训练的解决方案。

英文摘要:

The goal of this paper is to enhance pretrained Vision Transformer (ViT) models for focus-oriented image retrieval with visual prompting. In real-world image retrieval scenarios, both query and database images often exhibit complexity, with multiple objects and intricate backgrounds. Users often want to retrieve images with specific object, which we define as the Focus-Oriented Image Retrieval (FOIR) task. While a standard image encoder can be employed to extract image features for similarity matching, it may not perform optimally in the multi-object-based FOIR task. This is because each image is represented by a single global feature vector. To overcome this, a prompt-based image retrieval solution is required. We propose an approach called Prompt-guided attention Head Selection (PHS) to leverage the head-wise potential of the multi-head attention mechanism in ViT in a promptable manner. PHS selects specific attention heads by matching their attention maps with user's visual prompts, such as a point, box, or segmentation. This empowers the model to focus on specific object of interest while preserving the surrounding visual context. Notably, PHS does not necessitate model re-training and avoids any image alteration. Experimental results show that PHS substantially improves performance on multiple datasets, offering a practical and training-free solution to enhance model performance in the FOIR task.

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

↑