BoostAdapter: Improving Vision-Language Test-Time Adaptation via Regional Bootstrapping

Taolin Zhang, Jinpeng Wang, Hang Guo, Tao Dai, Bin Chen, Shu-Tao Xia

Introduction

Vision-Language Models (VLMs) like CLIP have demonstrated remarkable zero-shot generalization. However, their performance often degrades significantly when encountering domain shifts—such as adversarial samples, sketches, or stylistic variations. Test-time adaptation (TTA) aims to mitigate this at inference time, making these models more robust for real-world applications.

Bridging the TTA Gap

Researchers have traditionally followed two distinct paths for TTA:

  1. Training-required methods (e.g., TPT) use gradient descent to minimize entropy on multiple augmented views of a test image. While accurate, they are computationally expensive and slow, often processing less than one frame per second.
  2. Training-free methods (e.g., TDA) maintain a cache of features from previous samples to aid classification. These are fast but often miss fine-grained, instance-specific details available within the current test sample.
Comparison of training-required and training-free TTA paradigms alongside performance benchmarks.

BoostAdapter bridges this gap by introducing a Dual-Source Boosting Cache. It mines "intra-sample" information through Regional Bootstrapping—generating and filtering augmented views of the current image—and combines them with "inter-sample" historical data. This approach captures the information-mining power of training-required methods without the massive computational overhead of backpropagation.

Methodology: Dual-Source Boosting

The core of BoostAdapter is its non-parametric adaptation mechanism, which avoids updating neural network weights during inference:

  • Regional Bootstrapping: For every incoming test image, the system generates 64 augmented views (random crops and horizontal flips).
  • Entropy Filtering: Not all augmentations are useful. BoostAdapter calculates the entropy (uncertainty) of each view and retains only high-confidence, low-entropy views as "boosting samples."
  • Cache Mechanism: A lightweight memory stores both historical features (instance-agnostic) and current boosting samples (instance-aware).
  • Feature Retrieval: During inference, the model queries this combined cache. The final prediction is a weighted sum of the original CLIP output and the labels retrieved from the cache.

A key theoretical contribution of this work is proving that this training-free retrieval process is mathematically equivalent to the gradient-based entropy minimization used in training-required methods, providing a rigorous justification for its effectiveness.

Experimental Evaluation

BoostAdapter was evaluated across two major benchmarks: an Out-of-Distribution (OOD) benchmark consisting of four ImageNet variants (V2, Sketch, Adversarial, and Rendition), and a Cross-Domain benchmark covering 11 diverse datasets (e.g., EuroSAT, UCF101).

Key Results

  • Superior Accuracy: BoostAdapter achieved an average top-1 accuracy of 65.57% on the OOD benchmark, significantly outperforming both the training-free TDA (63.89%) and the training-required TPT (60.81%).
  • Massive Speedup: It operates at 11.23 FPS, nearly 40x faster than the gradient-based TPT (0.29 FPS), making it viable for real-time applications.
  • Robustness on Hard Cases: On the challenging ImageNet-A dataset, designed to fool CLIP, BoostAdapter improved accuracy by 4.42% over previous state-of-the-art training-free methods.

Conclusion

BoostAdapter offers a highly efficient and effective solution for real-time VLM adaptation. By replacing backpropagation with a dual-source cache, it captures the benefits of training-required methods without the associated computational cost. Future work may explore more efficient augmentation strategies or generative bootstrapping to further enhance performance in complex domains.

Summary updated

BibTeX
@inproceedings{zhang2024boostadapter,
  author = {Taolin Zhang and Jinpeng Wang and Hang Guo and Tao Dai and Bin Chen and Shu-Tao Xia},
  title = {{BoostAdapter: Improving Vision-Language Test-Time Adaptation via Regional Bootstrapping}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=8tOYl6WsGY},
}
Figure