Provenance Checking for Numbers in Chart Reasoning

When a vision-language model answers a question about a chart, it usually writes a short chain of reasoning such as "the 2019 bar is 42, the 2020 bar is 57, so the increase is 15." Every number in that chain came from one of three places. It was read off the chart, computed from numbers already read, or invented. The third kind is the hallucination that matters most for chart question answering, and we can often detect it without asking another language model's opinion. We extract the chart's values into a table and check whether each number or label in the reasoning can be traced to a table cell, or to a simple calculation over numbers already traced. The trace is done at the level of characters, so that "1.2k", "1,200", and a slightly misread "1,2OO" all still match. The check does not need a reference answer, and it does not use a judge model that might prefer its own family's writing.

We propose to build this checker and test two claims. First, as an evaluation metric, it identifies hallucinated spans in chart reasoning chains about as well as human annotators do, and better than a model acting as judge, especially when the judge and the generator come from the same model family. Second, as a selection and abstention signal at inference time, it reduces the "helpfulness trap," where models invent data for questions about values that do not exist in the chart, and it does this without lowering accuracy on ordinary chart questions.

Why this gap, and what already exists

Three strands of evidence motivate the work. MIRAGE builds a benchmark that separates reasoning hallucinations from perception failures. It finds that correcting only the reasoning chain recovers the right answer about 70% of the time. However, its hallucination score (LHS) is computed by a language model acting as judge. LLMs as Narcissistic Evaluators tested 20 model-based judges and found that they systematically inflate scores for outputs from their own model family, with the effect strongest when no reference is available. MIRAGE's reported gains, such as a 15.4% drop in logical hallucinations for Logos-7B, therefore rest on exactly the kind of judge that paper warns against. The alternative, overlap metrics, is worse for this purpose. Swapping one number or entity preserves nearly all n-grams while flipping the truth value (Deep Learning Approaches to Text Production). Evaluation Metrics in the Era of GPT-4 shows that ROUGE ranked T0pp highest (28.82) while humans preferred ChatGPT.

On the hallucination side, ChartHal tested chart models against irrelevant, nonexistent, and contradictory questions. The best model, Qwen2.5-VL-72B, scores only 54.24% overall. The reasoning-focused o4-mini recognizes questions about nonexistent chart content only 14.53% of the time and writes longer justifications for fabricated values. Plot Twist shows that models misread even elementary chart details. Collective accuracy on Chart101, meaning all elementary questions about one chart answered correctly, often falls below 25%. Both papers only diagnose the problem; neither offers a mechanism to catch invented values.

The method comes from an older text-generation result. Char2char Generation with Reranking for the E2E NLG Challenge generated restaurant descriptions character by character from structured slots. It suppressed dropped and invented attributes with a reverse model that reconstructs the slots from the generated text and reranks candidate outputs accordingly. The reranked outputs were more faithful even though they scored lower on BLEU. We carry this reverse-mapping idea from restaurant slots to chart tables and arithmetic chains, which that paper never attempted. For the character-level matching we borrow from Context-Sensitive Spelling Correction of Clinical Text via Conditional Independence. Its corruption model, based on edit distance (the number of character insertions, deletions, substitutions, and swaps between two strings), recovers intended strings from noisy ones. In our case the noise comes from chart-to-table extraction errors and formatting variation.

One result constrains the design. Counting the Bugs in ChatGPT's Wugs found that subword tokenization did not explain morphological errors on invented words, and attributed them to a pull toward real words. We read this as a warning against the obvious version of this intersection, which would be to swap in a character-level decoder and hope numeric hallucination disappears. Many current tokenizers already split digits, and nothing in the file shows that tokenization causes chart hallucinations. We therefore use character granularity where it is clearly useful: matching a claimed value to its possible source despite surface variation.

Core Claim

Most chart hallucinations in reasoning chains show up as ungrounded spans. These are numbers or series labels that match no extracted table cell and cannot be derived from previously grounded spans by one or two arithmetic operations. Counting ungrounded spans gives a hallucination metric that needs no reference answer and uses no judge model. It should agree with humans at least as well as a model judge, without self-preference. Choosing among sampled reasoning chains by this count, and abstaining when every chain relies on an ungrounded premise, should raise ChartHal scores on nonexistent and contradictory questions while holding ChartQA accuracy.

Research Program

The checker has three parts. The first is an extractor that turns the chart image into a table. We use a DePlot-style chart-to-table model, as in the pipeline of Synthesize Step-by-Step, together with a second, independent extractor, taking the union of their candidate cells.

The second part is a span tagger. It finds numbers, units, years, and series or legend labels in the reasoning chain. This is mostly rule-based, with a small learned component for labels.

The third part is a provenance search. It walks the chain left to right. Each span is marked as grounded if it matches a table cell, or matches the result of at most two arithmetic operations (sum, difference, ratio, percentage change, mean, maximum, minimum) over spans already marked as grounded. Numeric matching uses the 5% relaxed margin standard on Chart101 and ChartQA. String matching goes through a character-level noisy-channel score: the probability that the claimed string is a formatting variant or extraction corruption of a candidate cell, estimated from edit operations learned on extractor errors over synthetic charts with known tables. A span that matches nothing is marked ungrounded. The chain's score is its number of ungrounded premise spans. We call these ungrounded premises, since a premise the model invented propagates through every later step.

The search is bounded by the depth-two arithmetic limit, which keeps it cheap. That limit is also a stated limitation: legitimate multi-step derivations deeper than two operations will be flagged falsely. We measure how often this happens rather than assume it is rare.

