AVA: Towards Autonomous Visualization Agents through Visual Perception-Driven Decision-Making

Shusen Liu, Haichao Miao, Zhimin Li, Matthew Olson, Valerio Pascucci, Peer-Timo BremerarXiv 2023

TL;DR

This paper introduces Autonomous Visualization Agents (AVAs), a novel framework that leverages the visual perception capabilities of multimodal Large Language Models (like GPT-4V) to autonomously control and refine data visualizations. By closing the loop between text instructions, visual outputs, and parameter adjustments, AVAs act as virtual assistants that help domain experts generate optimal visualizations without needing deep technical expertise.

What Problem Does This Paper Address?

Data visualization tools are incredibly powerful but notoriously difficult to master. Domain experts—such as radiologists or data scientists—often struggle to fine-tune complex parameters like volume rendering transfer functions or dimensionality reduction hyperparameters.

While traditional text-only LLMs can write code to generate an initial plot, they are fundamentally "blind." They cannot see the resulting image to determine if a scatterplot suffers from severe overplotting or if a crucial anatomical structure is obscured by noise. Consequently, users are left to manually iterate through parameters in a tedious trial-and-error process. This paper addresses this "visual perception gap" by creating an agent that can look at a visualization, evaluate its quality, and decide how to adjust it to meet a user's high-level goal.

Methods

The authors propose a closed-loop Visualization-Perception-Action framework consisting of three core components:

  1. Visual Perception: The "eyes" of the agent. It uses a multimodal LLM (GPT-4V) to interpret the semantic meaning and visual structures (e.g., clusters, noise, specific objects) within a rendered visualization.
  2. Action Planning: The "brain" of the agent, which decides how to modify parameters. The authors explore two design strategies:
  3. Heuristic-Centric: The LLM evaluates the image, but the parameter updates follow explicitly coded domain rules (acting like a custom optimization loss function).
  4. LLM-Centric: The LLM relies entirely on its own prior knowledge to plan and suggest the next parameter values based on the visual feedback.
  5. Memory: A structured history log that allows the agent to compare current results with previous iterations to ensure convergence.
Figure 1: Overview of Autonomous Visualization Agents (AVAs): By combining natural language understanding with visual perception (a) AVAs can not only understand user instructions but also control and adjust a visualization system by interpreting its visual outputs to accomplish user-specified goals. We demonstrate the broad applicability of the proposed paradigm in multiple distinct scenarios including scatterplot opacity selection (b), volume rendering (c), and hyperparameter tuning for nonlinear dimensionality reduction (d).

Datasets

The framework was evaluated across several distinct visualization scenarios using the following datasets:

  • Volume Rendering: The classic Boston Teapot (which contains a hidden lobster inside), the Visible Human Male dataset, and a 3T Time-of-flight Magnetic Resonance Angiography (MRA) Head dataset.
  • Scatterplot Opacity Optimization: The Kaggle Diamond dataset and the Out5D dataset.
  • Dimensionality Reduction Tuning: An RNA sequence dataset featuring 20 distinct classes.

Key Insights and Ideas

  • Qualitative vs. Quantitative Strengths: Through preliminary benchmarking, the authors discovered that GPT-4V is exceptionally good at high-level qualitative tasks (e.g., identifying if a structure is "recognizable", detecting the presence of outliers, or spotting overplotting). However, it performs poorly at precise quantitative tasks, such as counting the exact number of clusters or graph nodes.
  • Exploiting the Strengths: Because the LLM excels at qualitative assessment, the authors intentionally designed AVAs to focus on tasks where visual parameter tuning relies on subjective or structural clarity rather than exact counting.
  • Heuristic vs. LLM Autonomy: For highly predictable relationships (like scatterplot opacity and overplotting), encoding a logarithmic heuristic search works best. For complex tasks like discovering hidden structures in volume data, letting the LLM autonomously navigate the parameter space based on its internal knowledge yields surprisingly robust strategies.

Key Results

The authors demonstrated the effectiveness of AVAs across three case studies:

  • Volume Rendering Transfer Functions: When tasked with finding the "circle of Willis" (a vascular structure in the brain MRA) or the hidden lobster inside the teapot, both the heuristic and LLM-centric AVAs successfully navigated the opacity ranges. The LLM-centric agent intelligently skipped the background noise peak in the data histogram, converging on a clean, human-grade visualization in just a few steps.
  • Scatterplot Opacity Optimization: The agent successfully mitigated overplotting by iteratively adjusting point opacity. The final AVA-optimized scatterplots closely matched independent manual selections made by human experts.
  • Hyperparameter Tuning: For UMAP and t-SNE, the LLM-centric agent successfully tuned neighborhood sizes and perplexity parameters on unlabeled RNA data, automatically yielding more compact and distinct cluster separations than the default settings.

Limitations and Future Work

Despite the promising results, the authors highlight several key challenges:

  • The Curse of High-Dimensional Action Spaces: While tuning a single parameter was highly successful, attempts to let the agent tune multiple hyperparameters simultaneously (up to 5) failed, causing the agent's suggestions to bounce back and forth aimlessly.
  • Prompt Sensitivity: The precision of the agent remains highly dependent on careful prompt engineering, as natural language can be ambiguous.
  • Visual Blind Spots: Current multimodal models struggle with complex structural encodings like node-link graphs and parallel coordinate plots.

Future Directions: The authors plan to explore multi-agent systems to cross-validate visualization results and intend to develop tighter, chatbot-style human-in-the-loop interactions to allow users to guide the agent dynamically.

Summary updated

BibTeX
@misc{liu2023ava,
  author = {Shusen Liu and Haichao Miao and Zhimin Li and Matthew Olson and Valerio Pascucci and Peer-Timo Bremer},
  title = {{AVA: Towards Autonomous Visualization Agents through Visual Perception-Driven Decision-Making}},
  year = {2023},
  eprint = {2312.04494},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.04494},
}
Figure