Vision-language models misread charts in a specific way. They often see the individual marks correctly but fail to turn them into exact numbers they can compute with, and one early misreading then corrupts every later step of the answer. The strongest current fix is "derendering", which means reconstructing the plotting program that could have drawn the chart and then answering the question by running code over that program's data. RECODE does this with a frontier model and reaches 77% on CharXiv-Reasoning. Its loop for refining the reconstruction has a weak judge, though: pixel-level image difference, which the authors concede is fooled by colors, margins and fonts. Small open models also have no training signal that teaches them how to repair a wrong reconstruction, as opposed to producing a right one on the first try.
We propose to generate that signal from charts whose true source code we already know. For such charts, an automatic checker can compare a model's reconstructed program with the true one and describe the mismatch in words, for example "series B is missing," "the y-axis is log-scaled, not linear," or "the third bar is about 40% too high." We record these attempt–critique–fix exchanges as multi-turn repair dialogues. We then train two small models on them: a critic that must produce the same kind of critique from the image alone, without the source code, and a generator that learns to revise its program given a critique. At test time on real charts, which have no source code, the learned critic and the generator run the repair loop by themselves. In short, the checker has privileged knowledge during data synthesis, and that knowledge is distilled into an image-only critic for deployment.
Core Claim
Our claim is that, for small vision-language models, training on verbal repair trajectories whose critiques come from source-code hindsight produces a better chart reader than two alternatives. The first is training on clean final solutions. The second is refining at test time against pixel-difference or self-generated critiques. The advantage should be largest on charts where the first reading is wrong. We also expect the gain to transfer from synthetic charts to real scientific figures. If it does not transfer, the idea fails, and the experiments are built to show that directly.
Several bodies of evidence motivate this claim. MATH-Vision attributes 42.2% of GPT-4V errors to reasoning and 31.9% to recognition, and finds that chain-of-thought sometimes lowers accuracy. CharXiv shows that a misread label in step one turns the rest of the chain into hallucination, and that open models count axis ticks near chance. Plot Twist shows that models lean on chart titles: accuracy falls from 79% into the 30% range when the title is removed or misleading. Together these say the missing skill is building and correcting an exact symbolic reading. A better final-answer policy alone would not supply it.
How This Differs From the Closest Work
Four systems sit closest, and each leaves out a different piece. RECODE runs a test-time derendering loop with a pixel-MSE judge and textual self-refinement. It does no training, and its critic has no access to what the chart actually encodes. We replace that judge with a learned critic trained on structural code differences, and we train the reader itself to repair. ChartSketcher makes a model draw sketch overlays, looks at the rendered result, and trains with tree search and KTO. Its feedback is the model's own visual reflection, and the authors report loops of reflection that make no progress. Our critic is a separate model trained against ground truth, so its feedback cannot simply echo the generator. CoReTab and Synthesize Step-by-Step synthesize code rationales and use execution only as a filter. A failed trace is discarded, so the student never sees a mistake being corrected. We keep exactly the traces they throw away. AMACE runs a generator–replier–evaluator dialogue with natural-language critiques, but in the opposite direction, from table to chart. We borrow its role structure for comprehension.
On the feedback side, two works supply the method. REFINER shows that a small critic trained on perturbed reasoning, emitting error type, position and hint, can improve much larger generators. Feedback-Conditional Policy (FCP) trains a model to generate outputs conditioned on verbal critiques. It matches GRPO on math, at 38.7% versus 38.4%, and its authors list multi-turn, code-execution and multimodal settings as open. FCP also cautions that the approach depends on critique quality. Our source-code checker is exactly the device that makes critique quality controllable.
Adversarial Review adds a constraint. Unstructured multi-agent debate produces false consensus and wastes tokens, and a tightly scoped three-role protocol in which every claim must cite evidence does better. Our critiques therefore must name a concrete program element, such as a series, axis, tick or value. The protocol is fixed at one generator and one critic. We deliberately avoid open-ended self-chat, given the circular degradation PlatoLM reports for single-backbone dialogue.
Research Program
The data come from charts with known source. We render a large pool of Matplotlib and SVG charts from real tables. These include multi-panel figures, log axes, dense scatter plots, and the grid-line and title perturbations from Plot Twist. We add the figure types in VeriSciQA wherever the source can be reconstructed.
We then generate trajectories on-policy. The base model, Qwen2.5-VL-7B (the backbone used by CoReTab), derenders each chart. A deterministic checker parses the candidate and the true program into a canonical form covering series, values, axis scales, tick sets, legend mapping and panel layout. It aligns the two and verbalizes the largest discrepancies as evidence-cited critiques, using a fixed schema in the spirit of REFINER. The generator revises, and the loop continues until the reconstruction matches within tolerance or reaches a turn cap. Each chart then receives several questions answered by executing code over the final program. This reuses the reconstruction in the multi-turn way that Review-Instruct uses depth-evolution of follow-up turns. Because the errors come from the student's own attempts, the dialogues contain realistic mistakes rather than the overly cooperative failures that plague self-chat.
Training proceeds in two strands. The critic is fine-tuned to produce the checker's critique given only the image and the candidate program, plus a rendering of the candidate placed next to the original. It is also trained to output "no material discrepancy" when the reconstruction is correct, which guards against over-editing. The generator is trained FCP-style on the turn sequence, learning to emit a revised program conditioned on the image, its previous program and the critique. It is also trained on first-turn attempts, so that it remains usable without any loop. At inference, the two models alternate for up to k turns. To counter the lack of progress seen in ChartSketcher, the loop stops early when the critic reports no discrepancy or when two consecutive revisions leave the canonical program unchanged.
Analysis covers three things. We track critic precision and recall against the checker on held-out synthetic charts. We break critiques down by error type to see which repairs the critic learns and which it hallucinates. We also track whether accuracy keeps rising with turns or levels off after a few, as Yan et al. observed for compiler feedback.
Baselines
The naive reference point is the base Qwen2.5-VL-7B answering directly, with and without step-by-step prompting. Following MATH-Vision, we expect prompting to help inconsistently. No reported result was found on Lacuna for this backbone on CharXiv or ChartBench, so we measure both conditions ourselves.
The strongest existing method is RECODE's loop. Run with a frontier model, it reports 77% accuracy on CharXiv-Reasoning, 93.2% on ChartQA and 94.2% on Geometry3K. A frontier model is not the comparison our question asks about, because we are asking what a small model can be trained to do. We therefore reimplement RECODE's procedure (candidate generation, pixel-MSE selection, textual self-refinement, code querying) on the same 7B backbone, with the same number of candidates, turns and generated tokens as our method. We report the published frontier number alongside as a ceiling. For reference, other reported figures include ChartSketcher-72B at 68.33 on ChartBench and 63.28 on EvoChart-QA, and GPT-4o at 47.1% on CharXiv reasoning against a human score of 80.5%. Beating the matched RECODE reimplementation on CharXiv-Reasoning at equal inference compute is the primary success criterion. Closing a meaningful part of the distance to the frontier RECODE result is the secondary one.
The clean-solution baseline isolates the role of repair. It is a CoReTab-style student trained by supervised fine-tuning on only the final correct programs and answers, built from the same charts, with the same token budget and the same number of epochs. A scalar-reward baseline trains the same student with GRPO on answer correctness plus program-match reward. It receives equal GPU hours and gets a tuning sweep of the same size as ours.
Three ablations isolate the key ingredients. In the first, the learned critic is replaced by pixel MSE. In the second, it is replaced by the generator critiquing itself. In the third, the critic is kept but trained on critiques written by a strong vision-language model that has no access to the source code. The third ablation is the direct test of whether the source-code knowledge matters, or whether any verbal critique would do.
Why not just…?
Why not just run RECODE with a stronger model? At frontier scale this is a real threat, since 77% on CharXiv-Reasoning is close to human. Our proposal does not claim to beat it. It targets settings where a frontier model cannot be called at inference, and it asks whether repair is a trainable skill. We will report the frontier number honestly. If our 7B system does no better than RECODE's procedure on the same 7B backbone, then the learned critic contributes nothing, and we will say so.
Why not just train on clean final solutions, as CoReTab does? This is the simplest competitor, and it may win on charts the model reads correctly the first time. The repair data should help mainly when the first reading is wrong. We will therefore split results by whether the first-turn program was correct, and report the recovery rate: the fraction of wrong first readings fixed within k turns. If clean supervised fine-tuning matches us on both splits with equal tokens, the trajectories add nothing, and the proposal reduces to a data-volume argument.
Why not just use scalar reinforcement learning on answer correctness? FCP's parity with GRPO shows verbal feedback is competitive, but not decisively better, on text math. So we do not assume it wins here. Our argument is about credit assignment. A wrong answer on a multi-panel figure says nothing about which panel was misread, while a critique does. The matched-compute GRPO run settles the question. We will also check whether the two combine, by running GRPO on top of the repair-trained student.
Why not just let a frontier vision-language model write the critiques? Such critiques are cheaper to build than a source-code checker, and the third ablation tests exactly this. CharXiv's tick-counting results suggest that even strong models misperceive the details a critique must name. If those critiques are as accurate as the checker's, the privileged-information step is unnecessary.
Proposed Experiments and Decisive Checks
We evaluate on CharXiv (descriptive, reasoning and unanswerable questions, plus the single-panel versus six-or-more-subplot split, where CharXiv reports drops of 30–50%). We also evaluate on the human-written split of ChartQA, on ChartBench, on EvoChart-QA, and on Chart101 for elementary perception. Robustness is measured on Plot Twist-style perturbations: titles removed, misleading titles, and added grid lines.
The metrics are answer accuracy using each benchmark's own protocol, the recovery rate, and accuracy as a function of turn count and of total tokens. We also measure the over-edit rate, meaning how often a correct reading is changed for the worse. On CharXiv's unanswerable questions, we measure how often the system correctly declines to answer, since an explicit program should expose a missing colorbar rather than hallucinate a value for it.
The decisive check is transfer. We will hand-derender about 300 real CharXiv figures into canonical programs and measure the critic's precision on them. If precision on real figures falls far below its synthetic level, and end-to-end CharXiv accuracy does not beat the matched RECODE reimplementation, then distilling source-code knowledge does not survive the move to real charts, and the claim is refuted. A second decisive check is the recovery-rate gap between the repair-trained student and the clean-supervised-fine-tuning student on first-turn failures. That gap is the measurement the whole proposal rests on.
References
- RECODE: Reasoning Through Code Generation for Visual Question Answering
- Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset
- CharXiv: Charting Gaps in Realistic Chart Understanding in Multimodal LLMs
- Plot Twist: Multimodal Models Don't Comprehend Simple Chart Details
- ChartSketcher: Reasoning with Multimodal Feedback and Reflection for Chart Understanding
- CoReTab: Improving Multimodal Table Understanding with Code-driven Reasoning
- Synthesize Step-by-Step: Tools, Templates and LLMs as Data Generators for Reasoning-Based Chart VQA
- AMACE: Automatic Multi-Agent Chart Evolution for Iteratively Tailored Chart Generation
- REFINER: Reasoning Feedback on Intermediate Representations
- Language Models Can Learn from Verbal Feedback Without Scalar Rewards
- Adversarial Review: Structured Disagreement for Grounded Agentic Code Review
- PlatoLM: Teaching LLMs in Multi-Round Dialogue via a User Simulator
- Review-Instruct: A Review-Driven Multi-Turn Conversations Generation Method for Large Language Models
- CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation