DynaPrompt: Dynamic Test-Time Prompt Tuning

Open Access
Authors
Publication date 2025
Book title The Thirteenth International Conference on Learning Representations
Book subtitle ICLR 2025
ISBN (electronic)
  • 9798331320850
Event 13th International Conference on Learning Representations, ICLR 2025
Number of pages 17
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
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.
Document type Conference contribution
Language English
Published at
https://openreview.net/forum?id=EFZEdHB3Mp (Final published version)
Other links
Downloads
3722_DynaPrompt_Dynamic_Test_T (Final published version)
Permalink to this page
Back