Improved Iterative Refinement for Chart-to-Code Generation via Structured Instruction
On the map: Multimodal LLMs / vision-language models → Chart understanding and anomaly detection
Abstract (arXiv)
Recently, multimodal large language models (MLLMs) have attracted increasing research attention due to their powerful visual understanding capabilities. While they have achieved impressive results on various vision tasks, their performance on chart-to-code generation remains suboptimal. This task requires MLLMs to generate executable code that can reproduce a given chart, demanding not only precise visual understanding but also accurate translation of visual elements into structured code. Directly prompting MLLMs to perform this complex task often yields unsatisfactory results. To address this challenge, we propose {ChartIR}, an iterative refinement method based on structured instruction. First, we distinguish two tasks: visual understanding and code translation. To accomplish the visual understanding component, we design two types of structured instructions: description and difference. The description instruction captures the visual elements of the reference chart, while the difference instruction characterizes the discrepancies between the reference chart and the generated chart. These instructions effectively transform visual features into language representations, thereby facilitating the subsequent code translation process. Second, we decompose the overall chart generation pipeline into two stages: initial code generation and iterative refinement, enabling progressive enhancement of the final output. Experimental results show that, compared to other method, our method achieves superior performance on both the open-source model Qwen2-VL and the closed-source model GPT-4o.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Chart understanding and anomaly detection, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 13 of its 21 references that are in the map. First posted on arXiv 15 Jun 2025.
Builds on
13 of 21 references.
Closest ancestors · 7
Same direction, newest first
- 2025Boosting Chart-to-Code Generation in MLLM via Dual Preference-Guided Refinement3 Apr
- 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generation11 Jan
- 2024Distill Visual Chart Reasoning Ability from LLMs to MLLMs24 Oct
- 2024ChartMimic: Evaluating LMM's Cross-Modal Reasoning Capability via Chart-to-Code Generation14 Jun
- 2024Plot2Code: A Comprehensive Benchmark for Evaluating Multi-modal Large Language Models in Code Generation from Scientific Plots13 May
- 2024ChartX & ChartVLM: A Versatile Benchmark and Foundation Model for Complicated Chart Reasoning19 Feb
- 2023MMC: Advancing Multimodal Chart Understanding with Large-scale Instruction Tuning15 Nov
Other references · 6
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,449
- 2023Applying Large Language Models and Chain-of-Thought for Automatic Scoringcited by 68
- 2025GPT-ImgEval: A Comprehensive Benchmark for Diagnosing GPT4o in Image Generationcited by 57
- 2025METAL: A Multi-Agent Framework for Chart Generation with Test-Time Scalingcited by 33
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedbackcited by 31
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026Multimodal Information Fusion for Chart Understanding: A Survey of MLLMs -- Evolution, Limitations, and Cognitive Enhancementcited by 1
- 2026Generating Statistical Charts with Validation-Driven LLM Workflowscited by 1
- 2025Can AI agents understand spoken conversations about data visualizations in online meetings?cited by 0
- 2026Imperfect Visual Verification for Code Edition : A Case Study on TikZcited by 0
- 2026Animation2Code: Evaluating Temporal Visual Reasoning in Video-to-Code Generationcited by 0
- 2026FigMirror: Ground It, Code It, Plot Itcited by 0
- 2026FigMirror: Ground It, Code It, Plot It28 Aug 2026
- 2026Animation2Code: Evaluating Temporal Visual Reasoning in Video-to-Code Generation26 Jun 2026
- 2026Generating Statistical Charts with Validation-Driven LLM Workflows1 May 2026
- 2026Imperfect Visual Verification for Code Edition : A Case Study on TikZ9 Apr 2026
- 2026Multimodal Information Fusion for Chart Understanding: A Survey of MLLMs -- Evolution, Limitations, and Cognitive Enhancement8 Feb 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Can AI agents understand spoken conversations about data visualizations in online meetings?30 Sep 2025
- 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback28 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2026Chart Specification: Structural Representations for Incentivizing VLM Reasoning in Chart-to-Code Generation
- 2026CharTide: Data-Centric Chart-to-Code Generation via Tri-Perspective Tuning and Inquiry-Driven Evolution
- 2025START: Spatial and Textual Learning for Chart Understanding
- 2026RealChart2Code: Advancing Chart-to-Code Generation with Real Data and Multi-Task Evaluation
- 2023ChartLlama: A Multimodal LLM for Chart Understanding and Generation
- 2025From Charts to Code: A Hierarchical Benchmark for Multimodal Models
- 2025ChartAnchor: Chart Grounding with Structural-Semantic Fidelity
- 2025Visual Programmability: A Guide for Code-as-Thought in Chart Understanding