UniFGVC: Universal Training-Free Few-Shot Fine-Grained Vision Classification via Attribute-Aware Multimodal Retrieval

Hongyu Guo, Kuan Zhu, Xiangzhao Hao, Haiyun Guo, Ming Tang, Jinqiao Wang · OpenReview

Abstract

Few-shot fine-grained visual classification (FGVC) aims to leverage limited data to enable models to discriminate subtly distinct categories. Recent works mostly finetuned the pre-trained visual language models to achieve performance gain, yet suffering from overfitting and weak generalization. To deal with this, we introduce UniFGVC, a universal training-free framework that reformulates few-shot FGVC as multimodal retrieval. First, we propose the Category-Discriminative Visual Captioner (CDV-Captioner) to exploit the open-world knowledge of multimodal large language models (MLLMs) to generate a structured text description that captures the fine-grained attribute features distinguishing closely related classes. CDV-Captioner uses chain-of-thought prompting and visually similar reference images to reduce hallucination and enhance discrimination of generated captions. Using it we can convert each image into an image-description pair, enabling more comprehensive feature representation, and construct the multimodal category templates using few-shot samples for the subsequent retrieval pipeline. Then, off-the-shelf vision and text encoders embed query and template pairs, and FGVC is accomplished by retrieving the nearest template in the joint space. UniFGVC ensures broad compatibility with diverse MLLMs and encoders, offering reliable generalization and adaptability across few-shot FGVC scenarios. Extensive experiments on 12 FGVC benchmarks demonstrate its consistent superiority over prior few-shot CLIP-based methods and even several fully-supervised MLLMs-based approaches.

Introduction

Fine-grained visual classification (FGVC) is the challenging task of distinguishing between highly similar categories, such as specific breeds of dogs, aircraft models, or plant species. Achieving high accuracy in "few-shot" scenarios—where only a handful of labeled examples are available—is particularly difficult.

Traditional approaches typically involve fine-tuning pre-trained Vision-Language Models (VLMs) like CLIP or Multimodal Large Language Models (MLLMs). However, this paradigm faces two significant hurdles. First, fine-tuning on extremely small datasets often leads to overfitting, where the model loses its broad, open-world knowledge. Second, standard MLLMs often produce generic captions (e.g., "a white dog") or suffer from hallucinations, failing to capture the subtle, discriminative attributes (like ear shape or plumage patterns) necessary for fine-grained distinction.

Methodology: The UniFGVC Framework

UniFGVC addresses these issues by shifting from parameter fine-tuning to a training-free multimodal retrieval approach. The framework is built around two core components: the Category-Discriminative Visual Captioner (CDV-Captioner) and a plug-and-play retrieval pipeline.

Category-Discriminative Visual Captioner (CDV-Captioner)

The CDV-Captioner is designed to extract attribute-level differences between similar classes using a reference-guided Chain-of-Thought (CoT) process. Unlike standard captioning, it follows a structured workflow:

  1. Reference Selection: The system identifies visually similar images from related but different categories to serve as contrastive "foils."
  2. Discriminative Region Discovery: The MLLM compares the target image against these references to pinpoint specific regions (e.g., "upright ears" vs. "floppy ears") that distinguish the categories.
  3. Attribute Description & Summarization: The MLLM generates structured, attribute-rich text focused exclusively on these discriminative features, reducing noise and improving feature quality.
Overview of the UniFGVC framework and the CDV-Captioner pipeline.

Multimodal Retrieval Pipeline

After generating these enriched descriptions, UniFGVC uses off-the-shelf vision and text encoders (such as UniCOM or Jina-CLIP) to embed both the images and their corresponding descriptions into a joint feature space. Classification is then performed as a retrieval task: the multimodal features of a query image are matched against a "gallery" of few-shot training templates using similarity metrics. This training-free nature allows for easy swapping of encoders or MLLMs depending on the specific requirements of the task.

Experimental Results

The authors evaluated UniFGVC across 12 diverse FGVC datasets, including ImageNet, OxfordPets, CUBbirds, and specialized domains like FGVCAircraft and EuroSAT.

Performance Highlights

  • State-of-the-Art Accuracy: UniFGVC achieved an average accuracy of 84.2% across 11 primary datasets, outperforming the previous state-of-the-art method (CaFo) by a significant 4.62% margin.
  • ImageNet Gains: On the ImageNet benchmark, UniFGVC demonstrated a remarkable 12.31% improvement over existing few-shot methods.
  • Competitive with Supervised Models: Remarkably, this training-free retrieval method outperformed several fully-supervised MLLM-based approaches, such as Finedefics and CascadeVLM, on specific datasets like Flowers102 and StanfordCars.
Performance comparison of UniFGVC against state-of-the-art methods across various few-shot settings.

Discussion and Insights

The success of UniFGVC highlights several key insights for the field of computer vision:

  • Decoupling Adaptation from Training: By avoiding parameter updates, the model preserves its pre-trained "common sense" while specializing through retrieval, leading to better generalization.
  • The Power of Contrastive Prompting: MLLMs provide much more useful descriptions when given reference images to compare against, forcing them to look for differences rather than obvious similarities.
  • Efficiency: With zero trainable parameters, UniFGVC is highly efficient for deployment in scenarios where retraining is computationally prohibitive.

Limitations and Future Work

While effective, the reliance on MLLM calls during inference introduces higher latency compared to simple VLM forward passes. Future work will focus on utilizing more lightweight MLLM variants to reduce this overhead and exploring even finer granularity in visual reasoning across broader category sets.

Summary updated

BibTeX
@misc{guo2025unifgvc,
  author = {Hongyu Guo and Kuan Zhu and Xiangzhao Hao and Haiyun Guo and Ming Tang and Jinqiao Wang},
  title = {{UniFGVC: Universal Training-Free Few-Shot Fine-Grained Vision Classification via Attribute-Aware Multimodal Retrieval}},
  year = {2025},
  eprint = {2508.04136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.04136},
}
Figure