Not All Tokens Should Be Treated Equally: Context Credits Reassignment

Shujian Gao, Yuan Wang, Jiamei Yan, Penghao Zhou, Qinglei Wang, Jiangtao Yan, Zuxuan Wu, Yu-Gang JiangNeurIPS 2026

TL;DR

When we train vision-language models to reason using Reinforcement Learning, we typically give every single generated word equal credit for a right answer—inadvertently teaching the model to ignore the image and coast on its text habits. This paper introduces HiCCR, a clever, nearly free tweak that inspects the model's internal attention to reward the exact words and reasoning paths that actually look at the visual evidence. Remarkably, before even getting to their solution, the authors show that scaling token rewards by pure random noise beats the standard uniform approach.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR)—famous for powering reasoning models through algorithms like GRPO and DAPO—works by generating a full chain-of-thought, checking if the final answer is right, and handing out a single scalar reward. Standard RLVR distributes this reward uniformly: boilerplate filler words like "Therefore" get the exact same credit as crucial visual deductions like "the angle is 90 degrees."

In Multimodal Large Language Models (MLLMs), this creates a quiet pathology. Because pretrained models already have massive, dominant language priors, uniform credit amplifies a text-favored gradient imbalance. The model gets better at formatting answers while actually becoming more blind to the image. The authors prove this empirically across three dimensions: standard RLVR causes attention to drift away from the image during generation, shrinks the share of gradients flowing to image tokens, and makes the model suspiciously unfazed when you completely zero out the image embeddings.

Standard RLVR weakens visual grounding across attention, gradient share, and image-ablation sensitivity, while HiCCR restores it.

Methods

To fix this without expensive auxiliary reward models or extra backward passes, the authors propose Hierarchical Context Credit Reassignment (HiCCR), a drop-in modification for existing RLVR algorithms:

  • Context Credit Score (The Proxy): Instead of measuring how much total attention goes to an image, HiCCR measures how focused that attention is. Looking only at visual token positions in the later transformer layers, it computes the normalized entropy of the attention distribution. Low entropy (laser focus on specific image patches) yields a high credit score; diffuse, unfocused attention yields a low score.
  • Token Credit Reassignment (TCR): Within a single response, scores are normalized and passed through a sigmoid function to boost the gradient updates for tokens with above-average visual focus, without suppressing or flipping the sign of other tokens.
  • Trajectory Advantage Reweighting (TAR): Across a batch of generated rollouts, solutions that maintain higher average visual engagement overall get proportionally stronger reinforcement.
  • Asymmetric Shaping: Crucially, HiCCR only modifies positive-advantage (correct) trajectories. Incorrect answers still get standard uniform penalties—otherwise, you would accidentally punish the model for looking closely at an image when it happened to make an arithmetic mistake later.

Datasets

  • Training: Models are trained on ViRL39K (39,000 multimodal geometry, algebra, and word problems with verifiable answers), alongside a low-data verification run on Geometry3K.
  • Evaluation: Tested across existing benchmarks spanning mathematical reasoning (Geometry3K, MathVerse, MathVista, WeMath, MathVerse-Vision), general/logical reasoning (MMK12, CLEVR-Count, LogicVista, MMMU), and perception/hallucination (HallusionBench, MMStar). No new datasets are introduced.

Key Insights and Ideas

  • Random noise beats the status quo: Scaling token advantages with uninformative Gaussian noise consistently outperforms standard uniform credit across both model sizes and RL algorithms. Uniform credit isn't even a local optimum!
  • Concentration beats raw magnitude: Simply rewarding tokens that dump high total attention energy onto the image underperforms HiCCR. What matters is entropy—pinpointing specific visual regions rather than staring blankly at the whole picture.
  • Visual scaffolding happens early: Visualizing HiCCR's learned weights reveals that visual credit starts high and decays monotonically over the length of a response. Models lean heavily on the image early on to build a mental scaffold, then switch to pure symbolic text reasoning to finish the job.
  • Late layers tell the truth: Extracting attention from the final two transformer layers works much better than early or middle layers. Early layers capture generic visual-text alignment, whereas final layers reflect where visual evidence actually causes the next token commitment.

Key Results

Applied to Qwen3-VL (4B and 8B) and InternVL3-8B, HiCCR delivers substantial accuracy gains while adding less than 3% wall-clock overhead:

  • Beating Base RL: On Qwen3-VL-4B, HiCCR boosts GRPO's average accuracy across benchmarks from 61.95% to 69.94% (+7.99%), with massive jumps on vision-heavy tasks like MathVerse (+10.18%).
  • Punching Above Its Weight: On Qwen3-VL-8B, HiCCR-D reaches 72.76% average accuracy (+4.47% over base DAPO), outperforming nine competing RLVR baselines and surpassing the much larger open-weight 72B Qwen2.5-VL-Instruct.
  • Cleaner Optimization: Models trained with HiCCR converge to higher accuracy while generating shorter responses with lower policy entropy and smoother gradients.

Limitations and Future Work

In the main text, the authors note an important nuance regarding their diagnostic experiments: while recovering visual grounding correlates positively with accuracy gains (Spearman $\rho$ between 0.42 and 0.50), the relationship varies across settings (notably weaker on the 8B-GRPO setup) and does not map one-to-one with performance. Thus, the authors transparently note that their results are consistent with visual grounding driving the accuracy improvements, without claiming strict causal mediation or ruling out other optimization dynamics. Broader limitations and future directions are not explicitly detailed in the main body of the paper.

Summary updated

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: \textbf{scaling token advantages by uninformative random noise already outperforms uniform credit}, suggesting that uniform credit is empirically suboptimal. Beyond that, we observe RLVR tuning under uniform credit weakens visual grounding along three complementary axes: attention, gradient attribution, and functional dependence on image embeddings, \textbf{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 (\textbf{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 \textbf{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.
BibTeX
@inproceedings{gao2026not,
  author = {Shujian Gao and Yuan Wang and Jiamei Yan and Penghao Zhou and Qinglei Wang and Jiangtao Yan and Zuxuan Wu and Yu-Gang Jiang},
  title = {{Not All Tokens Should Be Treated Equally: Context Credits Reassignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=VjXxG2aN7k},
}
Figure