LLMs as Visual Explainers: Advancing Image Classification with Evolving Visual Descriptions
Songhao Han, Le Zhuo, Yue Liao, Si Liu
TL;DR
The paper tackles ambiguity in LLM-generated class descriptors for vision-language models by proposing a training-free Iterative Optimization with Visual Feedback, where an LLM-guided agent uses a genetic-algorithm-like process to evolve descriptors based on visual feedback from a VLM. By grounding language in CLIP-derived metrics and employing memory banks, the approach dynamically discovers descriptors that maximize image–text alignment, outperforming prior zero-shot and LLM-based methods across nine datasets. The method demonstrates strong generalization across backbones and maintains interpretability of the descriptors, while remaining compatible with fine-tuning pipelines. Overall, the work advances robust, interpretable, and transferable prompt design for visual classification through closed-loop language–vision interaction.
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.
