Saved in:
Bibliographic Details
Main Authors: Oh, Changdae, Seo, Gyeongdeok, Jung, Geunyoung, Cheng, Zhi-Qi, Choi, Hosik, Jung, Jiyoung, Song, Kyungwoo
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.17491
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913002614161408
author Oh, Changdae
Seo, Gyeongdeok
Jung, Geunyoung
Cheng, Zhi-Qi
Choi, Hosik
Jung, Jiyoung
Song, Kyungwoo
author_facet Oh, Changdae
Seo, Gyeongdeok
Jung, Geunyoung
Cheng, Zhi-Qi
Choi, Hosik
Jung, Jiyoung
Song, Kyungwoo
contents With a surge of large-scale pre-trained models, parameter-efficient transfer learning (PETL) of large models has garnered significant attention. While promising, they commonly rely on two optimistic assumptions: 1) full access to the parameters of a PTM, and 2) sufficient memory capacity to cache all intermediate activations for gradient computation. However, in most real-world applications, PTMs serve as black-box APIs or proprietary software without full parameter accessibility. Besides, it is hard to meet a large memory requirement for modern PTMs. This work proposes black-box visual prompting (BlackVIP), which efficiently adapts the PTMs without knowledge of their architectures or parameters. BlackVIP has two components: 1) Coordinator and 2) simultaneous perturbation stochastic approximation with gradient correction (SPSA-GC). The Coordinator designs input-dependent visual prompts, which allow the target PTM to adapt in the wild. SPSA-GC efficiently estimates the gradient of PTM to update Coordinator. Besides, we introduce a variant, BlackVIP-SE, which significantly reduces the runtime and computational cost of BlackVIP. Extensive experiments on 19 datasets demonstrate that BlackVIPs enable robust adaptation to diverse domains and tasks with minimal memory requirements. We further provide a theoretical analysis on the generalization of visual prompting methods by presenting their connection to the certified robustness of randomized smoothing, and presenting an empirical support for improved robustness.
format Preprint
id arxiv_https___arxiv_org_abs_2407_17491
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Robust Adaptation of Foundation Models with Black-Box Visual Prompting
Oh, Changdae
Seo, Gyeongdeok
Jung, Geunyoung
Cheng, Zhi-Qi
Choi, Hosik
Jung, Jiyoung
Song, Kyungwoo
Computer Vision and Pattern Recognition
Machine Learning
With a surge of large-scale pre-trained models, parameter-efficient transfer learning (PETL) of large models has garnered significant attention. While promising, they commonly rely on two optimistic assumptions: 1) full access to the parameters of a PTM, and 2) sufficient memory capacity to cache all intermediate activations for gradient computation. However, in most real-world applications, PTMs serve as black-box APIs or proprietary software without full parameter accessibility. Besides, it is hard to meet a large memory requirement for modern PTMs. This work proposes black-box visual prompting (BlackVIP), which efficiently adapts the PTMs without knowledge of their architectures or parameters. BlackVIP has two components: 1) Coordinator and 2) simultaneous perturbation stochastic approximation with gradient correction (SPSA-GC). The Coordinator designs input-dependent visual prompts, which allow the target PTM to adapt in the wild. SPSA-GC efficiently estimates the gradient of PTM to update Coordinator. Besides, we introduce a variant, BlackVIP-SE, which significantly reduces the runtime and computational cost of BlackVIP. Extensive experiments on 19 datasets demonstrate that BlackVIPs enable robust adaptation to diverse domains and tasks with minimal memory requirements. We further provide a theoretical analysis on the generalization of visual prompting methods by presenting their connection to the certified robustness of randomized smoothing, and presenting an empirical support for improved robustness.
title Robust Adaptation of Foundation Models with Black-Box Visual Prompting
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2407.17491