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

Yuhui Zhang, Alyssa Unell, Xiaohan Wang, Dhruba Ghosh, Yuchang Su +2 more
5/28/2024
cs.CVcs.AIcs.CL

No official code found. Best implementation: yuhui-zh15/VLMClassifier (99 stars, last commit 2024-10-19).

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.

View on arXivView PDF

Code Implementations(1)

Official implementation of "Why are Visually-Grounded Language Models Bad at Image Classification?" (NeurIPS 2024)

995Shell, PythonMay 23, 20242 years ago
computer-visionmachine-learningnatural-language-processing

Similar Papers

Cite this paper

@article{zhang2024visuallygrounded,
  title  = {Why are Visually-Grounded Language Models Bad at Image Classification?},
  author = {Yuhui Zhang and Alyssa Unell and Xiaohan Wang and Dhruba Ghosh and Yuchang Su and Ludwig Schmidt and Serena Yeung-Levy},
  year   = {2024},
  eprint = {2405.18415},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.18415},
  url    = {http://arxiv.org/abs/2405.18415v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.18415.svg)](https://codeofpaper.com/paper/2405.18415)

Discussion