Intriguing Differences Between Zero-Shot and Systematic Evaluations of Vision-Language Transformer Models
Shaeke Salman, Md Montasir Bin Shams, Xiuwen Liu, Lingjiong Zhu
TL;DR
The paper addresses a fundamental paradox: vision-language transformers often achieve near-perfect zero-shot accuracy yet struggle to generalize robustly beyond standard benchmarks. It introduces a gradient-descent embedding-matching framework to probe the local geometry of the embedding space and demonstrates, on Imagenette, that visually indistinguishable images can be embedded to other classes with high confidence, yielding 0% systematic accuracy. A linearization-based analysis shows that adding Gaussian noise induces a normal distribution in representation space, explaining why robustness degrades under perturbations and why zero-shot performance can mask vulnerabilities. The findings are shown to be model- and dataset-agnostic, highlighting the need for systematic evaluation of generalization in multimodal transformers and offering a practical approach to detect adversarial modifications via noise perturbations.
Abstract
Transformer-based models have dominated natural language processing and other areas in the last few years due to their superior (zero-shot) performance on benchmark datasets. However, these models are poorly understood due to their complexity and size. While probing-based methods are widely used to understand specific properties, the structures of the representation space are not systematically characterized; consequently, it is unclear how such models generalize and overgeneralize to new inputs beyond datasets. In this paper, based on a new gradient descent optimization method, we are able to explore the embedding space of a commonly used vision-language model. Using the Imagenette dataset, we show that while the model achieves over 99\% zero-shot classification performance, it fails systematic evaluations completely. Using a linear approximation, we provide a framework to explain the striking differences. We have also obtained similar results using a different model to support that our results are applicable to other transformer models with continuous inputs. We also propose a robust way to detect the modified images.
