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

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

Zongbo Han, Jialong Yang, Guangyu Wang, Junfan Li, Qianli Xu, Mike Zheng Shou, Changqing Zhang

TL;DR

DOTA (DistributiOnal Test-time Adaptation) is a new framework that allows Vision-Language Models (VLMs) like CLIP to adapt to new environments on the fly without expensive retraining. Instead of caching individual test samples—which leads to "catastrophic forgetting" when the cache fills up—DOTA continuously estimates the statistical distribution of the incoming data stream. This approach achieves state-of-the-art accuracy and up to 20x faster inference than prompt-tuning methods.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) are incredibly powerful, but they aren't bulletproof. When you deploy a model like CLIP in the real world, it often encounters "distribution shifts"—meaning the test data looks significantly different from the web-scale data it was trained on (e.g., medical imagery vs. general internet photos).

To fix this, researchers use Test-Time Adaptation (TTA). Traditional TTA methods usually fall into two camps:

  1. Prompt Tuning: Updating the model's input prompts via backpropagation. This is slow and computationally heavy.
  2. Cache-based Adapters: Storing a small "bank" of representative test samples to guide future predictions.

The problem with the second camp is catastrophic forgetting. Because caches have limited capacity, the model must discard old samples to make room for new ones. As it adapts to the "now," it forgets what it learned at the beginning of the test stream, leading to unstable performance over time.

Methods

DOTA introduces a paradigm shift: don't memorize samples; model the distribution.

Comparison between cache-based TTA and DOTA's distribution-based TTA.

The core of DOTA is built on three pillars:

  • Online Distribution Estimation: The authors assume that the embeddings for each class follow a Gaussian distribution. Since ground-truth labels aren't available during testing, DOTA uses an Expectation-Maximization (EM) approach. It treats the model's own zero-shot predictions as "soft labels" to iteratively update the estimated mean and covariance for each class.
  • Recursive Updates: To handle streaming data, DOTA uses a recursive update formula. This allows the model to refine its understanding of the test-time distribution sample-by-sample without ever needing to store the actual images or embeddings in a cache.
  • Adaptive Fusion: In the early stages of testing, the distribution estimates are noisy. DOTA uses a dynamic fusion mechanism that relies more on the robust "zero-shot" CLIP knowledge initially, gradually shifting weight toward the "test-time" classifier as more samples are processed and the distribution estimate becomes more reliable.

Datasets

The researchers put DOTA through a rigorous gauntlet of benchmarks:

  • Cross-Domain Generalization: 10 diverse datasets including Aircraft, Caltech101, Stanford Cars, EuroSAT (satellite imagery), and Oxford Pets.
  • Natural Distribution Shifts (NDS): ImageNet and its variants designed to test robustness (ImageNet-A, -R, -S, and -V2).
  • Medical Scenarios: They tested a pathology-pretrained model (PLIP) on three specialized datasets: Kather (colon tissue), PanNuke (cancer histology), and WSSS4LUAD (lung adenocarcinoma).

Key Insights and Ideas

  • Statistical Compression is Better than Caching: A Gaussian distribution (mean and covariance) is a much more efficient and stable "memory" than a list of individual samples. It captures the global structure of the data rather than just local instances.
  • Bayes' Theorem for Adaptation: By estimating the distribution of features given a class, the model can use Bayes' theorem to calculate a more accurate posterior probability for classification.
  • Mitigating the "Forgetting" Curve: Unlike cache-based methods where performance often peaks and then plateaus or drops, DOTA’s accuracy consistently improves as it sees more data. The more samples it processes, the more accurate its mental map of the test environment becomes.
  • Efficiency is King: Because DOTA doesn't require backpropagation or gradient descent during inference, it is roughly 20 to 60 times faster than prompt-tuning methods like TPT or DiffTPT.

Key Results

Performance comparison on 10 cross-domain classification datasets.
  • Cross-Domain Superiority: Across 10 diverse datasets, DOTA achieved an average accuracy of 69.71%, outperforming previous cache-based methods like TDA (67.53%) and prompt-tuning methods like TPT (65.10%).
  • Robustness to Natural Shifts: On the ImageNet Natural Distribution Shift (NDS) benchmark, DOTA achieved an average accuracy of 66.31%, again outperforming the previous state-of-the-art cache method.
  • Medical Breakthrough: In specialized pathology tasks, DOTA showed a massive 6.89% average improvement over TDA, proving its effectiveness in niche domains with high distribution shifts.
  • Speed: For ImageNet, DOTA required only 22 minutes for inference, compared to 447 minutes for TPT and over 1,300 minutes for DiffTPT.
  • Stability: Experiments showed that while other methods' performance declined on several datasets over long test streams, DOTA's performance remained stable or improved.

Limitations and Future Work

The authors identify three main areas for improvement:

  1. The Gaussian Assumption: While effective, assuming every class follows a single Gaussian distribution is a simplification. Real-world data might be multi-modal or follow more complex distributions.
  2. Class Imbalance: DOTA currently assumes "uniform class priors" (that all classes are equally likely). In real-world deployments, some classes appear much more frequently than others.
  3. Heuristic Fusion: The current method for blending zero-shot and test-time results uses a heuristic weight. A more principled approach that adjusts weights based on real-time uncertainty could be more robust.

Future work will likely explore more flexible distribution models and adaptive prior estimation to handle imbalanced real-world data streams.

Summary updated

BibTeX
@inproceedings{han2025dota,
  author = {Zongbo Han and Jialong Yang and Guangyu Wang and Junfan Li 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