NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DOTA: Distributional Test-Time Adaptation of Vision-Language Models

Zongbo Han, Jialong Yang, Junfan Li, Qinghua Hu, Qianli Xu, Mike Zheng Shou, Changqing Zhang · DOI

TL;DR

This paper introduces Dota, a novel test-time adaptation method for vision-language models like CLIP. Instead of relying on a limited cache of samples (which can lead to forgetting), Dota continuously estimates the underlying distribution of incoming test data to adapt the model, achieving state-of-the-art performance and significantly mitigating catastrophic forgetting.

What Problem Does This Paper Address?

Vision-language models (VLMs) like CLIP are incredibly powerful, capable of zero-shot classification without task-specific training. However, their performance can degrade significantly when deployed in environments where the test data distribution differs from the training data. While test-time adaptation (TTA) methods aim to address this by adapting the model during inference, existing approaches like cache-based methods (e.g., TDA) have a critical flaw: they store a limited number of representative test samples. This finite "memory" leads to catastrophic forgetting, where the model loses previously learned adaptations as new samples replace old ones, hindering its ability to form a stable understanding of the evolving test distribution.

Methods

Dota tackles this by shifting from instance-level memorization to distribution-level estimation. The core idea is to continuously estimate the underlying distribution of the test data stream. Specifically, Dota assumes that the embedding distribution of each class follows a Gaussian distribution. It then uses an Expectation-Maximization (EM) algorithm, leveraging zero-shot predictive probabilities, to estimate the mean and covariance of these class distributions. By applying Bayes' theorem with these estimated distributions, Dota computes test-time posterior probabilities, enabling dynamic adaptation to the deployment environment. This approach avoids backpropagation, making it significantly faster than prompt-tuning methods. To handle situations with insufficient test samples where distribution estimation might be unreliable, Dota also incorporates an adaptive fusion mechanism that dynamically balances the reliance on the original zero-shot classifier and the test-time classifier.

Datasets

The paper evaluates Dota on several benchmarks:

  • Cross-domain generalization: 10 diverse image classification datasets including Aircraft, Caltech101, Cars, DTD, EuroSAT, Flower102, Food101, Pets, SUN397, and UCF101.
  • Natural distribution shifts (NDS): ImageNet, ImageNet-A, ImageNet-R, ImageNet-S, and ImageNet-V2.
  • Pathological image classification: Kather Colon, PanNuke, and WSSS4LUAD datasets, using a pathology-pretrained foundation model (PLIP).

Key Insights and Ideas

  • Distributional estimation over instance memorization: The key insight is that adapting based on the estimated distribution of test data is more robust and less prone to forgetting than relying on a limited set of memorized samples.
  • Mitigating catastrophic forgetting: By continuously updating its understanding of the data distribution, Dota avoids the "forgetting" problem inherent in cache-based TTA methods.
  • Efficiency through training-free adaptation: Dota achieves significant speedups (over 20x faster than prompt-training methods) by avoiding gradient backpropagation during test-time adaptation.
  • Adaptive fusion for robustness: The adaptive fusion of zero-shot and test-time classifiers helps maintain performance when the number of test samples is too small for reliable distribution estimation.

Key Results

  • Dota achieves state-of-the-art performance on cross-domain generalization and natural distribution shift scenarios, outperforming existing methods. For instance, it improved average performance by 1.03% on cross-domain tasks and 1.21% on NDS tasks compared to the second-best method.
  • The method is significantly faster than gradient-based adaptation methods, being up to 61 times faster than DiffTPT.
  • Experiments show that Dota's performance improves as more test samples are processed, demonstrating its continuous learning ability, unlike TDA which shows performance degradation.
  • Ablation studies confirm the importance of both distribution estimation (especially updating covariance matrices) and the adaptive fusion mechanism for optimal performance.

Limitations and Future Work

  • Limited samples per class: The paper acknowledges that on datasets with very few samples per class (e.g., ImageNetV2 with 10 samples/class), Dota's performance can be slightly lower than TDA. This is attributed to the difficulty of accurately estimating distributions with insufficient data. However, Dota's performance improves significantly on later test samples in such cases.
  • Future work: The paper suggests that further enhancements could be made by incorporating human feedback for uncertain samples, as hinted at in the abstract, and by exploring more sophisticated distribution estimation techniques. The authors also mention that the code will be released.

Summary updated

BibTeX
@inproceedings{han2025dota,
  author = {Zongbo Han and Jialong Yang and Junfan Li and Qinghua Hu and Qianli Xu and Mike Zheng Shou and Changqing Zhang},
  title = {{DOTA: Distributional Test-Time Adaptation of Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=2T6QXSP8Cf},
}
Figure