Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization
Wonduk Seo, Daye Kang, Hyunjin An, Taehan Kim, Soohyuk Cho, Seungyong Lee, Minhyeong Yu, Jian Park, Yi Bu, Seunghyun Lee

TL;DR
VisPath is a novel framework that enhances automated visualization code generation from natural language by multi-path reasoning and feedback-driven optimization, effectively handling underspecified requests and outperforming existing methods.
Contribution
It introduces a structured multi-stage process combining chain-of-thought prompting, parallel query generation, and feedback-based optimization for visualization code synthesis.
Findings
Outperforms state-of-the-art methods on MatPlotBench and Qwen-Agent benchmarks.
Effectively handles underspecified visualization requests.
Produces more accurate and visually appealing charts.
Abstract
Large Language Models (LLMs) have become a cornerstone for automated visualization code generation, enabling users to create charts through natural language instructions. Despite improvements from techniques like few-shot prompting and query expansion, existing methods often struggle when requests are underspecified in actionable details (e.g., data preprocessing assumptions, solver or library choices, etc.), frequently necessitating manual intervention. To overcome these limitations, we propose VisPath: a Multi-Path Reasoning and Feedback-Driven Optimization Framework for Visualization Code Generation. VisPath handles underspecified queries through structured, multi-stage processing. It begins by using Chain-of-Thought (CoT) prompting to reformulate the initial user input, generating multiple extended queries in parallel to surface alternative plausible concretizations of the request.…
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
TopicsModel-Driven Software Engineering Techniques · Software Testing and Debugging Techniques · Embedded Systems Design Techniques
