Large language models struggle with current chart-making languages

Where LLMs Fail with Visualization DSLs

Human-Computer InteractionComputation and Language

Summary

Making charts with special computer languages is often designed to be easy for humans, but these languages can be tricky for large language models (LLMs). The authors tested three popular LLMs on 10 different chart-making languages with many tasks to see where the models make mistakes. They found four common types of errors and connected these problems to certain features of the languages. This helps understand how to design better chart languages that computers can use more effectively.

What this means in practice

Authors

Chang Han, Andrew McNutt, Katherine Isaacs

Abstract

As LLMs take up the role of authoring charts using visualization domain-specific languages (DSLs), the human constraints that shaped those languages may no longer apply, as what is easy for a person is not necessarily easy for a model. To understand how LLMs might work better with DSLs, we explore where and how they fail with current DSL designs. We evaluate 10 JSON-style visualization DSLs with 41 tasks across 3 LLMs, then assess the generated specifications with JSON and rendering checks, and qualitative coding of failed cases. Analyzing how this specification generation process fails, we identify four recurring failure patterns, link each to specific DSL features, and discuss design considerations for future DSL designs.