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 Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Multi-Cache Enhanced Prototype Learning for Test-Time Generalization of Vision-Language Models cites Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models
- Multi-Cache Enhanced Prototype Learning for Test-Time Generalization of Vision-Language Models cites Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning
- Multi-Cache Enhanced Prototype Learning for Test-Time Generalization of Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
- Multi-Cache Enhanced Prototype Learning for Test-Time Generalization of Vision-Language Models cites Tent: Fully Test-Time Adaptation by Entropy Minimization
- Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
- Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models cites Tent: Fully Test-Time Adaptation by Entropy Minimization
- Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning cites Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models
- Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning cites Learning Transferable Visual Models From Natural Language Supervision
- Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning cites Tent: Fully Test-Time Adaptation by Entropy Minimization
- TTP: Test-Time Padding for Adversarial Detection and Robust Adaptation on Vision-Language Models cites Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models
- TTP: Test-Time Padding for Adversarial Detection and Robust Adaptation on Vision-Language Models cites Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning
- TTP: Test-Time Padding for Adversarial Detection and Robust Adaptation on Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
- TTP: Test-Time Padding for Adversarial Detection and Robust Adaptation on Vision-Language Models cites Tent: Fully Test-Time Adaptation by Entropy Minimization
- Curriculum Reinforcement Learning for Black-Box Prompt Tuning via Large Language Models cites Black-Box Tuning for Language-Model-as-a-Service
- Curriculum Reinforcement Learning for Black-Box Prompt Tuning via Large Language Models cites Learning Transferable Visual Models From Natural Language Supervision
- Backpropagation-Free Test-Time Adaptation via Probabilistic Gaussian Alignment cites Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models
- Backpropagation-Free Test-Time Adaptation via Probabilistic Gaussian Alignment cites Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning
- Backpropagation-Free Test-Time Adaptation via Probabilistic Gaussian Alignment cites Learning Transferable Visual Models From Natural Language Supervision
- Backpropagation-Free Test-Time Adaptation via Probabilistic Gaussian Alignment cites Tent: Fully Test-Time Adaptation by Entropy Minimization
- D^2O: A Dual Debiasing Operator for Training-Free Test-Time Adaptation of Vision–Language Models cites Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models
- D^2O: A Dual Debiasing Operator for Training-Free Test-Time Adaptation of Vision–Language Models cites Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning
- D^2O: A Dual Debiasing Operator for Training-Free Test-Time Adaptation of Vision–Language Models cites Learning Transferable Visual Models From Natural Language Supervision
- D^2O: A Dual Debiasing Operator for Training-Free Test-Time Adaptation of Vision–Language Models cites Tent: Fully Test-Time Adaptation by Entropy Minimization
- D^2O: A Dual Debiasing Operator for Training-Free Test-Time Adaptation of Vision–Language Models cites Backpropagation-Free Test-Time Adaptation via Probabilistic Gaussian Alignment
Cited 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 on19
- 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
