Skip to main content
QUICK REVIEW

[Paper Review] LLMs as Visual Explainers: Advancing Image Classification with Evolving Visual Descriptions

Songhao Han, Le Zhuo|arXiv (Cornell University)|Nov 20, 2023
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

This paper proposes Iterative Optimization with Visual Feedback, a method that uses an LLM agent guided by VLM classification metrics to iteratively refine class descriptions for improved image classification. By combining genetic algorithm-inspired evolution with visual feedback from CLIP, the approach achieves a 3.47% average accuracy gain over SOTA methods and produces robust, interpretable, and transferable textual prompts.

ABSTRACT

Vision-language models (VLMs) offer a promising paradigm for image classification by comparing the similarity between images and class embeddings. A critical challenge lies in crafting precise textual representations for class names. While previous studies have leveraged recent advancements in large language models (LLMs) to enhance these descriptors, their outputs often suffer from ambiguity and inaccuracy. We attribute this to two primary factors: 1) the reliance on single-turn textual interactions with LLMs, leading to a mismatch between generated text and visual concepts for VLMs; 2) the oversight of the inter-class relationships, resulting in descriptors that fail to differentiate similar classes effectively. In this paper, we propose a novel framework that integrates LLMs and VLMs to find the optimal class descriptors. Our training-free approach develops an LLM-based agent with an evolutionary optimization strategy to iteratively refine class descriptors. We demonstrate our optimized descriptors are of high quality which effectively improves classification accuracy on a wide range of benchmarks. Additionally, these descriptors offer explainable and robust features, boosting performance across various backbone models and complementing fine-tuning-based methods.

Motivation & Objective

  • To address the 'explain without seeing' dilemma where LLMs generate inaccurate visual descriptions due to lack of visual grounding.
  • To overcome the failure of current methods in differentiating similar classes due to overly generic, non-optimized descriptors.
  • To develop an automated, iterative pipeline that evolves class descriptions using visual feedback from VLMs to improve classification performance.
  • To generate interpretable, robust, and transferable textual prompts that generalize across different backbone models.
  • To demonstrate that visual feedback significantly enhances optimization stability and reduces variance in LLM-based prompt generation.

Proposed method

  • The method formulates class description optimization as a combinatorial problem, seeking the best textual descriptions that maximize VLM classification accuracy.
  • An LLM-based agent performs iterative evolution using mutation and crossover operations to explore and refine candidate descriptions.
  • Visual feedback is derived from CLIP’s confusion matrix and top-1 accuracy, serving as a reward and memory mechanism to guide the LLM toward better solutions.
  • A memory bank stores past high-performing descriptions to stabilize training and reduce variance in optimization outcomes.
  • The feedback loop enables the LLM to ground its textual generation in actual visual performance, avoiding random or irrelevant descriptions.
  • The framework is applied across multiple datasets and backbones, demonstrating transferability and robustness of the optimized prompts.
Figure 1 : Schematic of the method. (a) Previous methods use an LLM to generate descriptive prompts for each class directly. (b) Our method optimizes class descriptions through an evolutionary process. We utilize a VLM (such as CLIP [ 29 ] ) to obtain visual feedback, e.g. , the confusion matrix, as
Figure 1 : Schematic of the method. (a) Previous methods use an LLM to generate descriptive prompts for each class directly. (b) Our method optimizes class descriptions through an evolutionary process. We utilize a VLM (such as CLIP [ 29 ] ) to obtain visual feedback, e.g. , the confusion matrix, as

Experimental results

Research questions

  • RQ1Can LLM-generated class descriptions be systematically improved through visual feedback from a VLM to enhance image classification accuracy?
  • RQ2How does incorporating inter-class relationships and visual performance metrics affect the quality and discriminability of LLM-generated descriptions?
  • RQ3To what extent does visual feedback stabilize the optimization process and reduce variance in LLM-based prompt generation?
  • RQ4Can the optimized descriptions generalize across different vision backbone models and datasets?
  • RQ5How do the evolved descriptions compare in interpretability and semantic relevance to those from existing LLM-based methods?

Key findings

  • The method achieves a 3.47% average accuracy gain over state-of-the-art LLM-based methods across nine image classification benchmarks.
  • On the Flowers102 dataset, the optimized prompts improved accuracy by over 9% when transferred to ResNet-101 and ViT-B/16 backbones.
  • Removing visual feedback or the memory bank led to significant performance drops and high variance, confirming the critical role of visual feedback in optimization stability.
  • The final optimized descriptions are highly interpretable, with top-ranked descriptions showing strong semantic alignment to class-specific visual features and reduced ambiguity.
  • Unlike prior methods, the approach successfully avoids misclassifying abstract or ambiguous classes—e.g., correctly identifying 'Prince of Wales Feathers' as a plant, not a heraldic symbol—due to visual grounding.
  • The optimized prompts consistently outperform vanilla CLIP and existing LLM-based methods across diverse backbones, demonstrating strong transferability and robustness.
Figure 2 : Illustration of iterative optimization with visual feedback. (a) Given raw class names as input, we first prompt the LLM to generate an initialization of class descriptors. These descriptors undergo an iterative optimization comprising three stages: mutation, where diverse new candidates
Figure 2 : Illustration of iterative optimization with visual feedback. (a) Given raw class names as input, we first prompt the LLM to generate an initialization of class descriptors. These descriptors undergo an iterative optimization comprising three stages: mutation, where diverse new candidates

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.