NeurIPS 2026

Not All Tokens Should Be Treated Equally:
Context Credits Reassignment

Shujian Gao1,2* Yuan Wang4* Jiamei Yan3 Penghao Zhou3‡ Qinglei Wang3‡ Jiangtao Yan5 Zuxuan Wu1,2† Yu-Gang Jiang1,2†

1Institute of Trustworthy Embodied AI, Fudan University 2Shanghai Innovation Institute 3ByteDance TikTok 4Zhejiang University 5Wuhan University

*Equal contribution    ‡Project lead    †Corresponding authors

Paper arXiv coming soon Code coming soon BibTeX
Overview of HiCCR: an attention hook on the policy model produces a per-token context credit, which is turned into token-level and trajectory-level weights that reassign the advantage of positive rollouts.
Overview of HiCCR. An attention hook on the policy model scores how concentrated each generated token's attention is within the image. The score yields a token-level weight βt and a trajectory-level weight α(i), which reassign the outcome advantage of correct rollouts: Ãt(i) = α(i)βtÂ(i).
  • +7.99 AVG@8 over GRPO on Qwen3-VL-4B
  • 72.76% AVG@8 with Qwen3-VL-8B, above GPT-4o and Qwen2.5-VL-72B
  • <3% extra wall-clock time; no auxiliary model or extra data

Video Explainer 3 min · narrated · captions

Abstract

Multimodal reinforcement learning with verifiable rewards (RLVR) algorithms assign the same advantage to every token in a generated sequence, providing no differential signal for tokens with varying degrees of dependence on visual evidence. A simple experiment confirms this issue: scaling token advantages by uninformative random noise already outperforms uniform credit, suggesting that uniform credit is empirically suboptimal. Beyond that, we observe that RLVR tuning under uniform credit weakens visual grounding along three complementary axes: attention, gradient attribution, and functional dependence on image embeddings, collectively indicating insufficient utilization of visual evidence. To understand this degradation, we provide a theoretical analysis showing that, under language-prior dominance and regularity conditions, uniform credit can amplify a pretrained text-favored gradient imbalance, contributing to weaker visual attention. In response, we propose Hierarchical Context Credit Reassignment (HiCCR), which reassigns credit at two levels: a token-level weight amplifies the advantage for visually grounded tokens, and a trajectory-level weight upweights rollouts with stronger visual engagement. The entire mechanism adds less than 3% wall-clock overhead and applies to mainstream RLVR algorithms without auxiliary models or additional data. On ten benchmarks spanning mathematical and general multimodal reasoning, HiCCR consistently improves upon its corresponding base algorithm and achieves state-of-the-art results among open-source models of comparable scale, while alleviating the weakening of visual grounding observed under RLVR training.

Motivation

GRPO and DAPO broadcast one trajectory-level advantage  to every token, whether the token reads a clock hand from the image or merely writes “Therefore”. Two observations suggest this is a poor default.

  1. Uniform credit is suboptimal. Multiplying each token's advantage by uninformative noise wt ∼ 𝒩(1, 0.2²) already outperforms uniform credit in all four settings (GRPO/DAPO × Qwen3-VL-4B/8B), e.g., 68.29 → 71.40 AVG@8 for DAPO on 8B.
  2. Uniform credit weakens visual grounding. Compared with the base model, RLVR-tuned models attend less to the image, assign a smaller share of gradient attribution to image tokens, and lose less accuracy when image embeddings are zeroed out.

Base → GRPO → HiCCR-G on Qwen3-VL. Uniform credit erodes all three signals of visual grounding; HiCCR restores each beyond the base model. Values are read from Figure 1: attention is relative to GRPO (= 100), gradient share is the image fraction of Input×Gradient attribution, and the drop is measured on CLEVR-Count.

Figure 1: image attention mass over generation, normalized gradient share, and zero-embedding ablation for Base, GRPO, DAPO, HiCCR-G and HiCCR-D.
Figure 1. RLVR fine-tuning weakens visual grounding, and HiCCR mitigates it. (a) Attention mass on image tokens over generation. (b) Normalized Input×Gradient share of each context component. (c) Accuracy drop when image embeddings are zeroed out; a larger drop indicates stronger reliance on vision.

Theoretical explanation (Appendix B)

