Saturday 15 March 2025
Recent advancements in artificial intelligence have led to significant improvements in machine learning models, particularly in the area of computer vision and natural language processing. One such model is the Contrastive Language-Image Pretraining (CLIP) framework, which has achieved remarkable success in various applications by leveraging the power of both visual and linguistic features.
However, despite its impressive performance, CLIP still suffers from limitations when adapting to new tasks or environments. This is where a novel approach comes into play – dynamic test-time prompt tuning, or DynaPrompt for short. Developed by researchers at the University of Amsterdam and Xiaohongshu Inc., this method aims to enhance the adaptability of CLIP by introducing an online learning strategy that selects and optimizes relevant prompts during testing.
The key idea behind DynaPrompt is to leverage the information in previous test samples to improve model performance on unseen data. To achieve this, the researchers designed a dynamic prompt buffer that can be updated at each testing step. This buffer contains a subset of the most informative prompts selected from a larger pool of potential options.
During online learning, the model uses entropy minimization as an optimization objective to iteratively refine the selected prompts. By minimizing the entropy of the predicted probabilities, the model is forced to adapt to the changing test data distribution and make more accurate predictions.
The authors evaluated DynaPrompt on several benchmark datasets, including ImageNet-A, ImageNet-V2, ImageNet-S, and ImageNet-R, using both ResNet-50 and ViT-B/32 as backbones. The results show that DynaPrompt outperforms CLIP and other state-of-the-art methods in terms of accuracy and robustness.
One notable aspect of DynaPrompt is its ability to reduce the negative impact of prompt collapse – a phenomenon where the model becomes stuck in a local optimum due to error accumulation during online learning. By dynamically selecting and optimizing prompts, DynaPrompt avoids this problem and achieves better performance even when using identical initialization for multiple online prompts.
The researchers also conducted experiments with longer trainable prompts, which did not improve the performance of online test-time prompt tuning due to increased difficulty in optimization. In contrast, DynaPrompt’s dynamic selection strategy allows it to adapt to changing test data distributions and make more accurate predictions.
Overall, DynaPrompt represents a significant step forward in the development of machine learning models that can effectively adapt to new tasks and environments.
Cite this article: “Dynamic Prompt Tuning Enhances CLIPs Adaptability in Machine Learning”, The Science Archive, 2025.
Artificial Intelligence, Machine Learning, Computer Vision, Natural Language Processing, Contrastive Language-Image Pretraining, Dynamic Test-Time Prompt Tuning, Online Learning, Entropy Minimization, Prompt Collapse, Image Classification.







