NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Ask Humans or AI? Exploring Their Roles in Visualization Troubleshooting

Shuyu Shen, Sirong Lu, Leixian Shen, Zhonghua Sheng, Nan Tang, Yuyu Luo · OpenReview

Abstract

Visualization authoring is an iterative process requiring users to modify parameters like color schemes and data transformations to achieve desired aesthetics and effectively convey insights. Due to the complexity of these adjustments, users often create defective visualizations and require troubleshooting support. In this paper, we examine two primary approaches for visualization troubleshooting: (1) Human-assisted support via forums, where users receive advice from other individuals, and (2) AI-assisted support using large language models (LLMs). Our goal is to understand the strengths and limitations of each approach in supporting visualization troubleshooting tasks. To this end, we collected 889 Vega-Lite cases from Stack Overflow. We then conducted a comprehensive analysis to understand the types of questions users ask, the effectiveness of human and AI guidance, and the impact of supplementary resources, such as documentation and examples, on troubleshooting outcomes. Our findings reveal a striking contrast between human- and AI-assisted troubleshooting: Human-assisted troubleshooting provides tailored, context-sensitive advice but often varies in response quality, while AI-assisted troubleshooting offers rapid feedback but often requires additional contextual resources to achieve desired results.

Introduction

Creating a data visualization is rarely a "one-and-done" task. In declarative languages like Vega-Lite, users often find themselves in a "debugging loop" where the code runs perfectly, but the output looks wrong—perhaps a legend is missing, or a multi-view layout is overlapping.

Traditionally, users turn to forums like Stack Overflow, which provide high-quality but slow responses. Recently, Large Language Models (LLMs) have emerged as an alternative, offering instantaneous feedback but remaining prone to "hallucinations" or "aesthetic drift"—where the AI fixes the bug but changes the chart's design without being asked. This research addresses the gap in troubleshooting support by proposing a hybrid human-AI co-debugging system.

Methodology

The researchers followed a multi-phase approach to study and solve visualization debugging challenges.

Overview of the visualization troubleshooting study workflow, including data collection, comparative analysis, and system design.
  1. Empirical Study: Analysis of 758 real-world Vega-Lite debugging cases from Stack Overflow to understand human help-seeking and help-providing behaviors.
  2. LLM Benchmarking: Testing state-of-the-art models (GPT-4o, Claude 3.5 Sonnet, DeepSeek-R1) across 297 cases under various "contextual guidance" settings, including documentation and compiler logs.
  3. System Design: Development of a Human-AI Co-Debugging System featuring multimodal clarification, retrieval augmentation, code previews, and hybrid feedback mechanisms.

The study utilized a curated dataset of 297 valid Vega-Lite debugging cases. For final evaluation, the authors focused on an "Unresolved" set of 36 difficult cases that lacked accepted answers on Stack Overflow, ensuring the system was tested against problems that had stumped the human community.

Key Insights: Humans vs. AI

The comparative analysis revealed distinct characteristics in how humans and AI handle visualization bugs.

Comparison between human forum answers (often lacking visuals) and AI-generated solutions providing direct code fixes.
  • The "Aesthetic Drift" Phenomenon: LLMs often introduce unrequested changes. While fixing a technical bug, an AI might "improve" fonts or colors, frustrating users with specific design constraints.
  • Compiler Feedback as a Catalyst: Providing LLMs with raw compiler logs and dataflow information significantly boosted accuracy, transforming debugging from visual guessing into logical troubleshooting.
  • The "Blind Code" Limitation in Forums: Human forum contributors often provide solutions without seeing the user's actual data due to privacy concerns. This leads to "Example-Only" visualizations that users struggle to adapt. The proposed hybrid system bridges this by allowing AI to work with local data while leveraging forum logic.

Key Results

The hybrid co-debugging system significantly outperformed standalone methods:

  • Success Rate: The system resolved 86% of cases, compared to a 42% success rate for both standard LLM chat and original forum answers.
  • Efficiency: Users reached solutions in fewer rounds (1.53 rounds) compared to the LLM baseline (2.33 rounds).
  • First-Turn Accuracy: The system's initial suggestion was correct 61% of the time, more than double the 28% accuracy of the baseline LLM.
  • User Satisfaction: Participants rated the system 4.7/5, specifically valuing the ability to see multiple candidate solutions in parallel.

Conclusion and Future Work

While the system excels in declarative grammars like Vega-Lite, debugging imperative libraries like D3.js remains a challenge due to complex state changes. Future work will explore supporting "low-code" users and integrating these co-debugging modules directly into Q&A forums to help users clarify their intent before human experts intervene.

Summary updated

BibTeX
@misc{shen2024ask,
  author = {Shuyu Shen and Sirong Lu and Leixian Shen and Zhonghua Sheng and Nan Tang and Yuyu Luo},
  title = {{Ask Humans or AI? Exploring Their Roles in Visualization Troubleshooting}},
  year = {2024},
  eprint = {2412.07673},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.07673},
}
Figure