TL;DR
CharTool enhances Multimodal Large Language Models (MLLMs) for chart understanding by integrating external tools like image cropping and Python code execution. Trained via reinforcement learning on a novel dual-source dataset called DuoChart, CharTool-7B achieves state-of-the-art performance on complex chart benchmarks, outperforming much larger open-source and proprietary models.
What Problem Does This Paper Address?
Charts are a ubiquitous medium for presenting structured data in scientific and financial literature. However, chart reasoning remains a major hurdle for modern MLLMs. The challenge is twofold: a severe lack of diverse, high-quality training data, and the inherent limitations of purely text-based Chain-of-Thought (CoT) reasoning.
When forced to rely entirely on textual logic, models frequently hallucinate or fail to perform precise numerical calculations and fine-grained visual grounding. Complex chart elements—such as overlapping data points, dense annotations, and intersecting trend lines—require a level of local visual focus and mathematical precision that standard text-based MLLMs simply cannot achieve.
Methods
The authors introduce a complete framework consisting of a novel data pipeline (DuoChart) and a tool-augmented model architecture (CharTool).
- DuoChart Data Pipeline: To solve the data scarcity problem, the authors combine the strengths of two distinct sources. They use code-driven synthetic charts (which provide precise underlying data for perfect answer verification) and real-world charts mined from arXiv papers (which offer realistic visual complexity). An MLLM-based judge filters the corpus for visual quality and semantic completeness before a multi-agent system generates 100k high-quality QA pairs.
- CharTool Framework: CharTool equips MLLMs with Tool-Integrated Reasoning (TIR). The model can dynamically invoke two core tools via a unified code execution interface:
- An image-cropping tool to zoom in on specific subplots or dense regions for localized visual perception.
- A code computation tool (Python interpreter) to execute exact mathematical operations, aggregations, and statistical analyses.
- Reinforcement Learning via GRPO: To teach the model how to effectively interleave internal reasoning with external tool calls, the authors employ Group Relative Policy Optimization (GRPO). The training uses a tool-aware reward function that scores the model based on final answer accuracy, structural formatting compliance, and successful tool exploration within a safe sandbox environment.
Datasets
- DuoChart-100k: A newly introduced dataset containing 16,688 high-quality charts and 100,000 challenging QA pairs split between structural recognition and multi-step reasoning.
- Evaluation Benchmarks: The framework was evaluated across six standard chart benchmarks:
- Real-world: CharXiv, ChartQAPro, and ChartQA.
- Synthetic: ChartBench, ChartX, and ReachQA.
- Out-of-Domain Visual Math: MathVista, WeMath, and MathVerse.
Key Insights and Ideas
- The Realism-Controllability Trade-off: Purely synthetic chart datasets often suffer from low layout diversity and text overlapping, while real-world charts lack accessible underlying data values. Merging both paradigms creates a significantly more robust training foundation.
- Dynamic Tool Adaptation: CharTool naturally learns to adapt its tool selection based on the nature of the problem. For perception-heavy tasks with complex layouts (like CharXiv), it predominantly triggers the image-cropping tool. For simpler layouts with high numerical complexity (like MathVista), it shifts its strategy toward code execution.
- Parameter Efficiency Over Scale: Rather than scaling up model parameters to handle complex reasoning, providing a smaller model (7B) with explicit perceptual and computational tools yields superior performance.
Key Results
- State-of-the-Art Performance: CharTool-7B achieved an average score of 66.52% across the chart benchmarks, outperforming GPT-4o (61.52%), Claude 3.5 Sonnet (63.62%), and the much larger Qwen2.5-VL-72B (66.02%).
- Substantial Baseline Gains: Compared to its base Qwen2.5-VL-7B model, CharTool-7B achieved an absolute accuracy boost of +8.0% on CharXiv (Reasoning) and +9.78% on ChartQAPro.
- Strong Out-of-Domain Generalization: Despite being trained exclusively on chart data, CharTool generalized remarkably well to general visual math benchmarks, yielding absolute improvements over the base model on MathVista (+1.90%), WeMath (+2.19%), and MathVerse (+1.60%).
Limitations and Future Work
- Tool Variety: The framework is currently limited to two primary tools (cropping and Python execution). Expanding this to a broader suite of specialized vision or data-parsing tools is an open direction.
- Domain Scope: The dataset and optimization are strictly tailored to charts. The authors note that extending this methodology to other dense visual-text domains, such as tables, technical manuals, and geometric diagrams, remains an important future task.
- Reward Granularity: The reinforcement learning phase relies heavily on trajectory-level rewards based on final answer correctness. Introducing more fine-grained, process-level reward signals could further optimize complex, multi-step tool interactions.
Summary updated