Manuscript Offprint
arXiv:2610.41629GRIT: Gradient Masking for Visually Misgrounded Tokens in Text-Rich Reasoning
Abstract
Reinforcement learning with verifiable rewards (RLVR) has recently been extended to vision-language models (VLMs), yet its effectiveness remains limited for text-rich reasoning tasks. We highlight a key factor contributing to this limitation: models frequently arrive at correct final answers despite misperceiving visual information during intermediate steps. We define this phenomenon as Correct-but-Visually-Misgrounded Reasoning (CVMR). Because standard RLVR rewards only final-answer correctness, it fails to differentiate between properly grounded and misgrounded reasoning, reinforcing both equally. Through token-level analysis, we reveal that CVMR tokens exhibit distinct attention patterns that differ systematically from well-grounded ones. Based on this observation, we propose GRIT, a training framework that incorporates visual grounding into RLVR to mitigate the impact of CVMR. Furthermore, to address the lack of text-rich reasoning benchmarks that allow for systematic evaluation across text length and reasoning depth, we introduce GRIT-Bench. Experiments demonstrate that GRIT significantly improves both reasoning accuracy and grounding fidelity over existing RLVR methods.
1. Introduction
Driven by the success of Reinforcement Learning with Verifiable Rewards (RLVR)-based reasoning training in large language models (LLMs) [12, 26, 29, 36], there has been growing interest in extending these approaches to vision-language models (VLMs) [4, 14, 16, 22, 24, 32, 35]. These methods have demonstrated significant performance improvements across various visual reasoning tasks. Beyond general visual perception, text-rich reasoning, which involves reading and reasoning over text in images such as financial reports, medical documents, and charts, has

Figure 1. Performance change over the base model on text-rich reasoning benchmarks. Existing RLVR methods mostly degrade or show marginal improvement, while GRIT achieves substantial gains.
emerged as a key capability of VLMs [19, 21, 27, 37]. These tasks require multi-step reasoning far exceeding simple text recognition, integrating textual content with visual context [13, 19, 31, 33].
However, RLVR-driven improvements do not consistently extend to this domain. Despite numerous recent efforts to enhance the visual reasoning capabilities of VLMs through RL [4, 14, 16, 22, 24, 32, 35], there has been relatively limited systematic analysis of text-rich reasoning. For example, Huang et al. [13] recently reported that RL-trained models perform even worse than baselines on text-rich reasoning tasks, and we observe similar degradation on text-rich reasoning benchmarks, including OCR-Reasoning, in our experiments.
To investigate the underlying causes of this degradation, we closely examine VLM responses and identify a critical phenomenon we term Correct-but-Visually-Misgrounded Reasoning (CVMR), where models frequently arrive at correct answers despite misperceiving visual information (additional examples in Supplementary Sec. E). For instance, in Figure 2, the model correctly infers that Health Care has the highest representation to answer the question, yet misreads the specific values of all industries. Unlike standard hallucinations [17], this failure mode bypasses answer-only
Corresponding author.
© 2027 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Ground Truth: Health Care
Figure 2. An example of Correct-but-Visually-Misgrounded Reasoning (CVMR). The model correctly identifies the relative ranking, noting that Health Care has the highest representation in the infographic, and arrives at the correct answer. However, despite multiple industries having meaningful percentages, the model misreads all values including Health Care itself. Red-highlighted text indicates visually misgrounded reasoning.
verification because the final output remains correct. Text-rich reasoning tasks are structurally vulnerable to CVMR due to their dense visual elements. Our analysis shows that CVMR occurs at a disproportionately high rate in these tasks (Section 3), suggesting that standard RLVR, which primarily relies on answer correctness, creates a systematic risk of reinforcing misgrounded reasoning.
To address this, we propose GRIT (Gradient Masking for Visually Misgrounded Tokens). We observe that CVMR tokens exhibit weak or diffuse attention over relevant image regions. To capture such attention patterns, GRIT selects a subset of attention heads that sensitively reflect the image regions attended by each generated token, termed Visual Tracker Heads. During training, GRIT analyzes the attention patterns from these heads to identify visually misgrounded tokens and masks their gradients to prevent CVMR from being reinforced. To incorporate the faithfulness of visual grounding into the training signal, we introduce an attention reward based on their attention mass and entropy. Consequently, as shown in Figure 1, while existing RLVR methods largely degrade or show marginal improvement on text-rich reasoning benchmarks, GRIT achieves substantial gains.
Furthermore, systematically evaluating the extent to which models rely on correct visual information requires more than answer-level supervision; it requires verifying whether each reasoning step is faithfully grounded in the visual input. Existing text-rich reasoning benchmarks provide valuable testbeds, but they rarely offer the fine-grained reference information needed to assess visual grounding throughout the reasoning process. To enable such analysis, we introduce GRIT-Bench, a benchmark constructed by
rendering well-established text-based QA datasets into images. This design yields two advantages. First, it provides a controlled testbed for explicitly measuring the grounding fidelity of VLMs in text-rich reasoning. Second, because each visual input is paired with its exact source text, an LLM judge can evaluate the VLM's reasoning process directly against this text, providing a more reliable basis than image-only evaluation for assessing whether visual information was correctly perceived.
Our contributions are as follows:
- We define CVMR (Correct-but-Visually-Misgrounded Reasoning), demonstrate its high prevalence in text-rich reasoning, and show that CVMR tokens exhibit distinct attention patterns.
- We propose GRIT, a training framework that mitigates the reinforcement of CVMR through attention-based gradient masking and tailored reward design, achieving substantial improvements over existing RLVR methods on text-rich reasoning tasks.
- We construct GRIT-Bench, a text-rich reasoning benchmark comprising approximately 3K samples, which explicitly enables the evaluation of grounding fidelity and fine-grained analysis by text length and reasoning depth.
2.1. RLVR for Vision-Language Models
Reinforcement learning with verifiable rewards (RLVR) has achieved notable success in enhancing the reasoning capabilities of LLMs [12, 26, 29]. Motivated by this, recent work has extended RLVR to VLMs. Vision-R1a [14] applies GRPO-based training with a synthetically constructed multimodal CoT dataset and introduces progressive thinking suppression to reduce overthinking. Vision-R1b [38] proposes vision-guided reinforcement learning with progressive rule refinement for human-free alignment. MM-Eureka [22] demonstrates that minimalist rule-based rewards combined with a curated multimodal mathematics dataset are sufficient for effective multimodal reasoning. VL-Rethinker [32] proposes forced rethinking, which appends rethinking triggers to rollouts to encourage explicit self-reflection during RL training. VLAA-Thinker [4] investigates the SFT-then-RL paradigm and finds that direct RL with a mixed reward module integrating perception and cognition signals outperforms the conventional pipeline. Vision-SR1 [16] proposes a self-rewarding framework that decomposes reasoning into visual perception and language reasoning, using the model itself to evaluate its own visual perception quality. While these methods have demonstrated improvements on general visual reasoning benchmarks, their effectiveness on text-rich reasoning remains limited, as we observe in our experiments. GRIT addresses this gap by incorporating visual grounding into the RLVR training process.
2.2. Text-Rich Visual Reasoning
Existing benchmarks for text-rich image understanding, such as TextVQA [27], DocVQA [21], and ChartQA [19], have contributed to evaluating text recognition and comprehension in various visual contexts. However, these benchmarks are largely centered on textual content extraction, where answers can often be directly retrieved from the OCR results of the image. OCR-Reasoning [13] addresses this gap by constructing a benchmark where answers are minimally present in the OCR output, requiring the model to perform reasoning rather than extraction. It systematically defines six core reasoning sub-abilities for text-rich scenarios, including spatial, numerical, mathematical, logical, enumerative, and multidisciplinary reasoning, providing a structured evaluation framework that was previously absent. These characteristics make OCR-Reasoning a useful testbed for examining whether RL-based multimodal reasoning methods improve text-rich reasoning beyond mere text extraction. ChartQA-PRO [20] and CharXiv [33] also evaluate chart and figure understanding, which partially involves text-rich reasoning. GRIT-Bench complements these benchmarks by enabling fine-grained analysis across text length and reasoning depth while additionally measuring reasoning fidelity.
3. CVMR Analysis
As introduced in Section 1, CVMR refers to the phenomenon where a model arrives at the correct final answer despite misperceiving visual information in the image. In this section, we quantitatively analyze which task types are

