Understanding Graphical Perception in Data Visualization through Zero-shot Prompting of Vision-Language Models

Grace Guo, Jenna Kang, Raj Sanjay Shah, Hanspeter Pfister, Sashank Varma

TL;DR

Can Vision-Language Models (VLMs) perceive charts the same way humans do? By zero-shot prompting GPT-4o-mini on classic graphical perception benchmarks (Cleveland & McGill, 1984; Heer & Bostock, 2010), this study shows that while VLMs mirror human relative difficulty when making simple "which is smaller?" judgments, their proportion estimates fail to replicate human error patterns. Furthermore, VLM visual reasoning is surprisingly fragile—heavily swayed by incidental styling choices like fill color, segment contiguity, and prompt phrasing.

What Problem Does This Paper Address?

If VLMs possess human-like visual perception, they could automatically evaluate dashboards, diagnose cognitive overload, and optimize chart designs for human readers. However, while VLMs frequently score well on chart question-answering benchmarks, it remains unclear whether their perceptual error profiles match human perception.

In human visualization research, foundational studies by Cleveland & McGill (1984) and Heer & Bostock (2010) established a clear hierarchy of elementary perceptual tasks (e.g., comparing positions along a common scale is more accurate than comparing lengths, angles, or areas). This paper investigates whether a modern VLM exhibits the same graphical perception characteristics when tested zero-shot on these exact tasks.

Methods

The authors recreated the seven standard graphical perception tasks from prior literature (e.g., aligned bar charts, unaligned bar charts, stacked bar charts, and pie charts):

  1. Stimuli Generation: Values were generated using Cleveland and McGill’s exponential formula ($s_i = 10 \times 10^{(i-1)/12}$ for $i=1,\dots,10$), forming 45 unique pairs per task (315 visualizations total per variation). Two targets were highlighted (labeled "A" and "B", colored blue and yellow).
  2. Probing GPT-4o-mini: The model was tested on two zero-shot questions:
  3. Probe 1 (Binary Comparison): Which shape is smaller ($A$ or $B$)?
  4. Probe 2 (Proportion Judgment): What percentage is the smaller shape of the larger shape?
  5. Experimental Conditions:
  6. Prompt Variations: Manipulated whether colors were explicitly referenced in text and whether the prompt requested chain-of-thought explanations.
  7. Stimulus Variations: Default stimuli vs. "All Color" vs. "No Color" (grayscale).
  8. Order and Color Inversions: Swapped labels and/or colors to check for positional and label biases.
  9. Contiguity Tests (Experiment 3): Introduced variants of stacked bar and pie chart tasks (5B and 6B) to test whether physical proximity (contiguous vs. separated target segments) impacts VLM accuracy.

Datasets

The authors generated synthetic visual stimuli replicating the experimental datasets from Cleveland & McGill (1984) and Heer & Bostock (2010):

  • 45 trials across 7 chart tasks ($7 \times 45 = 315$ images per condition).
  • Novel benchmark extensions: Task 5B (separated stacked bars) and Task 6B (contiguous pie slices) to explicitly evaluate spatial contiguity.

Key Insights and Ideas

  • Alignment on Discrete Judgments, Failure on Continuous Judgments: For binary "which is smaller?" decisions, the relative difficulty ranking of chart types for the VLM closely matches humans ($\rho = 0.90$). But for numerical proportion judgments, human error profiles show systematic, well-documented variance across visual encodings, whereas the VLM displayed uniform, noisy error across all chart types.
  • Stylistic Fragility: Despite identical underlying data and geometries, removing color or coloring all bars sharply degraded performance. Grayscale ("No Color") dropped accuracy to near chance (~47%–51%).
  • Prompt Sensitivity: Prompting for step-by-step reasoning (Chain-of-Thought) and including explicit color references significantly boosted accuracy, highlighting that zero-shot VLM perception is co-dependent on linguistic framing.
  • Contiguity Effect: In default settings, the model struggled significantly more when comparing segments that touched (contiguous) versus segments separated by visual space.

Key Results

  • Human-VLM Rank Correlation (Probe 1): Spearman's rank correlation between GPT-4o-mini accuracy and human log error reached $\rho = 0.90$ ($p = 0.006$) under default stimuli and unadorned prompts, indicating consistent relative difficulty across basic encodings.
  • Prompt and Color Impact:
  • With color references and explanation requested: 87% overall accuracy on default stimuli.
  • Stripping both color cues and reasoning requests: overall accuracy dropped to 47% on grayscale stimuli.
  • Contiguity (Probe 1 Accuracy):
  • Stacked bars: Accuracy increased from 73% when contiguous (Task 5) to 84% when separated (Task 5B).
  • Pie charts: Accuracy dropped from 92% when separated (Task 6) to 76% when contiguous (Task 6B).
  • Proportion Estimation (Probe 2): Unlike humans, who exhibit lower log error on common-scale bar charts compared to pie charts, GPT-4o-mini showed overlapping 95% confidence intervals across all seven tasks, reflecting high uncertainty and a lack of encoding-dependent perceptual calibration.

Limitations and Future Work

  • Single Model Scope: The study evaluated only GPT-4o-mini. Fine-tuned vision-language models (e.g., ChartGemma, UniChart) or other frontier models might behave differently.
  • Simplicity of Visual Stimuli: The synthetic, minimalist charts used to match historical human trials may differ substantially from the complex, real-world charts found in VLM pretraining corpora.
  • Future Directions: The authors suggest evaluating human participants on the new contiguity task variants (5B and 6B) to determine if VLMs can predict previously uncharacterized human perceptual phenomena, and investigating whether segment contiguity explains poor VLM performance on broader benchmarks like ChartQA.

Summary updated

BibTeX
@inproceedings{guo2024understanding,
  author = {Grace Guo and Jenna Kang and Raj Sanjay Shah and Hanspeter Pfister and Sashank Varma},
  title = {{Understanding Graphical Perception in Data Visualization through Zero-shot Prompting of Vision-Language Models}},
  booktitle = {Behavioral ML @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=fEwDUc4VJC},
}
Figure