它能运行且这就足够了吗?以多智能体方法重新审视文本到图表生成
Does It Run and Is That Enough? Revisiting Text-to-Chart Generation with a Multi-Agent Approach
AI总结:
本文提出仅用 GPT-4o-mini 的起草、执行、修复与判断分离多智能体流水线,显著降低文本生成图表的执行错误率,并揭示幻觉与色盲可访问性仍是关键问题。
摘要:
大型语言模型能够将自然语言图表描述转换为可运行代码,但即使经过监督微调和强化学习,仍有约15%的生成脚本无法执行。我们研究这一持续存在的错误率究竟源于模型局限,还是源于对单一提示设计的依赖。为探究该问题,我们提出一种轻量级多智能体流水线,将起草、执行、修复和判断分离,并且仅使用现成的 GPT-4o-mini 模型。在 Text2Chart31 基准上,我们的系统在三次修复迭代内将执行错误降至4.5%,比最强的微调基线高出近5个百分点,同时所需计算量显著更少。在 ChartX 基准上也观察到类似性能,错误率为4.6%,展现出很强的泛化能力。在当前基准下,执行成功似乎已基本得到解决。然而,人工审查显示,抽样的100张图表中有6张包含幻觉;基于 LLM 的可访问性审计表明,仅有33.3%(Text2Chart31)和7.2%(ChartX)的生成图表满足基本色盲指南。这些发现表明,未来工作应将重点从执行可靠性转向提升图表美观性、语义保真度和可访问性。
英文摘要:
Large language models can translate natural-language chart descriptions into runnable code, yet approximately 15\% of the generated scripts still fail to execute, even after supervised fine-tuning and reinforcement learning. We investigate whether this persistent error rate stems from model limitations or from reliance on a single-prompt design. To explore this, we propose a lightweight multi-agent pipeline that separates drafting, execution, repair, and judgment, using only an off-the-shelf GPT-4o-mini model. On the \textsc{Text2Chart31} benchmark, our system reduces execution errors to 4.5\% within three repair iterations, outperforming the strongest fine-tuned baseline by nearly 5 percentage points while requiring significantly less compute. Similar performance is observed on the \textsc{ChartX} benchmark, with an error rate of 4.6\%, demonstrating strong generalization. Under current benchmarks, execution success appears largely solved. However, manual review reveals that 6 out of 100 sampled charts contain hallucinations, and an LLM-based accessibility audit shows that only 33.3\% (\textsc{Text2Chart31}) and 7.2\% (\textsc{ChartX}) of generated charts satisfy basic colorblindness guidelines. These findings suggest that future work should shift focus from execution reliability toward improving chart aesthetics, semantic fidelity, and accessibility.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。