Counterfactual Re-Rendering Rewards for Reading Long Visual Documents

Vision-language models, which answer questions about images, do something odd on long PDFs. Across a 50-page report, most of them do worse when shown the page images than a text-only model does when given crude OCR text of the same pages. The likely reason is that they answer from text priors and never learn to find and read the one table or chart that holds the answer. The usual fixes do not help much here. Humans cannot label evidence across 50 pages. Teacher-generated questions carry the teacher's hallucinations. An automated model judge rewards fluent answers even when they are visually false. We propose to train on self-generated questions whose answers are known by construction, because we render the documents ourselves from editable sources. Each question comes in a pair. We re-render the document with the relevant table cell, chart bar, or figure changed or removed, and the policy earns reward only if its answer changes correctly between the two versions.

The pairing is the point. A model that answers from surrounding text, from memorized patterns, or from a plausible-sounding guess gives the same answer to both versions, so it fails at least one of them and gets no reward. A model that actually localizes the page and reads the pixels passes both. This gives a dense, fully verifiable, teacher-free and judge-free training signal for long multimodal documents. We apply it with reinforcement learning straight from the base model. There is no supervised warm-up and no penalty tying the policy to its starting distribution.

Core Claim

We claim that paired counterfactual rewards, combined with a partial-credit reward for naming the right pages, will make reinforcement learning on long visual documents work. We expect this to hold where outcome-only reinforcement learning stalls and where judge-based rewards teach the wrong habit. We further expect a 7B open model trained this way to stop paying the "vision tax" on chart- and image-evidence questions. The claim is falsifiable in a specific way. If the same questions without the counterfactual pairing produce the same gains, the pairing is not doing the work and the idea reduces to "extend LongRLVR to images."

The work sits on four findings from prior work. MMLONGBENCH-DOC benchmarks models on 135 PDFs averaging 47.5 pages. It found that 12 of 14 vision-language models underperform OCR-fed text models, and it identified page localization as the main bottleneck. MAVIS builds a long-form visual attribution benchmark. It shows "text dominance": GPT-4o's image utilization falls from 58% to 26% when a single text snippet is added. These two papers motivate the problem.

LongRLVR supplies part of the method. It shows that answer-only rewards in long text contexts give vanishing gradients for evidence finding, and it fixes this with a dense reward on cited evidence chunks, raising RULER-QA from 73.17 to 88.90 on Qwen2.5-14B-1M. We borrow its dense grounding reward and move it from text chunks to pages. We also drop its reliance on Qwen3-235B-generated questions, which the file notes transfers teacher bias.

Mitigating Perceptual Judgment Bias supplies the other part. It builds counterfactual responses with one visual attribute perturbed and trains a judge with GRPO to rank them. We take the counterfactual idea but move it from the judge's inputs to the policy's inputs. We perturb the document, not the response, and verify by program rather than by a learned judge.

SFT or RL? motivates skipping supervised warm-up. It shows that supervised training on distilled reasoning traces teaches vision-language models to imitate the surface of reflection, a "golden cage." It also still used a learned reward model for open-ended answers, which we avoid.

Research Program

The data pipeline starts from arXiv LaTeX sources. The file describes arXiv papers as one of the corpora used by Document Reconstruction for text-only jigsaw training. Because we hold the source, every document can be compiled to page images under controlled edits. Three question families are generated by template.

Table questions ask for a specific cell of a table, identified by a paraphrase of its caption. The counterfactual edits that cell in the source and recompiles. Where the body text quotes the same number, the edit touches only the table. A model that copies from prose is therefore wrong on the counterfactual.

Chart questions address the fact that OCR cannot see charts. We replace an existing figure with a bar or line plot rendered from one of the paper's own tables. The question asks for a comparison or extremum. The counterfactual changes one plotted value so that the correct answer flips.

Removal questions target the unanswerable case, which is 20.6% of MMLongBench-Doc. The counterfactual deletes the evidence object, and the correct answer becomes "not answerable."

Documents are rendered at 10 to 40 pages under a length curriculum. The evidence object is placed at controlled page positions. Some questions require combining two objects on different pages, to mirror cross-page questions.

For each question with original document $d$ and edited document $d'$, gold answers $y$ and $y'$, and gold evidence pages $P$, the policy outputs predicted pages $\hat P$ and an answer. The reward is

