Search papers, labs, and topics across Lattice.
This paper presents a systematic evaluation of LLMs and VLMs on their ability to reason about data visualization principles, comparing their performance against ground truth derived from Answer Set Programming (ASP). The authors created a dataset of approximately 2,000 synthetic and 300 real-world Vega-Lite specifications annotated with principle violations to assess the models' ability to detect and correct these flaws. Results show that while LLMs/VLMs demonstrate promise as flexible validators and editors, they still lag behind symbolic solvers, and exhibit an asymmetry where they are better at fixing violations than detecting them.
LLMs and VLMs can edit flawed charts, but struggle to reliably spot the violations in the first place, revealing a surprising asymmetry in their understanding of data visualization principles.
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.