Position-guided Text Prompt for Vision-Language Pre-training

Alex Jinpeng Wang, Pan Zhou, Mike Zheng Shou, Shuicheng Yan
12/19/2022
cs.CV

Official code: sail-sg/ptp (149 stars, Python, Apache-2.0, last commit 2023-06-07).

Abstract

Vision-Language Pre-Training (VLP) has shown promising capabilities to align image and text pairs, facilitating a broad variety of cross-modal learning tasks. However, we observe that VLP models often lack the visual grounding/localization capability which is critical for many downstream tasks such as visual reasoning.

Show full abstract

In this work, we propose a novel Position-guided Text Prompt (PTP) paradigm to enhance the visual grounding ability of cross-modal models trained with VLP. Specifically, in the VLP phase, PTP divides the image into $N\times N$ blocks, and identifies the objects in each block through the widely used object detector in VLP. It then reformulates the visual grounding task into a fill-in-the-blank problem given a PTP by encouraging the model to predict the objects in the given blocks or regress the blocks of a given object, e.g. filling `P" or ``O" in aPTP ``The block P has a O". This mechanism improves the visual grounding capability of VLP models and thus helps them better handle various downstream tasks. By introducing PTP into several state-of-the-art VLP frameworks, we observe consistently significant improvements across representative cross-modal learning model architectures and several benchmarks, e.g. zero-shot Flickr30K Retrieval (+4.8 in average recall@1) for ViLT \cite{vilt} baseline, and COCO Captioning (+5.3 in CIDEr) for SOTA BLIP \cite{blip} baseline. Moreover, PTP achieves comparable results with object-detector based methods, and much faster inference speed since PTP discards its object detector for inference while the later cannot. Our code and pre-trained weight will be released at \url{https://github.com/sail-sg/ptp}.

View on arXivView PDF

Code Implementations(1)

sail-sg/ptpOfficial100%
Apache-2.0

[CVPR2023] The code for 《Position-guided Text Prompt for Vision-Language Pre-training》

1494Python, ShellDec 16, 20223 years agoApache-2.0
cross-modalityvision-language-pretrainingvlp

Similar Papers

Cite this paper

@article{wang2022positionguided,
  title  = {Position-guided Text Prompt for Vision-Language Pre-training},
  author = {Alex Jinpeng Wang and Pan Zhou and Mike Zheng Shou and Shuicheng Yan},
  year   = {2022},
  eprint = {2212.09737},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.09737}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.09737.svg)](https://codeofpaper.com/paper/2212.09737)

Discussion