Manuscript Offprint
arXiv:2610.12095DVLA-RL++: Dual-Level Vision-Language Alignment with Reinforcement Learning Gating for Few-Shot Learning
Wenhao Li , Xianjing Meng , Qiangchang Wang , Zhongyi Han , Yilong Yin , and Liqiang Nie , 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

(b) High agreement can still reflect context

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.
A. Visual and Semantic Few-Shot Learning
Visual few-shot learning transfers representations learned from base categories to novel classes with limited labeled examples. Matching Networks [1] and Prototypical Networks [2] establish embedding-based recognition through support-query matching and class prototypes, respectively. Subsequent methods improve local correspondence, episodic adaptation, and transferable representations. DeepEMD [3] models local feature correspondence through differentiable matching, FEAT [4] adapts embeddings using relationships within an episode, and Tian et al. [5] demonstrate the effectiveness of strong pretrained embeddings. These approaches improve visual recognition, while prototype estimation remains dependent on the limited evidence available in the support set.
Semantic methods supplement visual observations with class knowledge conveyed by names, prompts, attributes, and descriptions. AM3 [6] adaptively combines visual and semantic representations, Semantic Prompt [7] introduces textual knowledge for image recognition, and KTPP [12] incorporates hierarchical cross-modal prompts. SemFew [8] and ECER [9] further enrich the semantic information available for novel classes. Vision-language pretraining [13], prompt learning [14], and support-cache adaptation [15] provide additional mechanisms for transferring textual knowledge to few-shot recognition. Our earlier DVLA-RL [10] integrates local attributes and global descriptions through adaptive layer-wise fusion. Building on this framework, the present work examines the reliability of the support evidence used to construct prototypes. High image-text agreement may reflect both intrinsic object properties and incidental context, motivating explicit evidence selection beyond semantic enrichment.
B. Complementary Evidence and Selective Aggregation
Context suppression offers a related perspective on improving support representations. Zha et al. [11] combine background suppression and foreground alignment for few-shot fine-grained recognition. Such spatial separation is relevant to contextual interference, although incidental cues may also

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.
occur within the foreground. Complementary information can additionally be expressed through negative semantic signals. For example, TDA [16] incorporates negative pseudo-labels into dynamic test-time caches for vision-language models. These signals concern class assignments, whereas our nuisance descriptions characterize incidental visual cues within labeled support images. Intrinsic and nuisance evidence can therefore coexist in the same image without changing its class label.
Sparse aggregation provides a mechanism for selecting informative features. Sparsemax [17] produces exact zero weights by projecting scores onto the probability simplex. CSP adopts a related projection principle but allows the total visual allocation mass to remain below one. This enables unreliable tokens to be rejected without redistributing all available mass among the remaining visual candidates. An intrinsic semantic anchor supplies the unassigned mass, including a fallback when no visual token is retained. The resulting formulation connects complementary semantic evidence, explicit rejection, and prototype construction, with theoretical analysis relating retained nuisance mass and anchor quality to prototype.
C. Adaptive Fusion and Policy Learning
Adaptive fusion determines how semantic information contributes to visual representations. AM3 [6] learns adaptive combinations of visual and semantic representations, while DVLA-RL [10] uses reinforcement-learning gates to regulate semantic fusion across network layers. Policy-gradient methods provide the optimization foundation for such decisions: REINFORCE [18] estimates gradients through the score-function identity, and PPO [19] optimizes a clipped surrogate using sampled trajectories. The present extension incorporates support-evidence reliability into policy learning through a reward that accounts for both recognition performance and nuisance exposure.
Reference-based learning signals have also been explored in reinforcement learning. Self-critical sequence training [20] uses the reward of a decoded output as a baseline for sampled outputs, and COMA [21] constructs a counterfactual baseline by marginalizing an agent's action. CRG applies reference-based learning to nuisance-aware semantic fusion through paired policy and reference rollouts on the same episode. The two rollouts share the representation but propagate their own states, allowing their utilities to reflect the gate consequences. Our analysis specifies the conditions under which the reference utility can serve as an action-independent baseline for unbiased on-policy gradient estimation.
III. METHOD
DVLA-RL++ combines selective prototype construction with adaptive semantic fusion. As illustrated in Fig. 2, the dual-level alignment inherited from DVLA-RL produces semantically enriched visual features, complementary semantic purification (CSP) selects support evidence for prototype construction, and counterfactual reinforcement-learning gating (CRG) learns fusion strengths using recognition and evidence-reliability signals. We first define the episodic setting and the alignment module, then describe CSP and CRG, and finally analyze prototype stability and the inference procedure.
A. Problem Formulation
An N-way K-shot episode consists of a labeled support set and a separate query set,
where N denotes the number of classes, K the number of supports per class, and the number of queries. The base, validation, and test categories are disjoint. Class names are available as semantic supervision, while query labels are used only for training objectives and evaluation. The learner constructs a prototype for each class and classifies each query independently of the other queries. Support-evidence contamination refers to the inclusion of incidental contextual cues in these prototypes, even when support labels are correct.
The visual backbone produces image tokens at L selected layers, and a frozen text encoder embeds the descriptions generated from labeled supports. We retain the dual-level alignment and scalar attention gate of DVLA-RL [10], while introducing selective support aggregation and a nuisance-aware gate-learning objective. CSP determines which support tokens contribute to a prototype, and CRG determines the strength of semantic fusion at each selected layer. Semantic banks, gate decisions, and prototypes are constructed from labeled supports before a test query is processed.
B. Dual-Level Semantic Alignment
a) Support-conditioned semantics: For each class, the generator receives its labeled supports and constructs local intrinsic and nuisance phrases together with global descriptions for the two roles. Intrinsic descriptions characterize class-defining object properties, whereas nuisance descriptions characterize incidental context. Both use affirmative statements; a nuisance description is neither a negated sentence nor a competing class label. Generation is performed once per episode and cached. When no reliable intrinsic phrase is returned, the class name provides the intrinsic fallback. An empty nuisance bank yields a zero nuisance response and a zero rejection margin.
b) Gated attention: At each selected layer, projected intrinsic semantic tokens from all candidate classes are concatenated according to a fixed local-to-global layer schedule. The same episode-level semantic tokens guide every support and query image, so description selection requires no query class information. Nuisance descriptions are used for evidence scoring and policy-state construction. Let denote the image tokens and the projected intrinsic semantic tokens at layer , where and are their respective token counts. As shown in Fig. 3, semantic queries produce image-guided and text-guided responses,
(2)
where Attn denotes scaled dot-product attention, is the shared query projection, and and are the key and value projections of the two branches. The gate action is shared across images within an episode. Larger

Fig. 3. Illustration of the RL-gated attention block. A support-derived gate combines image-guided and text-guided semantic responses. The fused context enriches image tokens through joint transformer processing, after which only image tokens are propagated.
gate values emphasize image-conditioned semantic responses, while smaller values emphasize text-conditioned responses. The pooled fused context is broadcast to image tokens, and the fused semantic tokens are appended before the transformer block,
where denotes the transformer block, 1 is a column of ones, the brackets concatenate token rows, and retains the image positions. Semantic tokens are discarded after each block, preventing their accumulation across layers.
c) Cross-modal projections: Scoring projections map image tokens into the text embedding space. They are calibrated on labeled base supports before policy training and subsequently frozen, keeping the scoring geometry fixed during gate optimization. An anchor projection G maps pooled intrinsic semantics into the final visual feature space and is trained jointly with the visual encoder through the classification loss.
d) Classification objective: For a normalized query feature and normalized class prototypes , classification uses cosine logits with a shared temperature ,
(4)
The representation is optimized through , while the gate policy also accounts for evidence reliability. The conference model is evaluated separately as a baseline. The reference gate used by CRG operates on the representation and prototype constructor of DVLA-RL++.

