BlackVIP: Black-Box Visual Prompting for Robust Transfer Learning

Changdae Oh, Hyeji Hwang, Hee-young Lee, YongTaek Lim, Geunyoung Jung +3 more
3/26/2023
cs.CVcs.AIcs.LG

Official code: changdaeoh/BlackVIP (107 stars, last commit 2023-08-14).

Abstract

With the surge of large-scale pre-trained models (PTMs), fine-tuning these models to numerous downstream tasks becomes a crucial problem. Consequently, parameter efficient transfer learning (PETL) of large models has grasped huge attention. While recent PETL methods showcase impressive performance, they rely on optimistic assumptions: 1) the entire parameter set of a PTM is available, and 2) a sufficiently large memory capacity for the fine-tuning is equipped. However, in most real-world applications, PTMs are served as a black-box API or proprietary software without explicit parameter accessibility. Besides, it is hard to meet a large memory requirement for modern PTMs. In this work, we propose black-box visual prompting (BlackVIP), which efficiently adapts the PTMs without knowledge about model architectures and parameters. BlackVIP has two components; 1) Coordinator and 2) simultaneous perturbation stochastic approximation with gradient correction (SPSA-GC). The Coordinator designs input-dependent image-shaped visual prompts, which improves few-shot adaptation and robustness on distribution/location shift. SPSA-GC efficiently estimates the gradient of a target model to update Coordinator. Extensive experiments on 16 datasets demonstrate that BlackVIP enables robust adaptation to diverse domains without accessing PTMs' parameters, with minimal memory requirements. Code: \url{https://github.com/changdaeoh/BlackVIP}

View on arXivView PDF

Code Implementations(1)

Official implementation for CVPR'23 paper "BlackVIP: Black-Box Visual Prompting for Robust Transfer Learning"

1079Shell, PythonFeb 27, 20233 years ago
black-box-optimizationfoundation-modelsparameter-efficient-tuningprompt-tuningtransfer-learning+1 more

Similar Papers

Cite this paper

@article{oh2023blackvip,
  title  = {BlackVIP: Black-Box Visual Prompting for Robust Transfer Learning},
  author = {Changdae Oh and Hyeji Hwang and Hee-young Lee and YongTaek Lim and Geunyoung Jung and Jiyoung Jung and Hosik Choi and Kyungwoo Song},
  year   = {2023},
  eprint = {2303.14773},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.14773v2},
  journal = {CVPR 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/2303.14773.svg)](https://codeofpaper.com/paper/2303.14773)

Discussion