Beauty in the Eye of AI: Aligning LLMs and Vision Models with Human Aesthetics in Network Visualization

Xuefeng Li, Peng Zhang, Xiaoqi Wang, Han-Wei Shen, Yifan Hu

TL;DR

Evaluating the aesthetic quality of network visualizations has long relied on rigid mathematical heuristics that fail to capture the nuance of human preference. This paper introduces a massive human-labeled dataset for graph aesthetics and demonstrates that properly tuned Vision Models (VMs) and Large Language Models (LLMs) can mimic human aesthetic judgments at near-human agreement levels. This breakthrough opens the door to scalable, human-centric AI proxies for automated graph layout evaluation.

What Problem Does This Paper Address?

Graph visualization is essential for making complex networks—such as social, biological, or transportation systems—interpretable to humans. Historically, layout algorithms have relied on researcher-defined geometric heuristics, such as minimizing edge crossings or minimizing "stress." However, no single metric consistently produces the most visually pleasing or effective layout for every graph.

While deep learning frameworks (like GANs) can theoretically learn to generate layouts based directly on human preferences, collecting human labels at scale is incredibly expensive and time-consuming. For instance, the user study in this paper required 172 person-hours over several months just to label one dataset. To solve this scalability bottleneck, the authors investigate a compelling question: Can modern LLMs and Vision Models act as reliable, automated proxies for human aesthetic judgment?

Methods

The authors tackled this problem by evaluating two distinct AI paradigms against actual human choices:

  1. LLM Prompting Strategies (GPT-4o-mini): The authors tested standard zero-shot and few-shot image prompts against prompts containing explicit graph structural data (edge lists, adjacency lists, and coordinate features). Crucially, they introduced an image-embedding-based memory bank approach. Instead of feeding raw images or complex text descriptions to the LLM, they used visual embeddings from ResNet-50 or DINOv2 to retrieve and present contextual examples of "good" layouts from past data. Demonstration of memory bank vs graph representation
Demonstration of memory bank vs graph representation
  1. Vision Models (VMs): The authors trained supervised classifiers using ResNet-50 and Vision Foundation Models (DINOv2) paired with a Multi-Layer Perceptron (MLP) head. To make the training robust, they implemented two key strategies:
  2. Data Augmentation: Randomly permuting the order of the layout options to eliminate positional bias.
  3. Soft Multiclass Loss: Rather than forcing the model to learn a single "correct" layout (which ignores natural human disagreement), they trained the network using a soft target distribution representing the fraction of votes each layout received from human annotators.

Datasets

  • Rome Graphs Collection: A standard benchmark consisting of 11,531 small-to-medium-sized graphs.
  • Human Preference Dataset (New): The authors built a custom web interface to collect 64,436 human preference labels across all 11,531 Rome graphs. Twenty-seven participants were shown eight different layouts of the same graph (generated by eight distinct canonical algorithms) and asked to select their favorite. A UI showing eight graph visualizations
A UI showing eight graph visualizations

Key Insights and Ideas

  • Human taste is diverse but non-random: The average pairwise agreement between any two human labelers was 38.34%. While this sounds low, it is nearly triple the random baseline (11.5%), proving that humans share a coherent, abstract sense of layout aesthetics.
  • Visuals beat structure for LLMs: Providing explicit graph structural data or geometric coordinates to LLMs actually degraded performance compared to pure visual representations. Rich, pretrained visual embeddings capture aesthetic nuances that structured text encodings miss.
  • Embrace the disagreement: Training vision models using a soft multiclass loss that preserves the diversity of human choices vastly outperformed baseline models trained only on unanimous human agreements.
  • Confidence filtering unlocks human-level AI: Both LLMs and VMs output confidence scores. By filtering out low-confidence predictions, the AI's alignment with humans jumps significantly, matching or even exceeding average human-human agreement levels.

Key Results

  • The Human Baseline: The benchmark macro-average alignment between two human subjects is 38.34%.
  • LLM Performance: Naive image-only prompting achieved a low alignment of 19.70%. However, the proposed DINOv2 Memory Bank (1-Shot) approach boosted GPT-4o-mini's alignment to 33.11%. When filtering for high-confidence tokens (threshold $\ge$ 0.45), the LLM became statistically indistinguishable from a human labeler while still providing labels for 65% of the dataset. Table 6: Alignment (%) of LLM with human labels
  • VM Performance: The fine-tuned DINOv2-Base model trained with Soft Multiclass loss achieved an alignment score of 36.81%—nearly matching ideal human-to-human agreement. Table 8: VM-human alignment (%) under different training strategies
Table 6: Alignment (%) of LLM with human labels
Table 8: VM-human alignment (%) under different training strategies

Limitations and Future Work

  • Image Rendering Dependency: Both the best-performing LLM and VM pipelines rely on fully rendered images rather than raw graph data. This means layouts must be generated and rendered before the AI can evaluate them.
  • Coarse Preferences: The study used a 1-out-of-8 selection setup. While highly efficient for labeling 11K graphs, it provides less fine-grained relative preference data than pairwise or ranking-based approaches.
  • Demographics: The participant pool, while typical for visualization studies, may not perfectly represent the broader population's aesthetic tastes.

For future work, the authors plan to explore evaluating layout data directly (bypassing rendering), learning personalized aesthetic preferences to account for individual diversity, and extending the framework to non-straightline drawing styles like orthogonal or hierarchical network layouts.

Summary updated

BibTeX
@article{li2026beauty,
  author = {Xuefeng Li and Peng Zhang and Xiaoqi Wang and Han-Wei Shen and Yifan Hu},
  title = {{Beauty in the Eye of AI: Aligning LLMs and Vision Models with Human Aesthetics in Network Visualization}},
  journal = {Computer Graphics Forum},
  year = {2026},
  doi = {10.1111/cgf.70456},
}
Figure