TL;DR
Chart-R1 brings the "R1-style" reinforcement learning paradigm to visual chart reasoning, addressing the struggle current Vision-Language Models (VLMs) face when tackling multi-step, multi-chart questions. By coupling a code-grounded programmatic data generation pipeline with a two-stage training strategy (Chain-of-Thought SFT followed by GRPO reinforcement fine-tuning), Chart-R1 (7B) sets a new state-of-the-art among open models under 20B parameters, rivaling closed giants like GPT-4o and Claude-3.5-Sonnet.
What Problem Does This Paper Address?
While recent reasoning models (like DeepSeek-R1 and OpenAI o1/o3) have excelled at text-based math and code reasoning, transferring these capabilities to multimodal domains remains an open challenge. Charts are information-dense visual artifacts requiring both visual perception (e.g., reading axis ticks, segment colors) and high-level reasoning (e.g., computing cross-series ratios, tracking trends across multiple subplots).
Existing approaches usually rely on supervised fine-tuning (SFT) over simple, descriptive chart datasets. This causes models to overfit narrow templates, leaving them vulnerable when multi-step deductions or cross-chart syntheses are needed. Furthermore, simply applying reinforcement learning (RL) on simple datasets fails because the reward quickly plateaus and models fail to discover deep reasoning patterns.
Methods
The authors introduce Chart-R1, initialized from Qwen2.5-VL-7B-Instruct, utilizing two main innovations:
- Programmatic Data Synthesis:
- Instead of parsing existing chart images into code (which propagates vision errors), the authors reverse the pipeline: they extract real-world tables from arXiv papers, feed them with seed chart code into an LLM (Gemini-2.5-Flash) to generate executable Python Matplotlib plotting code, and render high-fidelity synthetic charts across 24 distinct chart types (both single and multi-panel subplots).
- The executable code is provided alongside the chart to generate multi-step CoT reasoning paths and question-answer pairs, producing complex, verifiable logic free of perceptual hallucinations.
- Two-Stage Training Strategy:
- Stage 1 (Chart-COT): Supervised fine-tuning on the synthetic step-by-step reasoning dataset to bootstrap the model's capacity to break complex queries into structured subtasks enclosed in
<think> ... </think>tags. - Stage 2 (Chart-RFT): Reinforcement fine-tuning using Group Relative Policy Optimization (GRPO). The authors use rule-based rewards:
- Format Reward: Validates that the reasoning is enclosed in
<think>and the final answer in<answer>tags via regex parsing. - Accuracy Reward: Type-specific evaluation using edit distance for text answers and a soft matching tolerance ($\pm 5\%$) for numerical answers.
Datasets
- ChartRQA (New): A large-scale programmatic dataset spanning 24 chart types. It includes:
- ChartRQA-SFT: 228k instances used for Stage 1.
- ChartRQA-RL: 30k disjoint instances used for Stage 2.
- ChartRQA Benchmark: 1,702 human-verified evaluation samples (933 single-chart and 769 multi-chart) focused on complex multi-step reasoning.
- Evaluation Benchmarks: Evaluated against ChartQA, CharXiv-RQ (Reasoning Questions), ChartQAPro, ChartMuseum, and the new ChartRQA.
Key Insights and Ideas
- Code as Ground Truth Solves Synthetic Data Quality: Using underlying plotting code as a lossless representation allows LLMs to craft multi-step questions with perfect ground truth, circumventing the noise of traditional visual distillation. Human expert audits verified over 85% accuracy without manual cleaning.
- Data Disjointedness Between SFT and RL Is Critical: Using overlapping data across SFT and RL hurt performance (dropping ChartQA from 90.28% to 88.40%). Overlapping data caused the policy to memorize SFT traces rather than explore new reasoning paths.
- RL Alone Fails on Chart Reasoning: Training purely with RL from scratch without the initial CoT-SFT warm-up caused early convergence on short responses (~100 tokens), preventing the model from learning long-chain decomposition.
- Soft Rewards for Numerical Outputs: Hard string matching severely penalizes minor visual read-off variations. Incorporating a $\pm 5\%$ numerical margin significantly improved stability and downstream accuracy.
Key Results
- Overall SOTA for <20B VLMs: Chart-R1 (7B) outperformed existing open-source chart models (TinyChart, ChartGemma, ChartReasoner, BigCharts-R1, Bespoke-MiniChart-7B) across all benchmarks.
- Surpassing Proprietary Models on ChartQA: Chart-R1 achieved 91.04% on ChartQA, outperforming GPT-4o (85.7%), Claude-3.5-Sonnet (90.8%), and Claude-3.7-Sonnet (86.1%).
- Complex Reasoning Benchmarks: On CharXiv-RQ, Chart-R1 reached 46.2% (vs. Qwen2.5-VL-7B's 42.5%). On the newly introduced ChartRQA test set, Chart-R1 achieved 52.09% / 49.93% (single/multi-chart), substantially higher than its base model (44.59% / 40.57%) and competitive with GPT-4o (44.37% / 46.55%).
Limitations and Future Work
- Academic Chart Bias: The source data is primarily restricted to scientific/statistical Matplotlib-style plots from arXiv, omitting real-world visual artifacts such as commercial dashboards, UI flowcharts, and infographics.
- Visual Reasoning & Multi-Chart Failure Modes: Error analysis on ChartQAPro revealed that the most frequent errors remain visual pattern perception (24%) and integrating information across multi-panel figures (16%).
- Future Directions: Expanding the synthesis framework to encompass diverse visualizations like dashboards and flowcharts, and optimizing visual grounding across disparate subplots.
Summary updated