Manuscript Offprint

arXiv:2610.12095

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

Wenhao Li ID^{ID}, Xianjing Meng ID^{ID}, Qiangchang Wang ID^{ID}, Zhongyi Han ID^{ID}, Yilong Yin ID^{ID}, and Liqiang Nie ID^{ID}, Senior Member, IEEE

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/.

Index Terms—Few-shot learning, Vision-language alignment, Support prototype, Reinforcement learning.

I. INTRODUCTION

Few-shot learning (FSL) aims to recognize novel categories from limited labeled examples by transferring knowledge acquired on base categories [1, 2]. It addresses settings in which collecting representative annotations for every new category is expensive or impractical. In episodic recognition, a learner uses a small labeled support set to classify separate query images. Metric-based methods construct a prototype for each class by aggregating its support features. With only a few observations, recognition depends not only on the quality of the learned embedding but also on which support evidence is included in the prototype.

Existing approaches improve either visual representations or the semantic information available to the learner. Visual methods strengthen local matching, embedding adaptation, and feature transfer [3, 4, 5]. Semantic methods introduce class names, prompts, attributes, or descriptions to supplement limited visual observations [6, 7, 8, 9]. These directions are complementary. Visual features capture the appearance of observed instances, whereas language supplies class knowledge that a few images cannot reliably establish. Our earlier framework DVLA-RL [10] combines local attributes and global descriptions with reinforcement-learning gates for hierarchical vision-language alignment. This alignment enriches visual features at multiple semantic granularities. However, it does not explicitly determine which local support features should define a class. A description may accurately characterize an image while matching both intrinsic object properties and incidental context. Therefore, reliable prototypes require distinguishing class-defining evidence from contextual cues, even when both are well explained by language.

Fig. 1(a) illustrates this ambiguity with a bird among reeds. Striped plumage and vertical reeds share visual patterns, and both intrinsic and contextual descriptions can be factually correct. However, contextual cues become unreliable when the background changes. Averaging support features allows these cues to enter the class prototype, a problem we call support-evidence contamination. Fig. 1(b) shows that competing semantic explanations help distinguish the evidence. Feathers favor the intrinsic descriptions, whereas reeds favor the nuisance descriptions. The reed plume is a subtler case, since its high intrinsic agreement is accompanied by a small advantage over nuisance agreement, motivating an explicit rejection margin. Unlike spatial foreground suppression [11], semantic evidence selection concerns incidental cues that may occur within or alongside the target object. It must also handle supports whose visual tokens are all unreliable without forcing prototype mass onto poor evidence. Furthermore, selective aggregation alone does not control whether semantic fusion reinforces contextual cues across visual layers. The fusion policy should therefore account for support-evidence reliability while preserving useful class semantics.

Motivated by these observations, we propose DVLA-RL++ with complementary semantic purification (CSP) and counter-

Wenhao Li, Qiangchang Wang, Zhongyi Han and Yilong Yin are with the School of Software, Shandong University, Jinan 250101, China (E-mail: wenhao.li@mail.sdu.edu.cn; qiangchang.wang@gmail.com; zhongyi.han@sdu.edu.cn; ylyin@sdu.edu.cn).

Wenhao Li is with Shenzhen Loop Area Institute, Shenzhen 518038, China.

Xianjing Meng is with the School of Computer and Artificial Intelligence, Shandong University of Finance and Economics, Jinan 250014, China (E-mail:rongmengyuan@gmail.com).

Liqiang Nie is with the School of Computer Science and Technology, Harbin Institute of Technology (Shenzhen), 518055, China (E-mail: nieliqiang@gmail.com).

(a) Shared visual cues

Figure

(b) High agreement can still reflect context

Figure

Fig. 1. Illustration of support-evidence contamination. (a) Intrinsic bird cues and incidental reed patterns coexist in a support image. (b) Comparing intrinsic and nuisance agreement keeps the feathers and rejects the reeds. The reed plume has positive relative evidence but falls below the rejection margin of 0.15, illustrating the need for explicit rejection.

factual reinforcement-learning gating (CRG). CSP compares each support token against intrinsic and nuisance descriptions generated from labeled supports. Its rejection margin increases with the semantic overlap between the two description banks, demanding stronger relative evidence when the explanations are ambiguous. Sparse allocation retains selected visual evidence, while an intrinsic semantic anchor fills the unassigned prototype mass and provides a defined fallback when no token is retained. CRG learns layer-wise semantic fusion strengths using a nuisance-aware recognition reward. A sampled gate policy and a frozen reference gate run on the same episode with the same representation but propagate their own support states. Their paired utilities guide policy learning toward gate choices that improve recognition while limiting nuisance exposure. At inference, the semantic banks, gate schedule, and prototypes are constructed from labeled supports and reused for independently processed queries.

This article extends our ICLR 2026 conference paper, DVLA-RL [10], in three respects. (1) We introduce complementary semantic purification to replace uniform averaging of support tokens with selective evidence aggregation and theoretically analyze the stability of the resulting prototypes. (2) We develop counterfactual reinforcement-learning gating using a nuisance-aware reward and a paired learning signal from an independently executed reference policy, and establish conditions for unbiased on-policy gradient estimation. (3) We expand the evaluation with context interventions, evidence audits, and policy diagnostics to examine the role of support-evidence reliability in the observed performance gains. Our main contributions are summarized as follows.