Fig. 4. Illustration of complementary semantic purification. Competing intrinsic and nuisance descriptions guide sparse support-token allocation. An intrinsic semantic anchor fills the unallocated mass before class-wise aggregation and normalization.
C. Complementary Semantic Purification
CSP constructs prototypes through complementary evidence scoring, sparse allocation, semantic anchoring, and support aggregation, as illustrated in Fig. 4. Scoring uses image tokens only; appended semantic tokens are excluded. At the final layer, normalized visual tokens provide the prototype features, while their normalized projected counterparts provide the semantic scores.
a) Complementary evidence scoring: Let and denote the normalized embeddings of the -th intrinsic and nuisance descriptions of class at semantic level . Let denote the corresponding bank sizes. For a nonempty bank, the response is computed through size-normalized log-sum-exp aggregation,
(5)
where is the bank temperature and are fixed weights satisfying . The same level weights are used for both semantic roles. Size normalization removes the direct dependence on bank cardinality introduced by an unnormalized sum, while the fixed level weights prevent phrase counts from determining the relative contribution of local and global semantics. A positive signed score indicates stronger agreement with the intrinsic bank. An entirely empty nuisance bank has .
b) Ambiguity-dependent rejection: Let denote the union of the available embeddings for each semantic role. When both banks are nonempty, their maximum cross-bank similarity defines the overlap,
where and are selected on validation episodes. The intrinsic fallback ensures that is nonempty. Greater overlap increases the required intrinsic advantage because semantically similar explanations are harder to distinguish. The overlap is evaluated only for nonempty nuisance banks.
c) Sparse evidence allocation: CSP allocates at most unit visual mass to each support image by projecting the margin-adjusted scores onto the nonnegative mass ball,
where is the allocation temperature and is the retained visual mass. The projection is unique. As in simplex-based sparse projection [17], it admits a sorting-based threshold solution,
where . The threshold is zero when the positive margin-adjusted scores already sum to at most one; otherwise, it enforces unit total allocation. Consequently, requires , although this condition alone does not guarantee retention. The unallocated mass is neutral and is not redistributed to rejected tokens.
d) Semantic anchoring and prototype construction: The prototype uses the visual features rather than their scoring projections. Let be the unit anchor obtained by projecting the pooled intrinsic bank into the visual feature space. For , each raw support representation and its class-wise average are
(9)
The anchor coefficient consists of the prescribed semantic share and the unallocated visual mass . Thus, visual evidence and the anchor form a convex combination, and a support with no retained token contributes exactly . The class prototype is normalized with a numerical safeguard,
where is a numerical threshold.
For policy learning, we also compute the pre-allocation evidence deficit,
where M is the final-layer image-token count. This quantity penalizes tokens whose intrinsic advantage falls below the rejection margin. It serves as a surrogate for nuisance exposure and can also reflect ambiguous or insufficient intrinsic evidence.
D. Counterfactual Reinforcement-Learning Gating
CRG learns fusion strengths that improve recognition while limiting contextual interference. As shown in Fig. 5, a sampled gate trajectory is evaluated alongside an independently executed reference trajectory on the same episode. Their paired utilities provide a learning signal for the gate policy.
a) Policy state and actions: Before the action at layer , the policy observes a history containing pooled incoming support features, intrinsic and nuisance bank summaries, rejection statistics, the layer index, and previous gate actions. These previous actions determine the current support state. The scalar action retains the Beta parameterization of the conference model,
where is the predicted mean, bounded away from zero and one, and is a fixed concentration.
b) Independent reference rollout: The frozen DVLA-RL gate supplies a reference schedule using its own support-pooled state ,
The sampled and reference branches share the episode, augmentation, semantic banks, representation, and prototype rule. Each branch propagates its own support states, and the reference never receives states generated by sampled policy actions. Conditional on the episode and shared exogenous randomness, the reference rollout therefore does not depend on those actions.
c) Nuisance-aware utility: For a gate sequence , we evaluate the evidence deficit on post-action support tokens at every selected layer,
where is the signed evidence from Eq. (5), evaluated on the post-action tokens using the frozen scoring projection. Averaging within each layer and across supports makes the cost comparable across layers with different token counts. This pre-selection cost prevents the policy from concealing unreliable candidate evidence by assigning it zero allocation weight.
For nonnegative coefficients and , the sampled reward, reference reward, and centered advantage are
(15)
where is a history-dependent value baseline and sg stops gradients. The sampled reward balances recognition, the evidence-deficit surrogate for nuisance exposure, and deviation from the reference schedule. The reference has zero deviation cost. The policy state uses incoming tokens, whereas the cost uses post-action tokens, allowing an action to affect its utility without accessing information available only after execution.

