Black-Box Test-Time Prompt Tuning for Vision-Language Models
Fan'an Meng, Chaoran Cui, Hongjun Dai, Shuai Gong
Abstract
Test-time prompt tuning (TPT) aims to adjust the visionlanguage 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 visionlanguage 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 2 TPT), a novel framework that addresses the challenge of optimizing prompts without gradients in an unsupervised manner. Specifically, B 2 TPT designs a consistent or confident (CoC) pseudo-labeling strategy to generate highquality 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 2 TPT. The results show that B 2 TPT not only outperforms CLIP's zero-shot inference at test time, but also surpasses other gradient-based TPT methods.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 841919ed-85d4-4907-a395-cf3f8c2cea30Cited by top-tier papers6
- Backpropagation-Free Test-Time Adaptation via Probabilistic Gaussian AlignmentYoujia Zhang, Youngeun Kim, Young-Geun Choi, Hongyeob Kim et al.NeurIPS 2025 · 10 citations
- Multi-Cache Enhanced Prototype Learning for Test-Time Generalization of Vision-Language ModelsXinyu Chen, Haotian Zhai, Can Zhang, Xiupeng Shi et al.ICCV 2025 · 2 citations
- TTP: Test-Time Padding for Adversarial Detection and Robust Adaptation on Vision-Language ModelsZhiwei Li, Yitian Pang, Weining Wang, Zhenan Sun et al.CVPR 2026 · 2 citations
- Curriculum Reinforcement Learning for Black-Box Prompt Tuning via Large Language ModelsShuai Gong, Chaoran Cui, Xiaolin Dong, Chunyun Zhang et al.ICML 2026
- DO: A Dual Debiasing Operator for Training-Free Test-Time Adaptation of Vision–Language ModelsYihong Luo, Wenwu He, Dong Liang, Yihang Zhou et al.ICML 2026
Builds on18
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
- Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language ModelsManli Shu, Weili Nie, De-An Huang, Zhiding Yu et al.NeurIPS 2022 · 603 citations
- Black-Box Tuning for Language-Model-as-a-ServiceTianxiang Sun, Yunfan Shao, Hong Qian, Xuanjing Huang et al.ICML 2022 · 343 citations
- Diverse Data Augmentation with Diffusions for Effective Test-time Prompt TuningChun-Mei Feng, Kai Yu, Yong Liu, Salman Khan et al.ICCV 2023 · 172 citations
Related papers
- USE: A Unified Self-Ensembling Framework for Test-Time Prompt TuningSiru Jiang, Jian Liang, Ran He, Tieniu TanICML 2026
- TAPT: Test-Time Adversarial Prompt Tuning for Robust Inference in Vision-Language ModelsXin Wang, Kai Chen, Jiaming Zhang, Jingjing Chen et al.CVPR 2025
- SwapPrompt: Test-Time Prompt Adaptation for Vision-Language ModelsXiaosong Ma, Jie Zhang, Song Guo, Wenchao XuNeurIPS 2023 · 76 citations
- Knowledge-Aware Prompt Tuning for Generalizable Vision-Language ModelsBaoshuo Kan, Teng Wang, Wenpeng Lu, Xiantong Zhen et al.ICCV 2023 · 53 citations
- Amend to Alignment: Decoupled Prompt Tuning for Mitigating Spurious Correlation in Vision-Language ModelsJie Zhang, Xiaosong Ma, Song Guo, Peng Li et al.ICML 2024 · 10 citations