Figure 3. CVMR rate among correct responses by task type. Text-rich reasoning exhibits a substantially higher CVMR rate compared to other task types.
most susceptible to CVMR and investigate the distinct attention patterns exhibited by tokens associated with CVMR.
To systematically analyze the occurrence of CVMR, we collect 600 samples across four groups defined by two axes: text density and task type, with 150 correct samples per group. Since CVMR by definition occurs exclusively in correct responses, we restrict our samples accordingly. Images containing 200 or more characters of text are classified as text-rich, and those with fewer as text-sparse. Tasks requiring at least two reasoning steps to solve are classified as reasoning, while those answerable by simply locating a value in the image are classified as recognition. Samples are drawn from ChartQA [19], ChartQAPro [20], DocVQA [21], ScienceQA [18], A-OKVQA [25], and RealWorldQA [34], with responses generated by Qwen2.5-VL-7B [3]. CVMR is determined for each sample by first using GPT-5 [28] to judge whether the model's reasoning process contains misperceptions of visual information, followed by human double-verification.
Figure 3 shows the CVMR rate among correct responses by task type. The CVMR rate in text-rich reasoning is 35.3%, substantially higher than that of text-sparse reasoning (14.0%), text-sparse recognition (10.7%), and text-rich recognition (4.7%). This result stems from the structural characteristics of text-rich reasoning. Text-rich reasoning tasks contain numerous visual elements that must be read and interpreted, and misperceptions of elements not directly tied to the final answer during multi-step reasoning can still yield correct responses. In contrast, text-rich recognition exhibits the lowest CVMR rate: the retrieved value itself constitutes the answer without multi-step reasoning, meaning any misreading directly leads to an incorrect answer. Because standard RLVR primarily relies on answer correctness as its reward signal, it cannot distinguish visually misgrounded tokens from properly grounded ones. Consequently, tasks with higher CVMR rates risk having misgrounded reasoning reinforced alongside correct ones.

