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.
翻译:在机器学习中,针对分布偏移(即部署条件与训练场景不一致的情况)的泛化能力至关重要,尤其是在气候建模、生物医学和自动驾驶等领域。基础模型的兴起,凭借其广泛的预训练和任务通用性,使得对其适应分布偏移的能力关注度日益提升。GPT-4V(ision) 作为最先进且可公开访问的多模态基础模型,已广泛应用于异常检测、视频理解、图像生成和医学诊断等多个领域。然而,其对数据分布变化的鲁棒性仍缺乏充分探索。为填补这一空白,本研究严格评估了GPT-4V在动态环境中的适应性和泛化能力,并与CLIP、LLaVA和Gemini等主流模型进行对比基准测试。我们深入探究了GPT-4V在涵盖自然、医学和分子领域的13个不同数据集上的零样本泛化能力。进一步,我们研究了其对可控数据扰动的适应性,并考察了上下文学习作为提升其适应性的工具的有效性。研究结果刻画了GPT-4V在分布偏移下的能力边界,揭示了其在不同场景下的优势与局限。重要的是,本项研究有助于理解人工智能基础模型如何泛化到分布偏移,为其适应性和鲁棒性提供了关键见解。代码已开源:https://github.com/jameszhou-gl/gpt-4v-distribution-shift。