Skip to main content
QUICK REVIEW

[论文解读] Why are Visually-Grounded Language Models Bad at Image Classification?

Yuhui Zhang, Alyssa Unell|arXiv (Cornell University)|May 28, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

本文指出,视觉基础语言模型(VLMs)在图像分类任务上表现不佳,是由于训练过程中对分类数据的暴露不足。通过在ImageNet分类数据和指令微调数据上联合微调VLM,作者实现了84.4%的ImageNet准确率,并在一项复杂的视觉问答基准测试中提升了11.8%,证明了分类能力是高级VLM性能的基础。

ABSTRACT

Image classification is one of the most fundamental capabilities of machine vision intelligence. In this work, we revisit the image classification task using visually-grounded language models (VLMs) such as GPT-4V and LLaVA. We find that existing proprietary and public VLMs, despite often using CLIP as a vision encoder and having many more parameters, significantly underperform CLIP on standard image classification benchmarks like ImageNet. To understand the reason, we explore several hypotheses concerning the inference algorithms, training objectives, and data processing in VLMs. Our analysis reveals that the primary cause is data-related: critical information for image classification is encoded in the VLM's latent space but can only be effectively decoded with enough training data. Specifically, there is a strong correlation between the frequency of class exposure during VLM training and instruction-tuning and the VLM's performance in those classes; when trained with sufficient data, VLMs can match the accuracy of state-of-the-art classification models. Based on these findings, we enhance a VLM by integrating classification-focused datasets into its training, and demonstrate that the enhanced classification performance of the VLM transfers to its general capabilities, resulting in an improvement of 11.8% on the newly collected ImageWikiQA dataset.

研究动机与目标

  • 探究最先进的视觉基础语言模型(VLMs)为何在标准图像分类基准(如ImageNet)上表现不佳。
  • 识别这一性能差距的根本原因,尤其是与使用相同视觉编码器的CLIP进行对比。
  • 评估通过引入以分类为重点的数据集,能否恢复并提升VLM的图像分类性能。
  • 测试VLM中提升的图像分类能力是否能迁移到更复杂的视觉推理任务,如视觉问答。
  • 证明训练期间的数据暴露——特别是训练数据中类别频率——是影响VLM分类性能的主要因素。

提出的方法

  • 作者在封闭世界提示设置下,使用ImageNet评估了十个公开和专有的VLM,包括GPT-4V、Gemini、Claude-3、LLaVA和BLIP变体。
  • 他们分析了与推理策略、训练目标和数据分布相关的多种假设,重点关注各类别之间的数据-性能相关性。
  • 一个关键的方法步骤是将LLaVA1.5-7B在包含128万张ImageNet图像和66.5万条指令微调样本的联合数据集上进行微调,以增强其分类能力。
  • 他们提出了并评估了ImageWikiQA,一个关于ImageNet对象的复杂、现实世界问题的新基准,用于测试泛化能力超越分类任务。
  • 性能通过模型输出中与真实类别名称完全匹配的情况来衡量分类任务,通过答案准确率来衡量视觉问答任务。
  • 本研究比较了仅在分类数据上微调与在联合数据上微调的模型,以评估灾难性遗忘现象,并评估平衡微调的必要性。
Figure 1: Overview. (Left) Different visually-grounded language models (VLMs) underperform CLIP in classification by a large margin, though they often use CLIP as a vision encoder. (Middle) We investigate several hypotheses about why VLMs are bad classifiers and find that the main reason is data. Cr
Figure 1: Overview. (Left) Different visually-grounded language models (VLMs) underperform CLIP in classification by a large margin, though they often use CLIP as a vision encoder. (Middle) We investigate several hypotheses about why VLMs are bad classifiers and find that the main reason is data. Cr

实验结果

研究问题

  • RQ1为何尽管使用了强大的视觉编码器(如CLIP),VLMs在标准图像分类基准上仍表现不佳?
  • RQ2VLM训练期间某类别在数据中出现的频率,与该类别上模型性能的相关性有多大?
  • RQ3在VLM训练中整合大规模图像分类数据集,能否恢复甚至超越专用图像分类器的性能?
  • RQ4VLM中提升的图像分类能力是否能迁移到更复杂的视觉推理任务?
  • RQ5仅在分类数据上微调与在联合数据上微调,对整体能力的影响是什么?

主要发现

  • 在未进行微调的情况下,GPT-4V、Gemini和LLaVA等VLM在ImageNet上的top-1准确率仅为22.8%,显著低于使用相同视觉编码器的CLIP-L(85.7%)。
  • 类别在VLM训练数据中出现的频率与模型在该类别上的性能之间存在强烈正相关,表明数据暴露是性能差异的主要因素。
  • 仅在ImageNet分类数据上微调LLaVA1.5-7B,可使其ImageNet准确率达到84.4%,与最先进的分类器相当。
  • 当在ImageNet和指令微调数据上同时微调时,VLM在ImageWikiQA基准测试中实现了11.8%的绝对性能提升,证明其在高级推理任务中的能力迁移。
  • 仅在分类数据上微调会导致灾难性遗忘,使ImageWikiQA准确率下降至30.6%,凸显了平衡多任务微调的必要性。
  • 结果证实,图像分类能力是高级VLM性能的基础,且将经典分类数据整合到VLM训练中仍具有高度价值。
Figure 2: Analysis of the label set size. For each image, we randomly sample 100, 20, 5, 2 candidate classes from all the classes. The performance gap between VLMs and CLIPs becomes smaller when the number of classes is reduced. X-axis: number of classes; Y-axis: accuracy (%).
Figure 2: Analysis of the label set size. For each image, we randomly sample 100, 20, 5, 2 candidate classes from all the classes. The performance gap between VLMs and CLIPs becomes smaller when the number of classes is reduced. X-axis: number of classes; Y-axis: accuracy (%).

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。