TL;DR
SPLAT (Spike-and-SLab Prompt Adaptation at Test time) is a new framework that makes test-time adaptation for vision-language models more efficient by only updating "uncertain" prompt tokens. By using Monte Carlo Dropout to identify which parts of a prompt are unstable under new data distributions, SPLAT achieves state-of-the-art accuracy across 14 benchmarks while avoiding the overfitting common in uniform tuning methods.
What Problem Does This Paper Address?
Vision-language models (VLMs) like CLIP are famous for their "zero-shot" abilities—they can classify images they’ve never seen during training by comparing them to text prompts. However, these models often stumble when faced with a distribution shift (e.g., trying to recognize a "sketch" of a dog when they were trained on photos).
To fix this, researchers use Test-Time Adaptation (TTA), specifically "prompt tuning." Instead of retraining the massive model, they update a few "learnable tokens" in the prompt using the unlabeled test data. The problem? Current methods are "blunt instruments"—they update every single prompt token with the same intensity. This leads to three main issues:
- Redundant Computation: Updating stable, informative tokens is a waste of resources.
- Overfitting: Indiscriminately changing tokens can overwrite the model's useful pre-trained knowledge.
- Inflexibility: Different images might require different parts of the prompt to change, but uniform tuning treats every input the same.
Methods
The authors introduce SPLAT, a framework that treats prompt adaptation as a selective process. It consists of three main pillars:
- Uncertainty Estimation via MC Dropout: To figure out which tokens are "confused" by the new data, the model performs multiple forward passes with dropout enabled. If a token’s representation fluctuates wildly across these passes, it has high epistemic uncertainty and needs adaptation.
- Self-Gating Mechanism: The model uses a log-sigmoid gating function to map these uncertainty scores to a value between 0 and 1. This value acts as a "volume knob" for the gradient updates: uncertain tokens get a full update, while stable tokens are softly frozen.
- Spike-and-Slab Prior: This is the mathematical "secret sauce." The authors ground their gating in a Bayesian framework. They use a "spike" (a narrow distribution that keeps tokens at their pre-trained values) and a "slab" (a broad distribution that allows for change). This is formalized into a variational learning objective (ELBO) that balances predictive fit with a penalty for changing stable tokens.
Datasets
The authors evaluated SPLAT on a massive battery of 14 datasets to prove its robustness:
- Domain Generalization: Four OOD (out-of-distribution) variants of ImageNet, including ImageNet-V2 (resampled), ImageNet-Sketch, ImageNet-A (adversarial), and ImageNet-R (renditions/art).
- Cross-Dataset Generalization: Ten diverse datasets covering everything from satellite imagery (EuroSAT) and textures (DTD) to aircraft (FGVC-Aircraft) and pets (OxfordPets).
Key Insights and Ideas
- Selective Plasticity: The core "aha moment" is that not all prompt tokens are equally useful for every task. By identifying which tokens are "drifting" under a distribution shift, the model can be surgical rather than heavy-handed in its updates.
- Uncertainty as a Proxy for Relevance: The paper demonstrates that tokens with high epistemic uncertainty are often the ones most responsible for performance drops.
- Bayesian Grounding: Unlike many heuristic TTA methods, SPLAT’s gating isn't just a "trick"—it’s derived from a principled spike-and-slab prior, providing a solid theoretical foundation for why selective adaptation works.
- Plug-and-Play Compatibility: SPLAT isn't a new model; it's a wrapper. It was shown to improve various existing prompt-learning architectures like CoOp, MaPLe, and MMRL.
Key Results
SPLAT consistently outperformed existing state-of-the-art methods (like TPT and DynaPrompt):
- Accuracy Boost: On the ImageNet domain generalization benchmarks, SPLAT (using the MaPLe backbone) improved average accuracy from 60.28% to 64.88%, a significant jump for test-time adaptation.
- Cross-Dataset Success: It achieved an average accuracy of 67.96% across ten diverse datasets, surpassing all other tested methods.
- Efficiency: Qualitative analysis showed that SPLAT achieves peak performance by updating only 50–75% of the tokens, confirming that updating everything is indeed counterproductive.
- Backbone Agnostic: The gains held steady across different model architectures, including ViT-B/16, ViT-L/14, and SigLIP.
Limitations and Future Work
- Computational Overhead: Estimating uncertainty via Monte Carlo Dropout requires multiple forward passes (the authors suggest $T=4$ or $T=8$). While this happens only during the adaptation phase, it does increase the initial latency compared to single-pass methods.
- Hyperparameter Sensitivity: While the spike-and-slab prior is principled, it introduces parameters like the "slab" variance and the balance factor ($\beta$) that may need tuning for specific extreme distribution shifts.
- Future Directions: The authors suggest exploring even more efficient uncertainty estimators (beyond dropout) and applying this selective logic to other parameter-efficient fine-tuning (PEFT) methods beyond just prompts.
Summary updated