Fig. 5. Illustration of counterfactual reinforcement-learning gating. Sampled and frozen reference policies propagate their own states on the same episode. Their paired utilities guide gate-policy updates while the representation remains fixed.
d) Alternating optimization: Training alternates representation and policy updates after a warm-up using the reference gate. During policy-data collection and the associated policy updates, the representation, scoring projections, text encoder, reference policy, and value baseline are fixed. The rewards are computed from the final prototypes and query predictions, and policy optimization updates only . A separate classification step updates the representation using stopped gate actions, after which the value baseline is refitted. Its parameters are separate from the policy and representation, and its regression objective is
Query labels enter only through the classification utility. The baseline is held fixed for the next policy batch and its associated updates.
e) On-policy gradient estimation: With the environment parameters fixed, the policy maximizes expected trajectory reward. Its score-function estimator is
Sampled actions and histories are treated as fixed inputs when evaluating the score functions. The cosine logits and semantic responses are bounded, and the Beta policy has finite logarithmic moments; the analysis assumes integrability of the score-weighted rewards.
Proposition 1. Suppose that trajectories are sampled on-policy, the environment and baseline parameters are fixed, policy densities are positive and differentiable with the regularity required to interchange differentiation and expectation, and score-weighted rewards are integrable. If, conditional on the episode and shared exogenous randomness, the reference rollout is independent of the sampled policy actions, then the estimator in Eq. (17) is unbiased for . Conditioning on the pre-action history and shared randomness, the policy score has zero expectation, so subtracting the action-independent reference utility and history-dependent baseline leaves the expected gradient unchanged. The paired reward difference may reduce reward variance, but this alone does not establish reduced gradient variance; Section IV evaluates gradient variance directly.
f) Clipped policy optimization: For repeated minibatch updates, we use the PPO surrogate [19],
where denotes the behavior-policy parameters and is the clipping radius. Advantages and sampled histories remain fixed during these updates. At the behavior parameters, the surrogate gradient agrees with the negative on-policy reward gradient. After the policy changes, the clipped surrogate is not generally an unbiased estimator of that gradient. Validation evaluates the deterministic mean policy used at inference.
Overall, the representation minimizes , the gate policy minimizes , and the baseline minimizes through separate alternating updates.
E. Prototype Stability and Inference
a) Prototype error: For the analysis, let the intrinsic and nuisance token sets and form a disjoint partition of the support tokens. Their retained masses are and , so . Let be a unit ideal class direction, and suppose intrinsic tokens, nuisance tokens, and the anchor have distances from bounded by , , and , respectively. Applying the triangle inequality to the convex combination in Eq. (9) yields
(19)
The bound separates the contributions of retained intrinsic evidence, retained nuisance evidence, and the semantic anchor. Reducing nuisance mass improves this bound when the replacement anchor is more reliable than the rejected nuisance evidence.
b) Retained nuisance mass: Proposition 2. Suppose that, conditional on the semantic banks and fixed model parameters, each nuisance signed score has mean at most and a centered sub-Gaussian error with scale . For nuisance tokens, the conditional expected retained nuisance mass satisfies
where the conditioning is suppressed for readability. The bound follows from the positive-part allocation bound and the sub-Gaussian tail inequality, without requiring independence among tokens. It decreases exponentially with the squared combined separation . Increasing the rejection margin suppresses nuisance allocation while increasing reliance on the anchor, making anchor quality central to the resulting stability guarantee.
c) Prediction preservation: If , then and normalization gives . For a fixed unit query representation with ideal predicted class , the prediction is preserved whenever its ideal cosine margin exceeds . This guarantee concerns prototype perturbations for a fixed query representation.
d) Inference: At inference, the support-conditioned semantic banks, deterministic mean gate schedule, and class prototypes are computed and cached once per episode. Every query reuses the same semantic tokens and gate schedule, keeping its representation compatible with the support prototypes. Each query is processed independently through one forward pass followed by prototype comparison, with no reference rollout or parameter update.
IV. EXPERIMENTS
We evaluate DVLA-RL++ in standard, fine-grained, and cross-domain few-shot recognition, followed by component ablations and diagnostics of evidence reliability and policy learning.
A. Experimental Settings
a) Datasets: We consider three evaluation scenarios. Standard FSL uses miniImageNet [1], tieredImageNet [22], and CIFAR-FS [23]. Fine-grained FSL uses CUB-200-2011 [24], Stanford Cars [25], and Stanford Dogs [26]. Cross-domain FSL trains on miniImageNet and evaluates on CUB, Places [27], and ChestX [28]. These protocols cover nine benchmark settings across eight distinct datasets. We follow the standard class splits, with disjoint training, validation, and test categories.
b) Implementation Details: Following recent semantic FSL studies [12, 7, 9], we use Visformer-Tiny [29] as the visual backbone, the frozen ViT-B/16 CLIP text encoder [13] for 512-dimensional text embeddings, and Qwen2.5-VL-32B [30] for semantic generation. Inputs are resized to . Training consists of pre-training and episodic meta-tuning [31]. The representation uses AdamW [32] with an initial learning rate of and a cosine schedule [33]. Pre-training runs for 300 epochs on tieredImageNet and 800 epochs on the other training datasets with a batch size of 512, followed by 100 epochs of meta-tuning.
We set , , , , , and . The remaining defaults are , , , and local phrases per class and semantic role. Scoring projections are calibrated on labeled base supports with and frozen during policy learning. Hyperparameters are selected by base-validation accuracy.
TABLE I RESULTS (%) ON MINIIMAGENET, TIEREDIMAGENET, AND CIFAR-FS UNDER THE 5-WAY 1-SHOT AND 5-SHOT SETTINGS. MEAN ACCURACY AND 95% CONFIDENCE INTERVALS ARE REPORTED. BOLD INDICATES THE HIGHEST MEAN ACCURACY.
| Method | Venue | miniImageNet | tieredImageNet | CIFAR-FS | |||
|---|---|---|---|---|---|---|---|
| 1-shot | 5-shot | 1-shot | 5-shot | 1-shot | 5-shot | ||
| ProtoNet [2] | NeurIPS 2017 | 62.39±0.21 | 80.53±0.14 | 68.23±0.23 | 84.03±0.16 | 72.20±0.70 | 83.50±0.50 |
| AM3 [6] | NeurIPS 2019 | 65.30±0.49 | 78.10±0.36 | 69.08±0.47 | 82.58±0.31 | - | - |
| DeepEMD [3] | CVPR 2020 | 65.91±0.82 | 82.41±0.56 | 71.16±0.87 | 86.03±0.58 | - | - |
| SUN [31] | ECCV 2022 | 67.80±0.45 | 83.25±0.30 | 72.99±0.50 | 86.74±0.33 | - | - |
| FewTURE [37] | NeurIPS 2022 | 68.02±0.88 | 84.51±0.53 | 72.96±0.92 | 86.43±0.67 | 72.80±0.88 | 86.14±0.64 |
| SVAE [35] | CVPR 2022 | 74.84±0.23 | 83.28±0.40 | 76.98±0.65 | 85.77±0.50 | - | - |
| Meta-AdaM [38] | NeurIPS 2023 | 59.89±0.49 | 77.92±0.43 | 65.31±0.48 | 85.24±0.35 | - | - |
| ProtoDiff [39] | NeurIPS 2023 | 66.63±0.21 | 83.48±0.15 | 72.95±0.24 | 85.15±0.18 | - | - |
| CPEA [40] | ICCV 2023 | 71.97±0.65 | 87.06±0.38 | 76.93±0.70 | 90.12±0.45 | 77.82±0.66 | 88.98±0.45 |
| SP [7] | CVPR 2023 | 72.31±0.40 | 83.42±0.30 | 78.03±0.46 | 88.55±0.32 | 82.18±0.40 | 88.24±0.32 |
| ALFA [41] | TPAMI 2024 | 66.61±0.28 | 81.43±0.25 | 70.29±0.40 | 86.17±0.35 | 76.32±0.43 | 86.73±0.31 |
| LastShot [42] | TPAMI 2024 | 67.35±0.20 | 82.58±0.14 | 72.43±0.23 | 85.82±0.16 | 76.76±0.21 | 87.49±0.12 |
| MetaKernel [43] | TPAMI 2024 | 66.9±0.3 | 81.3±0.2 | - | - | 76.1±0.4 | 86.9±0.5 |
| SIFT [44] | IJCV 2024 | 77.31±0.67 | 86.95±0.53 | 77.86±0.77 | 89.89±0.52 | - | - |
| KTPP [12] | ACM MM 2024 | 76.71±0.37 | 86.46±0.27 | 80.80±0.43 | 90.01±0.29 | 83.63±0.57 | 90.19±0.30 |
| SemFew [8] | CVPR 2024 | 78.94±0.66 | 86.49±0.50 | 82.37±0.77 | 89.89±0.52 | 84.34±0.67 | 89.11±0.54 |
| ECER [9] | AAAI 2025 | 81.14±0.15 | - | 81.81±0.51 | - | 86.01±0.35 | - |
| CPL [45] | TPAMI 2025 | 72.82±0.61 | 87.93±0.37 | 78.05±0.70 | 90.89±0.44 | 78.82±0.65 | 89.98±0.44 |
| FRN+IAM [46] | TPAMI 2025 | 66.96±0.19 | 83.19±0.13 | 71.85±0.22 | 86.55±0.15 | - | - |
| FKFRN [47] | TIP 2026 | 66.78±0.20 | 83.26±0.19 | 71.30±0.22 | 86.35±0.14 | - | - |
| LE-ProtoPNet [48] | TIP 2026 | 81.34±0.32 | 87.17±0.26 | - | - | 79.69±0.42 | 86.40±0.33 |
| DVLA-RL [10] | ICLR 2026 | 81.69±0.36 | 88.25±0.28 | 83.02±0.43 | 91.71±0.29 | 87.18±0.40 | 90.59±0.31 |
| DVLA-RL++ | Ours | 83.41±0.34 | 89.63±0.26 | 84.57±0.41 | 92.89±0.27 | 88.70±0.38 | 91.75±0.29 |
After a five-epoch warm-up with the reference gate, policy and representation updates alternate using 32 episodes per batch. PPO uses four optimization epochs per policy batch, minibatches of 16 episodes, and . The policy and value baseline use Adam with learning rates of and , respectively; policy gradients are clipped to a norm of 1.0. All experiments run on an NVIDIA RTX 6000 Ada GPU.
c) Evaluation Protocol: We follow the episodic FSL protocol [7, 12, 6, 34, 35, 36]. Main comparisons use 5-way 1-shot and 5-shot episodes. Each setting includes 2,000 episodes sampled uniformly from novel classes, with 15 queries per class sampled separately from the supports. We report mean episode accuracy and its confidence interval. At test time, queries are processed independently using cached support-derived semantics, gates, and prototypes. Component ablations share episode lists, training seeds, and semantic caches. Published competitor results are taken from their original reports. DVLA-RL [10] is the direct conference baseline and uses the same backbone, semantic generator, and evaluation protocol. A dash denotes an unreported setting.
B. Main Results
a) Standard Few-Shot Recognition: Table I compares performance on the three standard benchmarks. DVLA-RL++ achieves the highest mean accuracy in all six settings and improves on DVLA-RL by 1.2%–1.7%. Since both models share the backbone, semantic generator, and protocol, this gain reflects the benefit of CSP and CRG. The strongest other methods are LE-ProtoPNet, SemFew, or ECER in 1-shot recognition and CPL or KTPP in 5-shot recognition. DVLA-RL++ exceeds these results by 2.1%–2.7% and 1.6%–2.0%, respectively. These results highlight the effectiveness of purifying support evidence and adaptively fusing it through counterfactual gating.
b) Fine-Grained Recognition: Table II reports results on CUB, Stanford Cars, and Stanford Dogs. DVLA-RL++ achieves the highest mean accuracy in all six settings. Relative to DVLA-RL, the gains are 2.18%–2.41% in 1-shot recognition and 0.55%–1.25% in 5-shot recognition. DVLA-RL++ improves on the strongest other methods, SUITED and FKFRN, by 5.2%–12.2% in 1-shot recognition and by up to 2.3% in 5-shot recognition. The larger 1-shot gains reflect the sensitivity of prototype estimation to limited support evidence. This shows that DVLA-RL++ captures subtle inter-class differences and preserves intra-class consistency by suppressing incidental context.
c) Cross-Domain Recognition: Table III evaluates transfer from miniImageNet to CUB, Places, and ChestX. DVLA-RL++ obtains the highest reported mean accuracy in all six settings and improves on DVLA-RL by 1.0% on average. On CUB and Places, the gains over DVLA-RL are 1.22%–1.68%. Relative to other published methods, DVLA-RL++ exceeds the strongest 1-shot results of CSC by 10.3% on CUB and 7.1% on Places. In 5-shot recognition, it exceeds STL DeepBDC+IAM by 3.9% on CUB and SVasP by 4.1% on Places. These results demonstrate that DVLA-RL++ learns more transferable representations by retaining intrinsic object evidence, generalizing well to novel categories under distribution shifts.
TABLE II RESULTS (%) ON CUB, STANFORD CARS, AND STANFORD DOGS UNDER THE 5-WAY 1-SHOT AND 5-SHOT SETTINGS. MEAN ACCURACY AND 95% CONFIDENCE INTERVALS ARE REPORTED. BOLD INDICATES THE HIGHEST MEAN ACCURACY.
| Method | Venue | CUB | Stanford Cars | Stanford Dogs | |||
|---|---|---|---|---|---|---|---|
| 1-shot | 5-shot | 1-shot | 5-shot | 1-shot | 5-shot | ||
| ProtoNet [2] | NeurIPS 2017 | ||||||
| FRN [49] | CVPR 2021 | ||||||
| DAN [50] | AAAI 2022 | ||||||
| MFGN [51] | IJCAI 2022 | - | - | ||||
| TDM [52] | CVPR 2022 | ||||||
| BSFA [11] | TCSVT 2023 | ||||||
| MLI [53] | TIP 2024 | - | - | ||||
| C2-Net [54] | AAAI 2024 | ||||||
| SUITED [55] | AAAI 2025 | ||||||
| FRN+TDM+IAM [46] | TPAMI 2025 | - | - | - | - | ||
| FKFRN [47] | TIP 2026 | ||||||
| LE-ProtoPNet [48] | TIP 2026 | - | - | ||||
| DVLA-RL [10] | ICLR 2026 | ||||||
| DVLA-RL++ | Ours | ||||||
TABLE III CROSS-DOMAIN RESULTS (%) WITH TRAINING ON MINIIMAGENET AND EVALUATION ON CUB, PLACES, AND CHESTX. MEAN ACCURACY AND 95% CONFIDENCE INTERVALS ARE REPORTED. BOLD INDICATES THE HIGHEST MEAN ACCURACY.
| Method | Venue | CUB | Places | ChestX | |||
|---|---|---|---|---|---|---|---|
| 1-shot | 5-shot | 1-shot | 5-shot | 1-shot | 5-shot | ||
| GNN [56] | ICLR 2018 | ||||||
| FWT [57] | ICLR 2020 | ||||||
| AFA [58] | ECCV 2022 | ||||||
| UCD [59] | NeurIPS 2022 | ||||||
| ATA [60] | AIJ 2023 | ||||||
| LDP-Net [61] | CVPR 2023 | ||||||
| StyleAdv [62] | CVPR 2023 | ||||||
| FAP [63] | IJCAI 2024 | ||||||
| FLoR [64] | CVPR 2024 | ||||||
| MEFP [65] | NeurIPS 2024 | ||||||
| SVasP [66] | AAAI 2025 | ||||||
| STL DeepBDC+IAM [46] | TPAMI 2025 | - | - | - | - | ||
| CSC [67] | TIP 2026 | ||||||
| DVLA-RL [10] | ICLR 2026 | ||||||
| DVLA-RL++ | Ours | ||||||
C. Model Analysis
Component ablations use the 5-way 1-shot setting with matched semantic caches and training budgets. Each variant is trained with five seeds and evaluated on 2,000 episodes per seed. Clean accuracy is measured on the original queries, while Shift accuracy is measured on matched queries after replacing the background or an incidental co-occurring object while preserving the foreground object and its label. The paired evaluation uses the same supports and trained model, isolating the effect of the query-context intervention.
a) Component Ablations: We conduct component ablations on miniImageNet and CUB to evaluate CSP and CRG, as shown in Table IV. The CSP-only variant retains the conference gate, and the CRG-only variant retains uniform visual support prototypes. It is to be noted that (1) CSP alone improves Shift accuracy over DVLA-RL by 3.6% and 4.4%, showing that selecting support tokens with complementary semantics suppresses incidental context. (2) CRG alone
TABLE IV COMPONENT ABLATIONS (%) ON MINIIMAGENET AND CUB UNDER THE 5-WAY 1-SHOT SETTING. CLEAN AND SHIFT DENOTE ACCURACY BEFORE AND AFTER THE MATCHED CONTEXT INTERVENTION.
| Variant | CSP | CRG | miniImageNet | CUB | ||
|---|---|---|---|---|---|---|
| Clean | Shift | Clean | Shift | |||
| DVLA-RL | ✕ | ✕ | 81.7 | 75.8 | 91.9 | 85.0 |
| + CSP | ✓ | ✕ | 82.6 | 79.4 | 93.4 | 89.4 |
| + CRG | ✕ | ✓ | 82.4 | 78.4 | 93.0 | 88.1 |
| DVLA-RL++ | ✓ | ✓ | 83.4 | 81.2 | 94.3 | 92.0 |
improves Shift accuracy by 2.6% and 3.1%, indicating that reliability-aware gating reduces the influence of unreliable semantics during fusion. (3) The best performance is achieved when both are used. The full model improves Shift accuracy by 5.4% and 7.0% and Clean accuracy by 1.7% and 2.4%. Its Clean-to-Shift drop decreases from 5.9% to 2.2% on
(a) Allocation temperature

