What does CLIP know about a red circle? Visual prompt engineering for VLMs

Aleksandar Shtedritski, C. Rupprecht, A. Vedaldi
2/14/2026

No official code found. Best implementation: suny-sht/clip-red-circle (12 stars, last commit 2023-09-21). 1 more below.

Abstract

Large-scale Vision-Language Models, such as CLIP, learn powerful image-text representations that have found numerous applications, from zero-shot classification to text-to-image generation. Despite that, their capabilities for solving novel discriminative tasks via prompting fall behind those of large language models, such as GPT-3. Here we explore the idea of visual prompt engineering for solving computer vision tasks beyond classification by editing in image space instead of text. In particular, we discover an emergent ability of CLIP, where, by simply drawing a red circle around an object, we can direct the model’s attention to that region, while also maintaining global information. We show the power of this simple approach by achieving state-of-the-art in zero-shot referring expressions comprehension and strong performance in keypoint localization tasks. Finally, we draw attention to some potential ethical concerns of large language-vision models.

View on arXivView PDF

Code Implementations(2)

Official implementation of "What does CLIP know about a red circle? Visual Prompt Engineering for VLMs", ICCV 2023

120Sep 21, 20233 years ago

UnOfficial implementation of "What does CLIP know about a red circle? Visual Prompt Engineering for VLMs", ICCV 2023 Resources

00PythonOct 20, 20251 years ago

Similar Papers

Cite this paper

@article{shtedritski2026what,
  title  = {What does CLIP know about a red circle? Visual prompt engineering for VLMs},
  author = {Aleksandar Shtedritski and C. Rupprecht and A. Vedaldi},
  year   = {2026},
  eprint = {2304.06712},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2304.06712},
  journal = {ICCV 2023 2023}
}

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/2304.06712.svg)](https://codeofpaper.com/paper/2304.06712)

Discussion