DracoGPT: Extracting Visualization Design Preferences from Large Language Models

Huichen Will Wang, Mitchell Gordon, Leilani Battle, Jeffrey Heer

TL;DR

DracoGPT is a new framework that "interrogates" Large Language Models (LLMs) to uncover their hidden visualization design preferences. By mapping LLM judgments to a formal logic-based system, the researchers found that while LLMs are internally consistent, their design "intuitions" often diverge significantly from established human graphical perception research, particularly for complex data summary tasks.

What Problem Does This Paper Address?

As LLMs are increasingly used to generate, critique, and recommend data visualizations, a critical question arises: What design rules are these models actually following?

Visualization design isn't just about aesthetics; it’s about "graphical perception"—how effectively a human can extract information from a chart. Decades of research have established best practices (e.g., using position for quantitative data is better than using color). However, LLMs are black boxes trained on vast internet corpora that might contain both expert advice and poor examples. This paper addresses the lack of systematic methods to extract, model, and audit these latent LLM preferences against empirical human performance data.

Methods

The authors introduce DracoGPT, which leverages Draco, a formal framework that represents visualizations as a collection of logical facts and evaluates them using a "knowledge base" of constraints.

The researchers developed two distinct pipelines to probe LLMs:

  1. DracoGPT-Rank: A discriminative approach where the LLM is shown two charts and asked to pick the "better" one.
  2. DracoGPT-Recommend: A generative approach where the LLM is given a partial chart specification and asked to complete it optimally.
Overview of the DracoGPT-Rank pipeline.

In both cases, the LLM's choices are used to train a RankSVM. This model learns numerical weights for Draco’s "soft constraints" (design guidelines). If an LLM consistently prefers charts with a linear y-axis, the RankSVM assigns a "reward" weight to that constraint. To ensure reliability, the authors mitigated positional bias—the tendency of LLMs to favor the first option—by shuffling the order of chart pairs and discarding inconsistent responses.

Datasets

The study used a corpus of charts from Kim et al. (2018), a foundational graphical perception study.

  • Stimuli: 1,152 chart pairs based on scatterplots depicting three variables (two quantitative, one categorical).
  • Tasks: The charts were evaluated for two task types: Value Tasks (reading individual marks) and Summary Tasks (identifying aggregate properties).
  • LLMs Tested: GPT-3.5-Turbo, GPT-4, and GPT-4-Turbo.

Key Insights and Ideas

  • LLMs are "Opinionated" and Consistent: DracoGPT was able to model LLM preferences with extremely high accuracy (>96%). Interestingly, LLM preferences were more "linearly separable" than human data, suggesting that LLMs follow a more rigid, simplified set of internal rules compared to the noisy performance of human subjects.
  • The Summary Task Blind Spot: While LLMs moderately aligned with human performance on simple value-reading tasks, they showed poor or even negative correlation for summary tasks. For example, GPT-4-Turbo strongly penalized certain encodings that humans actually found helpful for seeing the "big picture."
  • Format Doesn't Change Preference: In the recommendation task, GPT-4-Turbo expressed nearly identical design preferences whether it was asked to output Vega-Lite JSON or Vega-Altair Python code.
  • Positional Bias is a Major Hurdle: Older models like GPT-3.5 were highly unreliable, showing conflicting preferences 72% of the time simply based on which chart was presented first. Even GPT-4-Turbo was inconsistent about 23% of the time.

Key Results

  • Modeling Accuracy: DracoGPT models fit their source LLMs remarkably well, achieving test set accuracies between 96.7% and 99.4%.
  • Human Alignment: For value tasks, GPT-4-Turbo's preferences had a moderate positive correlation with human data ($r = 0.69$). However, for summary tasks, the correlation was weak and statistically insignificant ($r = -0.18$), indicating a clear divergence from empirical best practices.
  • Constraint Divergence: As shown in the weight analysis, LLMs often "fixate" on a few dominant design choices (like preferring x-axis encodings) while ignoring other subtle trade-offs that impact human performance.
Comparison of constraint weights between human data and DracoGPT-Rank.

Limitations and Future Work

The primary limitation is the design space: the study focused exclusively on scatterplots. Future work aims to expand Draco’s knowledge base to include more chart types (bar, line, etc.) and more nuanced design features like grid lines or font sizes.

The authors also suggest that once an LLM's preferences are "distilled" into a Draco model, that model could serve as a cost-effective stand-in for the LLM. Instead of making expensive API calls to a massive model, developers could use the lightweight, logic-based Draco model to provide visualization recommendations that mimic the LLM's "style" but with much higher speed and lower cost.

Summary updated

BibTeX
@article{wang2025dracogpt,
  author = {Huichen Will Wang and Mitchell Gordon and Leilani Battle and Jeffrey Heer},
  title = {{DracoGPT: Extracting Visualization Design Preferences from Large Language Models}},
  journal = {IEEE TVCG},
  year = {2025},
  doi = {10.1109/tvcg.2024.3456350},
}
Figure