Enhancing Visual Classification Using Comparative Descriptors

Hankyeol Lee, Gawon Seo, Wonseok Choi, Geunyoung Jung, Kyungwoo Song, Jiyoung Jung

TL;DR

Researchers have developed a way to significantly boost the accuracy of Vision-Language Models (VLMs) like CLIP by asking LLMs to describe how similar objects differ from one another. By moving from absolute descriptions to "comparative descriptors" and adding a simple visual filtering step, they achieved a ~5% average accuracy improvement across 13 benchmarks while keeping the model's decisions explainable.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) like CLIP are great at general classification, but they often stumble when faced with "fine-grained" tasks—distinguishing between a Golden Retriever and a Labrador, or two very similar species of birds.

Previous attempts to fix this involved using Large Language Models (LLMs) to generate descriptive "cues" (e.g., "A photo of a Golden Retriever, which has golden fur"). However, these methods have two major flaws:

  1. Ambiguity: LLMs sometimes generate non-visual or ambiguous descriptors (e.g., describing the "taste" of a fruit or using words like "banded" which could refer to a texture or a specific type of snake).
  2. Lack of Contrast: Standard descriptors focus on what a class is, rather than what makes it unique compared to its closest look-alikes.

Methods

The authors introduce a two-stage framework called Comparative-CLIP:

  1. Comparative Descriptor Generation:
  2. First, the system identifies the "neighbors" of a target class by calculating the cosine similarity between class names in CLIP's text space.
  3. It then prompts an LLM (GPT-4o) specifically to find distinguishing features: "What are useful features for distinguishing a {target class} from a {similar class} in a photo?" This forces the LLM to focus on unique, discriminative traits.
  4. The Filtering Process:
  5. Not all LLM-generated descriptors are helpful; some might be visually invisible or irrelevant to the specific dataset.
  6. The authors use a "few-shot" approach: they take a few images from a class, calculate their mean feature vector in CLIP space, and then discard any descriptors that don't align well with those actual images. This ensures the text descriptors are grounded in visual reality.

Datasets

The researchers evaluated their method on a massive suite of 13 diverse datasets, including:

  • General: ImageNet (IN1k), IN1k-V2, CIFAR100.
  • Fine-grained: CUB200-2011 (Birds), Oxford-IIIT Pet, Flowers102, Stanford Cars, FGVC-Aircraft.
  • Specialized: EuroSAT (Satellite imagery), Places365 (Scenes), Food101, Describable Textures Dataset (DTD), and Caltech256.

Key Insights and Ideas

  • The Top-1 vs. Top-5 Gap: The authors noticed that while CLIP’s Top-1 accuracy is often mediocre, its Top-5 accuracy is usually very high. This means the model "knows" the general category but gets confused by a few similar candidates. Comparative descriptors target exactly this "final mile" of classification.
  • Explainability Matters: A recent method called WaffleCLIP found that adding random characters to prompts could boost accuracy, but it destroyed the model's interpretability. This paper proves you can get even better performance using semantically meaningful text, preserving our ability to see why a model chose a specific label.
  • Contextual Anchoring: By asking the LLM to compare a target to a specific neighbor, the "meaning" of words becomes anchored. For example, comparing a "banded" texture to a "striped" one prevents the LLM from hallucinating unrelated concepts.

Key Results

The proposed method consistently outperformed standard CLIP and previous descriptor-based methods (like DCLIP and WaffleCLIP):

  • Overall Performance: Across 13 datasets, the "Ours + Filtering" approach reached an average accuracy of 62.37%, compared to CLIP's 57.55% and DCLIP's 59.05%.
  • Fine-Grained Wins: On the Describable Textures Dataset (DTD), accuracy jumped from 43.19% (CLIP) to 53.78%. On CUB (Birds), it rose from 51.36% to 56.41%.
  • Robustness: Even with just 1 or 2 images for the filtering process (1-shot or 2-shot), the method showed significant gains, making it practical for scenarios where data is scarce.

Limitations and Future Work

The authors identify two main hurdles:

  • Invisible Attributes: For certain technical datasets (like Aircraft or Cars), LLMs sometimes suggest internal features (like engine types or seating arrangements) that aren't visible in standard external photos.
  • Filtering Diversity: If the filtering process is too aggressive, it can lead to a "lack of diversity" in descriptors, where all remaining text snippets are semantically almost identical.

Future work will focus on incorporating more factors into the filtering process to ensure descriptors are both visually relevant and diverse.

Summary updated

BibTeX
@inproceedings{lee2025enhancing,
  author = {Hankyeol Lee and Gawon Seo and Wonseok Choi and Geunyoung Jung and Kyungwoo Song and Jiyoung Jung},
  title = {{Enhancing Visual Classification Using Comparative Descriptors}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00515},
}

Loading related content...

Figure