Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Seo, Wonduk, Kang, Daye, An, Hyunjin, Kim, Taehan, Cho, Soohyuk, Lee, Seungyong, Yu, Minhyeong, Park, Jian, Bu, Yi, Lee, Seunghyun
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911364773052416
author Seo, Wonduk
Kang, Daye
An, Hyunjin
Kim, Taehan
Cho, Soohyuk
Lee, Seungyong
Yu, Minhyeong
Park, Jian
Bu, Yi
Lee, Seunghyun
author_facet Seo, Wonduk
Kang, Daye
An, Hyunjin
Kim, Taehan
Cho, Soohyuk
Lee, Seungyong
Yu, Minhyeong
Park, Jian
Bu, Yi
Lee, Seunghyun
contents 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. These queries then generate candidate visualization scripts, which are executed to produce diverse images. By assessing the visual quality and correctness of each output, VisPath generates targeted feedback that is aggregated to synthesize an optimal final result. Extensive experiments on MatPlotBench and Qwen-Agent Code Interpreter Benchmark show that VisPath outperforms state-of-the-art methods, providing a more reliable framework for AI-driven visualization generation.
format Preprint
id arxiv_https___arxiv_org_abs_2502_11140
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization
Seo, Wonduk
Kang, Daye
An, Hyunjin
Kim, Taehan
Cho, Soohyuk
Lee, Seungyong
Yu, Minhyeong
Park, Jian
Bu, Yi
Lee, Seunghyun
Software Engineering
Artificial Intelligence
Computation and Language
Human-Computer Interaction
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. These queries then generate candidate visualization scripts, which are executed to produce diverse images. By assessing the visual quality and correctness of each output, VisPath generates targeted feedback that is aggregated to synthesize an optimal final result. Extensive experiments on MatPlotBench and Qwen-Agent Code Interpreter Benchmark show that VisPath outperforms state-of-the-art methods, providing a more reliable framework for AI-driven visualization generation.
title Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization
topic Software Engineering
Artificial Intelligence
Computation and Language
Human-Computer Interaction
url https://arxiv.org/abs/2502.11140