arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.11140cs.SEcs.AIcs.CLcs.HC
收藏

通过多路径推理和反馈驱动优化实现自动化可视化代码合成

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

AI Research, Enhans, Seoul, South Korea Innovation \& Technology, KAIST, Daejeon, South Korea Department of Computer Science, University of California, Berkeley, CA, United States Department of Electrical

Wonduk Seo, Daye Kang, Hyunjin An, Taehan Kim, Soohyuk Cho, Seungyong Lee, Minhyeong Yu, Jian Park, Yi Bu, Seunghyun Lee

AI总结:

VisPath通过多路径推理和反馈驱动优化,提升自动化可视化代码生成的可靠性与准确性。

摘要:

大型语言模型(LLMs)已成为自动化可视化代码生成的基石,使用户能够通过自然语言指令创建图表。尽管通过少量示例提示和查询扩展等技术有所改进,但现有方法在请求信息不明确时(例如数据预处理假设、求解器或库选择等)往往难以应对,通常需要人工干预。为克服这些局限性,我们提出了VisPath:一种用于可视化代码生成的多路径推理和反馈驱动优化框架。VisPath通过结构化的多阶段处理处理信息不明确的查询。它首先使用思维链(CoT)提示来重新表述初始用户输入,生成多个扩展查询并行生成,以揭示请求的替代可能具体化。这些查询随后生成候选可视化脚本,这些脚本被执行以生成多样的图像。通过评估每个输出的视觉质量和正确性,VisPath生成定向反馈,这些反馈被汇总以合成最优最终结果。在MatPlotBench和Qwen-Agent代码解释器基准测试中,VisPath在多个方面优于现有最先进方法,提供了一个更可靠的AI驱动可视化生成框架。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