miniImageNet
CUB
(b) Visual--anchor balance

(c) Nuisance-cost weight

Fig. 6. Parameter sensitivity on miniImageNet (blue solid) and CUB (orange dashed) under the 5-way 1-shot setting. Panels vary (a) , (b) , and (c) . Accuracy changes are relative to each dataset's default setting.
Intrinsic evidence
Nuisance evidence



Fig. 7. Signed-margin distributions of intrinsic (blue) and nuisance (orange) evidence on miniImageNet and CUB. Rows compare DVLA-RL and DVLA-RL++. OVL denotes histogram overlap; the dotted line marks the rejection boundary .
miniImageNet and from 6.9% to 2.3% on CUB. These results demonstrate the complementary roles of selective support aggregation and reliability-aware semantic fusion.
b) Internal Design Choices: Table V replaces or removes individual design elements from the complete model using the same Clean and Shift protocol. Uniform allocation preserves the anchor mixture but sets token weights to ; positive-only semantics removes the nuisance bank; and the no-neutral control forces unit allocation mass. Other controls use a support-independent gate, a fixed rejection margin, mean visual evidence in place of the intrinsic fallback, a state baseline without the paired reference, or a zero nuisance-cost weight.
Every individual control reduces Shift accuracy more than Clean accuracy. Uniform allocation produces the largest Shift degradation among these design controls, at 3.6% on miniImageNet and 4.8% on CUB. Removing nuisance descriptions costs 2.2% and 2.9%, while removing the neutral option or intrinsic fallback costs 1.5%–2.2%. The static gate costs
TABLE V INTERNAL DESIGN CONTROLS (%) ON MINIIMAGENET AND CUB UNDER THE 5-WAY 1-SHOT SETTING. CLEAN AND SHIFT FOLLOW THE SAME PROTOCOL AS TABLE IV.
| Variant | miniImageNet | CUB | ||
|---|---|---|---|---|
| Clean | Shift | Clean | Shift | |
| DVLA-RL | 81.7 | 75.8 | 91.9 | 85.0 |
| Uniform allocation | 82.2 | 77.6 | 92.8 | 87.2 |
| Positive semantics only | 82.7 | 79.0 | 93.5 | 89.1 |
| No neutral option | 83.0 | 79.7 | 93.8 | 90.0 |
| Static gate | 82.8 | 79.8 | 93.6 | 90.0 |
| Fixed margin | 83.1 | 80.1 | 94.0 | 90.6 |
| No intrinsic fallback | 82.9 | 79.6 | 93.7 | 89.8 |
| State baseline only | 83.0 | 80.4 | 94.0 | 90.9 |
| No nuisance cost | 83.1 | 80.1 | 94.0 | 90.5 |
| DVLA-RL++ | 83.4 | 81.2 | 94.3 | 92.0 |
1.4% and 2.0%, and using the state baseline alone costs 0.8% and 1.1%. Fixing the margin or removing the nuisance cost also lowers Shift accuracy by 1.1%–1.5%. The pattern links contextual robustness to evidence selection, rejection and fallback handling, and the paired policy-learning signal.
c) Parameter Sensitivity: Fig. 6 varies the allocation temperature , visual-evidence coefficient , and nuisance-cost weight one at a time under the 5-way 1-shot setting. The reference-deviation weight and local-bank budget remain fixed at and . The temperature curve favors an intermediate allocation regime: very low temperatures concentrate weight on fewer tokens, while higher temperatures spread it across more candidates. The default balances these effects. On miniImageNet, accuracy remains within of the default for sampled values in [0.5, 0.9] and within for sampled values in [0.1, 0.75]. Similar trends on CUB indicate a stable range around the selected settings.
d) Context and Evidence Diagnostics: Fig. 7 compares the signed margins of intrinsic and nuisance evidence, as defined by Eqs. (5) and (6). Intrinsic evidence corresponds to class-defining object cues, whereas nuisance evidence corresponds to incidental context. Both distributions use fixed common bins and unit-integral densities; histogram overlap is the area shared by the two densities. Overlap decreases from 0.74 to 0.16 on miniImageNet and from 0.75