• DVLA-RL++ is proposed to purify support evidence against contextual contamination, combining selective prototype construction with adaptive semantic fusion.

  • A CSP module is proposed to separate intrinsic evidence from contextual cues with competing descriptions and ambiguity-dependent rejection, backed by an intrinsic anchor and prototype stability bounds.

  • A CRG module is proposed to limit nuisance exposure during semantic fusion with an independent reference trajectory, yielding unbiased on-policy gradient estimation.

  • The proposed method achieves state-of-the-art results on nine FSL benchmarks across diverse scenarios with an average accuracy gain of 1.4% over DVLA-RL.

References (68)

  • Matching networks for one shot learning
  • Prototypical networks for few-shot learning
  • Deepemd: Few-shot image classification with differentiable earth mover’s distance and structured classifiers
  • Few-shot learning via embedding adaptation with set-to-set functions
  • Rethinking few-shot image classification: a good embedding is all you need?
  • Adaptive cross-modal few-shot learning
  • Semantic prompt for few-shot image recognition
  • Simple semantic-aided few-shot learning
  • Envisioning class entity reasoning by large language models for few-shot learning
  • DVLA-RL: Dual-level vision-language alignment with reinforcement learning gating for few-shot learning
  • Boosting few-shot fine-grained recognition with background suppression and foreground alignment
  • Knn transformer with pyramid prompts for few-shot learning
  • Learning transferable visual models from natural language supervision
  • Learning to prompt for vision-language models
  • Tip-adapter: Training-free adaption of clip for few-shot classification
  • Efficient test-time adaptation of vision-language models
  • From softmax to sparse-max: A sparse model of attention and multi-label classification
  • Simple statistical gradient-following algorithms for connectionist reinforcement learning
  • Proximal Policy Optimization Algorithms
  • Self-critical sequence training for image captioning
  • Counterfactual multi-agent policy gradients
  • Meta-learning for semi-supervised few-shot classification (opens arXiv in a new tab)
  • Meta-learning with differentiable convex optimization
  • The caltech-ucsd birds-200-2011 dataset
  • 3d object representations for fine-grained categorization
  • Novel dataset for fine-grained image categorization: Stanford dogs
  • Places: A 10 million image database for scene recognition
  • Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases
  • Visformer: The vision-friendly transformer
  • Qwen2.5-VL Technical Report
  • Self-promoted supervision for few-shot transformer
  • Decoupled Weight Decay Regularization
  • SGDR: Stochastic Gradient Descent with Warm Restarts
  • Boosting few-shot learning with adaptive margin loss
  • Generating representative samples for few-shot classification
  • Prompt, generate, then cache: Cascade of foundation models makes strong few-shot learners
  • Rethinking generalization in few-shot classification
  • Meta-adam: An meta-learned adaptive optimizer with momentum for few-shot learning
  • Protodiff: Learning to learn prototypical networks by task-guided diffusion
  • Class-aware patch embedding adaptation for few-shot image classification
  • Learning to learn task-adaptive hyperparameters for few-shot learning
  • Few-shot learning with a strong teacher
  • MetaKernel: Learning variational random features with limited labels
  • Semantic-based implicit feature transform for few-shot classification
  • Understanding episode hardness in few-shot learning
  • Task-oriented channel attention for fine-grained few-shot classification
  • Few-shot fine-grained classification with foreground-aware kernelized feature reconstruction network
  • Interpretable few-shot image classification via prototypical concept-guided mixture of LoRA experts
  • Few-shot classification with feature map reconstruction networks
  • Dual attention networks for few-shot fine-grained recognition
  • Masked feature generation network for few-shot learning
  • Task discrepancy maximization for fine-grained few-shot classification
  • Angular isotonic loss guided multi-layer integration for few-shot fine-grained image classification
  • Cross-layer and cross-sample feature optimization network for few-shot fine-grained image classification
  • Few-shot fine-grained image classification with progressively feature refinement and continuous relationship modeling
  • Few-shot learning with graph neural networks
  • Cross-domain few-shot classification via learned feature-wise transformation
  • Adversarial feature augmentation for cross-domain few-shot classification
  • Understanding cross-domain few-shot learning based on domain similarity and few-shot difficulty
  • Towards well-generalizing meta-learning via adversarial task augmentation
  • Revisiting prototypical network for cross domain few-shot learning
  • Styleadv: Meta style adversarial training for cross-domain few-shot learning
  • Exploring cross-domain few-shot classification via frequency-aware prompting
  • Flatten long-range loss landscapes for cross-domain few-shot learning
  • Meta-exploiting frequency prior for cross-domain few-shot learning
  • Svasp: Self-versatility adversarial style perturbation for cross-domain few-shot learning
  • Meta-exploiting complementary semantic consistency for cross-domain few-shot learning promotion
  • Visualizing data using t-sne