Why are Visually-Grounded Language Models Bad at Image Classification?

Yuhui Zhang, Alyssa Unell, Xiaohan Wang, Dhruba Ghosh, Yuchang Su, Ludwig Schmidt, Serena Yeung-Levy · DOI

Abstract

Visually-grounded language models (VLMs) like GPT-4V and LLaVA, despite being built upon powerful vision encoders like CLIP, exhibit a surprising "classification gap," performing significantly worse at basic object identification than their constituent parts. This study investigates the root causes of this deficiency, categorizing potential issues into inference strategies, training objectives, and data distribution. We demonstrate that the primary bottleneck is a lack of diverse classification data during the language-alignment phase. By integrating traditional classification datasets into the training pipeline, we show that VLMs can achieve state-of-the-art classification performance and, crucially, leverage this foundational ability to improve complex visual reasoning.

Introduction: The Classification Paradox

In the current landscape of multimodal AI, VLMs are often viewed as the "smarter" successors to contrastive vision-language models like CLIP. However, empirical testing reveals a paradox: while CLIP excels at zero-shot image classification, VLMs with billions of additional parameters often fail at the same tasks. For instance, while a CLIP-L encoder achieves ~75% accuracy on ImageNet, a standard LLaVA-1.5 model may struggle to reach 25%.

Overview of the VLM classification gap and the impact of classification-aware training.

This paper seeks to diagnose why these models struggle with "simple" classification and proposes a path forward to bridge the gap.

Diagnosing the Gap

The researchers conducted a systematic "autopsy" of VLM performance, exploring three potential failure points:

  1. Inference: Does the generative nature of LLMs hinder classification? While "probabilistic inference"—calculating the likelihood of specific labels—improves scores, it does not close the gap entirely.
  2. Training: Is the next-token prediction objective ill-suited for visual grounding? Feature probing suggests otherwise; linear classifiers trained on the LLM's internal hidden states reached 77%+ accuracy, proving the information is present but "trapped."
  3. Data: Is there a lack of alignment between visual features and text labels? The study found a high correlation (0.76) between the frequency of a class in the training data and the model's accuracy. VLMs often fail simply because they haven't seen enough examples of specific labels during instruction tuning.

The Solution: Classification-Aware Training

The authors introduced a "classification-aware" training recipe, mixing standard instruction-tuning data with high-quality classification datasets like ImageNet-1K. Interestingly, fine-tuning just the "projector" (the layer connecting the vision encoder to the LLM) was often sufficient to fix the gap.

Performance comparison across various benchmarks in open-world and closed-world settings.

As shown in the results table, this approach dramatically improves performance. LLaVA-1.5-7B's accuracy on ImageNet jumped from 22.8% to over 84%. Furthermore, this improvement generalizes to fine-grained tasks like identifying flowers or cars, outperforming even proprietary models like GPT-4V in closed-world settings.

Classification as a Foundation for Reasoning

A key insight of this work is that classification is not an isolated task but a foundational skill for broader visual intelligence. To test this, the authors created ImageWikiQA, a dataset requiring models to answer complex questions based on identified objects (e.g., "What is the native region of this animal?").

Models trained with classification data showed an 11.8% improvement on ImageWikiQA. This suggests that when a model can reliably identify a "guinea pig," it can better retrieve and apply its internal knowledge about that specific entity. Classification is foundational to reasoning.

Conclusion and Limitations

The "classification gap" in VLMs is primarily a data problem, not an architectural one. By ensuring that models are exposed to diverse, labeled visual concepts, we can unlock their full potential for both identification and reasoning. However, challenges remain: fine-tuning exclusively on classification data can lead to "catastrophic forgetting" of general conversational abilities, and probabilistic inference remains computationally expensive for large label spaces. Future VLM pre-training should explicitly include high-quality classification data to build a stronger visual foundation.

Summary updated

BibTeX
@inproceedings{zhang2024why,
  author = {Yuhui Zhang and Alyssa Unell and Xiaohan Wang and Dhruba Ghosh and Yuchang Su and Ludwig Schmidt and Serena Yeung-Levy},
  title = {{Why are Visually-Grounded Language Models Bad at Image Classification?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=MwmmBg1VYg},
}
Figure