Pretrained MLLMs exhibit language-prior dominance: non-visual context carries larger downstream-projected activations than visual context (κemp > 1, verified on Qwen3-VL and InternVL3). Under this condition, a uniform positive advantage gives text-side tokens a larger share of the gradient on WQ, and the visual attention mass changes to first order as

so it decreases whenever the same-step drift Dt dominates the cross-step term Rt. Uniform credit thus amplifies a bias that pretraining already put in place.

Method

HiCCR derives every weight from a single quantity, the context credit CV(t): one minus the normalized entropy of token t's attention restricted to the visual positions V, averaged over heads of the last two layers. A token that locks onto a few image regions scores high; a token whose visual attention is diffuse scores low.

Token Credit Reassignment (TCR)

Within each sequence, scores are standardized and passed through a sigmoid, giving a smooth and bounded multiplier. No token is masked out.

Trajectory Advantage Reweighting (TAR)

Within each rollout group, the mean credit of each trajectory is min–max normalized, upweighting rollouts with stronger visual engagement.

The two weights are applied asymmetrically: only positive advantages are reshaped, so that incorrect rollouts are not penalized merely for attending to the image.

HiCCR is a drop-in change to the advantage. We denote it HiCCR-G on GRPO and HiCCR-D on DAPO. Defaults: λtok = 0.5, τ = 0.5. The score reuses queries and keys from the forward pass, so no extra backward pass is required.

Step by step

How one correct rollout receives its credit

Image tokens V · 12 × 8 patches. Shading shows pV(j | t) for the selected token.

Restrict attention to image tokens

For each generated token t, the softmax over query–key energies is taken over visual positions only, so the result is a distribution over image patches.

Score concentration, not magnitude

One minus the normalized entropy. A token that locks onto a few patches scores high; diffuse attention scores near zero.

Token Credit Reassignment

Scores are standardized within the sequence and squashed by a sigmoid. Every weight stays above 1, so no token is suppressed.

Trajectory Advantage Reweighting

Each rollout's mean credit is min–max normalized within the group, so rollouts that engage the image more are reinforced more.

Reshape positive advantages only

Correct rollouts get α·βt·Â; incorrect ones keep their uniform negative advantage.

Illustrative numbers for a toy rollout (|V| = 96, λtok = 0.5, Â = +0.80); the pipeline is exactly Eqs. (5)–(10). Hover or tap a token to inspect it.

Main Results

We train on ViRL39K and compare against nine RLVR algorithms reproduced under identical settings. Accuracy is averaged over eight runs (AVG@8) on nine reasoning benchmarks: five mathematical (Geometry3K, MathVerse, MathVista, WeMath, MathVerse-Vision) and four general/logical (MMK12, CLEVR-Count, LogicVista, MMMU).

Effect at a glance

Same recipe, only the credit changes

base algorithm   + HiCCR  ·  AVG@8 (%), Table 1

Against larger models

AVG@8 (%) on the same nine benchmarks (Table 7).

Cost per training step · 8B

Peak memory +4.5%. No auxiliary model or extra data.

Table 1. AVG@8 (%) on Qwen3-VL-4B and 8B. Math and General are sub-averages; Overall is the mean over all nine benchmarks. Best per column in bold. Green numbers are gains over the matched base algorithm. Per-benchmark scores are in the paper.
MethodQwen3-VL-4BQwen3-VL-8B
MathGeneralOverallMathGeneralOverall
Base (Instruct)49.7848.1749.0756.3354.9455.71
RLVR baselines
SAPO51.8352.7152.2258.1754.0956.35
GSPO69.3460.5965.4573.8864.8669.87
CISPO63.3257.8360.8864.7160.7262.93
Reinforce++67.2461.9364.8874.9469.9572.32
PAPO65.8060.8463.5972.3167.6870.25
DVRP69.6061.9566.2073.0666.6370.20
VPPO67.3960.9964.1968.1763.4665.58
Matched pairs: base algorithm → + HiCCR
GRPO64.1759.1761.9564.2460.3162.49
HiCCR-G (ours)72.6566.5569.94 +7.9969.7963.9467.19 +4.70
DAPO71.4062.8067.5870.9564.9668.29
HiCCR-D (ours)71.3665.9368.95 +1.3776.0168.6972.76 +4.47
  • Consistent gains. HiCCR improves its base algorithm in all four matched settings: +7.99 / +1.37 on 4B and +4.70 / +4.47 on 8B (GRPO / DAPO).
  • Comparison with larger models. HiCCR-D on Qwen3-VL-8B (72.76) surpasses Qwen2.5-VL-72B (61.65), InternVL2.5-78B (55.26), GPT-4o (60.95) and Gemini-2.0-flash (61.40) on the same benchmarks (Table 7 in the paper).
  • Generalization. Gains carry over to InternVL3-8B (+3.21 / +3.23), to training on Geometry3K only (+2.7 to +3.2), and to perception and hallucination benchmarks never used for training (MMStar 72.2%, HallusionBench 62.7%).
  • Efficiency. On Qwen3-VL-8B, HiCCR adds 2.7% time per step (619 → 636 s) and 4.5% peak memory, while the perturbation-based PAPO adds 26.3% time.

