[Paper Review] Test-Time Adaptation with CLIP Reward for Zero-Shot Generalization in Vision-Language Models
This paper proposes Reinforcement Learning with CLIP Feedback (RLCF), a test-time adaptation (TTA) method that uses CLIP as a reward model to align vision-language models with task goals, avoiding overfitting from entropy minimization. By maximizing CLIP scores through reinforcement learning with a dynamic baseline, RLCF achieves significant zero-shot generalization gains across image classification, retrieval, and captioning tasks with minimal supervision.
One fascinating aspect of pre-trained vision-language models~(VLMs) learning under language supervision is their impressive zero-shot generalization capability. However, this ability is hindered by distribution shifts between the training and testing data. Previous test time adaptation~(TTA) methods for VLMs in zero-shot classification rely on minimizing the entropy of model outputs, tending to be stuck in incorrect model predictions. In this work, we propose TTA with feedback to rectify the model output and prevent the model from becoming blindly confident. Specifically, a CLIP model is adopted as the reward model during TTA and provides feedback for the VLM. Given a single test sample, the VLM is forced to maximize the CLIP reward between the input and sampled results from the VLM output distribution. The proposed extit{reinforcement learning with CLIP feedback~(RLCF)} framework is highly flexible and universal. Beyond the classification task, with task-specific sampling strategies and a proper reward baseline choice, RLCF can be easily extended to not only discrimination tasks like retrieval but also generalization tasks like image captioning, improving the zero-shot generalization capacity of VLMs. According to the characteristics of these VL tasks, we build different fully TTA pipelines with RLCF to improve the zero-shot generalization ability of various VLMs. Extensive experiments along with promising empirical results demonstrate the effectiveness of RLCF. The code is available at https://github.com/mzhaoshuai/RLCF.
Motivation & Objective
- To address overfitting in fully test-time adaptation (TTA) caused by entropy minimization in vision-language models.
- To enable alignment of model outputs with task goals during inference without access to training data or human annotations.
- To develop a flexible, scalable feedback mechanism using CLIP as a reward model for multi-modal tasks.
- To improve zero-shot and cross-domain performance in vision-language tasks such as image classification, retrieval, and captioning.
- To demonstrate that a simple, CLIP-based reward design with a dynamic baseline can outperform standard entropy minimization in TTA.
Proposed method
- Uses CLIP as a reward model to provide feedback during test-time adaptation, assigning scores based on image-text pair similarity.
- Employs a dynamic baseline: the average CLIP score across sampled candidates, which stabilizes learning and improves alignment.
- Applies the REINFORCE algorithm with policy gradient updates to maximize expected CLIP reward during inference.
- Adopts task-specific sampling strategies: top-K sampling for classification and retrieval, beam search for captioning.
- Introduces a momentum buffer to retain knowledge from multiple test samples, enhancing generalization over time.
- Supports integration with multiple CLIP models to form a more robust reward ensemble.
Experimental results
Research questions
- RQ1Can CLIP serve as an effective, self-supervised reward model for test-time adaptation in vision-language models?
- RQ2Does using CLIP scores as a reward signal prevent overfitting compared to entropy minimization in TTA?
- RQ3How effective is RLCF in improving zero-shot and cross-domain performance across diverse vision-language tasks?
- RQ4Can a simple, learnable baseline based on average CLIP scores outperform fixed or complex reward baselines?
- RQ5To what extent does the momentum buffer improve generalization during sequential test-time adaptation?
Key findings
- RLCF significantly improves image classification accuracy on OOD benchmarks like ImageNet-A, ImageNet-V2, and ImageNet-R, outperforming entropy minimization-based TTA.
- In zero-shot image-text retrieval, RLCF achieves up to 5.7% higher CIDEr score on MS-COCO to Flickr30K transfer, demonstrating strong zero-shot generalization.
- For cross-domain image captioning, RLCF boosts CIDEr scores by up to 9.2 points on NoCaps and 8.5 points on Flickr30K, showing strong performance with a single test sample.
- CLIPCap with RLCF achieves a 7.8-point CIDEr gain over the baseline, highlighting the method's effectiveness with high-quality captioning models.
- The momentum buffer improves performance consistently across tasks, indicating effective knowledge retention over multiple test samples.
- RLCF-S, which uses a simpler sampling strategy, performs comparably to RLCF in most cases, showing robustness and practicality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.