arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.17491cs.CVcs.LG
收藏

基于黑盒视觉提示的模型鲁棒适应

Robust Adaptation of Foundation Models with Black-Box Visual Prompting

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);University of Seoul(首尔市立大学);Yonsei University(延世大学);University of Washington(华盛顿大学)

Changdae Oh, Gyeongdeok Seo, Geunyoung Jung, Zhi-Qi Cheng, Hosik Choi, Jiyoung Jung, Kyungwoo Song

AI总结:

本文提出BlackVIP方法,通过协调器和SPSA-GC组件实现无需模型参数的PTM适应,通过实验展示其在不同领域和任务中的鲁棒性,同时提供理论分析支持视觉提示方法的鲁棒性。

摘要:

随着大规模预训练模型的兴起,参数高效迁移学习(PETL)受到广泛关注。尽管有前景,但通常依赖两个乐观假设:1)完整访问PTM的参数,2)足够的内存容量缓存所有中间激活以进行梯度计算。然而,在大多数现实应用中,PTMs作为黑盒API或专有软件,无法完全访问参数。此外,现代PTMs的大量内存需求难以满足。本文提出黑盒视觉提示(BlackVIP),无需了解模型架构或参数即可高效适应PTMs。BlackVIP包含两个组件:1)协调器和2)同时扰动随机近似与梯度校正(SPSA-GC)。协调器设计输入依赖的视觉提示,使目标PTM在野外适应。SPSA-GC高效估计PTM的梯度以更新协调器。此外,我们引入了BlackVIP-SE的变体,显著减少了BlackVIP的运行时间和计算成本。在19个数据集上的广泛实验表明,BlackVIPs能够以最小的内存需求实现对多样领域和任务的鲁棒适应。我们进一步通过展示其与随机平滑的认证鲁棒性的联系,提供了视觉提示方法通用性的理论分析,并通过实证支持改进的鲁棒性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