Fig. 9. Attention maps of DVLA-RL, CSP alone, CRG alone, and DVLA-RL++ on nine miniImageNet images. Columns (a)–(i) cover object co-occurrence, occlusion, clutter, and camouflage.
to 0.12 on CUB, indicating increased separation around the rejection boundary.
We further audit evidence independently on 600 matched 5-way 1-shot test episodes per dataset on miniImageNet and CUB, comprising 3,000 support-image occurrences per dataset. Intrinsic and nuisance tokens are identified using independently annotated class-defining object regions and incidental context. Annotators are blinded to semantic scores, signed margins, and allocation weights. For each support image, we compute the fraction of tokens with positive allocation weights, intrinsic precision over unambiguously annotated retained tokens, and neutral mass . Metrics are averaged within and across episodes. At the default setting, the audit reports 24% token retention, 94% intrinsic precision over unambiguously annotated retained tokens, and 0.08 neutral mass.
e) Policy Diagnostics and Inference: Fig. 8(a) evaluates the gradient estimator using 200 independent fresh mini-batches per frozen checkpoint. The representation, scorer, objective, and behavior policy are fixed; estimators share the reward and differ only in their control variates. We measure the trace of the on-policy gradient covariance and normalize it by that of the state-baseline estimator. The raw-return estimator has a normalized covariance trace of 1.25, while the paired estimator with the state baseline has a value of 0.60, corresponding to a 40% reduction relative to the state baseline. This empirical comparison complements the unbiasedness conditions in Proposition 1 by directly measuring gradient variance.
Fig. 8(b) compares policy diagnostics for the state-baseline
(a) Gradient estimator

(b) Policy diagnostics

Fig. 8. Policy diagnostics on miniImageNet. (a) Gradient-covariance trace normalized by the state-baseline estimator. (b) Frequencies of nuisance-cost increase and active PPO clipping for the state baseline (blue) and paired estimator (green).
and paired estimators. The frequency of decreases from 24% to 9%, where is the evidence-deficit surrogate for nuisance exposure. Active PPO clipping is recorded after updates when and , or when and ; its frequency decreases from 22% to 15%. At inference, semantic banks, prototypes, and the support-derived mean gate schedule are cached once per episode. Each query requires one forward pass and prototype comparison, without a reference rollout or value-network evaluation.
f) Qualitative Analysis: The baseline is constructed by removing CSP and CRG while retaining the same backbone and the same sampled support images to ensure a fair comparison. Fig. 9 compares the baseline, CSP alone, CRG alone, and DVLA-RL++ on nine miniImageNet images containing

