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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Nozawa, Yuji, Lin, Yu-Chieh, Nakamura, Kazumoto, Ng, Youyang
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916671272255488
author Nozawa, Yuji
Lin, Yu-Chieh
Nakamura, Kazumoto
Ng, Youyang
author_facet Nozawa, Yuji
Lin, Yu-Chieh
Nakamura, Kazumoto
Ng, Youyang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2504_01348
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Prompt-Guided Attention Head Selection for Focus-Oriented Image Retrieval
Nozawa, Yuji
Lin, Yu-Chieh
Nakamura, Kazumoto
Ng, Youyang
Computer Vision and Pattern Recognition
Information Retrieval
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.
title Prompt-Guided Attention Head Selection for Focus-Oriented Image Retrieval
topic Computer Vision and Pattern Recognition
Information Retrieval
url https://arxiv.org/abs/2504.01348