Exploring Visual Prompts for Adapting Large-Scale Models

Hyojin Bahng, Ali Jahanian, Swami Sankaranarayanan, Phillip Isola
3/31/2022
cs.CV

Official code: hjbahng/visual_prompting (292 stars, Python, MIT, PyTorch, last commit 2022-06-06).

Abstract

We investigate the efficacy of visual prompting to adapt large-scale models in vision. Following the recent approach from prompt tuning and adversarial reprogramming, we learn a single image perturbation such that a frozen model prompted with this perturbation performs a new task.

Show full abstract

Through comprehensive experiments, we demonstrate that visual prompting is particularly effective for CLIP and robust to distribution shift, achieving performance competitive with standard linear probes. We further analyze properties of the downstream dataset, prompt design, and output transformation in regard to adaptation performance. The surprising effectiveness of visual prompting provides a new perspective on adapting pre-trained models in vision. Code is available at http://hjbahng.github.io/visual_prompting .

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Exploring Visual Prompts for Adapting Large-Scale Models

29233Python, ShellApr 18, 20224 years agoMIT
pre-trained-modelprompt-tuningpytorchtransfer-learningvisual-prompting

Similar Papers

Cite this paper

@article{bahng2022exploring,
  title  = {Exploring Visual Prompts for Adapting Large-Scale Models},
  author = {Hyojin Bahng and Ali Jahanian and Swami Sankaranarayanan and Phillip Isola},
  year   = {2022},
  eprint = {2203.17274},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.17274}
}

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

Discussion