REChart: Reasoning-Efficient Chart Editing with Large Reasoning Models
Organizations: HKUST(GZ)
Abstract
Chart editing requires inferring and modifying visualization code from a reference chart image based on an editing instruction, challenging fine-grained visual reasoning, instruction following, and executable code synthesis capabilities of MLLMs. Large reasoning models (LRMs) with extended Chain-of-Thought (CoT) reasoning are suitable for tackling such complex multimodal tasks. However, our preliminary study reveals an inverted-U'' relationship between reasoning length and chart-editing performance: Excessive reasoning often leads to overthinking,'' where models drift toward hallucinated visual details or get stuck in redundant reasoning loops. To address the gap, we introduce REChart, a two-stage training framework that provides process-level supervision over intermediate reasoning steps, improving both editing fidelity and reasoning efficiency. First, we synthesize 200k high-quality reasoning trajectories for supervised fine-tuning from a large image-instruction-code pool, using a role-specialized agentic Reason-Score-Refine workflow that iteratively refine the chart code toward higher quality. Second, we optimize the model via reinforcement learning with two complementary rewards: a fidelity reward evaluating code correctness, visual fidelity, and structural consistency, and an efficiency reward that assigns each rollout a random thinking budget, truncates the reasoning process, and credits the final reasoning segment according to its contribution to the output. On the ChartEdit and ChartMIMIC benchmarks, our model achieves state-of-the-art chart-editing performance among open-source models of comparable scale, while mitigating overthinking and reducing average reasoning token usage by 79.0% under a maximum thinking budget of 16,384 tokens compared with the base model.
Figures & tables
| Category | Key Editing Aspects |
|---|---|
| Direct Reproduction | No-edit baseline: reconstruction of the input chart from image to code. |
| Content Manipulation | Data filtering, aggregation, point/series addition or removal, and trend-line overlays. |
| Style & Aesthetics | Modifications to backgrounds, grids, markers, colormaps, and visual effects. |
| Layout Edits | Subplot composition, legend and colorbar positioning, spacing, and figure sizing. |
| Chart Transformation | Chart type swapping, orientation changes, and coordinate system transformations. |
| Axes & Annotations | Title and label content and typography, axis scaling, ticks, and data annotations. |
| Model | # Params. | ChartEdit w/o Code | ChartMIMIC Customized | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Exec. | Code | Chart | Overall | Exec. | Low | High | Overall | ||
| Proprietary Models | |||||||||
| GPT-4o ( Hurst et al., 2024 ) | - | 91.5 | 60.0 | 79.9 | 70.0 | 96.5 | 82.1 | 84.3 | 83.2 |
| Claude-3.7-Sonnet ( Anthropic, 2025 ) | - | 96.3 | 73.4 | 87.5 | 80.5 | 80.6 | 67.4 | 78.1 | 72.3 |
| Gemini-2.5-Pro ( Comanici et al., 2025 ) | - | 95.3 | 82.9 | 89.2 | 86.1 | 91.7 | 81.3 | 83.5 | 82.4 |
| Open-Source Models | |||||||||
| Model | Exec. | Low | High | Overall |
|---|---|---|---|---|
| GPT-4o ( Hurst et al., 2024 ) | 93.2 | 79.0 | 83.5 | 81.2 |
| GeminiProVision ( Team et al., 2023 ) | 68.2 | 53.8 | 53.3 | 53.6 |
| Claude-3-opus ( Anthropic, 2024 ) | 83.3 | 60.5 | 60.1 | 60.3 |
| InternVL2-8B ( Chen et al., 2024 ) | 61.8 | 34.4 | 38.9 | 36.6 |
| LLaVA-Mistral-7B ( Liu et al., 2023c ) | 59.7 | 20.7 | 21.3 | 21.0 |
| Qwen3-VL-32B-Thinking ( Bai et al., 2025a ) | 82.8 | 65.2 | 72.2 | 68.7 |
| Variant | ChartEdit | ChartMIMIC Customized | ChartMIMIC Direct | |||
|---|---|---|---|---|---|---|
| Exec. | Overall | Exec. | Overall | Exec. | Overall | |
| Base | 79.15 | 67.30 | 77.61 | 61.50 | 75.00 | 58.40 |
| SFT | 87.76 | 73.40 | 80.78 | 63.90 | 84.06 | 67.80 |
| + Base GRPO | 95.66 | 79.60 | 89.61 | 70.66 | 94.94 | 77.59 |
| + Budgeted GRPO | 95.87 | 80.24 | 86.67 | 68.76 | 96.00 | 78.96 |
| + Efficiency Reward | 96.65 | 79.71 | 88.61 | 70.09 | 94.72 | 77.15 |
| Variant | ChartEdit | ChartMIMIC Direct | ChartMIMIC Customized |
|---|---|---|---|
| Base | 6521.12 | 9575.09 | 8889.43 |
| + SFT | 2790.66 | 2267.25 | 2251.27 |
| + Base GRPO | 3184.46 | 2320.49 | 2285.46 |
| + Budgeted GRPO | 3040.28 | 1997.75 | 1995.39 |
| + Efficiency Reward | 2005.18 | 1727.69 | 1515.22 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Variant | Visual Hallucination | Edit Intent Drift | Details Missing |
|---|---|---|---|
| Base | 125 | 16 | 73 |
| + SFT | 105 | 13 | 66 |
| + RL | 84 | 9 | 69 |
| Chart Type | Ratio (%) | Chart Type | Ratio (%) |
|---|---|---|---|
| line | 39.74 | area | 4.70 |
| scatters | 14.97 | graph | 3.52 |
| bar | 8.70 | contour | 3.19 |
| heatmap | 8.50 | hist | 3.15 |
| errorbar | 6.99 | density | 2.12 |
| box | 1.43 | quiver | 0.77 |
| Model | Number of Charts | Proportion |
|---|---|---|
| Qwen3-VL-32B-Instruct | 118,577 | 22.74% |
| Qwen3-VL-253B-A22B | 187,907 | 36.04% |
| Gemini 3 Flash | 214,854 | 41.21% |
| Total | 521,338 | 100% |
| Task Type | Ratio (%) | Task | Ratio (%) |
|---|---|---|---|
| Axes & Annotations | 27.11 | Layout & Spatial Organization | 10.02 |
| Content Manipulation & Data Logic | 20.68 | Style & Aesthetics | 12.68 |
| Chart Transformation | 11.61 | direct | 17.91 |
| Stage | Count |
| arXiv papers (2024) | 244,029 |
| Papers under CC BY 4.0 license | 100,180 |
| Figures extracted from L a T e X sources | 854,484 |
| Chart images after classification | 622,672 |
| Chart-code pairs after cascade filtering | 521,338 |
| Editing samples accepted by audit | 567,049 |
| Agent | Symbol | Backbone |
|---|---|---|
| Planner | Qwen3-VL-32B-Instruct | |
| Reasoner | Qwen3-VL-8B-Thinking | |
| Generator | Qwen3-VL-8B-Thinking | |
| Critic | Qwen3-VL-32B-Instruct | |
| Finalizer | Qwen3-VL-32B-Instruct |
| Planner | Critic | Pass@3 | Pass@6 | Pass@9 | Avg. Token |
|---|---|---|---|---|---|
| ✓ | ✓ | 24.75% | 35.17% | 42.58% | 2086.33 |
| ✓ | 24.00% | 35.75% | 42.58% | 2416.21 | |
| ✓ | 16.58% | 22.00% | 24.75% | 2200.22 | |
| 15.33% | 19.75% | 23.42% | 2300.86 |
| Module | Hardware | Throughput |
|---|---|---|
| Planner | 1 A800 | 3500/h |
| Reasoner | 1 H100 | 4000/h |
| Generator | 1 H100 | 4000/h |
| Scorer | 64 Core GPU + 512GB Memory | 9000/h |
| Critic | 1 A800 | 18000/h |
| Finalizer | 1 A800 | 9000/h |
| Task Type | Total Input | Filtered | Final Output | Pass Rate | Avg. Round Num |
|---|---|---|---|---|---|
| Edit Task | 562,485 | 383,867 | 178,618 | 31.76% | 5.39 |
| Direct Task | 75,275 | 45,957 | 29,318 | 38.95% | 5.42 |
| Total | 637,760 | 429,824 | 207,936 | 32.60% | 5.40 |
| SFT Dataset Size | ChartEdit w/o Code | ChartMIMIC Direct | ||
|---|---|---|---|---|
| Exec. Rate | Overall | Exec. Rate | Overall | |
| base | 79.15 | 67.30 | 75.00 | 58.45 |
| 50k | 83.56 | 68.76 | 79.06 | 61.75 |
| 100k | 84.48 | 69.12 | 80.72 | 63.58 |
| 150k | 86.98 | 71.01 | 82.11 | 65.05 |
| full | 87.76 | 73.43 | 84.06 | 67.78 |
Efficient Language Model Reasoning
Efficient language model reasoning studies how to improve problem-solving accuracy while reducing inference, memory, latency, and training costs.
See all 356 papers