Abstract
Inspired by the success of R1-style reasoning models in text and code domains, we introduce Chart-R1, a chart-domain vision-language model (VLM) that utilizes reinforcement learning (RL) fine-tuning to master complex chart reasoning. We address the scarcity of reasoning data through a novel programmatic synthesis pipeline, creating the ChartRQA dataset with high-quality, step-by-step reasoning paths. Our two-stage training strategy combines supervised Chain-of-Thought (Chart-COT) with numerically sensitive reinforcement fine-tuning (Chart-RFT) using Group Relative Policy Optimization (GRPO). By employing a "soft reward" system for numerical accuracy, Chart-R1 achieves state-of-the-art performance on benchmarks like ChartQA (91.04%), rivaling and even surpassing proprietary models like GPT-4o and Claude-3.5.
The Challenge of Complex Chart Reasoning
While large vision-language models have become adept at basic image description, they often stumble on complex chart reasoning. Charts are information-dense; answering a question about them often requires multiple steps: identifying axes, extracting specific data points, performing arithmetic, and comparing trends across sub-charts. Existing models suffer from two main gaps: a lack of high-quality, step-by-step reasoning data (Chain-of-Thought) specifically for charts, and a tendency for standard supervised fine-tuning (SFT) to lead to "pattern matching" rather than true reasoning. Furthermore, standard RL rewards for numerical answers are often too sparse to guide early-stage learning.
Methodology: Building a Chart-Thinker
1. Programmatic Data Synthesis
To overcome data scarcity, we developed a programmatic synthesis pipeline. By starting with real-world tables from arXiv and using LLMs to generate Matplotlib plotting code, we create charts where the underlying data and plotting logic are perfectly known. This allows for the generation of "lossless" ground-truth reasoning paths. This resulted in ChartRQA, a massive dataset covering 24 different chart types, including complex multi-panel figures.
2. Two-Stage Training Strategy
- Stage 1: Chart-COT (Supervised Fine-Tuning): We initialize with Qwen2.5-VL-7B and perform a "cold start" training on synthetic CoT data. This teaches the model how to structure its reasoning into fine-grained, understandable sub-tasks.
- Stage 2: Chart-RFT (Reinforcement Fine-Tuning): We apply GRPO to encourage exploration of reasoning paths. To address the "all-or-nothing" nature of numerical rewards, we implemented a soft reward system. Models receive partial credit for numerical answers within a ±5% margin, providing a smoother learning signal for numerical sensitivity.
Key Results and Performance
Chart-R1-7B demonstrates significant gains over both general-purpose and specialized chart models.
- State-of-the-Art Benchmarks: Chart-R1 achieved 91.04% on ChartQA, outperforming all open-source models under 20B parameters and surpassing GPT-4o (85.7%).
- Complex Reasoning: On the CharXiv-RQ benchmark, which focuses on reasoning-heavy questions, Chart-R1 scored 46.2%, nearly matching GPT-4o's 47.1%.
- Numerical Precision: The soft-reward RL strategy successfully improved the model's ability to handle precise calculations, as seen in its superior performance on ChartQAPro.
Discussion and Future Directions
A key insight from our work is the importance of avoiding "data overlap" between the SFT and RL stages; using distinct subsets prevents the model from memorizing paths and encourages genuine exploration. While Chart-R1 excels on programmatic charts, future work will focus on improving fidelity for "in-the-wild" charts (e.g., low-resolution scans) and reducing the high computational cost of RL training. Integrating these "deep thinking" capabilities into more general multimodal tasks remains a promising frontier.
Summary updated