Fig. 10. T-SNE visualization on novel classes from four datasets.
co-occurring objects, occlusion, clutter, or camouflage. The baseline attention frequently includes competing objects and contextual regions, such as the cat beside the dog in (a), branches around the bird in (c), and snow around the fox in (e). CSP alone concentrates more on object details but provides incomplete coverage, while CRG alone covers the object more broadly with residual contextual responses. The combined model shows broader object coverage and weaker contextual responses in the displayed examples, consistent with the complementary behavior observed in the component ablations.
Fig. 10 visualizes query features with t-SNE [68] on mini-ImageNet, CIFAR-FS, Stanford Dogs, and Places. Each dataset includes five novel classes and 100 queries per class. DVLA-RL++ exhibits more compact class neighborhoods and clearer separation in the displayed projections.
V. CONCLUSION
We presented DVLA-RL++, an extension of DVLA-RL that addresses support-evidence contamination in few-shot recognition. Complementary semantic purification contrasts intrinsic and nuisance semantics to select reliable support tokens, while an intrinsic semantic anchor stabilizes prototype construction. Counterfactual reinforcement-learning gating adapts semantic fusion using a nuisance-aware reward and independently executed policy and reference trajectories. Theoretical analysis relates retained nuisance mass to prototype error and classification margins, and establishes conditions for unbiased on-policy gradient estimation. Experiments on standard, fine-grained, and cross-domain benchmarks show consistent improvements over DVLA-RL, with an average accuracy gain of 1.4%. Matched context interventions, independent evidence audits, and policy diagnostics further support the effectiveness of evidence purification and counterfactual gating in improving contextual robustness and reducing gradient variance. Future work will strengthen semantic grounding under larger domain shifts and reduce the cost of support-conditioned generation.
REFERENCES
[1] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra et al., "Matching networks for one shot learning," in NeurIPS, 2016, pp. 3630–3638.
[2] J. Snell, K. Swersky, and R. Zemel, “Prototypical networks for few-shot learning,” in NeurIPS, 2017, pp. 4077–4087.
[3] C. Zhang, Y. Cai, G. Lin et al., “Deepemd: Few-shot image classification with differentiable earth mover’s distance and structured classifiers,” in CVPR, 2020, pp. 12203–12213.
[4] H.-J. Ye, H. Hu, D.-C. Zhan, and F. Sha, “Few-shot learning via embedding adaptation with set-to-set functions,” in CVPR, 2020, pp. 8808–8817.
[5] Y. Tian, Y. Wang, D. Krishnan, J. B. Tenenbaum, and P. Isola, “Rethinking few-shot image classification: a good embedding is all you need?” in ECCV. Springer, 2020, pp. 266–282.
[6] C. Xing, N. Rostamzadeh, B. Oreshkin, and P. O. O Pinheiro, “Adaptive cross-modal few-shot learning,” in NeurIPS, vol. 32, 2019.
[7] W. Chen, C. Si, Z. Zhang, L. Wang, Z. Wang, and T. Tan, “Semantic prompt for few-shot image recognition,” in CVPR, 2023, pp. 23581–23591.
[8] H. Zhang, J. Xu, S. Jiang, and Z. He, “Simple semantic-aided few-shot learning,” in CVPR, 2024, pp. 28588–28597.
[9] M. Liu, F. Wu, B. Li, Z. Lu et al., “Envisioning class entity reasoning by large language models for few-shot learning,” in AAAI, vol. 39, no. 18, 2025, pp. 18906–18914.
[10] W. Li, X. Meng, Q. Wang, Z. Han, Z. Wu, and Y. Yin, "DVLA-RL: Dual-level vision-language alignment with reinforcement learning gating for few-shot learning," in ICLR, 2026.
[11] Z. Zha, H. Tang, Y. Sun, and J. Tang, “Boosting few-shot fine-grained recognition with background suppression and foreground alignment,” TCSVT, vol. 33, no. 8, pp. 3947–3961, 2023.
[12] W. Li, Q. Wang, P. Zhao, and Y. Yin, “Knn transformer with pyramid prompts for few-shot learning,” in ACM MM, 2024, pp. 1082–1091.
[13] A. Radford, J. W. Kim, C. Hallacy et al., “Learning transferable visual models from natural language supervision,” in ICML. PMLR, 2021, pp. 8748–8763.
[14] K. Zhou, J. Yang, C. C. Loy, and Z. Liu, “Learning to prompt for vision-language models,” IJCV, vol. 130, no. 9, pp. 2337–2348, 2022.
[15] R. Zhang, W. Zhang, R. Fang, P. Gao, K. Li, J. Dai, Y. Qiao, and H. Li, “Tip-adapter: Training-free adaption of clip for few-shot classification,” in ECCV. Springer, 2022, pp. 493–510.
[16] A. Karmanov, D. Guan, S. Lu, A. El Saddik, and E. Xing, “Efficient test-time adaptation of vision-language models,” in CVPR, 2024, pp. 14162–14171.
[17] A. Martins and R. Astudillo, “From softmax to sparse-max: A sparse model of attention and multi-label classification,” in ICML, 2016, pp. 1614–1623.
[18] R. J. Williams, “Simple statistical gradient-following algorithms for connectionist reinforcement learning,” Mach. Learn., vol. 8, pp. 229–256, 1992.
[19] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and
O. Klimov, “Proximal policy optimization algorithms,” arXiv:1707.06347, 2017.
[20] S. J. Rennie, E. Marcheret, Y. Mroueh, J. Ross, and V. Goel, “Self-critical sequence training for image captioning,” in CVPR, 2017.
[21] J. Foerster, G. Farquhar, T. Afouras, N. Nardelli, and S. Whiteson, “Counterfactual multi-agent policy gradients,” in AAAI, vol. 32, no. 1, 2018.
[22] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky et al., “Meta-learning for semi-supervised few-shot classification,” arXiv:1803.00676, 2018.
[23] K. Lee, S. Maji et al., “Meta-learning with differentiable convex optimization,” in CVPR, 2019, pp. 10657–10665.
[24] C. Wah, S. Branson, P. Welinder, P. Perona, and S. Belongie, “The caltech-ucsd birds-200-2011 dataset,” California Institute of Technology, Tech. Rep., 2011.
[25] J. Krause, M. Stark, J. Deng, and L. Fei-Fei, “3d object representations for fine-grained categorization,” in ICCVW, 2013, pp. 554–561.
[26] A. Khosla, N. Jayadevaprakash, B. Yao, and F.-F. Li, "Novel dataset for fine-grained image categorization: Stanford dogs," in CVPRW, vol. 2, no. 1, 2011.
[27] B. Zhou, A. Lapedriza et al., “Places: A 10 million image database for scene recognition,” TPAMI, vol. 40, no. 6, pp. 1452–1464, 2017.
[28] X. Wang, Y. Peng, L. Lu et al., “Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases,” in CVPR, 2017, pp. 2097–2106.
[29] Z. Chen, L. Xie, J. Niu, X. Liu et al., “Visformer: The vision-friendly transformer,” in ICCV, 2021, pp. 589–598.
[30] S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang et al., “Qwen2.5-vl technical report,” arXiv:2502.13923, 2025.
[31] B. Dong, P. Zhou, S. Yan, and W. Zuo, “Self-promoted supervision for few-shot transformer,” in ECCV. Springer, 2022, pp. 329–347.
[32] I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” arXiv:1711.05101, 2017.
[33] —, “Sgdr: Stochastic gradient descent with warm restarts,” arXiv:1608.03983, 2016.
[34] A. Li, W. Huang, X. Lan, J. Feng, Z. Li, and L. Wang, "Boosting few-shot learning with adaptive margin loss," in CVPR, 2020, pp. 12576–12584.
[35] J. Xu and H. Le, “Generating representative samples for few-shot classification,” in CVPR, 2022, pp. 9003–9013.
[36] R. Zhang, X. Hu, B. Li, S. Huang, H. Deng, Y. Qiao, P. Gao, and H. Li, “Prompt, generate, then cache: Cascade of foundation models makes strong few-shot learners,” in CVPR, 2023, pp. 15211–15222.
[37] M. Hiller, R. Ma et al., “Rethinking generalization in few-shot classification,” NeurIPS, vol. 35, pp. 3582–3595, 2022.
[38] S. Sun and H. Gao, “Meta-adam: An meta-learned adaptive optimizer with momentum for few-shot learning,” NeurIPS, vol. 36, pp. 65441–65455, 2023.
[39] Y. Du, Z. Xiao, S. Liao, and C. G. M. Snoek, “Protodiff:
Learning to learn prototypical networks by task-guided diffusion," in NeurIPS, vol. 36, 2023, pp. 46304–46322.
[40] F. Hao et al., “Class-aware patch embedding adaptation for few-shot image classification,” in ICCV, 2023, pp. 18905–18915.
[41] S. Baik et al., “Learning to learn task-adaptive hyperparameters for few-shot learning,” TPAMI, vol. 46, no. 3, pp. 1441–1454, 2024.
[42] H.-J. Ye, L. Ming, D.-C. Zhan, and W.-L. Chao, “Few-shot learning with a strong teacher,” TPAMI, vol. 46, no. 3, pp. 1425–1440, 2024.
[43] Y. Du, H. Sun, X. Zhen, J. Xu, Y. Yin, L. Shao, and C. G. M. Snoek, “MetaKernel: Learning variational random features with limited labels,” TPAMI, vol. 46, no. 3, pp. 1464–1478, 2024.
[44] M.-H. Pan, H.-Y. Xin, and H.-B. Shen, “Semantic-based implicit feature transform for few-shot classification,” IJCV, vol. 132, no. 11, pp. 5014–5029, 2024.
[45] Y. Guo, R. Du, A. Sain, K. Liang et al., “Understanding episode hardness in few-shot learning,” TPAMI, vol. 47, no. 1, pp. 616–633, 2025.
[46] S. Lee, W. Moon, H. S. Seong, and J.-P. Heo, “Task-oriented channel attention for fine-grained few-shot classification,” TPAMI, vol. 47, no. 3, pp. 1448–1463, 2025.
[47] Y. Li and W. Li, “Few-shot fine-grained classification with foreground-aware kernelized feature reconstruction network,” TIP, vol. 35, pp. 150–165, 2026.
[48] Z. Ji, R. Wei, J. Liu, Y. Pang, and J. Han, “Interpretable few-shot image classification via prototypical concept-guided mixture of LoRA experts,” TIP, vol. 35, pp. 930–942, 2026.
[49] D. Wertheimer, L. Tang, and B. Hariharan, “Few-shot classification with feature map reconstruction networks,” in CVPR, 2021, pp. 8012–8021.
[50] S.-L. Xu, F. Zhang, X.-S. Wei, and J. Wang, “Dual attention networks for few-shot fine-grained recognition,” in AAAI, vol. 36, no. 3, 2022, pp. 2911–2919.
[51] Y. Yu, D. Zhang, and Z. Ji, “Masked feature generation network for few-shot learning.” in IJCAI, 2022, pp. 3695–3701.
[52] S. Lee, W. Moon, and J.-P. Heo, “Task discrepancy maximization for fine-grained few-shot classification,” in CVPR, 2022, pp. 5331–5340.
[53] L.-J. Zhao, Z.-D. Chen, Z.-X. Ma, X. Luo, and X.-S. Xu, "Angular isotonic loss guided multi-layer integration for few-shot fine-grained image classification," TIP, vol. 33, pp. 3778–3792, 2024.
[54] Z.-X. Ma, Z.-D. Chen et al., “Cross-layer and cross-sample feature optimization network for few-shot fine-grained image classification,” in AAAI, vol. 38, no. 5, 2024, pp. 4136–4144.
[55] Z.-X. Ma et al., “Few-shot fine-grained image classification with progressively feature refinement and continuous relationship modeling,” in AAAI, vol. 39, no. 6, 2025, pp. 6036–6044.
[56] V. Garcia and J. Bruna, “Few-shot learning with graph neural networks,” in ICLR, 2018.
[57] H.-Y. Tseng, H.-Y. Lee, J.-B. Huang, and M.-H.
Yang, “Cross-domain few-shot classification via learned feature-wise transformation,” in ICLR, 2020.
[58] Y. Hu and A. J. Ma, “Adversarial feature augmentation for cross-domain few-shot classification,” in ECCV. Springer, 2022, pp. 20–37.
[59] J. Oh, S. Kim, N. Ho, J.-H. Kim, H. Song, and S.-Y. Yun, "Understanding cross-domain few-shot learning based on domain similarity and few-shot difficulty," NeurIPS, vol. 35, pp. 2622–2636, 2022.
[60] H. Wang, H. Mai, Y. Gong, and Z.-H. Deng, “Towards well-generalizing meta-learning via adversarial task augmentation,” AIJ, vol. 317, p. 103875, 2023.
[61] F. Zhou, P. Wang, L. Zhang, W. Wei, and Y. Zhang, "Revisiting prototypical network for cross domain few-shot learning," in CVPR, 2023, pp. 20061–20070.
[62] Y. Fu, Y. Xie, Y. Fu, and Y.-G. Jiang, “Styleadv: Meta style adversarial training for cross-domain few-shot learning,” in CVPR, 2023, pp. 24575–24584.
[63] T. Zhang, Q. Cai, F. Gao, L. Qi, and J. Dong, “Exploring cross-domain few-shot classification via frequency-aware prompting,” IJCAI, 2024.
[64] Y. Zou, Y. Liu et al., “Flatten long-range loss landscapes for cross-domain few-shot learning,” in CVPR, 2024, pp. 23575–23584.
[65] F. Zhou, P. Wang, L. Zhang, Z. Chen, W. Wei, C. Ding, G. Lin, and Y. Zhang, “Meta-exploiting frequency prior for cross-domain few-shot learning,” NeurIPS, vol. 37, pp. 116783–116814, 2024.
[66] W. Li, P. Fang, and H. Xue, “Svasp: Self-versatility adversarial style perturbation for cross-domain few-shot learning,” in AAAI, vol. 39, no. 15, 2025, pp. 15275–15283.
[67] F. Zhou, P. Wang, L. Zhang, W. Wei, C. Ding, G. Lin, and Y. Zhang, “Meta-exploiting complementary semantic consistency for cross-domain few-shot learning promotion,” TIP, vol. 35, pp. 8543–8557, 2026.
[68] L. v. d. Maaten and G. Hinton, “Visualizing data using t-sne,” JMLR, vol. 9, no. Nov, pp. 2579–2605, 2008.
APPENDIX A
COMPUTATIONAL DETAILS AND THEORETICAL ANALYSIS
This appendix specifies the implementation interfaces and proves the results used in the main text. The analysis concerns the defined estimator and policy objective, and statistical assumptions about semantic score quality are stated separately from algebraic properties of the allocator.
A. Feature, Semantic, and Policy Interfaces
At layer , image tokens belong to and text embeddings belong to . The image-position count excludes temporarily injected semantic tokens. Let be a scoring projection and the anchor projection into the final feature space. Define
(A1)
Here , the nonnegative level weights sum to one, and for nonzero . An exactly zero vector is mapped to a fixed unit coordinate vector of the appropriate dimension. This deterministic numerical fallback is counted in the diagnostics. The query feature is the unit-normalized mean of its final image tokens, in the same -dimensional space as and .
The local-to-global weight schedule is fixed using validation categories. At layer , the nonnegative weights sum to one. In the main text, denotes the weights of the layer being scored. The overlap maximum ranges over the unions of local and global phrases in each role, so the flattened indices in Eq. (6) include both levels. We use , , , and . For an explicit attention input, concatenate the positive embedding rows across classes within each level as . A learned map gives
The attention projections in Eq. (2) map dimensions to dimensions, and attention logits are divided by . These projections and are representation parameters, which classification updates train and policy updates freeze. The scorer maps remain separate and frozen after calibration.
Scoring uses the same weights for the two evidence roles. Missing positive phrases are replaced by the encoded class-name template in that level, and the response of a missing nuisance level is zero. If both nuisance levels are missing, set the overlap and rejection margin to zero. These conventions make every formula well defined.
The generator is prompted to return concise visible object properties in the intrinsic field and visible scene context, co-occurring objects, occlusions, or acquisition cues in the nuisance field. It is allowed to leave a nuisance field empty. Each role's global description summarizes its own local phrases, and phrases are never reassigned on the basis of a query prediction. Exact duplicate phrases are removed within each field. A cache entry is identified by the support identifiers, class names, generation seed, prompt, generator version, and text-encoder version. Neither query images nor query labels are part of its construction.
During warm-up, the scoring maps are calibrated using base-support labels. Warm-up fits the visual and anchor parameters with classification loss and calibrates . After warm-up, the scoring maps are frozen. Subsequent representation updates affect the encoder and anchor map through classification, and policy updates freeze all of them. A fixed scoring map prevents direct optimization of the probe to lower its own cost, and independent audits evaluate the final representations and policies used for prediction.
The gate state uses permutation-invariant pooling over labeled supports and candidate classes. It contains the pooled visual state, positive and nuisance semantic summaries, mean signed evidence, mean retained and neutral masses, and a layer indicator. A finite-dimensional policy consumes this summary, whereas the history in the proofs includes the complete support history and preceding actions, without assuming that the summary itself is Markov. For , a smooth mean parameterization is
The concentration is positive and fixed. The frozen reference gate receives the support-pooled visual and intrinsic semantic state in the base policy's original input dimensions. Its added nuisance-state coordinates are not used. The full conference model remains a separate experimental baseline, and this reference is its gate embedded in the current recognition pipeline.
For every selected layer, incoming supports determine the action, followed by the image-token transition in Eq. (3). The cost in Eq. (14) is evaluated on the resulting post-action tokens using the scoring map for that output space. A query subsequently replays the support-derived action schedule and uses all candidate classes' intrinsic tokens. Thus an unknown query class is never needed as an input, and processing one query cannot alter another query's prediction.
B. Projection, Rejection, and Sensitivity
Set and . This is a nonempty closed convex set, so its Euclidean projection is unique. The Lagrangian of Eq. (7) is
Stationarity and complementary slackness give and . If , the multiplier is zero. Otherwise it is the unique threshold yielding unit mass, found by sorting . Consequently,
Zero-score ties have zero allocation. If all scores are below the margin, a = 0, and Eq. (9) gives exactly. No division by the retained mass is required, even when it approaches zero.
The candidate deficit is distinct from retained contamination. Its value can be positive when all nuisance tokens have been rejected, and it can be small when a misgrounded bank assigns nuisance tokens large intrinsic scores. Thus candidate deficit, neutral mass, and externally audited nuisance retention address different questions, and the last equality above shows that selection-weighted deficits cannot serve as an independent audit.
Projection also gives a deterministic sensitivity statement. For two score vectors and margins,
This follows from nonexpansiveness of Euclidean projection. For fixed visual tokens, write . Allowing the anchor to change as well,
Indeed, subtract the two definitions and write the difference as . Its second coefficient lies in . This statement concerns perturbations of scoring and anchoring for fixed image tokens.
C. Retained Nuisance Mass and Prototype Error
Fix a class and condition on its semantic banks. Let the final support token indices be partitioned into intrinsic indices and nuisance indices , with . This partition is used for analysis and independent audits, not provided to the selector. Define and , so . For a nuisance token, assume its final signed score can be written as with and
The conditioning includes everything determining the rejection margin. The assumption concerns final scores under the evaluated policy, not scores from a different warm-up representation. No independence among tokens is assumed.
Proof of the retained-mass bound. Writing , the KKT solution implies . Hence, for ,
(A9)
The last inequality uses on the integration interval. Summing over nuisance indices and using proves Eq. (20). If , every nuisance score is below the margin and . A related familywise bound is
This follows by a union bound. The retained-mass result additionally controls the amount allocated to erroneous tokens, which the familywise probability alone does not quantify. □
Proof of the prototype bound. Let be a unit ideal class direction. Suppose intrinsic token errors, nuisance token errors, and anchor errors are bounded by , respectively. The coefficients in the raw support estimator are nonnegative and sum to one. Subtracting therefore yields
The triangle inequality and averaging over supports prove Eq. (19). The bound is tighter than the anchor-only upper bound if
provided . Comparing upper bounds does not establish that every realized prototype improves on its realized anchor.
If , the reverse triangle inequality implies , so the fallback is inactive. Using gives
(A13)
If the fallback is active, and its error is instead bounded by . Both cases are well defined, including complete rejection. For a fixed unit query q, comparison with any competing class gives
When the normalization condition holds for every class, the margin condition in the main text preserves the ideal label. This establishes the effect of prototype estimation for the representation actually used, and changes in q under a different gate schedule are treated separately.
These results identify where empirical grounding is needed. An inaccurate intrinsic anchor increases , and incorrectly assigned nuisance phrases can violate the score-gap assumption. Larger rejection margins reduce the nuisance tail bound but can increase anchor reliance. The method's evaluation therefore reports these quantities together rather than using rejection rate alone as evidence of improved recognition.
D. Paired Policy Gradients and Clipping
Let contain the episode, frozen semantic banks, and exogenous augmentation randomness. During a policy update, the encoder, scoring maps, anchor map, reference gate, and value baseline are fixed. The current policy parameters appear only in the action densities, not directly in the reward or feature transition at a fixed action sequence. The deterministic reference trajectory is a function of and its own previous states, so and are independent of sampled policy actions conditional on .
Proof of Proposition 1. The conditional trajectory density is
Assume differentiation can be interchanged with integration, for example under a locally dominating integrable score-weighted reward. The score-function identity gives
Conditioned on the complete history and , the expectation of each policy score is zero. Since is already fixed under this conditioning, and is independent of the current action,
Subtracting these terms proves . Dependence of later states on earlier sampled actions is represented by the trajectory density. It is not an additional pathwise derivative through the frozen environment. The action-deviation cost is part of and is therefore included in the same identity.
Detaching a tensor is an implementation operation, whereas conditional action independence is a statistical condition. For example, if a Bernoulli action has reward , choosing a detached but action-dependent baseline makes every advantage zero although the expected reward has a nonzero policy gradient. The separate reference rollout avoids this issue. Updating shared encoder parameters through the policy surrogate would introduce further direct dependencies not covered by this proof, which is why the optimization schedule explicitly separates those parameters.
Reward variance and gradient variance. For any paired returns,
Positive covariance improves this expression relative to an independently sampled reference with the same marginals. It does not automatically improve it relative to using R alone, or control score-weighted gradient variance. For a concrete example, take and an independent equiprobable . Let and . Then and the reward variance decreases from 1 to 0.4, whereas the logit-score gradient variance increases from 0.09 to 0.324. Thus the diagnostics in Fig. 8 measure gradient variance directly rather than substituting paired reward variance for it. These values are computed analytically for this example.
Clipped surrogate deviation. Define the unclipped importance surrogate on the fixed behavior batch as and let . Away from clipping boundaries, set
The derivative of a likelihood ratio is , while the active clipped branch is locally constant. Consequently,
The bound follows by subtracting derivatives and applying the triangle inequality, assuming integrability. It uses no uniform bound on Beta score gradients. At , every ratio equals one and the surrogate gradient has the on-policy expectation proved above. After policy updates, the per-layer importance surrogate does not correct the changed state-visitation distribution and need not equal the gradient of J. Neither this result nor clipping alone establishes monotonic improvement.
For an explicit clipping counterexample, consider one sampled contribution with , , clipping radius , and scalar score . The unclipped derivative is 1.21 and the active clipped derivative is zero. Their difference is therefore 1.21, whereas . This local configuration can occur in a valid two-action policy. At , let in a sufficiently small neighborhood and let . The other action has advantage zero. The expected gradient gap is then 0.242, while an excess-ratio bound weighted by the same behavior probability would give 0.002. Thus the excess-ratio expression cannot bound the clipping-gradient error.
E. Training Algorithm
We describe the entire training procedure of DVLA-RL++ in detail in Algorithm 1. The training process follows an episodic paradigm and alternates between policy and representation updates after a warm-up with the reference gate. It incorporates two key modules: (1) Complementary Semantic
Algorithm 1: Training algorithm of the proposed DVLA-RL++.
Input: Base classes , representation with anchor map G, frozen text encoder and scoring projections , frozen reference gate , gate policy , and value baseline
- Warm up with the reference gate and calibrate using base-support labels, then freeze ;
while not converged do
-
Sample an N-way K-shot episode from according to Eq. (1);
-
Generate or retrieve the intrinsic and nuisance banks using support identifiers only;
-
Compute the reference schedule from the support states of according to Eq. (13), and obtain according to Eq. (15);
for each layer do
-
Sample according to Eq. (12), and fuse the visual and semantic branches according to Eqs. (2) and (3);
-
Record the log density, the state summary, and the post-action evidence deficit;
-
Compute the signed evidence, rejection margins, and token allocations according to Eqs. (5)–(7);
-
Construct the purified prototypes according to Eqs. (9) and (10), and encode the queries with the recorded schedule;
-
Compute the nuisance cost , the reward , and the stopped advantages according to Eqs. (14) and (15);
-
Update with according to Eq. (18), keeping the sampled actions and advantages fixed;
-
Fit to the stopped paired returns according to Eq. (16) for subsequent policy batches;
-
Draw a fresh episode, recompute the support states, gate actions, and prototypes with the current policy, and stop gradients through the actions;
for each query image in Q do
-
Compute the prediction and the cross-entropy loss according to Eq. (4);
-
Update with and discard the stored policy trajectories;
Output: The checkpoint selected by the sequential mean policy on base-validation episodes, together with the cached mean gate schedule and purified prototypes for testing.
Purification (CSP), which contrasts intrinsic and nuisance semantics to allocate support tokens and anchors each support prototype with intrinsic class semantics; and (2) Counterfactual Reinforcement-Learning Gating (CRG), which samples layer-wise fusion gates and compares each sampled trajectory with an independent reference rollout under a nuisance-aware reward. During policy updates, the representation, scoring projections, text encoder, reference gate, and value baseline remain fixed. During representation updates, the gate actions are stopped and only is optimized with the classification loss. These modules jointly construct purified prototypes that retain intrinsic object evidence and suppress incidental context.
At inference, only the current mean policy is executed, and the support state is updated after every mean action. The resulting gate schedule and class prototypes are cached once per episode, and queries are encoded individually. The reference gate and the value baseline are unnecessary at test time.