[论文解读] LIDA: A Tool for Automatic Generation of Grammar-Agnostic Visualizations and Infographics using Large Language Models
LIDA 提供一个四模块、由 LLM 驱动的管道,自动生成语法无关的可视化与数据真实感信息图,具有 Python API 和混合 NL/直接操作 UI。
Systems that support users in the automatic creation of visualizations must address several subtasks - understand the semantics of data, enumerate relevant visualization goals and generate visualization specifications. In this work, we pose visualization generation as a multi-stage generation problem and argue that well-orchestrated pipelines based on large language models (LLMs) such as ChatGPT/GPT-4 and image generation models (IGMs) are suitable to addressing these tasks. We present LIDA, a novel tool for generating grammar-agnostic visualizations and infographics. LIDA comprises of 4 modules - A SUMMARIZER that converts data into a rich but compact natural language summary, a GOAL EXPLORER that enumerates visualization goals given the data, a VISGENERATOR that generates, refines, executes and filters visualization code and an INFOGRAPHER module that yields data-faithful stylized graphics using IGMs. LIDA provides a python api, and a hybrid user interface (direct manipulation and multilingual natural language) for interactive chart, infographics and data story generation. Learn more about the project here - https://microsoft.github.io/lida/
研究动机与目标
- 将数据集语义转换为紧凑的自然语言摘要,以支撑可视化任务的落地。
- 从数据中枚举相关的可视化目标与假设。
- 在多种语法下生成、完善、执行并过滤可视化代码。
- 使用文本条件的图像生成模型生成数据真实、风格化的信息图。
- 提供混合界面(直接操作与多语言自然语言)以实现交互式可视化与叙事。
提出的方法
- 摘要器将数据属性转化为紧凑的 NL 摘要,必要时由 LLM 增强。
- 目标探索器利用摘要生成可视化问题/假设及相应目标。
- VisGenerator 为多种语法(如 Matplotlib、GGPlot、Plotly、Altair、Seaborn、Bokeh)创建代码骨架,通过 LLM 生成代码填充存根,并在沙箱中执行、验证与过滤。
- Infoographer 使用基于扩散的文本条件图像生成,将数据真实且风格化地呈现为信息图。
- VizOps 基于 NL 的 refinement、解释、可及性描述、自我评估与修复,以及基于生成可视化的推荐。
- 系统通过 Python API、Web API,以及面向交互使用的多语言混合 UI 对外暴露。

实验结果
研究问题
- RQ1如何协同使用 LLM 从数据摘要中生成可视化目标和语法无关的规范?
- RQ2多阶段管道是否能在不同语法下可靠地产生数据真实的可视化与美观的信息图?
- RQ3有哪些度量标准能可靠评估含有 LLM 的可视化管道的可靠性和质量?
- RQ4NL 交互与图像生成模型如何补充传统可视化工具以支持多样化用户?
主要发现
- 该管道的可视化错误率很低,为 3.5%。
- 在消融研究中,使用紧凑的 NL 数据摘要相较仅用架构信息摘要能提高可靠性。
- 用 LLM 丰富基线摘要对不同语法的影响不同;表达性强的语法(如 Seaborn)显示较低的错误率。
- 通过 LLM 的自我评估与修复机制有助于识别语义质量问题并实现自动修正(如建议用柱状图代替饼图)。
- 该框架提供端到端、语法无关的方法,支持多种语法并生成标准可视化和数据驱动的信息图。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。