[论文解读] NL2Dashboard: A Lightweight and Controllable Framework for Generating Dashboards with LLMs
NL2Dashboard 通过 IR 的两阶段工作流(Prompt-to-IR 与 IR-to-Dashboard)和多代理系统来生成与修改仪表板,在相较基线的方法中实现了更高的 token 效率和更细粒度的可控性。
While Large Language Models (LLMs) have demonstrated remarkable proficiency in generating standalone charts, synthesizing comprehensive dashboards remains a formidable challenge. Existing end-to-end paradigms, which typically treat dashboard generation as a direct code generation task (e.g., raw HTML), suffer from two fundamental limitations: representation redundancy due to massive tokens spent on visual rendering, and low controllability caused by the entanglement of analytical reasoning and presentation. To address these challenges, we propose NL2Dashboard, a lightweight framework grounded in the principle of Analysis-Presentation Decoupling. We introduce a structured intermediate representation (IR) that encapsulates the dashboard's content, layout, and visual elements. Therefore, it confines the LLM's role to data analysis and intent translation, while offloading visual synthesis to a deterministic rendering engine. Building upon this framework, we develop a multi-agent system in which the IR-driven algorithm is instantiated as a suite of tools. Comprehensive experiments conducted with this system demonstrate that NL2Dashboard significantly outperforms state-of-the-art baselines across diverse domains, achieving superior visual quality, significantly higher token efficiency, and precise controllability in both generation and modification tasks.
研究动机与目标
- 解决使用 LLM 生成完整仪表板而非单一图表的挑战。
- 通过结构化中介表示(IR)实现数据分析与可视化呈现的解耦。
- 通过确定性呈现和引导式提示实现可控、迭代的仪表板生成与修改。
- 引入具备可执行工具的代理系统以组装仪表板。
- 提供理论和经验验证以证明改进的可靠性与效率。
提出的方法
- 引入一个轻量级、结构化的 IR,用以编码仪表板内容、布局与视觉元素。
- 推进两阶段工作流:Prompt-to-IR(分析与 IR 填充)和 IR-to-Dashboard(使用基础模板的确定性渲染)。
- 实现一个修改流水线,包含将编辑意图转化为原子操作(变更、替换、删除、添加)和一个 IR 更新算子。
- 开发一个多代理系统(Planner、Coder、Critic)与一个仪表板组装工具包(IRGen、DBCompile、IRModify),以协调整合生成与修改。
- 基于熵分解与费诺不等式的理论分析,以证明改进的可靠性与降低的视觉信息熵。
- 在跨领域的质量、token 效率与可控性方面,经验性地将 NL2Dashboard 与基线进行比较。
实验结果
研究问题
- RQ1NL2Dashboard 在不同领域生成高质量仪表板的表现如何?
- RQ2NL2Dashboard 对用户指定的仪表板修改执行有多忠实?
- RQ3以 Generative Overhead Ratio (GOR) 衡量,NL2Dashboard 的 token 效率相较端到端基线如何?
- RQ4基于 Critic 的迭代优化对仪表板质量的影响,以及何时出现收益递减?
主要发现
- NL2Dashboard 在评估指标中获得最高质量分数并在前两名中名列前茂,在生成任务和修改任务的提升分别比第二名基线高出 8.4% 与 7.3%。
- 修改任务中 NL2Dashboard 能精准完成所有任务,随着任务难度增加,其成功率比基线高出 35%–62%。
- NL2Dashboard 的 token 效率(GOR)显著低于 1,表明其相较于生成代码或脚本的基线具有更低的 token 开销。
- 基于 Critic 的优化在各维度提升了仪表板质量,约一轮优化后收益出现边际递减。
- 消融研究表明基于 IR 的解耦减少了与布局相关的失败并稳定了修改,解决了基线中观察到的空间推理和指令遵循问题。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。