Analysis

Which credit signal matters?

We keep the training recipe fixed and only change how token-level credit is assigned. Random and heuristic weightings give small gains; applying the same formula to text context or using unnormalized attention energy is clearly worse. Concentration within the visual tokens is the signal that matters.

Table 2. AVG@8 (%) of token-level credit strategies under GRPO and DAPO.
StrategyToken weightQwen3-VL-4BQwen3-VL-8B
GRPODAPOGRPODAPO
Uniform (baseline)Same  for every token61.9567.5862.4968.29
Randomwt ∼ 𝒩(1, 0.2²)62.6368.5862.7271.40
Time-decaywt = γT−t63.0464.0063.0268.51
Entropy maskTop-20% high-entropy tokens63.5066.6763.7470.28
HiCCR-TSame formula over text context61.5067.1964.6269.18
Raw energylogsumexp over V, unnormalized66.6168.6765.5072.08
HiCCRIntra-visual concentration69.9468.9567.1972.76

Further ablations in the paper: TCR and TAR are complementary (Table 3); soft weighting beats hard top-k masking (Table 8); the last two layers give the best signal (Table 9); the asymmetric rule outperforms symmetric reshaping by 5.1 / 4.0 points (Table 10); results are stable for λtok ∈ [0.5, 0.8] (Table 11).

Where does the credit go?

HiCCR receives no token-level supervision, yet the highest credit lands on tokens that refer to visual content (e.g., triangle, angle, diagram). Visually grounded tokens receive significantly more credit than other tokens (median β 1.303 vs. 1.236, Cohen's d = 0.547, p < 0.001).

Figure 4: context credit analysis on Qwen3-VL-8B: beta and alpha distributions, word cloud of high-credit tokens, credit versus position, and visual versus non-visual tokens.
Figure 4. Context credit analysis on Qwen3-VL-8B. (a) Distribution of βt. (b) Distribution of α(i). (c) Tokens with the highest credit. (d) Credit over token position. (e) Visual vs. non-visual tokens.

Credit lens

A real rollout from Qwen3-VL-8B, colored by context credit βt

Q. The clocks show two things Lily did Tuesday evening. Which did Lily do earlier?
(A) ate dinner   (B) watched a movie

Ground truth BPrediction B ✓ correct

low visual
dependency
1.101.201.301.40
high visual
dependency

Hover a token to read its weight.

Case study. Without any token-level supervision, HiCCR gives the highest credit to tokens that read the image (clock positions, hour digits, the labels “watched a movie” and “ate dinner”), and the lowest to tokens that compute or connect (“Next, I look”, “Therefore”, the closing tags). Weights are approximate, estimated from the color map of the appendix figure. Three more cases are shown below.

Case study: fraction of shapes, tokens colored by context credit.
Case study: counting a grid of cans, tokens colored by context credit.
Case study: counting a grid of squares, tokens colored by context credit.

BibTeX

@inproceedings{gao2026hiccr,
  title     = {Not All Tokens Should Be Treated Equally: Context Credits Reassignment},
  author    = {Gao, Shujian and Wang, Yuan and Yan, Jiamei and Zhou, Penghao and
               Wang, Qinglei and Yan, Jiangtao and Wu, Zuxuan and Jiang, Yu-Gang},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}