Scholay

学术搜索 · AI 审稿 · LaTeX 协作

Black-Box Test-Time Prompt Tuning for Vision-Language Models

作者:Fan’an Meng, Chaoran Cui, Hongjun Dai, Shuai Gong · 发表于:Proceedings of the AAAI Conference on Artificial Intelligence · 年份:2025 · DOI:10.1609/aaai.v39i6.32652 · 被引用次数:2 · 研究领域:Multimodal Machine Learning Applications、Natural Language Processing Techniques

Test-time prompt tuning (TPT) aims to adjust the vision-language models (e.g., CLIP) with learnable prompts during the inference phase. However, previous works overlooked that pre-trained models as a service (MaaS) have become a noticeable trend due to their commercial usage and potential risk of misuse. In the context of MaaS, users can only design prompts in inputs and query the black-box vision-language models through inference APIs, rendering the previous paradigm of utilizing gradient for prompt tuning is infeasible. In this paper, we propose black-box test-time prompt tuning (B²TPT), a novel framework that addresses the challenge of optimizing prompts without gradients in an unsupervised manner. Specifically, B²TPT designs a consistent or confident (CoC) pseudo-labeling strategy to generate high-quality pseudo-labels from the outputs. Subsequently, we propose to optimize low-dimensional intrinsic prompts using a derivative-free evolution algorithm and to project them onto the original text and vision prompts. This strategy addresses the gradient-free challenge while reducing complexity. Extensive experiments across 15 datasets demonstrate the superiority of B²TPT. The results show that B²TPT not only outperforms CLIP's zero-shot inference at test time, but also surpasses other gradient-based TPT methods.