DVLA-RL++: Dual-Level Vision-Language Alignment with Reinforcement Learning Gating for Few-Shot Learning

Wenhao Li, Xianjing Meng, Qiangchang Wang, Zhongyi Han, Yilong Yin, Liqiang Nie

TL;DR

DVLA-RL++ tackles the "context contamination" problem in few-shot learning by using LLM-generated descriptions of both objects and their backgrounds to filter out irrelevant visual noise. By combining this semantic purification with a counterfactual reinforcement learning strategy for vision-language fusion, it achieves state-of-the-art performance across nine standard, fine-grained, and cross-domain benchmarks.

What Problem Does This Paper Address?

Few-shot learning (FSL) aims to recognize new categories from just a handful of examples. A common strategy is to build a "prototype"—a representative feature vector—for each class. However, these few examples often contain incidental background context (like a bird sitting in reeds).

Standard vision-language models might correctly match the text "bird" to the image, but they might also accidentally include the "reeds" in the bird's prototype because the reeds are a consistent part of the training image. The authors call this support-evidence contamination. As shown in the figure below, even when a description is factually correct, it might be describing a "nuisance" background element rather than the intrinsic properties of the object.

Incidental context like reeds can contaminate the class prototype for 'bird'.

Methods

The authors propose two primary modules to extend their previous work (DVLA-RL):

  1. Complementary Semantic Purification (CSP): Instead of just using class names, CSP uses an LLM to generate two "banks" of descriptions: intrinsic (e.g., "striped plumage," "pointed beak") and nuisance (e.g., "vertical reeds," "grassy ground"). It compares visual tokens from the support images against both banks. Tokens that match the nuisance bank too closely are rejected. To prevent the prototype from collapsing when visual evidence is poor, an intrinsic semantic anchor (a pure language-based representation) fills in the gaps.

    CSP uses competing descriptions to select relevant visual features and mixes them with a semantic anchor.
  2. Counterfactual Reinforcement-Learning Gating (CRG): The model must decide how much to rely on language vs. vision at different layers of the neural network. CRG uses reinforcement learning to learn these "gating" strengths. It employs a nuisance-aware reward that penalizes the model for including background noise. Crucially, it uses a "counterfactual" baseline—comparing the current policy's performance against a frozen reference policy on the exact same episode—to provide a stable, unbiased learning signal.

Fig. 2. Overview of the proposed DVLA-RL++ framework. (A) A description generator produces intrinsic and nuisance semantic banks from the labeled supports of each class, and a frozen text encoder embeds them. (B) The intrinsic semantics guide local and global alignment inside the visual backbone through RL-gated attention. (C) Support tokens compete against the two banks, the retained evidence is mixed with an intrinsic anchor, and class-wise aggregation yields the prototypes used for nearest-prototype recognition. (D) During training only, a sampled gate policy and a frozen reference gate follow separate state trajectories on the same episode, and their paired utilities update the gate policy. Query labels enter only the training objectives and the evaluation metrics.

Datasets

The model was evaluated across nine benchmark settings:

  • Standard FSL: miniImageNet, tieredImageNet, and CIFAR-FS.
  • Fine-grained FSL: CUB-200-2011 (birds), Stanford Cars, and Stanford Dogs.
  • Cross-domain FSL: Training on miniImageNet and testing on CUB, Places, and ChestX (medical images).

Key Insights and Ideas

  • Language as a Filter, Not Just a Supplement: Most FSL methods use language to add information. DVLA-RL++ uses it to subtract noise. By explicitly describing what the background looks like, the model can better identify what the object is.
  • The "Reed Plume" Challenge: High agreement between an image patch and a class label isn't enough. A reed plume might look a bit like a bird's feathers. By comparing the relative evidence between intrinsic and nuisance descriptions, the model can set a "rejection margin" to handle these ambiguous cases.
  • Prototype Stability: The authors provide theoretical analysis showing that using a semantic anchor (language-only fallback) provides a stability guarantee for the prototypes, ensuring they don't drift too far even when the visual data is messy.

Key Results

  • State-of-the-Art Performance: DVLA-RL++ achieved the highest mean accuracy in all 18 tested settings (across 9 datasets, 1-shot and 5-shot).
  • Consistent Gains: It provided an average accuracy boost of 1.4% over the previous DVLA-RL baseline.
  • Robustness to Context: In "context intervention" experiments (where backgrounds were swapped), DVLA-RL++ showed significantly higher "Shift accuracy" than its predecessors, proving it successfully ignores background noise.
  • Cross-Domain Success: The model excelled in cross-domain tasks, notably outperforming the next best method by 10.3% on the CUB dataset when trained only on miniImageNet.

Limitations and Future Work

  • Computational Cost: The framework relies on generating descriptions via large language models (LLMs) for each new episode. While these can be cached, the initial generation step adds overhead.
  • Semantic Grounding: While the model handles background noise well, the authors note that future work could further strengthen how visual features are grounded in language, especially for extreme domain shifts (like moving from natural images to highly specialized medical scans).

Summary updated

Abstract

Few-shot learning aims to recognize novel categories from limited labeled examples. Recent studies incorporate textual semantics to compensate for limited visual observations and improve class representations. However, high image-text agreement may reflect both intrinsic object properties and incidental context, making support prototypes susceptible to contextual contamination. To address this problem, we propose DVLA-RL++, which extends DVLA-RL with complementary semantic purification (CSP) and counterfactual reinforcement-learning gating (CRG). Specifically, CSP generates intrinsic and nuisance descriptions from labeled supports and compares their agreement with each support token. An ambiguity-dependent rejection margin guides sparse evidence allocation, while an intrinsic semantic anchor fills the unassigned mass to provide a fallback when visual evidence is unreliable. CRG learns layer-wise semantic fusion strengths using a reward that balances recognition performance and nuisance exposure. An independently executed reference trajectory on the same episode provides a paired learning signal. Theoretical analysis relates retained evidence and anchor quality to prototype stability and establishes conditions for unbiased on-policy gradient estimation. Experiments on standard, fine-grained, and cross-domain benchmarks show state-of-the-art accuracy, with an average gain of 1.4% over DVLA-RL. The project page is available at https://peacelwh.github.io/TPAMI27-DVLA-RLpp/.
BibTeX
@inproceedings{li2026dvla,
  author = {Wenhao Li and Xianjing Meng and Qiangchang Wang and Zhongyi Han and Yilong Yin and Liqiang Nie},
  title = {{DVLA-RL++: Dual-Level Vision-Language Alignment with Reinforcement Learning Gating for Few-Shot Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=2ix1K6zPRf},
}
Figure