[Paper Review] Visual Classification via Description from Large Language Models
The paper replaces category-name embeddings with language-described descriptors generated by GPT-3, grounding them with CLIP to improve zero-shot visual classification, interpretability, and adaptability.
Vision-language models (VLMs) such as CLIP have shown promising performance on a variety of recognition tasks using the standard zero-shot classification procedure -- computing similarity between the query image and the embedded words for each category. By only using the category name, they neglect to make use of the rich context of additional information that language affords. The procedure gives no intermediate understanding of why a category is chosen, and furthermore provides no mechanism for adjusting the criteria used towards this decision. We present an alternative framework for classification with VLMs, which we call classification by description. We ask VLMs to check for descriptive features rather than broad categories: to find a tiger, look for its stripes; its claws; and more. By basing decisions on these descriptors, we can provide additional cues that encourage using the features we want to be used. In the process, we can get a clear idea of what features the model uses to construct its decision; it gains some level of inherent explainability. We query large language models (e.g., GPT-3) for these descriptors to obtain them in a scalable way. Extensive experiments show our framework has numerous advantages past interpretability. We show improvements in accuracy on ImageNet across distribution shifts; demonstrate the ability to adapt VLMs to recognize concepts unseen during training; and illustrate how descriptors can be edited to effectively mitigate bias compared to the baseline.
Motivation & Objective
- Motivate replacing raw category names with descriptive linguistic descriptors for visual categories.
- Propose a scalable method to generate descriptors using a large language model.
- Ground descriptors with a vision-language model to compute category scores transparently.
- Demonstrate improvements in accuracy, adaptability to novel concepts, and bias correction capabilities.
Proposed method
- Represent a category c by a set of descriptors D(c) expressed as natural language sentences.
- Compute a category score s(c, x) as the average descriptor relevance: s(c,x)= (1/|D(c)|) * sum_{d in D(c)} phi(d,x), where phi(d,x) is the log-probability that descriptor d pertains to image x.
- Automatically construct D(c) by prompting a large language model (e.g., GPT-3) with queries like: ‘What are useful features for distinguishing a {category} in a photo?’
- Ground descriptors using a vision-language model (CLIP) by measuring similarity between the image and text descriptors, with conditioning on the class name.
- Provide interpretability by enabling inspection of which descriptors activated for a given image and why a category was chosen.
- Classification is performed by selecting the category with the highest s(c,x).
- Describe how descriptors can be edited to mitigate bias and adapt to new concepts.
Experimental results
Research questions
- RQ1Can descriptor-based classification using LLM-generated attributes improve accuracy over standard CLIP-style category-name embeddings?
- RQ2Do descriptor-based models offer inherent interpretability by exposing which features drive decisions?
- RQ3Can GPT-3-derived descriptors enable recognition of concepts unseen during training or after deployment?
- RQ4How can descriptor editing influence biases and improve fairness across demographic or cultural subgroups?
Key findings
- Achieves consistent accuracy gains over CLIP across multiple datasets, with reported improvements of ~3–5% on ImageNet and up to ~7% on some non-natural-image domains.
- Demonstrates ability to recognize novel concepts post-training by leveraging GPT-3 descriptors (e.g., Wordle, Ever Given) with 100% recall in top-10 on those examples, where CLIP fails.
- Descriptors enable explainable predictions by showing which features (descriptors) contributed to the decision.
- Descriptor editing can mitigate biases (e.g., wedding cultural bias) and improve accuracy for underrepresented groups.
- The approach yields interpretability without requiring additional training and scales with descriptor generation via LLMs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.