Skip to content
AI.info

Research

DiVE-k: Differential Visual Reasoning for Fine-grained Image Recognition

Overview Research area: Computer vision / vision-language modeling — specifically zero-shot fine-grained image recognition with Large Vision Language Models (LVLMs), trained via reinforcement learning

arXiv
2511.18305
Published
2025-11-23
Authors
Raja Kumar, Arka Sadhu, Ram Nevatia

AI summary

Overview

Research area: Computer vision / vision-language modeling — specifically zero-shot fine-grained image recognition with Large Vision Language Models (LVLMs), trained via reinforcement learning.

Technical level: Intermediate. The paper assumes familiarity with LVLMs, reinforcement learning from verifiable rewards, and GRPO-style policy optimization, though the core idea (turn the model's own top predictions into a multiple-choice quiz) is intuitive.

Scope: The paper proposes DiVE-k, a two-stage framework that mines a model's own top-k generations as multiple-choice options and trains it with RL to pick the correct one, evaluated on five fine-grained classification datasets in base-to-novel, mixed-dataset, and few-shot settings.

What This Paper Is About

LVLMs hold broad text knowledge but frequently fail to distinguish visually similar fine-grained categories (e.g., closely related bird or flower species). Existing RL fine-tuning methods such as ViRFT rely on an exact string match between the model's answer and the category name to compute reward, which the authors argue is brittle, invites memorization of training category names, and does not force the discriminative, attribute-level reasoning needed to generalize to unseen classes. DiVE-k instead reuses the model's own top-k predictions as answer choices in a multiple-choice question, so the model must reason differentially among plausible confusions rather than recall a name.

Key Contributions

  1. The DiVE-k framework, which uses the base model's own top-k generations as a training signal for fine-grained image classification, converting them into multiple-choice questions.
  2. A demonstration that the MCQ format drives differential reasoning among semantically similar categories, with a simple, verifiable reward (selecting the correct option index) replacing brittle exact string matching.
  3. Strong empirical results across five fine-grained datasets in base-to-novel, mixed-domain, and few-shot settings, with detailed ablation studies on option construction, model component training, and the two-stage pipeline.
  4. An analysis of the two-stage pipeline's bottleneck, reporting top-k recall (Step 1) and MCQ accuracy (Step 2) separately, plus a diagnosed implementation flaw in ViRFT's string-matching reward.

Main Findings

  • Base-to-novel generalization: DiVE-k achieves an average Harmonic Mean of 79.8 with average base/novel accuracies of 80.8/78.8 across Flowers, CUB, Pets, Cars, and Aircraft. This is a gain of +7.8 base, +4.6 novel, +6.2 HM over ViRFT.
  • Headline comparisons from the abstract and introduction: DiVE-k surpasses QWEN2.5-VL-7B by 10.04% and ViRFT by 6.16% on the Harmonic Mean in standard base-to-novel generalization.
  • Largest per-dataset gains: CUB (+14.9 HM) and Oxford Flowers (+8.5 HM) versus ViRFT; more modest but consistent gains on Stanford Cars (+6.1 HM) and FGVC Aircraft (+3.2 HM).
  • One regression: a small drop on Oxford Pets (-1.3 HM) relative to ViRFT, which the authors attribute to more options leading to more second-step mistakes on that dataset.
  • Novel-class transfer under a shared inference pipeline: running ViRFT with DiVE-k's own inference pipeline improves novel accuracy over QWEN2.5-VL-7B by only +0.1 (77.0 → 77.1), while DiVE-k gains +1.8 (to 78.8), suggesting ViRFT's reward mainly reinforces base categories.
  • Mixed-dataset setting: DiVE-k reaches 78.7 HM, improving +9.0 HM over pretrained QWEN2.5-VL-7B and +4.0 HM over ViRFT, with base/novel gains of +5.1/+3.5. The introduction states improvements of 9.03% against QWEN2.5-VL-7B and 4.02% against ViRFT in this setting.
  • Few-shot (4-shot): average accuracy of 74.75%, an improvement of 7.73% over ViRFT and 10.85% over QWEN2.5-VL-7B, matching the abstract's reported 7.73% average improvement over ViRFT.
  • SFT fails to generalize: supervised fine-tuning gives strong base accuracy but degrades sharply on novel classes, with an average accuracy drop of 33.5% relative to the base model and a 19.9% HM reduction.
  • Comparison with proprietary models: DiVE-k surpasses Grok-4-fast and is on par with Gemini2.5-flash-light, though GPT-5-mini leads.
  • Option source matters most: on CUB, random MCQ options reach 63.2 HM and text-embedding-based MCQ options reach 66.8 HM, while top-k MCQ reaches 72.2 HM (base 80.5, novel 65.5) — a gain of 12% on base and 6.9% on novel over the base model.
  • Full-model training is necessary: on CUB, training vision only gives 64.92 HM (novel degrades from 58.67 to 57.83), text only gives 66.60 HM, and full training gives 72.23 HM.
  • K selection has diminishing returns: performance saturates around K ≈ 10–15, with near-maximal results at K = 15–20 for Flowers (~93%), CUB (~72.5%), Cars (~73%), and Aircraft (~70%); Pets peaks at small K (93.8% at K = 2) and declines for larger K.
  • Diagnosing the two stages: average Step 1 top-k recall rises from 90.9/89.4 (base/novel, QWEN2.5-VL) to 94.1/90.0 with DiVE-k (+3.2/+0.6); average Step 2 MCQ accuracy rises from 81.4/85.6 to 85.7/87.2 (+4.3/+1.6). CUB's Step 1 recall is comparatively lower, leaving room for improvement there.
  • Qualitative contrast: ViRFT commits to a coarse, incorrect label ("global thistle") in the flower example, while DiVE-k enumerates candidates and reasons over attribute-level cues such as capitulum/head shape, floret density and arrangement, and bract patterning.
  • A found bug in ViRFT: its string-match logic (student_answer in ground_truth) counts answers like "gull" as correct for "California gull", a shortcut the authors removed during their reproduction.

Methodology in Plain English

The method has two stages.

Stage 1 — Offline option mining. For each training image, the pretrained LVLM (Qwen2.5-VL-7B-Instruct) is sampled K = 20 times using top-p nucleus sampling (temperature 1.0, top_p 0.95, max_new_tokens 1024, num_return_sequences 20, repetition_penalty 1.1). Each response yields a reasoning trace and a final category name. The authors count how often each category appears, take the most frequent ones as options, and set the number of options to k = min(m, |C|) with m = 5. If the ground-truth category is not among them, it replaces the least frequent candidate. Options are enumerated (A, B, C, ...) and randomly shuffled to avoid position bias. Trivial samples where the model generated only a single, correct category are filtered out as hard-negative mining.

Stage 2 — RL training with GRPO. Each training sample is a tuple of (image, query, enumerated options, correct option label). The policy is trained with GRPO to produce a reasoning chain followed by an option choice. The reward has two parts: an MCQ reward of 1.0 for choosing the correct option and 0.0 otherwise, and a format reward that encourages the <think> and <answer> tags. The two are combined as a weighted sum with λ_m = λ_f = 1. Advantages are computed by normalizing rewards within each group of rollouts, and the GRPO objective clips the probability ratio and adds a KL penalty against a reference policy.

Inference. Inference mirrors training in two steps: the trained policy first generates candidate options via top-k rollouts, then is re-prompted to select among them. Unlike training, the ground truth is not injected into the options if Step 1 fails to surface it.

Setup. Training uses 3 A6000 GPUs with 48GB memory, batch size 6, 4 responses per input sample for GRPO, learning rate 10^-6, AdamW, a linear scheduler, 400 steps for base-to-novel, 1 epoch for mixed-data training, and 200 steps for few-shot training following ViRFT. Datasets are OxfordFlowers-102, CUB-200, OxfordPets-37, StanfordCars-196, and FGVC Aircraft-100, each split into equal halves for base and novel (e.g., CUB's first 100 categories as base, the other 100 as novel). Evaluation uses gemini-2.5-flash-lite as a judge that decides whether the predicted and ground-truth names refer to the same fine-grained category, which handles mismatches between scientific and common names.

Why This Matters

Impact on research: The paper argues that the reward signal, not just the RL algorithm, is the limiting factor in visual reasoning fine-tuning. By replacing exact string matching with an option-selection reward, it offers a template for verifiable rewards that resist category memorization and transfer better to unseen classes. It also documents a concrete evaluation shortcut in a prior method, which is itself useful for the subfield.

Real-world applications:

  • Biodiversity and ecological monitoring: distinguishing closely related bird, flower, and insect species from camera-trap or citizen-science photos.
  • Retail and e-commerce cataloging: separating visually near-identical product variants such as car models or trim levels.
  • Agricultural and veterinary assessment: fine-grained breed, cultivar, or disease identification where coarse categories are not actionable.
  • Consumer visual search: helping users pick the exact item variant rather than a generic category match.

Industry relevance: The framework trains on roughly 7B-parameter open-weight models with modest hardware (three 48GB GPUs), and the two-step inference can be tuned with small K to limit extra computation, making it practical for teams that cannot rely on large proprietary APIs. Few-shot gains of 7.73% over ViRFT at 4 shots per class matter for domains where labeled fine-grained data is expensive.

Future Directions

  1. Reducing inference cost: the two-step pipeline requires two forward passes, which the authors name as a limitation; a single-pass or cheaper variant is an open problem.
  2. Removing dependence on strong baseline Pass@k: the method's gains are contingent on the base model already surfacing the right answer among its top-k rollouts, so base LVLMs with lower intrinsic accuracy may benefit less. The authors suggest incorporating Pass@k directly as a reward signal.
  3. Verifying reasoning traces: checking whether generated chains of thought are factually correct and actually grounded in the input image remains unaddressed.
  4. Improving Step 1 on hard datasets: CUB's top-k recall is comparatively lower than other benchmarks, so candidate generation — not reasoning — is the bottleneck there.

Target Audience

Researchers and practitioners working on vision-language models, reinforcement learning from verifiable rewards, and fine-grained or zero-shot image classification. It is also relevant to engineers adapting open-weight LVLMs to specialized taxonomy domains with limited labeled data, and to anyone reproducing or building on ViRFT, given the reward-implementation issue the authors identify.

Authors’ abstract

Large Vision Language Models (LVLMs) possess extensive text knowledge but struggles to utilize this knowledge for fine-grained image recognition, often failing to differentiate between visually similar categories. Existing fine-tuning methods using Reinforcement Learning (RL) with exact-match reward signals are often brittle, encourage memorization of training categories, and fail to elicit differential reasoning needed for generalization to unseen classes. To address this, we propose $\textbf{DiVE-k}$, $\textbf{Di}$fferential $\textbf{V}$isual r$\textbf{E}$asoning using top-$\textbf{k}$ generations, framework that leverages model's own top-k predictions as a training signal. For each training image, DiVE-k creates a multiple-choice question from the model's top-k outputs and uses RL to train the model to select the correct answer. This approach requires the model to perform fine-grained differential reasoning among plausible options and provides a simple, verifiable reward signal that mitigates memorization and improves generalization. Experiments on five standard fine-grained datasets show that our method significantly outperforms existing approaches. In the standard base-to-novel generalization setting, DiVE-k surpasses the QWEN2.5-VL-7B and ViRFT by 10.04% and 6.16% on the Harmonic Mean metric, respectively. Further experiments show similar gains in mixed-domain and few-shot scenarios. Our code is available $\href{https://github.com/raja-kumar/DiVE-k}{here}$

Read the original paper