vix.ing · top · new · best · stats

DynaPrompt: Dynamic Test-Time Prompt Tuning

2025/01/27 by Zehao Xiao, Shilin Yan, Xiao, Zehao +13 · 14 citations
Computer Science · Engineering · #Artificial Intelligence (cs.AI) #Computation and Language (cs.CL) #Computer science #Engineering and Test Systems #FOS: Computer and information sciences #Geology #Machine Learning (cs.LG) #Software Testing and Debugging Techniques #Test (biology) #VLSI and Analog Circuit Testing

paper · pdf · doi:10.48550/arxiv.2501.16404

published in arXiv (Cornell University) (Cornell University)

openalex publication_date 2025/01/27 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

Test-time prompt tuning enhances zero-shot generalization of vision-language models but tends to ignore the relatedness among test samples during inference. Online test-time prompt tuning provides a simple way to leverage the information in previous test samples, albeit with the risk of prompt collapse due to error accumulation. To enhance test-time prompt tuning, we propose DynaPrompt, short for dynamic test-time prompt tuning, exploiting relevant data distribution information while reducing error accumulation. Built on an online prompt buffer, DynaPrompt adaptively selects and optimizes the relevant prompts for each test sample during tuning. Specifically, we introduce a dynamic prompt selection strategy based on two metrics: prediction entropy and probability difference. For unseen test data information, we develop dynamic prompt appending, which allows the buffer to append new prompts and delete the inactive ones. By doing so, the prompts are optimized to exploit beneficial information on specific test data, while alleviating error accumulation. Experiments on fourteen datasets demonstrate the effectiveness of dynamic test-time prompt tuning.

Cited by

Related