Vision-language models, which answer questions about images, can usually read every label and bar in a chart and still get the arithmetic wrong. The same models often do better on hard chart questions than on simple ones, because they lean on titles instead of the data, and they get worse when harmless grid lines are added. Yet the same underlying language model, handed the chart's data as text, reasons quite well. This proposal asks whether that text-side skill can be transferred into the image side during training. The method is to align the model's step-by-step reasoning when it looks at a chart with its reasoning when it reads the program that drew the chart.
The new ingredient comes from an older lesson in language processing: do not throw away the "noise." Text Transformers work better when stopwords, punctuation and formatting are kept, because those tokens anchor attention. We bet the same holds for the text anchor used to teach visual reasoning. The anchor should be the full, unstripped plotting script, including grid lines, tick spacing, axis limits, marker styles and title. A cleaned data table, the usual output of chart "derendering," which means converting a chart back into its data, discards exactly the structure that confuses image models. If the bet is right, a model aligned to the raw program should reason better and also learn to treat visual scaffolding as structure rather than distraction.
Core Claim
Part of the chart reasoning gap is a failure to transfer reasoning from text to images, not a lack of capacity. Step-wise distribution matching against a text anchor can close it on native charts, not only on rendered text. How much it closes, especially under style shifts, depends on whether the anchor preserves the chart's structural context.
Concretely, we predict three things. A model aligned to the raw rendering program will beat one aligned to a derendered table on held-out chart styles. It will lose less accuracy when grid lines are added or titles are made misleading. And it will need no derendering step at inference.
Grounding in Prior Work
The motivating evidence comes from diagnostic work. Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset built competition-math diagram problems and found that 42.2% of GPT-4V errors were reasoning errors made after correct recognition. GeoSQA found models still fail when diagrams are replaced by human-written descriptions. Both point at reasoning rather than eyesight. Plot Twist supplies the failure modes we target directly:
- Accuracy reaches 79% when the chart title contains the answer and falls to roughly 30% otherwise.
- Adding grid lines drops PaLI-3 from 29.5% to 21.3%.
- Collective per-chart accuracy on elementary questions is often below 25%.
That paper only diagnoses these failures. We attempt a training-time fix and use its Chart101 set as the test.
The method comes from Awakening Visual Reasoning. Its CoRe method aligns, at every reasoning step, the next-token distribution of a model reading text rendered as an image with the frozen distribution of the same model reading the raw text. On MATH-500 this lifts visual accuracy from 15.42% to 42.97%. CoRe needs an exact text twin of the image, so it does not apply to native charts. Our observation is that synthetic charts do have an exact text twin: the program that drew them.
MatCha (MatCha) already pretrains models to derender charts into tables or Matplotlib code, reaching 90.7% on PlotQA v2. It uses the code as an output target, not as a reasoning teacher, and it emits no aligned reasoning trace.
The case for preserving the anchor's raw form rests on the context-preservation literature:
- Sharma et al. and Kumar et al. show that stopwords carry context Transformers use.
- Saha et al. show the same for punctuation.
- Classification Done Right for Vision-Language Pre-Training shows that cleaning caption text (dropping stopwords or numbers) hurts learned visual features.
None of these studies reasoning. We test whether the principle carries over to the choice of teaching signal.
Two works constrain the design. BabyVision finds that removing text chain-of-thought (the model writing out its reasoning step by step) raises attention to image tokens 5.28x. Long verbal traces can therefore starve the image. Unleashing Perception-Time Scaling finds the opposite for symbolic measurement tokens, which increase image attention. Our traces are trajectories conditioned on code, mixing numbers and short structural references, so we measure image attention directly rather than assume either outcome.
Positional Preservation Embedding is orthogonal. It preserves layout under token compression, and we run without compression to avoid confounding.
Research Program
We would build a corpus of synthetic charts in which every image comes with its full plotting script, including scatter, bar, line and pie charts. Each underlying dataset is rendered in several styles: Matplotlib defaults, a JavaScript-library look, grid on and off, varied markers, and true, absent or misleading titles. The rendered dataset stays identical across styles.
Questions come in two kinds. Elementary questions ask for axis extremes, ranges and specific points. Multi-step questions involve differences, ratios, trends and conditional comparisons. Both are generated from templates and checked by executing the script, in the spirit of Synthesize Step-by-Step.
The base model is Qwen3-VL-8B-Instruct, matching CoRe. For each training example, a frozen copy of the model reads the script as text plus the question and samples a reasoning trace. We keep traces whose final answer is correct. The image branch then reads the rendered chart plus the question and is trained on the shared trace with the step-wise objective
$$ \mathcal{L} = \sum_{t} \mathrm{KL}\big(\,\mathrm{sg}[p_\theta(\cdot \mid s, q, y_{<t})] \;\|\; p_\theta(\cdot \mid x, q, y_{<t})\big), $$
The symbols are defined as follows:
- $s$ is the anchor text.
- $x$ is the rendered image.
- $q$ is the question.
- $y_{<t}$ is the trace so far.
- $p_\theta$ is the model's next-token distribution.
- $\mathrm{sg}$ stops gradients through the text branch.
As in CoRe, this is followed by an optional outcome-reward reinforcement stage.
The central variable is the anchor $s$. It takes four forms:
- The raw script, untouched.
- A cleaned data table, with title, styling and grid information removed.
- The table plus title, which tests whether the anchor imports the title shortcut.
- The raw script with the title argument replaced by a neutral string.
Before any alignment, we measure the text branch's own accuracy under each anchor. That ceiling tells us whether raw code is a good teacher at all. If the model reasons worse from raw code than from tables, the context-preservation hypothesis already fails at the anchor, and we will report that.
A second, smaller domain checks generality. It uses geometry figures drawn from plotting code, with MATH-Vision as an out-of-distribution transfer test. We do not commit to a predicted gain there.
Baselines
The naive reference point is the unmodified base model, prompted with and without chain-of-thought, on all evaluation sets. It anchors every gain and tells us whether chain-of-thought helps or hurts in this regime.
Several baselines use the same base model, the same synthetic charts, the same question set and a matched number of training tokens and tuning trials. All tuning is done on a held-out style split, never on the test benchmarks.
- Image-only fine-tuning. We fine-tune the image branch on the same text-branch traces with ordinary next-token cross-entropy, with no distribution matching. This isolates whether matching the full distribution matters beyond copying correct traces. It is the closest analogue to the visual-SFT baseline that reached 15.42% on MATH-500 in Awakening Visual Reasoning.
- Outcome-only reinforcement. We run group-relative policy optimization, which rewards only correct final answers, on the image branch for the same number of steps. Awakening Visual Reasoning reports this alone stalls (9.0% on HotpotQA versus 23.0% with CoRe).
- Derender-then-reason pipeline. The image branch is trained to emit the plotting script or table, MatCha-style, and the text branch then reasons over that output at inference. This is the strongest competitor, discussed below.
On PlotQA v2, the strongest reported number in the file is MatCha's 90.7% accuracy (MatCha). We treat it as a reference ceiling for a specialized derendering model rather than a like-for-like comparison, since the backbone differs.
On Chart101, the reported reference points are:
- collective per-chart accuracy often below 25% for top models;
- the 29.5% to 21.3% grid-line drop for PaLI-3;
- 79% versus roughly 30% accuracy depending on whether the title contains the answer (Plot Twist).
For ChartQA overall accuracy, no reported result was found on Lacuna.
The key ablation is the anchor format: raw script, cleaned table, table plus title, and neutral-title script, with everything else fixed. Beating the baselines means three things on held-out styles and on Chart101's real ChartQA charts:
- higher accuracy than image-only fine-tuning and outcome-only reinforcement;
- a grid-line drop and a misleading-title drop each less than half of the image-only fine-tuned model's drop;
- a raw-script anchor that outperforms the cleaned-table anchor on style-shifted test sets.
That last result is the claim specific to this proposal.
Why not just…?
Why not just derender the chart and hand the table to a text model? This is a real threat, and on clean, in-distribution charts it may win, since MatCha's derendering already reaches 90.7% on PlotQA v2. The pipeline's weak point is that any derendering error passes silently into reasoning. It also cannot use visual evidence the table omits, and it doubles inference passes. Our experiments run it at matched training compute and break results down by chart type and style shift. They also count cases where derendering is wrong but the question was answerable. If the pipeline matches our model on real ChartQA charts and under style shifts, the honest conclusion is that alignment adds nothing beyond derendering, and we would report that.
Why not just train the model to write the plotting code as its chain-of-thought? Using code as the intermediate output is the approach of Synthesize Step-by-Step, and the Perception-Alignment-Reasoning survey argues for formal intermediates. It forces the model to transcribe the whole chart before thinking, and BabyVision's attention finding suggests long generated text can pull attention off the image. We include this variant inside the pipeline baseline (emit script, then reason, all in one model). We compare accuracy, output length and attention mass on image tokens during reasoning.
Why not just remove grid lines and titles at inference? Cleaning the input is cheap and would sidestep the Plot Twist failures on synthetic charts. But it requires a reliable detector for scaffolding on real charts, and it discards ticks and grids that elementary questions sometimes depend on. It also conflicts with the context-preservation evidence from Classification Done Right. We test it by evaluating the base model on our clean-rendered variants. This gives an upper bound on what cleaning could buy, which we compare against the robustness our trained model shows on the uncleaned versions.
Why not just scale resolution or the vision encoder? GeoSQA and MATH-Vision's error analysis both locate most failures after correct recognition. Our elementary-versus-multi-step split checks this directly. If our gains concentrate on multi-step questions while elementary extraction is already high, the gap is in reasoning, which is where alignment acts.
Decisive Checks
Four results would settle the proposal. First, the anchor-format ablation on style-shifted held-out charts. If the raw script does not beat the cleaned table, the context-preservation half of the claim is false even if alignment helps. Second, a perturbation suite on Chart101 and our own renders that measures accuracy change from adding grid lines and from misleading titles. This tests whether alignment removes the shortcut or imports it through the anchor; the table-plus-title arm exists to catch the import. Third, the gap between elementary and multi-step accuracy on Chart101's ChartQA charts, where we expect the "harder is easier" inversion to shrink. Fourth, image-token attention mass during reasoning, compared across the base model with chain-of-thought, image-only fine-tuning and our model. This places our traces on the side of the BabyVision versus perception-time-scaling disagreement that the data supports.
References
- Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset
- GeoSQA: A Benchmark for Scenario-based Question Answering in the Geography Domain at High School Level
- Plot Twist: Multimodal Models Don't Comprehend Simple Chart Details
- Awakening Visual Reasoning: Mitigating Post-Training Failure in Vision-Text Compression
- MatCha: Enhancing Visual Language Pretraining with Math Reasoning and Chart Derendering
- A Simple and Efficient Framework for Sentence Similarity Measurement in Bengali Language
- Hostility Detection in Hindi Leveraging Pre-trained Language Models
- HateMonitors: Language Agnostic Abuse Detection in Social Media
- Classification Done Right for Vision-Language Pre-Training
- BabyVision: Visual Reasoning Beyond Language
- Unleashing Perception-Time Scaling to Multimodal Reasoning Models
- PPE: Positional Preservation Embedding for Token Compression in Multimodal Large Language Models
- Synthesize Step-by-Step: Tools, Templates and LLMs as Data Generators for Reasoning-Based Chart VQA
- Deconstructing Multimodal Mathematical Reasoning: Towards a Unified Perception-Alignment-Reasoning Paradigm