Figure 4. Visual attention mass and entropy of CVMR tokens vs. normal tokens, measured on Visual Tracker Heads. CVMR tokens show lower attention mass and higher attention entropy (two-sample z-test, both p-values < ).
We further compare the attention characteristics of text tokens where visual misperceptions occur, which we term CVMR tokens, against normal tokens that correctly reflect visual information. Specifically, we utilize Visual Tracker Heads (Section 4.2) to analyze two metrics: visual attention mass and visual attention entropy. Visual attention mass represents the total attention a generated text token allocates to image tokens, while visual attention entropy captures whether the attention is focused on specific image regions or spread broadly. For example, a higher attention mass indicates that the model references the image more, while a lower attention entropy indicates more focused attention on specific image regions [15, 40]. As shown in Figure 4, we find that CVMR tokens exhibit a distinct attention pattern compared to normal tokens, characterized by lower visual attention mass and higher attention entropy (see Supplementary Sec. E for qualitative examples). This pattern is consistent across both metrics, suggesting that CVMR tokens do not sufficiently focus on relevant image regions. This observation shows that attention patterns can serve as a meaningful signal for distinguishing CVMR tokens, motivating the design of GRIT.
4. GRIT
In Section 3, we observed that CVMR tokens exhibit lower visual attention mass and higher attention entropy. Since RLVR assigns the same reward to all tokens within a correct response, it cannot distinguish visually grounded tokens from misgrounded ones, causing CVMR to be reinforced alongside correct reasoning. In this section, we introduce GRIT, a training framework that addresses this limitation. GRIT consists of three components: (1) Visual Tracker Heads, which select attention heads that reflect token-level variation in visual attention patterns, (2) gradient masking, which blocks gradients for misgrounded tokens based on the attention patterns of selected heads, and (3) attention reward, which incorporates the faithfulness of visual ground-
ing into the reward signal.
4.1. Group Relative Policy Optimization
We adopt GRPO [26] as the base RL algorithm. GRPO samples responses for each prompt and converts the relative differences in rewards within the group into advantages for training. Specifically, given an image-question pair and responses with rewards , the advantage assigned to each token of response is:
where the same normalized advantage is shared across all tokens within a response. The policy is updated to maximize:
where the expectation is taken over and , and
is the per-token policy ratio. To allow sufficient exploration during text-rich reasoning training, we remove the KL penalty term, apply asymmetric clipping ( , ), and adopt token-level loss normalization [36].
4.2. Visual Tracker Heads
Recent studies have shown that individual attention heads exhibit specialized roles [1, 15, 30, 41], suggesting that a targeted subset of heads may be more informative than using all heads uniformly. Since GRIT masks gradients at the token level (Section 4.3), it requires a way to assess whether each individual token is visually grounded. This in turn demands attention heads that sensitively reflect which image region each generated token references. If a head attends to the same image region regardless of which token is being generated, it cannot distinguish well-grounded tokens from misgrounded ones. We select heads satisfying this property and refer to them as Visual Tracker Heads. We propose a two-stage procedure for their identification.
Mass Filtering. The selection is performed on 1,000 samples drawn from [18–21, 25, 34]. Since only a small fraction of attention heads contribute meaningfully to text-image interaction, we first compute the mean visual attention mass across all response tokens for each head, and retain the top 50 heads that effectively attend to image tokens.
Diversity Ranking. Among the retained heads, we identify those whose attention distribution over image tokens changes most across generated tokens. Such heads are informative because their token-level variation enables per-token grounding assessment. For each head, we compute the mean attention map across all response tokens, then measure token-conditioned spatial diversity as:
where is the attention map of head h at token t, denotes cosine similarity, and T is the total number of response tokens in the selection set. A higher diversity score indicates that the head shifts its focus to different image regions depending on which token is being generated, making it suitable for detecting token-level grounding differences. We select the top 5 heads by diversity as Visual Tracker Heads. Further details on Visual Tracker Heads are provided in Supplementary Sec. B.
4.3. Gradient Masking
In standard RLVR, all tokens within a response share the same response-level advantage, so visually misgrounded tokens in a positively reinforced correct response receive the same policy credit as grounded tokens. To prevent this, GRIT selectively blocks gradients for tokens that are likely to be visually misgrounded, using the attention patterns of Visual Tracker Heads.
Two-Stage Token Filtering. For each token in a correct response, we compute its visual attention mass and entropy on the Visual Tracker Heads. Within each response, tokens suspected of being misgrounded are identified through two successive filters:
-
Low Mass Filter: tokens in the bottom 50% of visual attention mass within the response are selected.
-
High Entropy Filter: among those, tokens in the top 50% of visual attention entropy are selected.
The gradients of the resulting tokens are masked. This filtering is intentionally approximate and conservative: masking removes a token's policy-loss contribution at the current update rather than applying a gradient in the opposite direction. This filtering uses attention statistics as a proxy for token-level grounding. Robustness to alternative masking strategies and threshold choices is evaluated in Section 6.3 and discussed further in Supplementary Sec. F.
Protected Tokens. Not all tokens should be subject to masking. Answer format tags (<answer>, <think>), mathematical operators (+ = * /), and punctuation (., ( ) " ") serve structural roles unrelated to visual perception. These protected tokens always retain their gradients regardless of their attention patterns.
Selective Application to Correct Responses. Gradient masking is applied only to correct responses because CVMR is defined by a correct final answer paired with visually misgrounded reasoning. In these responses, outcome correctness does not resolve token-level grounding quality. Incorrect responses retain the standard GRPO update without additional masking.
The resulting training objective incorporates a per-token mask :
where for tokens masked by Two-Stage Token Filtering in correct responses, and otherwise.
4.4. Attention Reward
Gradient masking suppresses the reinforcement of misgrounded tokens at the token level, but does not reflect differences in visual grounding quality across responses. To complement this, we additionally introduce an attention reward that incorporates response-level grounding quality into the reward signal, using the attention patterns of Visual Tracker Heads.
Attention Score. For each response, we compute the mean visual attention mass and mean visual attention entropy across all response tokens based on Visual Tracker Heads. As observed in Section 3, visually well-grounded tokens exhibit higher attention mass and lower entropy, so we define the per-response attention score as:
where and are the mean visual attention mass and entropy of response , respectively. This score is normalized within the group and mapped to via sigmoid:
where is the correctness indicator of response . We gate the attention reward by correctness so that a high attention score cannot compensate for an incorrect final answer. The reward therefore differentiates grounding quality only among correct responses.
Final Reward. The final reward combines the correctness reward, format reward, and attention reward, and serves as the reward used for GRPO advantage computation:
(9) where is a binary reward for whether the response follows the designated output format (<think>, <answer> tags) and is a binary reward based on answer correctness.
5. GRIT-Bench
Existing text-rich benchmarks are primarily designed around OCR and perception, and only a few such as OCR-Reasoning [13] aim to systematically evaluate text-rich reasoning. In particular, no benchmark allows fine-grained analysis of model performance by text length or reasoning depth.
This is because constructing problems that are text-rich and require multi-step reasoning is inherently difficult, and ground truth verification is challenging [13]. GRIT-Bench addresses this by rendering text-based QA datasets into images. The original source text is preserved prior to rendering. During evaluation, the judge (GPT-5 mini) receives this source text rather than the image to analyze the model's reasoning process. This enables direct measurement of whether the model correctly read the information in the image.
Specifically, well-established table and document QA datasets [6–9, 23, 39, 42] are rendered into images for use as VLM inputs. Text lengths range from 238 to 42,343 characters (mean 3,136), and samples with excessive text are split into multiple images to avoid resolution issues. For Reasoning Fidelity (RF) evaluation, key reasoning steps for each sample are extracted by GPT-5 from the source text. Human double-checking is performed to verify both that the answer is derivable from the rendered image and that the reasoning steps are correct.
GRIT-Bench evaluates with two metrics: Accuracy and Reasoning Fidelity (RF). Accuracy measures final answer correctness. RF evaluates the visual grounding faithfulness of the reasoning process, defined as:
where is the number of key reasoning steps that the model attempted and that are consistent with the source text, is the total number of key reasoning steps, and is the number of claims not supported by the source text beyond the key steps. A higher RF indicates that the reasoning process more accurately reflects the information in the image and less frequently asserts content absent from the source.
GRIT-Bench classifies difficulty along two axes: text length and reasoning depth. Text length is divided into Short (<1K), Medium (1–2K), and Long (2K+), and reasoning depth into Simple (2 steps), Moderate (3), and Complex (4+). The two axes form 9 difficulty combinations over
Table 1. Distribution of GRIT-Bench samples across difficulty combinations.
| Simple | Moderate | Complex | Total | |
|---|---|---|---|---|
| Short (<1K) | 198 | 396 | 169 | 763 |
| Medium (1–2K) | 210 | 476 | 270 | 956 |
| Long (2K+) | 263 | 540 | 333 | 1,136 |
| Total | 671 | 1,412 | 772 | 2,855 |
2,855 samples (Table 1). Details on dataset composition are provided in Supplementary Sec. D.
GRIT-Bench provides a controlled diagnostic setting for reasoning fidelity and difficulty analysis. We complement this evaluation with external text-rich benchmarks, including OCR-Reasoning [13], ChartQA-PRO [20], and CharXiv [33]. Further discussion of the benchmark scope is provided in Supplementary Sec. F.
6. Experiments
6.1. Experimental Setup
For a fair comparison with prior RLVR methods built on the Qwen2.5-VL family, we use Qwen2.5-VL-3B-Instruct and Qwen2.5-VL-7B-Instruct [3]. To verify that GRIT is not tied to a particular backbone, we also apply it to Qwen3-VL-4B-Instruct [2], a newer generation with a redesigned multimodal architecture (Supplementary Sec. G).
We train on the ViRL 39K dataset used by VL-Rethinker [32]. We apply GRPO with the DAPO modifications described in Section 4.1 (KL penalty removal, asymmetric clipping, and token-level loss normalization) with learning rate . Full training details are provided in Supplementary Sec. A.
We compare against existing RLVR methods based on Qwen2.5-VL-7B: Vision-SR1 [16], Vision-R1a [14], Vision-R1b [38], VL-Rethinker [32], MM-Eureka [22], and VLAA-Thinker [4], evaluated using their officially released weights. We also train GRPO and DAPO with the same dataset and training configuration as GRIT to precisely measure the effect of our method. We evaluate on OCR-Reasoning [13], ChartQA-PRO [20], CharXiv [33], MMStar [5], HallusionBench [11], and GRIT-Bench (Section 5).
6.2. Main Results
Results on Text-Rich Reasoning and General Benchmarks. Table 2 presents results on text-rich reasoning and general benchmarks. On OCR-Reasoning, existing RLVR models mostly degrade or improve only marginally over the base model, while GRIT-7B achieves a substantial +4.96 gain. On ChartQA-PRO and CharXiv, which partially contain text-rich reasoning samples, GRIT also records competitive performance. On MMStar, a broad evaluation of
Table 2. Results across text-rich reasoning and general benchmarks. Best results are in bold, second best are underlined. Δ denotes the difference from the base model.
| Model | Text-Rich Reasoning | Chart Understanding | General | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OCR-Reasoning | ChartQA-P | CharXiv | MMStar | HalluB. | |||||||||
| Spatial | Numerical | Math | Enum. | Logical | Multi. | Overall | Δ | Reas. | Desc. | ||||
| Based on Qwen2.5-VL-3B | |||||||||||||
| Qwen2.5-VL-3B | 9.17 | 10.55 | 10.78 | 20.11 | 8.33 | 13.14 | 12.07 | - | 29.8 | 29.7 | 65.3 | 52.9 | 38.5 |
| GRPO-3B | 15.60 | 9.05 | 8.82 | 18.44 | 9.72 | 13.87 | 11.97 | -0.10 | 30.0 | 29.8 | 65.3 | 53.2 | 38.2 |
| DAPO-3B | 11.01 | 8.79 | 9.80 | 20.11 | 9.72 | 12.41 | 11.60 | -0.47 | 30.3 | 29.4 | 65.2 | 53.1 | 37.8 |
| GRIT-3B (Ours) | 15.60 | 12.06 | 12.75 | 23.46 | 15.97 | 16.06 | 15.43 | +3.36 | 30.6 | 30.0 | 65.5 | 53.6 | 39.3 |
| Based on Qwen2.5-VL-7B | |||||||||||||
| Qwen2.5-VL-7B | 11.93 | 22.11 | 14.71 | 27.93 | 14.58 | 24.09 | 20.58 | - | 38.5 | 38.1 | 71.2 | 61.5 | 47.3 |
| GRPO-7B | 12.84 | 20.60 | 11.76 | 26.82 | 11.11 | 22.63 | 18.99 | -1.59 | 38.1 | 37.6 | 71.4 | 61.5 | 47.5 |
| DAPO-7B | 12.84 | 19.35 | 12.75 | 27.37 | 11.81 | 28.47 | 19.55 | -1.03 | 38.3 | 37.4 | 71.2 | 61.8 | 46.4 |
| Vision-R1b-7B | 14.68 | 16.58 | 14.71 | 26.26 | 9.03 | 23.36 | 17.68 | -2.90 | 37.5 | 36.5 | 71.0 | 61.2 | 47.0 |
| VLAA-Thinker-7B | 11.01 | 20.10 | 12.75 | 27.37 | 9.72 | 20.44 | 18.33 | -2.25 | 32.3 | 37.3 | 70.6 | 62.3 | 45.9 |
| MM-Eureka-7B | 12.84 | 20.35 | 15.69 | 27.93 | 12.50 | 28.47 | 20.39 | -0.19 | 36.7 | 39.3 | 71.3 | 62.6 | 46.4 |
| VL-Rethinker-7B | 15.60 | 19.35 | 19.61 | 25.70 | 15.97 | 24.82 | 20.30 | -0.28 | 40.4 | 37.7 | 69.9 | 62.6 | 46.2 |
| Vision-R1a-7B | 10.09 | 19.60 | 12.75 | 29.61 | 19.44 | 25.55 | 20.39 | -0.19 | 39.3 | 37.1 | 64.5 | 58.6 | 42.6 |
| Vision-SR1-7B | 13.76 | 22.36 | 13.73 | 31.28 | 13.89 | 24.82 | 21.33 | +0.75 | 39.8 | 39.0 | 72.2 | 62.5 | 47.3 |
| GRIT-7B (Ours) | 18.35 | 26.88 | 16.67 | 32.96 | 22.92 | 27.01 | 25.54 | +4.96 | 41.1 | 39.4 | 72.0 | 63.4 | 47.7 |
Table 3. GRIT-Bench results across text length and reasoning depth. Acc: Accuracy (%), RF: Reasoning Fidelity (%) = faithful / (total_steps + ungrounded_claims). Best results are in bold, second best are underlined. Δ denotes the difference from the base model.
| Model | Short (<1K) | Medium (1-2K) | Long (2K+) | Overall | Δ | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Simple | Moderate | Simple | Moderate | Simple | Moderate | Complex | Acc | RF | ||||||||||||||
| Acc | RF | Acc | RF | Acc | RF | Acc | RF | Acc | RF | Acc | RF | Acc | RF | |||||||||
| Based on Qwen2.5-VL-3B | ||||||||||||||||||||||
| Qwen2.5-VL-3B | 45.5 | 61.9 | 52.0 | 67.4 | 49.7 | 69.0 | 50.0 | 57.7 | 44.5 | 62.5 | 40.0 | 65.3 | 39.5 | 52.0 | 40.9 | 61.1 | 39.0 | 64.0 | 44.1 | 62.4 | - | - |
| GRPO-3B | 47.0 | 62.7 | 51.3 | 68.0 | 46.2 | 68.7 | 49.5 | 57.0 | 43.3 | 61.0 | 38.5 | 65.5 | 37.3 | 49.8 | 38.3 | 57.2 | 36.6 | 62.7 | 42.6 | 61.2 | -1.5 | -1.2 |
| DAPO-3B | 51.5 | 62.8 | 53.3 | 67.3 | 45.6 | 69.5 | 44.8 | 56.6 | 44.1 | 62.2 | 37.4 | 65.4 | 39.9 | 52.2 | 40.9 | 58.6 | 36.0 | 62.4 | 43.5 | 61.8 | -0.6 | -0.6 |
| GRIT-3B (Ours) | 55.6 | 65.1 | 56.6 | 70.0 | 47.9 | 69.8 | 50.0 | 58.8 | 49.8 | 64.5 | 40.0 | 66.0 | 45.6 | 55.9 | 46.5 | 58.3 | 40.5 | 65.0 | 48.0 | 63.4 | +3.9 | +1.0 |
| Based on Qwen2.5-VL-7B | ||||||||||||||||||||||
| Qwen2.5-VL-7B | 77.3 | 82.8 | 68.9 | 79.7 | 74.6 | 81.7 | 72.4 | 74.9 | 68.7 | 80.0 | 52.2 | 77.5 | 62.4 | 70.2 | 65.2 | 75.2 | 58.6 | 77.7 | 66.0 | 77.6 | - | - |
| GRPO-7B | 78.8 | 83.4 | 73.0 | 81.5 | 73.4 | 81.6 | 71.4 | 74.6 | 67.0 | 76.8 | 56.3 | 77.9 | 54.8 | 62.3 | 57.6 | 68.4 | 54.1 | 73.5 | 63.9 | 74.8 | -2.1 | -2.8 |
| DAPO-7B | 78.8 | 82.8 | 74.0 | 81.7 | 72.8 | 82.5 | 71.4 | 75.1 | 68.7 | 78.3 | 55.9 | 78.9 | 54.0 | 62.9 | 57.8 | 68.2 | 57.7 | 73.8 | 64.7 | 75.3 | -1.3 | -2.3 |
| Vision-R1b-7B | 77.8 | 79.7 | 69.7 | 78.1 | 68.0 | 82.8 | 66.2 | 70.8 | 55.3 | 68.5 | 51.9 | 74.6 | 33.8 | 41.0 | 37.4 | 48.2 | 37.8 | 55.1 | 52.7 | 64.3 | -13.3 | -13.3 |
| VLAA-Thinker-7B | 77.8 | 85.4 | 71.2 | 84.6 | 69.2 | 82.4 | 65.7 | 71.2 | 60.3 | 76.3 | 55.9 | 77.8 | 40.3 | 48.1 | 46.7 | 59.1 | 44.7 | 65.2 | 57.3 | 71.1 | -8.7 | -6.5 |
| MM-Eureka-7B | 81.8 | 81.7 | 77.8 | 85.0 | 66.3 | 82.3 | 70.0 | 72.9 | 65.1 | 76.3 | 52.2 | 75.5 | 42.2 | 49.3 | 50.4 | 60.6 | 40.8 | 65.0 | 59.5 | 71.1 | -6.5 | -6.5 |
| VL-Rethinker-7B | 78.8 | 85.2 | 77.0 | 86.2 | 69.2 | 86.0 | 70.0 | 78.2 | 67.4 | 79.9 | 55.9 | 78.5 | 59.7 | 66.3 | 62.6 | 73.1 | 55.6 | 73.4 | 65.7 | 77.9 | -0.3 | +0.3 |
| Vision-R1a-7B | 82.8 | 87.1 | 82.8 | 86.1 | 71.6 | 81.8 | 71.9 | 74.2 | 73.9 | 79.7 | 60.0 | 72.9 | 65.0 | 69.4 | 61.1 | 69.5 | 55.6 | 71.1 | 68.8 | 76.3 | +2.8 | -1.3 |
| Vision-SR1-7B | 79.3 | 82.0 | 81.1 | 87.7 | 68.6 | 82.0 | 73.8 | 79.1 | 73.1 | 82.7 | 62.2 | 82.2 | 65.4 | 76.0 | 65.6 | 78.8 | 58.0 | 76.4 | 69.5 | 80.9 | +3.5 | +3.3 |
| GRIT-7B (Ours) | 89.4 | 88.1 | 87.9 | 87.6 | 84.0 | 87.7 | 88.6 | 83.9 | 81.7 | 84.0 | 65.2 | 82.5 | 71.1 | 78.6 | 72.8 | 80.9 | 66.1 | 81.7 | 77.7 | 83.5 | +11.7 | +5.9 |
general visual capabilities, GRIT achieves the best score among all models. The benefit is therefore not limited to text-rich reasoning. Meanwhile, on HallusionBench (qAcc), which evaluates whether a model responds sensitively to changes in visual conditions for the same question, most existing RLVR methods degrade or fail to improve upon the base model. In contrast, GRIT shows a slight improvement in qAcc, indicating that GRIT is more robust against visual misgrounding compared to standard RLVR methods.
Results on GRIT-Bench. Table 3 and Figure 5 present GRIT-Bench results. GRIT-7B achieves the largest improvement over the base model in both Accuracy (+11.7) and Reasoning Fidelity (+5.9). This suggests that GRIT not only improves answer correctness but also guides the model to arrive at correct answers through faithful reading of visual information. Across all models, performance generally degrades as text length and reasoning depth increase. The difficulty classification of GRIT-Bench is thus consistent with actual model behavior.
In Figure 5(a), most models perform on par with or better than the base model in the Short setting, but several begin to fall below the base in Medium, and in the Long setting, nearly all models except GRIT score lower than the base. This suggests that RLVR training can impair reasoning performance on longer text.
In Figure 5(b), the performance drop due to reasoning
(a) Acc by Text Length

