Prompt4Vis: Prompting Large Language Models with Example Mining and Schema Filtering for Tabular Data Visualization
Shuaimin Li, Xuanang Chen, Yuanfeng Song, Yunze Song, Chen Zhang

TL;DR
Prompt4Vis leverages large language models with example mining and schema filtering to significantly improve natural language to visualization query generation, outperforming previous methods on benchmark datasets.
Contribution
It introduces the first in-context learning approach for text-to-visualization query generation using LLMs, with novel modules for example mining and schema filtering.
Findings
Outperforms state-of-the-art by 35.9% on dev set
Outperforms state-of-the-art by 71.3% on test set
Demonstrates effectiveness of in-context learning in data visualization tasks
Abstract
Data visualization (DV) systems are increasingly recognized for their profound capability to uncover insights from vast datasets, gaining attention across both industry and academia. Crafting data queries is an essential process within certain declarative visualization languages (DVLs, e.g., Vega-Lite, EChart.). The evolution of natural language processing (NLP) technologies has streamlined the use of natural language interfaces to visualize tabular data, offering a more accessible and intuitive user experience. However, current methods for converting natural language questions into data visualization queries, such as Seq2Vis, ncNet, and RGVisNet, despite utilizing complex neural network architectures, still fall short of expectations and have great room for improvement. Large language models (LLMs) such as ChatGPT and GPT-4, have established new benchmarks in a variety of NLP tasks,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Data Mining Algorithms and Applications · Data Visualization and Analytics
MethodsPosition-Wise Feed-Forward Layer · Attention Is All You Need · Dropout · Linear Layer · Dense Connections · Label Smoothing · Absolute Position Encodings · Softmax · Byte Pair Encoding · Multi-Head Attention
