How Well Does GPT-4V(ision) Adapt to Distribution Shifts? A Preliminary Investigation
Zhongyi Han, Guanglin Zhou, Rundong He, Jindong Wang, Tailin Wu, Yilong Yin, Salman Khan, Lina Yao, Tongliang Liu, Kun Zhang
TL;DR
This study interrogates how well GPT-4V adapts to distribution shifts across natural, medical, and molecular domains, comparing it to CLIP, LLaVA, and Gemini through zero-shot, perturbation, and in-context learning evaluations. Using 13 diverse datasets and a structured VQA-style prompt design, the authors quantify GPT-4V’s zero-shot generalization, its robustness to engineered perturbations (Gaussian noise and ControlNet-driven styles), and the potential of in-context learning to bridge domain gaps without parameter updates. Key findings show GPT-4V is relatively robust to natural distribution shifts and perturbations, often outperforming baselines on challenging cases, and that in-context learning can yield meaningful gains in target-domain performance, albeit with dataset-specific variability. The results highlight both the strengths and limitations of current multimodal foundation models, underscoring the need for domain-specific fine-tuning and careful prompt-and-context design to maximize reliability in high-stakes settings like medicine and chemistry. The work provides a publicly available benchmark and prompts a broader discussion on the role of foundation models in robust, real-world AI deployment.
Abstract
In machine learning, generalization against distribution shifts -- where deployment conditions diverge from the training scenarios -- is crucial, particularly in fields like climate modeling, biomedicine, and autonomous driving. The emergence of foundation models, distinguished by their extensive pretraining and task versatility, has led to an increased interest in their adaptability to distribution shifts. GPT-4V(ision) acts as the most advanced publicly accessible multimodal foundation model, with extensive applications across various domains, including anomaly detection, video understanding, image generation, and medical diagnosis. However, its robustness against data distributions remains largely underexplored. Addressing this gap, this study rigorously evaluates GPT-4V's adaptability and generalization capabilities in dynamic environments, benchmarking against prominent models like CLIP, LLaVA, and Gemini. We delve into GPT-4V's zero-shot generalization across 13 diverse datasets spanning natural, medical, and molecular domains. We further investigate its adaptability to controlled data perturbations and examine the efficacy of in-context learning as a tool to enhance its adaptation. Our findings delineate GPT-4V's capability boundaries in distribution shifts, shedding light on its strengths and limitations across various scenarios. Importantly, this investigation contributes to our understanding of how AI foundation models generalize to distribution shifts, offering pivotal insights into their adaptability and robustness. The code is publicly available at https://github.com/jameszhou-gl/gpt-4v-distribution-shift.
