arXiv:2602.20084cs.CV2026-02

测试大模型能否理解可视化原则并自动纠错。

Do Large Language Models Understand Data Visualization Principles?

  • 用自然语言描述原则,生成2000个带错误的图表代码
  • 模型能纠错但检错能力弱,顶尖模型也存在误判
  • 适合想用AI辅助设计图表的研究者和开发者

数据可视化原则源自数十年的设计与感知研究,确保有效视觉传达。尽管已有研究显示大语言模型(LLMs)可生成图表或识别误导性图像,但它们及其视觉-语言模型(VLMs)是否能直接推理并执行这些原则仍不明确。基于约束的系统通过逻辑规则实现精确自动化检查,但形式化规范需专家知识。这促使我们利用LLMs和VLMs作为原则检查器,绕过符号规则设定。本文首次系统评估了LLMs和VLMs在可视化原则推理上的表现,采用答案集编程(ASP)生成的硬验证真值。我们整理了一组以自然语言表述的可视化原则,并构建了一个约2000个带有显式原则违反的Vega-Lite规格的控制数据集,补充超过300个真实世界Vega-Lite图表。评估涵盖检查与修复任务,衡量模型检测原则违规及修正错误图表规格的能力。结果表明,大(视觉)语言模型在灵活验证与编辑可视化设计方面具有潜力,但在更细微的视觉感知层面仍落后于符号求解器。此外,模型表现出有趣不对称性:前沿模型在纠正违规上优于检测能力。

原文摘要 · Abstract (English)

Data visualization principles, derived from decades of research in design and perception, ensure proper visual communication. While prior work has shown that large language models (LLMs) can generate charts or flag misleading figures, it remains unclear whether they and their vision-language counterparts (VLMs) can reason about and enforce visualization principles directly. Constraint based systems encode these principles as logical rules for precise automated checks, but translating them into formal specifications demands expert knowledge. This motivates leveraging LLMs and VLMs as principle checkers that can reason about visual design directly, bypassing the need for symbolic rule specification. In this paper, we present the first systematic evaluation of both LLMs and VLMs on their ability to reason about visualization principles, using hard verification ground truth derived from Answer Set Programming (ASP). We compiled a set of visualization principles expressed as natural-language statements and generated a controlled dataset of approximately 2,000 Vega-Lite specifications annotated with explicit principle violations, complemented by over 300 real-world Vega-Lite charts. We evaluated both checking and fixing tasks, assessing how well models detect principle violations and correct flawed chart specifications. Our work highlights both the promise of large (vision-)language models as flexible validators and editors of visualization designs and the persistent gap with symbolic solvers on more nuanced aspects of visual perception. They also reveal an interesting asymmetry: frontier models tend to be more effective at correcting violations than at detecting them reliably.

大模型可视化自动纠错

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。