Improved Iterative Refinement for Chart-to-Code Generation via Structured Instruction
Chengzhi Xu, Yuyang Wang, Lai Wei, Lichao Sun, Weiran Huang

TL;DR
This paper introduces ChartIR, an iterative refinement approach with structured instructions that significantly improves chart-to-code generation accuracy by decomposing visual understanding and code translation into a two-stage process.
Contribution
The paper proposes a novel iterative refinement method with structured instructions, enhancing visual understanding and code translation in chart-to-code generation tasks.
Findings
Achieves superior performance on Qwen2-VL and GPT-4o models.
Effectively decomposes visual understanding and code translation tasks.
Demonstrates improved accuracy over existing methods.
Abstract
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.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsIterative Learning Control Systems · Digital Filter Design and Implementation · Real-time simulation and control systems