We separate checker errors from extractor errors by running everything twice, once with extracted tables and once with oracle tables. Oracle tables are available on synthetic data (PlotQA, DVQA, and Chart101's synthetic plots) because the data behind each chart is known.

Human annotation provides the ground truth. We sample reasoning chains from four generator families: Qwen2.5-VL, InternVL, LLaVA, and GPT-4o. The questions come from ChartQA-H, Chart101, and ChartHal. Annotators label each numeric or label span as read-correctly, derived-correctly, misread, or fabricated. We target roughly 1,000 chains, with two annotators per chain and adjudication of disagreements.

Baselines

The naive reference point for the metric is final-answer relaxed accuracy, which ignores the reasoning chain entirely. For the inference-time use, the naive reference is greedy decoding with no selection. These show how much hallucination hides behind correct answers and how much any selection method adds.

The strongest competitor on the metric question is a model judge. Following the MIRAGE LHS protocol (MIRAGE), a judge is given the chart and the chain and asked to flag hallucinated spans. We run two judges, one from the GPT-4o family and one from the Qwen family, so that each is sometimes judging its own family's outputs. It is the strongest competitor because Evaluation Metrics in the Era of GPT-4 reports an average Krippendorff α of 0.88 between GPT-4 and human raters on sequence-to-sequence tasks. No agreement number on chart reasoning chains was found on Lacuna. For reference, MIRAGE reports an LHS of 0.6568 for Logos-7B.

Both methods see the same chart images. The judge prompt gets the same tuning budget we spend on checker thresholds, a fixed number of development-set iterations on a held-out 20% of the annotations. We beat the judge if our span-level F1 for fabricated spans is at least equal overall, and higher on the judge's own-family cells in the judge-by-generator matrix. That matrix is where narcissism, if present, would appear.

For inference, the strongest existing method is program-of-thought with Python execution, trained as in Synthesize Step-by-Step. It reports 53.9% on ChartQA's human-written split (up from 38.2%) and 72.6% relaxed accuracy overall with MatCha plus its synthetic LAMENDA data. We also run self-consistency, meaning majority voting over the same k sampled chains. Finally, we run reranking by the model judge over the same k samples. Every selection method uses the same base generator, the same k (we test 5 and 10), and the same sampling temperature.

On ChartHal, the reference points are Qwen2.5-VL-72B at 54.24% overall and o4-mini at 14.53% on nonexistent questions. Beating the baselines means a significant gain on ChartHal's nonexistent and contradictory subsets over all three selectors applied to the same base model, with no more than a one-point drop in ChartQA-H relaxed accuracy.

Three ablations isolate the key ingredients. Exact string matching instead of the character channel tests whether character-level tolerance matters. Matching table cells only, without the derivation search, tests whether tracing arithmetic matters. Oracle versus extracted tables tests how much the method depends on extraction quality.

Why not just…?

Why not just use Python execution, which already removes arithmetic errors? Code execution guarantees that the computation is right given its inputs. It does nothing about inputs the model invented. If a model asserts a value for a series that does not exist and passes it to Python, the program runs happily. This is exactly ChartHal's failure mode. The two approaches are complementary, so we also run the checker on the numeric literals inside generated programs. If program-of-thought alone matches our ChartHal gains, the inference-time claim fails. We would then report the checker only as a metric.

Why not just ask a strong model to judge the reasoning? This is the real threat. Given the α of 0.88 reported in Evaluation Metrics in the Era of GPT-4, a GPT-4-class judge may simply match human annotators on charts. Two arguments cut against it: the self-preference evidence in LLMs as Narcissistic Evaluators, and the fact that the judge must itself read the chart, which Plot Twist shows current models do poorly. The judge-by-generator matrix settles the question. If the judge's F1 matches ours and shows no advantage on its own family's outputs, we concede the metric claim. The checker's remaining advantages would then be cost and auditability.

Why not just use self-consistency? Voting helps when errors are random. It fails when a model fabricates the same plausible value in every sample, which the "more thinking, more hallucinating" finding in ChartHal suggests is common. Self-consistency with matched k is a direct baseline. We additionally report how often a majority answer rests on a fabricated premise that all samples share.

Why not just use a character- or digit-level decoder? The Wug results in Counting the Bugs in ChatGPT's Wugs suggest that errors of this kind come from what the model believes, not from how text is cut into tokens. The file gives no evidence that tokenization causes chart hallucination. A fabricated "57" is still fabricated when spelled out digit by digit. We use characters for matching, not generation.

Proposed Experiments

The first decisive check is agreement with humans. We compute span-level precision and recall for fabricated spans against the human labels. This covers the checker with extracted and with oracle tables, both model judges, and ROUGE overlap between the chain and a reference rationale where ChartQA supplies one. We also compute chain-level correlation with human hallucination counts. The prediction is that the checker matches or exceeds the judges overall, beats them on same-family cells, and that ROUGE is near chance.

The second check is the extractor gap. On PlotQA, DVQA, and Chart101's synthetic plots we compare oracle-table and extracted-table performance. This shows how much of the checker's error is inherited from perception, and whether the character channel recovers it.

The third check is inference-time. We run k-sample reranking with abstention on ChartHal, with a separate breakdown for nonexistent and contradictory questions. We report ChartQA-H relaxed accuracy and Chart101 collective accuracy alongside.

The fourth check is a coverage audit. We report the fraction of human-labeled correct derivations that the depth-two search misses, split by MATH-Vision-style reasoning categories where charts overlap with MathVista.

Two outcomes would falsify the proposal: a same-family judge showing no self-preference while matching our F1, or self-consistency matching our ChartHal gains at equal k. Either would redirect the work toward cheap auditing rather than hallucination control.