Robustifying Vision-Language Models via Test-Time Prompt Adaptation
Abstract
Lay Summary
Vision-language models such as CLIP can recognize images using natural language descriptions, but they can be easily fooled by small, carefully designed changes to an image that are almost invisible to humans. This paper proposes RITA, a method that makes these models more reliable at test time without retraining them or requiring labeled data. Instead of relying on a single view of an image, RITA looks at multiple transformed versions of the same image and uses their shared information to better match the image with the correct text description. It also stores reliable information from previous test examples to further improve future predictions. Experiments on many image classification datasets show that RITA makes vision-language models much more robust to adversarial attacks while keeping strong performance on normal images.