(b) Acc by Reasoning Depth
Figure 5. GRIT-Bench analysis on 7B models across text length and reasoning depth. (a) Accuracy by text length. (b) Accuracy by reasoning depth.
Table 4. Ablation study on component contributions. Each row adds a component to the configuration it is indented under; arrows denote the change from that configuration.
| Model | OCR-Reasoning | GRIT-Bench |
|---|---|---|
| Qwen2.5-VL-7B | 20.58 | 66.0 |
| ⊥ + GRPO | 18.99 (↓ 1.59) | 63.9 (↓ 2.1) |
| ⊥ + DAPO | 19.55 (↓ 1.03) | 64.7 (↓ 1.3) |
| ⊥ + Gradient Masking | 24.04 (↑ 4.49) | 74.9 (↑ 10.2) |
| ⊥ + Attention Reward | 25.54 (↑ 1.50) | 77.7 (↑ 2.8) |
depth is relatively small compared to text length. In text-rich reasoning, where models must read and reason over text in images, the volume of textual information within the image is a more critical bottleneck than reasoning complexity.
Notably, Vision-R1a [14] improves in Overall Acc (+2.8) over the base model but degrades in RF (-1.3). Since RF measures the proportion of reasoning steps consistent with the source text and penalizes unsupported claims, this result indicates that while the model answers correctly more often after RL training, it more frequently misreads text in the image or asserts content not present in the source during reasoning. Acc alone cannot detect this pattern, so reasoning faithfulness must be evaluated alongside answer correctness.
6.3. Ablation Study
Component Contribution. Table 4 shows the contribution of each component. GRPO and DAPO both degrade performance relative to the base model on text-rich reasoning. However, adding gradient masking yields the largest single improvement, demonstrating the effectiveness of our approach in addressing the limitations of standard RLVR. Attention reward provides further gains by incorporating response-level grounding quality into the reward signal.
Table 5. Ablation on masking strategies (without Attention Reward). Inverted Masking masks the complementary set of tokens selected by GRIT's filtering. Arrows denote the change from DAPO-7B.
| Masking Strategy | OCR-Reasoning | GRIT-Bench |
|---|---|---|
| DAPO-7B | 19.55 | 64.7 |
| ⊥ + Inverted Masking | 17.49 (↓ 2.06) | 59.0 (↓ 5.7) |
| ⊥ + Random Masking | 19.46 (↓ 0.09) | 62.4 (↓ 2.3) |
| ⊥ + GRIT Masking (Ours) | 24.04 (↑ 4.49) | 74.9 (↑ 10.2) |
Table 6. Ablation on masking ratio and number of Visual Tracker Heads. Default setting (50/50 ratio, 5 heads) is highlighted.
| Masking Ratio | Heads | OCR-Reasoning | GRIT-Bench |
|---|---|---|---|
| 30/30 | 5 | 23.57 | 75.1 |
| 50/50 | 5 | 25.54 | 77.7 |
| 70/70 | 5 | 24.70 | 76.4 |
| 50/50 | 3 | 25.26 | 77.2 |
| 50/50 | 5 | 25.54 | 77.7 |
| 50/50 | 10 | 24.51 | 76.7 |
Masking Strategy. Table 5 compares masking strategies under the same configuration without attention reward. Inverted masking, which masks well-grounded tokens instead, degrades performance below DAPO, indicating that masking well-grounded tokens actively harms learning. Random masking also slightly degrades performance from DAPO, suggesting that masking tokens without regard to their visual attention patterns provides no benefit. In contrast, GRIT masking achieves substantial gains. The improvement therefore comes from the attention-based selection, not from masking alone.
Effect of Masking Ratio and Head Count. Table 6 examines the effect of masking ratio and the number of Visual Tracker Heads. For masking ratio, 50/50 performs best. For head count, 5 heads yields the best performance, though results are relatively robust across different counts.
7. Conclusion
We defined Correct-but-Visually-Misgrounded Reasoning (CVMR), where VLMs arrive at correct answers despite misperceiving visual information, and showed that it occurs frequently in text-rich reasoning with distinct attention patterns. Building on this, we proposed GRIT, a training framework that incorporates visual grounding into RLVR training through attention-based gradient masking and attention reward. We also constructed GRIT-Bench, a text-rich reasoning benchmark that enables systematic evaluation across text length and reasoning depth. While existing RLVR methods mostly degrade or show marginal improvement over the base model on text-rich reasoning, GRIT achieves considerable improvements.
8. Acknowledgments
This work was supported by the National Research Foundation (NRF) grant funded by the Korea government (MSIT) [RS-2025-00562400] and [RS-2022-NR068754]. The authors acknowledge the Urban Big Data and AI Institute of the University of Seoul supercomputing resources (http://ubai.uos.ac.kr) made available for conducting the research reported in this paper.
References
[1] Ingeol Baek, Hwan Chang, Sunghyun Ryu, and Hwanhee Lee. How do large vision-language models see text in image? unveiling the distinctive role of ocr heads. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 20452–20464, 2025. 4
[2] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025. 6, 13
[3] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhao-hai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, and Junyang Lin. Qwen2.5-vl technical report, 2025. 3, 6
[4] Hardy Chen, Haoqin Tu, Fali Wang, Hui Liu, Xianfeng Tang, Xinya Du, Yuyin Zhou, and Cihang Xie. Sft or rl? an early investigation into training r1-like reasoning large vision-language models. arXiv preprint arXiv:2504.11468, 2025. 1, 3, 6
[5] Lin Chen, Jinsong Li, Xiaoyi Dong, Pan Zhang, Yuhang Zang, Zehui Chen, Haodong Duan, Jiaqi Wang, Yu Qiao, Dahua Lin, et al. Are we on the right way for evaluating large vision-language models? Advances in Neural Information Processing Systems, 37:27056–27087, 2024. 6
[6] Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan R Routledge, et al. Finqa: A dataset of numerical reasoning over financial data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3697–3711, 2021. 6, 12
[7] Zhiyu Chen, Shiyang Li, Charese Smiley, Zhiqiang Ma, Sameena Shah, and William Yang Wang. Convfinqa: Exploring the chain of numerical reasoning in conversational finance question answering. In Proceedings of the 2022 conference on empirical methods in natural language processing, pages 6279–6292, 2022. 12
[8] Zhoujun Cheng, Haoyu Dong, Zhiruo Wang, Ran Jia, Jiaqi Guo, Yan Gao, Shi Han, Jian-Guang Lou, and Dongmei Zhang. Hitab: A hierarchical table dataset for question answering and natural language generation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1094–1110, 2022. 12
[9] Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. Drop: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2368–2378, 2019. 6, 12
[10] Haodong Duan, Junming Yang, Yuxuan Qiao, Xinyu Fang, Lin Chen, Yuan Liu, Xiaoyi Dong, Yuhang Zang, Pan Zhang, Jiaqi Wang, et al. Vlmevalkit: An open-source toolkit for evaluating large multi-modality models. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 11198–11201, 2024. 12
[11] Tianrui Guan, Fuxiao Liu, Xiyang Wu, Ruiqi Xian, Zongxia Li, Xiaoyu Liu, Xijun Wang, Lichang Chen, Furong Huang, Yaser Yacoob, et al. Hallusionbench: an advanced diagnostic suite for entangled language hallucination and visual illusion in large vision-language models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 14375–14385, 2024. 6
[12] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025. 1, 2
[13] Mingxin Huang, Yongxin Shi, Dezhi Peng, Songxuan Lai, Zecheng Xie, and Lianwen Jin. Ocr-reasoning benchmark: Unveiling the true capabilities of mlms in complex text-rich image reasoning. arXiv preprint arXiv:2505.17163, 2025. 1, 3, 6
[14] Wenxuan Huang, Bohan Jia, Zijie Zhai, Shaosheng Cao, Zheyu Ye, Fei Zhao, Zhe Xu, Xu Tang, Yao Hu, and Shaohui Lin. Vision-r1: Incentivizing reasoning capability in multimodal large language models. arXiv preprint arXiv:2503.06749, 2025. 1, 2, 6, 8
[15] Seil Kang, Jinyeong Kim, Junhyeok Kim, and Seong Jae Hwang. Your large vision-language model only needs a few attention heads for visual grounding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 9339–9350, 2025. 4
[16] Zongxia Li, Wenhao Yu, Chengsong Huang, Rui Liu, Zhenwen Liang, Fuxiao Liu, Jingxi Che, Dian Yu, Jordan Boyd-Graber, Haitao Mi, et al. Self-rewarding vision-language model via reasoning decomposition. arXiv preprint arXiv:2508.19652, 2025. 1, 3, 6
[17] Hanchao Liu, Wenyuan Xue, Yifei Chen, Dapeng Chen, Xiu-tian Zhao, Ke Wang, Liping Hou, Rongjun Li, and Wei Peng. A survey on hallucination in large vision-language models. arXiv preprint arXiv:2402.00253, 2024. 1
[18] Pan Lu, Swaroop Mishra, Tanglin Xia, Liang Qiu, Kai-Wei Chang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and Ashwin Kalyan. Learn to explain: Multimodal reasoning via thought chains for science question answering. Advances in neural information processing systems, 35:2507–2521, 2022. 3, 4
[19] Ahmed Masry, Xuan Long Do, Jia Qing Tan, Shafiq Joty, and Enamul Hoque. Chartqa: A benchmark for question answer-ing about charts with visual and logical reasoning. In Findings of the association for computational linguistics: ACL 2022, pages 2263–2279, 2022. 1, 3
[20] Ahmed Masry, Mohammed Saidul Islam, Mahir Ahmed, Aayush Bajaj, Firoz Kabir, Aaryaman Kartha, Md Tahmid Rahman Laskar, Mizanur Rahman, Shadikur Rahman, Mehrad Shahmohammadi, et al. Chartqapro: A more diverse and challenging benchmark for chart question answering. In Findings of the Association for Computational Linguistics: ACL 2025, pages 19123–19151, 2025. 3, 6
[21] Minesh Mathew, Dimosthenis Karatzas, and CV Jawahar. Docvqa: A dataset for vqa on document images. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 2200–2209, 2021. 1, 3, 4
[22] Fanqing Meng, Lingxiao Du, Zongkai Liu, Zhixiang Zhou, Quanfeng Lu, Daocheng Fu, Tiancheng Han, Botian Shi, Wenhai Wang, Junjun He, et al. Mm-eureka: Exploring the frontiers of multimodal reasoning with rule-based reinforcement learning. arXiv preprint arXiv:2503.07365, 2025. 1, 3, 6
[23] Panupong Pasupat and Percy Liang. Compositional semantic parsing on semi-structured tables. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1470–1480, 2015. 6, 12
[24] Yi Peng, Peiyu Wang, Xiaokun Wang, Yichen Wei, Jiangbo Pei, Weijie Qiu, Ai Jian, Yunzhuo Hao, Jiachun Pan, Tianyidan Xie, et al. Skywork r1v: Pioneering multimodal reasoning with chain-of-thought. arXiv preprint arXiv:2504.05599, 2025. 1
[25] Dustin Schwenk, Apoorv Khandelwal, Christopher Clark, Kenneth Marino, and Roozbeh Mottaghi. A-okvqa: A benchmark for visual question answering using world knowledge. In European conference on computer vision, pages 146–162. Springer, 2022. 3, 4
[26] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. 1, 2, 4
[27] Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8317–8326, 2019. 1, 3
[28] Aaditya Singh, Adam Fry, Adam Perelman, Adam Tart, Adi Ganesh, Ahmed El-Kishky, Aidan McLaughlin, Aiden Low, AJ Ostrow, Akhila Ananthram, et al. Openai gpt-5 system card. arXiv preprint arXiv:2601.03267, 2025. 3
[29] Kimi Team, Angang Du, Bofei Gao, Bowei Xing, Changjiu Jiang, Cheng Chen, Cheng Li, Chenjun Xiao, Chenzhuang Du, Chonghua Liao, et al. Kimi k1. 5: Scaling reinforcement learning with llms. arXiv preprint arXiv:2501.12599, 2025. 1, 2
[30] Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned.
In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 5797–5808, 2019. 4
[31] Rohan Wadhawan, Hritik Bansal, Kai-Wei Chang, and Nanyun Peng. Contextual: Evaluating context-sensitive text-rich visual reasoning in large multimodal models. arXiv preprint arXiv:2401.13311, 2024. 1
[32] Haozhe Wang, Chao Qu, Zuming Huang, Wei Chu, Fangzhen Lin, and Wenhu Chen. Vl-rethinker: Incentivizing self-reflection of vision-language models with reinforcement learning. arXiv preprint arXiv:2504.08837, 2025. 1, 3, 6, 12
[33] Zirui Wang, Mengzhou Xia, Luxi He, Howard Chen, Yitao Liu, Richard Zhu, Kaiqu Liang, Xindi Wu, Haotian Liu, Sadhika Malladi, et al. Charxiv: Charting gaps in realistic chart understanding in multimodal llms. Advances in Neural Information Processing Systems, 37:113569–113697, 2024. 1, 3, 6
[34] xAI. Realworldqa. https://huggingface.co/datasets/xai-org/RealworldQA, 2024. 3, 4
[35] Yi Yang, Xiaoxuan He, Hongkun Pan, Xiyan Jiang, Yan Deng, Xingtao Yang, Haoyu Lu, Dacheng Yin, Fengyun Rao, Minfeng Zhu, et al. R1-onevision: Advancing generalized multimodal reasoning through cross-modal formalization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2376–2385, 2025. 1
[36] Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tianiant Fan, Gaohong Liu, Lingjun Liu, et al. Dapo: An open-source llm reinforcement learning system at scale. Advances in Neural Information Processing Systems, 38:113222–113244, 2026. 1, 4, 12
[37] Wenwen Yu, Zhibo Yang, Yuliang Liu, and Xiang Bai. Docthinker: Explainable multimodal large language models with rule-based reinforcement learning for document understanding. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 837–847, 2025. 1
[38] Yufei Zhan, Yousong Zhu, Shurong Zheng, Hongyin Zhao, Fan Yang, Ming Tang, and Jinqiao Wang. Vision-r1: Evolving human-free alignment in large vision-language models via vision-guided reinforcement learning. arXiv preprint arXiv:2503.18013, 2025. 3, 6
[39] Yilun Zhao, Yunxiang Li, Chenying Li, and Rui Zhang. Multihiertt: Numerical reasoning over multi hierarchical tabular and textual data. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6588–6600, 2022. 6, 12
[40] Ge Zheng, Jiaye Qian, Jiajin Tang, and Sibei Yang. Why lvlms are more prone to hallucinations in longer responses: The role of context. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4101–4113, 2025. 4
[41] Zifan Zheng, Yezhaohui Wang, Yuxin Huang, Shichao Song, Mingchuan Yang, Bo Tang, Feiyu Xiong, and Zhiyu Li. Attention heads of large language models: A survey. arXiv preprint arXiv:2409.03752, 2024. 4
[42] Fengbin Zhu, Wenqiang Lei, Youcheng Huang, Chao Wang, Shuo Zhang, Jiancheng Lv, Fuli Feng, and Tat-Seng Chua. Tat-qa: A question answering benchmark on a hybrid of tabular and textual content in finance. In Proceedings of the
59th annual meeting of the Association for Computational Linguistics and the 11th international joint conference on natural language processing (volume 1: long papers), pages 3277–3287, 2021. 6, 12
A. Implementation Details
Training. We use AdamW optimizer with a learning rate of , cosine learning rate schedule without warmup, and weight decay of . Training is conducted in bf16 mixed precision with full fine-tuning. We train on the ViRL 39K dataset [32] for 2 epochs with an effective batch size of 128 prompts per update. GRPO and DAPO baselines are trained under the same configuration. Benchmark evaluation is conducted using VLMEvalKit [10].
GRPO Configuration. We sample rollouts per prompt. We remove the KL penalty, apply asymmetric clipping (, ) [36], and adopt token-level loss normalization. Rollouts are generated using vLLM with temperature 1.0 and top- 0.99.
GRIT Configuration. For gradient masking, tokens in the bottom 50% of visual attention mass and top 50% of visual attention entropy within each response are masked. Answer format tags (<answer>, <think>, mathematical operators (+ - = * /), and punctuation ( , , ( ) '' ) are designated as protected tokens and always retain their gradients. For the final reward, correctness, format, and attention rewards are weighted equally ( each).
Prompt Template. Each training sample is formatted by appending the following instruction to the question: “Solve the problem through step-by-step reasoning. Put your reasoning inside <think>... </think> tags, then your final answer inside <answer>... </answer> tags.”
B. Visual Tracker Heads
For Qwen2.5-VL-7B, which has 784 attention heads (28 layers × 28 heads per layer), we first retain the top 50 heads by mean visual attention mass, then rank them by token-conditioned spatial diversity (Equation 4) and select the top 5. The selected Visual Tracker Heads are located at (layer, head): (14, 0), (22, 4), (8, 27), (26, 25), and (19, 20), distributed across layers 8, 14, 19, 22, and 26. Figures 10, 11, and 12 visualize the attention patterns of these heads, showing that attention shifts to relevant yet different image regions depending on which token is being generated.
C. Efficient Attention Weight Extraction
GRIT requires attention weights only during training. Token-level masking itself is a negligible Boolean operation on the policy loss; the measured overhead comes from materializing attention weights, which prevents the selected layers from using the default FlashAttention-style implementation. A naive implementation extracts attention weights from every layer. However, the five Visual Tracker
Table 7. Wall-clock training cost on Qwen2.5-VL-7B using three H200 GPUs. All settings use the same training configuration, and relative cost is normalized by GRPO.
| Setting | Time/step | Total wall-clock | Relative |
|---|---|---|---|
| GRPO (no attention extraction) | 650 s | 110.1 h | 1.00× |
| GRIT (all-layer extraction) | 1,638 s | 277.6 h | 2.52× |
| GRIT (selective extraction, adopted) | 838 s | 142.1 h | 1.29× |
Heads used by GRIT are distributed across only five of the 28 layers in Qwen2.5-VL-7B. We therefore extract attention weights only from these five layers and retain the default efficient attention implementation in all remaining layers.
Table 7 reports wall-clock measurements under the same Qwen2.5-VL-7B training configuration using three H200 GPUs with 141 GB of memory each. Selective extraction reduces the relative training cost from for naive all-layer extraction to . This is a one-time training cost: the trained model has no architectural changes and incurs no additional inference-time computation.
Further reductions may be possible with kernels that return attention weights only for a small set of requested heads without materializing full attention maps.
D. GRIT-Bench Construction Details
GRIT-Bench is constructed from seven publicly available text-based QA datasets. Table 8 shows the number of samples from each source dataset. Source texts are rendered into images using randomized table and document styling, and key reasoning steps are extracted by GPT-5 from the source text, followed by human verification.
Table 8. Source datasets and sample counts for GRIT-Bench.
| Dataset | Samples |
|---|---|
| ConvFinQA [7] | 476 |
| WTQ [23] | 460 |
| DROP [9] | 450 |
| TAT-QA [42] | 428 |
| HiTab [8] | 417 |
| FinQA [6] | 349 |
| MultiHiertt [39] | 275 |
| Total | 2,855 |
During evaluation, each model receives the rendered image along with the question and the following instruction: “Solve the problem through step-by-step reasoning. Put your reasoning inside <think>... </think> tags, then your final answer inside <answer>... </answer> tags.”
For Reasoning Fidelity scoring, GPT-5 mini receives the original source text (not the image), the question, the ground-truth answer, the key reasoning steps, and the model's response. The scoring prompt is as follows:
For each key reasoning step listed above:
- Did the model attempt this step in its chain-of-thought? (yes/no)
- If attempted, are the facts/numbers cited consistent with the source text? (yes/no) — "faithful" means the data the model uses matches the source text. If the model uses wrong numbers or cites non-existent data, it is NOT faithful.
Also judge: Is the model's final answer correct?
Additionally, count how many claims in the model's response contradict or fabricate facts not present in the source text, EXCLUDING the key steps already evaluated above. These are "ungrounded claims".
Figures 6, 7, 8, and 9 show examples from GRIT-Bench, each with the rendered image, question, key reasoning steps, and answer.
E. Additional CVMR Examples
Figures 10, 11, and 12 present additional CVMR examples with per-token attention maps from the Visual Tracker Heads. In each example, the model arrives at the correct answer despite misreading parts of the visual information. The attention maps show that normal tokens (green) tend to focus on specific image regions relevant to the token being generated, while CVMR tokens (red) often exhibit more diffuse attention. We note that some normal tokens also display diffuse attention patterns; this is expected, as not every token in a response directly references visual content.
F. Discussion and Future Work
Approximate token filtering. GRIT uses visual attention mass and entropy as a lightweight proxy for token-level grounding. The resulting mask is conservative: selected tokens are excluded from the current policy update rather than optimized in the opposite direction. Tables 5 and 6 show that the gains depend on attention-based token selection and remain stable across different masking thresholds and numbers of Visual Tracker Heads. Nevertheless, attention statistics do not perfectly determine whether an individual token is visually grounded. Future work could replace the fixed percentile rule with a calibrated or learned grounding-confidence estimator.
Training efficiency. The additional training cost arises from materializing attention weights, rather than from applying the token mask itself. By extracting attention only from the five layers containing Visual Tracker Heads, GRIT reduces the relative wall-clock cost from 2.52× for all-layer
Table 9. Results on Qwen3-VL-4B-Instruct. Values in parentheses denote changes from the base model. Best results are in bold.
| Model | OCR-Reasoning | GRIT-Bench | |
|---|---|---|---|
| Acc. | RF | ||
| Qwen3-VL-4B-Instruct (base) | 32.27 | 71.1 | 80.3 |
| GRPO-4B | 31.99 (-0.28) | 69.4 (-1.7) | 78.1 (-2.2) |
| DAPO-4B | 32.09 (-0.18) | 70.9 (-0.2) | 78.3 (-2.0) |
| GRIT-4B (Ours) | 36.01 (+3.74) | 77.5 (+6.4) | 83.9 (+3.6) |
extraction to 1.29×, while preserving the original model architecture and inference cost. More selective attention kernels could further reduce this overhead.
Scope of GRIT-Bench. GRIT-Bench uses rendered inputs to preserve exact source-image alignment, enabling source-aligned RF evaluation and controlled analysis by text length and reasoning depth. This controlled setting does not capture the full variability of real-world layouts, typography, and capture noise. We therefore use GRIT-Bench together with independently constructed text-rich benchmarks, including OCR-Reasoning, ChartQA-PRO, and CharXiv. Future work could extend RF-style evaluation to real documents with verified source text and step-level references.
G. Transfer to Qwen3-VL-4B
To evaluate transfer across backbones, we apply GRIT to Qwen3-VL-4B-Instruct [2] using the same training configuration as in the main experiments. Qwen3-VL departs from Qwen2.5-VL in its core multimodal design: it pairs a different vision encoder with the newer Qwen3 language backbone, injects multi-level visual features into multiple LLM layers via DeepStack, and replaces the axis-partitioned M-RoPE with an interleaved variant [2]. Visual Tracker Heads are identified with the same automatic two-stage procedure as in Section 4.2, which requires only forward passes on 1,000 samples, and all other hyperparameters are kept unchanged. Table 9 reports the results; deltas are measured relative to the Qwen3-VL-4B-Instruct base model.
GRIT improves OCR-Reasoning, GRIT-Bench Accuracy, and RF, whereas GRPO and DAPO do not improve over the base model in this setting. These results indicate that GRIT's benefit is not tied to a specific architecture: the same automatic procedure, with unchanged hyperparameters, transfers across two architecturally distinct VLM generations.
Question: which year saw the greatest percentage of asian individuals?
| By race | White | Black | AIAN* | Asian | NHPI* |
|---|---|---|---|---|---|
| 2000 (total population) | 75.43% | 4.46% | 19.06% | 5.24% | 0.88% |
| 2000 (Hispanic only) | 3.42% | 0.33% | 0.45% | 0.16% | 0.06% |
| 2005 (total population) | 74.71% | 4.72% | 18.77% | 5.90% | 0.88% |
| 2005 (Hispanic only) | 4.32% | 0.38% | 0.48% | 0.19% | 0.05% |
| Growth 2000-05 (total population) | 4.85% | 12.03% | 4.27% | 19.23% | 5.35% |
| Growth 2000-05 (non-Hispanic only) | 3.49% | 11.30% | 4.02% | 18.96% | 5.86% |
| Growth 2000-05 (Hispanic only) | 33.56% | 21.02% | 14.52% | 27.89% | -1.95% |
Reasoning Steps:
-
Locate the Asian percentage for 2000 (total population): 5.24%.
-
Locate the Asian percentage for 2005 (total population): 5.90%.
-
Compare the two percentages to determine which is greater (5.90% > 5.24%), identifying 2005 as the greatest.
Answer: 2005
Figure 6. GRIT-Bench example with rendered image, question, key reasoning steps, and answer.
The following table sets forth the aggregate fees by categories specified below in connection with certain professional services rendered by Ernst & Young, our principal external auditors, for the years indicated. (1) Audit fees consist of fees associated with the annual audit, review of our quarterly financial statements, statutory audits and internal control review. They also include fees billed for those services that are normally provided by the independent accountants in connection with statutory and regulatory filings. (2) Audit related fees consist of fees billed for assurance and services related to the performance of the audit or review of our financial statements but not described in footnote (1) above. These services include certification of our Singapore Branch to Singapore authorities and application for corporation registration. (3) Tax Fees include fees billed for professional services rendered by Ernst & Young, primarily in connection with our tax compliance activities. All audit and non-audit services performed by Ernst & Young were pre-approved by our audit committee. In certain circumstances, the audit committee delegates to one designated member to pre-approve such audit and non-audit services. Pre-approval by a designated member should be reported to the audit committee at its upcoming meeting.
| Years ended December 31, | |||
|---|---|---|---|
| 2018 | 2019 | ||
| NT$ | NT$ | US$ | |
| (in thousands) | |||
| Audit Fees (1) | 52,794 | 62,040 | 2,074 |
| Audit-related Fees (2) | 1,283 | 1,095 | 37 |
| Tax Fees (3) | 4,304 | 3,943 | 132 |
| Total | 58,381 | 67,078 | 2,243 |
Question: What is the percentage increase / (decrease) in Tax fees from 2018 to 2019?
Reasoning Steps:
-
Locate 2018 Tax Fees: 4,304 (NT$ thousands)
-
Locate 2019 Tax Fees: 3,943 (NT$ thousands)
-
Compute change: 3,943 - 4,304 = -361
-
Compute rate of change: -361 / 4,304 = -0.0839
-
Convert to percentage: -0.0839 * 100 = -8.39%
Answer: -8.39
Figure 7. GRIT-Bench example with rendered image, question, key reasoning steps, and answer.
Question: what is the percentage of new mothers took parental leave, according to the roe-based definition in 2012?
| 1998 | 2000 | 2002 | 2004 | 2006 | 2008 | 2010 | 2012 | |
|---|---|---|---|---|---|---|---|---|
| percent | ||||||||
| mothers | ||||||||
| with pre-birth-year, birth-year, or post-birth-year roe; and received ei in the birth year | 33.3 | 34.4 | 38.9 | 38.7 | 40.4 | 39.8 | 39.8 | 40.6 |
| with pre-birth-year, birth-year, or post-birth-year roe; and received ei after the child's birth year | 2.1 | 2.3 | 2.6 | 2.8 | 2.9 | 3.0 | 2.8 | 2.8 |
| no roe for parental leave, received ei, temporary leave | 5.1 | 5.6 | 4.3 | 5.3 | 5.6 | 6.6 | 6.4 | 6.5 |
| no roe for parental leave, received ei, permanently quit | 1.1 | 1.3 | 1.0 | 1.0 | 1.0 | 1.2 | 0.9 | 0.9 |
| no roe for parental leave, received ei, other permanent leave | 2.3 | 2.4 | 2.3 | 2.4 | 2.4 | 2.5 | 2.4 | 2.4 |
| no roe at all, received ei | 8.4 | 7.9 | 10.1 | 9.9 | 11.1 | 11.1 | 11.4 | 10.5 |
| total | 52.1 | 53.8 | 59.1 | 60.1 | 63.5 | 64.2 | 63.7 | 63.8 |
| fathers | ||||||||
| with pre-birth-year, birth-year, or post-birth-year roe; and received ei in the birth year | 0.9 | 1.4 | 4.7 | 5.3 | 5.1 | 4.1 | 3.0 | 2.6 |
| with pre-birth-year, birth-year, or post-birth-year roe; and received ei after the child's birth year | 0.4 | 0.8 | 2.2 | 2.7 | 2.0 | 1.3 | 0.9 | 0.8 |
| no roe for parental leave, received ei, temporary leave | 9.1 | 7.9 | 7.7 | 7.6 | 13.1 | 16.1 | 18.2 | 18.4 |
| no roe for parental leave, received ei, permanently quit | 1.1 | 1.1 | 1.1 | 1.1 | 1.0 | 1.1 | 1.1 | 0.9 |
| no roe for parental leave, received ei, other permanent leave | 2.9 | 2.6 | 2.9 | 2.4 | 2.1 | 2.3 | 2.6 | 2.3 |
| no roe at all, received ei | 3.6 | 2.8 | 3.4 | 2.9 | 3.3 | 3.0 | 4.5 | 3.1 |
| total | 17.9 | 16.7 | 22.1 | 22.0 | 26.6 | 27.8 | 30.4 | 28.0 |
Reasoning Steps:
-
Map 'roe-based definition' to mothers with ROE who received EI in the birth year or after the child's birth year
-
Locate 2012 percentage for 'with ROE; received EI in the birth year' for mothers: 40.6
-
Locate 2012 percentage for 'with ROE; received EI after the child's birth year' for mothers: 2.8
-
Add the two percentages:
Answer: 43.4
Figure 8. GRIT-Bench example with rendered image, question, key reasoning steps, and answer.
Question: What is the growing rate of distribution fees in table 1 in the year with the most Other revenues in table 1?
| (Square feet in thousands) | United States | Other Countries | Total |
|---|---|---|---|
| Owned | 3,964 | 1,652 | 5,616 |
| Leased | 845 | 1,153 | 1,998 |
| Total | 4,809 | 2,805 | 7,614 |
| December 31, | ||
|---|---|---|
| 2012 | 2011 | |
| Senior secured credit agreement: | ||
| Term loans payable | $420,625 | $240,625 |
| Revolving credit facility | 553,964 | 660,730 |
| Receivables securitization facility | 80,000 | — |
| Notes payable through October 2018 at weighted average interest rates of 1.7% and 2.0%, respectively | 42,398 | 38,338 |
| Other long-term debt at weighted average interest rates of 3.3% and 3.2%, respectively | 21,491 | 16,383 |
| 1,118,478 | 956,076 | |
| Less current maturities | -71,716 | -29,524 |
| $1,046,762 | $006,552 | |
| Years Ended December 31, | ||||
|---|---|---|---|---|
| 2012 | 2011 | Change | ||
| (in millions) | ||||
| Revenues | ||||
| Management and financial advice fees | $648 | $622 | $26 | 4% |
| Distribution fees | 317 | 312 | 5 | 2 |
| Net investment income | 1,132 | 1,279 | -147 | -11 |
| Premiums | 118 | 161 | -43 | -27 |
| Other revenues | 309 | 256 | 53 | 21 |
| Total revenues | 2,524 | 2,630 | -106 | -4 |
| Banking and deposit interest expense | — | — | — | — |
| Total net revenues | 2,524 | 2,630 | -106 | -4 |
| Expenses | ||||
| Distribution expenses | 395 | 400 | -5 | -1 |
| Interest credited to fixed accounts | 688 | 714 | -26 | -4 |
| Benefits, claims, losses and settlement expenses | 419 | 405 | 14 | 3 |
| Amortization of deferred acquisition costs | 229 | 264 | -35 | -13 |
| Interest and debt expense | 2 | 1 | 1 | NM |
| General and administrative expense | 224 | 221 | 3 | 1 |
| Total expenses | 1,957 | 2,005 | -48 | -2 |
| Operating earnings | $567 | $625 | $58 | -9% |
Reasoning Steps:
-
Locate 'Other revenues' values for each year in the revenues table
-
Compare these values to identify the year with the highest 'Other revenues' (2012)
-
Locate 'Distribution fees' for 2012 and the prior year (2011)
-
Compute growth rate as
Answer: 0.01603
Figure 9. GRIT-Bench example with rendered image, question, key reasoning steps, and answer.
Question: In which month does the orange bar exceed the blue bar by the largest amount?
Gross GST Collection Apr'19-Nov'19(Rs. in crore)

Answer:
<think>The orange bar represent the 2019-20 fiscal year, while the blue bars represent the 2018-19 fiscal year. We need to find the month where the difference between the orange and blue bars is the largest.
-
April: 113865 - 103459 = 10406
-
May: 100289 - 94016 = 6273
-
June: 90905 - 85010 = 1353
-
July: 102083 - 96483 = 5604
-
August: 98202 - 93960 = 4242
-
September: 91916 - 94442 = -2526 (negative, so not applicable)
-
October: 95380 - 100710 = -5330 (negative, so not applicable)
-
November: 103492 - 97637 = 5855
The largest positive difference is in April with 10406.
<think> <answer>April
<answer>orange
2019-20 fiscal year

orange
2019-20 fiscal year

blue month
difference between

orange

blue bars

May

96063

95610

2000

applicable

95380

negative

difference

April

Figure 10. Visual Tracker Head attention maps on a CVMR example. Each heatmap corresponds to the highlighted token. Red highlights indicate CVMR tokens; green highlights indicate normal tokens.
Question: Around which year, the trend reaches its second peak?

Source: ABS, SEER, Dept. of Jobs and Small Business, ANZ Research
Answer:
<think>The trend shows two peaks. The first peak is around 2008, and the second peak is around 2011. The trend line reaches its second peak at approximately 100 job ads per week.
<think> <answer>2011
<answer>The

two
around
2011

peak
record
2011
record
show

peak
2011
2011
2011
Figure 11. Visual Tracker Head attention maps on a CVMR example. Each heatmap corresponds to the highlighted token. Red highlights indicate CVMR tokens; green highlights indicate normal tokens.
Question: Who is at the top hierarchically?

Answer:
<think>The Head shows a hierarchical position with "Head" at the top, followed by "Administrator," "Field Director," "Village Administrator," and "Data Collection Supervisors." This "Head" is connected to all other roles, indicating it is the highest position.
<think> <answer>Head
<answer>
Head
follows
Village Administrator
The

Head
connected

Head
other

Figure 12. Visual Tracker Head attention maps on a CVMR example. Each heatmap corresponds to the highlighted token. Red highlights indicate CVMR tokens; green highlights indicate normal tokens.