$$ r = \mathbb{1}[\hat a(d)=y \,\wedge\, \hat a(d')=y'] + \lambda\,\mathrm{F1}(\hat P, P), $$

Here $\hat a(\cdot)$ is the policy's answer on a given rendering, $\mathrm{F1}$ is the page-overlap score in the style of LongRLVR's chunk reward, and $\lambda$ weights localization. The pair is rolled out as two linked prompts within the same GRPO group. Answers are short strings or page indices checked by exact or numeric match, so there is no formatting protocol that would demand a supervised cold start. That demand is what forced Agent0-VL to distill 200k teacher trajectories for its tool-use setting.

Training uses group-relative policy optimization (GRPO), which scores each sampled answer against the others sampled for the same prompt, following GPG. The base model is Qwen2.5-VL-7B. By default there is no KL penalty toward the reference model, following the finding attributed to Hu et al. that removing it aids exploration. We treat that default as a claim to test, not an assumption, because long visual contexts may be less stable than math.

The judge-bias direction enters as a measurement lens, not a component. We quantify how often model judges approve answers that fail the counterfactual check on long documents. This gives evidence for why a judge-based reward would have trained the wrong thing in this regime.

Baselines

The naive reference point is the untrained Qwen2.5-VL-7B base model, prompted to name pages and answer. We found no reported result on Lacuna for Qwen2.5-VL-7B on MMLongBench-Doc, so we will measure it. For scale, the file reports 13.0% F1 for InternVL-Chat-v1.5, 44.9% F1 for GPT-4o, and 66.0% F1 for humans on MMLongBench-Doc (MMLONGBENCH-DOC).

The strongest competitor on the question "should a small model read the images at all?" is the same-size text pipeline. This is Qwen2.5-7B, a long-context text model, fed OCR text of the same documents. It is trained with LongRLVR-style chunk rewards on OCR versions of our generated table questions, with the same number of GRPO steps and rollouts. This is the baseline that embodies the vision tax. Beating it overall and by a clear margin on chart- and image-evidence questions is the result that matters. We do not expect to beat it on pure-text questions and would not count that as the test.

The strongest existing trained method is outcome-only RLVR on the same generated questions and documents, using only the original rendering. We run it with a page-F1 reward added and without one. The version with page F1 is the direct transfer of LongRLVR to images. It is the key ablation because it differs from our method only in the counterfactual pairing. To keep the comparison fair, the baseline receives twice as many distinct questions so that total rollouts and tokens match. Our method must beat it on MMLongBench-Doc chart- and image-evidence F1 and on held-out counterfactual consistency, with non-overlapping seed intervals across three seeds.

A judge-reward baseline replaces the verifiable answer term with scores from an open multimodal judge, on the same data. We use Qwen2.5-VL-7B as the judge. We also use Perception-Judge where available, which reached 85.7% perceptual-error detection versus 69.5% for base Qwen2.5-VL-7B (Mitigating Perceptual Judgment Bias). This mirrors the mixed-reward design of SFT or RL?.

A supervised baseline fine-tunes on teacher-distilled reasoning traces over the same questions and then runs outcome RLVR. It uses matched compute.

A multimodal jigsaw baseline asks the model to restore shuffled page and figure order. It extends Document Reconstruction to page images and tests whether any structural self-supervision suffices.

Finally, a KL ablation reinstates the reference-model penalty in our method.

Why not just…?

Why not just run OCR and a strong text model? This is the most serious threat, and on text- and table-evidence questions it may simply win. The evidence against it as a full answer is structural. OCR discards chart contents, layout, and images, and GPT-4o's 44.9% F1 on MMLongBench-Doc remains far below the 66.0% human level. The experiments settle it by evidence type. If our trained vision model does not beat the matched OCR pipeline on chart- and image-evidence questions, the proposal fails.

Why not just retrieve the right pages and answer with a short-context model? Localization is the bottleneck. Giving Gemini-1.5-Pro only the relevant pages improved it by over 20% (MMLONGBENCH-DOC), so retrieve-then-read is a genuine alternative. We will run a retriever-plus-reader pipeline with the same base model. Our page-F1 reward trains localization end to end, and we also report oracle-page accuracy for every system. That lets us separate "finds the page" from "reads the page." Retrieval does not fix reading once the page is found, which is where the counterfactual term acts. If retrieval plus an untrained reader matches us, the reading gain is illusory.

Why not just use outcome RLVR on the same synthetic questions? LongRLVR's results argue that answer-only rewards stall in long contexts. Adding page F1 addresses that. Nothing in prior work shows, however, that page F1 alone fails to fix text dominance, so this baseline could plausibly match us. The paired-versus-unpaired ablation at matched rollouts is the decisive test of the proposal's key ingredient.

Why not just reward with a debiased multimodal judge? Judges anchor on fluent text. The Silent Judge shows verdict shifts up to +30% from irrelevant cues with 0% acknowledgment, and Local Coherence or Global Validity? finds GPT-4o at 57.8% accuracy on step-level error tagging. Perception-Judge was validated only on short single-image inputs. The judge-reward baseline, together with the judge-audit experiment below, measures this directly on long documents.

Proposed Experiments

The primary evaluation is MMLongBench-Doc F1, broken down by evidence source (text, layout, chart, table, image), by cross-page versus single-page, and by unanswerable questions. We also report the per-system gap between image input and OCR input.

Secondary evaluations cover transfer and regression. For transfer we use the MAVIS text-competition diagnostic, which measures image utilization with and without an added text snippet (MAVIS), and the realistic and image needle-in-a-haystack splits of MileBench. There, GPT-4V scores 99.4% diagnostic and 60.3% realistic, and most open models score zero on the image needle task. To check that single-image reasoning does not regress, we use MathVista and MATH-Vision.

A held-out counterfactual consistency set is built from arXiv papers disjoint from training. It reports the fraction of items where the answer correctly tracks the edit. This is the most direct readout of whether the model looks.

There are three decisive checks.

The first is the paired-versus-unpaired ablation at matched rollouts. The prediction is that pairing improves chart- and image-evidence F1 and consistency, while leaving text-evidence F1 roughly unchanged. Pairing should matter only where text priors mislead.

The second is the matched OCR pipeline comparison on chart- and image-evidence questions. The prediction is that the untrained vision model loses to OCR and the trained one wins.

The third is a judge audit. We collect answers from the outcome-RLVR policy that fail the counterfactual check but are correct on the original rendering, which are exactly the text-shortcut answers. We then measure how often the Qwen2.5-VL-7B judge and Perception-Judge rate them as correct. A high approval rate would show, in the long-document regime, why judge-based rewards cannot supply this signal.

The KL ablation and a length curriculum ablation, training only at 40 pages versus 10 to 40 pages, test whether unconstrained policy optimization stays stable at this context length. A failure there would be reported as a limit on the "zero RL" recipe, not hidden.