HCCLOct 11, 2023

LLM4Vis: Explainable Visualization Recommendation using ChatGPT

arXiv:2310.07652v2153 citationsh-index: 22Has Code
AI Analysis

This addresses the need for explainable and data-efficient visualization recommendation tools for data analysts, though it is incremental as it adapts existing LLM methods to a specific domain.

The paper tackles the problem of automating visualization recommendation by proposing LLM4Vis, a ChatGPT-based prompting approach that provides human-like explanations with few demonstration examples, achieving performance comparable to or better than supervised models like Random Forest on the VizML dataset.

Data visualization is a powerful tool for exploring and communicating insights in various domains. To automate visualization choice for datasets, a task known as visualization recommendation has been proposed. Various machine-learning-based approaches have been developed for this purpose, but they often require a large corpus of dataset-visualization pairs for training and lack natural explanations for their results. To address this research gap, we propose LLM4Vis, a novel ChatGPT-based prompting approach to perform visualization recommendation and return human-like explanations using very few demonstration examples. Our approach involves feature description, demonstration example selection, explanation generation, demonstration example construction, and inference steps. To obtain demonstration examples with high-quality explanations, we propose a new explanation generation bootstrapping to iteratively refine generated explanations by considering the previous generation and template-based hint. Evaluations on the VizML dataset show that LLM4Vis outperforms or performs similarly to supervised learning models like Random Forest, Decision Tree, and MLP in both few-shot and zero-shot settings. The qualitative evaluation also shows the effectiveness of explanations generated by LLM4Vis. We make our code publicly available at \href{https://github.com/demoleiwang/LLM4Vis}{https://github.com/demoleiwang/LLM4Vis}.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes