Prompt4Vis: Prompting Large Language Models with Example Mining and Schema Filtering for Tabular Data Visualization
Not on the map. Why?
Abstract (arXiv)
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, fundamentally altering the landscape of the field. Inspired by these advancements, we introduce a novel framework, Prompt4Vis, leveraging LLMs and in-context learning to enhance the performance of generating data visualization from natural language. Prompt4Vis comprises two key components: (1) a multi-objective example mining module, designed to find out the truly effective examples that strengthen the LLM's in-context learning capabilities for text-to-vis; (2) a schema filtering module, which is proposed to simplify the schema of the database. Extensive experiments through 5-fold cross-validation on the NVBench dataset demonstrate the superiority of Prompt4Vis, which notably surpasses the state-of-the-art (SOTA) RGVisNet by approximately 35.9% and 71.3% on dev and test sets, respectively. To the best of our knowledge, Prompt4Vis is the first work that introduces in-context learning into the text-to-vis for generating data visualization queries.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 17 of its 45 references that are in the map. First posted on arXiv 29 Jan 2024.
Builds on
17 of 45 references.
References · 17
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 894
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
- 2022Can Foundation Models Wrangle Your Data?cited by 175
5 more
- 2020NL4DV: A Toolkit for Generating Analytic Specifications for Data Visualization from Natural Language Queriescited by 74
- 2018Data2Vis: Automatic Generation of Data Visualizations Using Sequence to Sequence Recurrent Neural Networkscited by 48
- 2023Data Formulator: AI-powered Concept-driven Visualization Authoringcited by 32
- 2019Text-to-Viz: Automatic Generation of Infographics from Proportion-Related Natural Language Statementscited by 31
- 2016Effortless Data Exploration with zenvisage: An Expressive and Interactive Visual Analytics Systemcited by 14
Built on by
Citing papers per year: 2024: 2; 2025: 6; 2026: 6.
14 papers.
Sort:
By area:
- 2024VisEval: A Benchmark for Data Visualization in the Era of Large Language Modelscited by 45
- 2026PaperBanana: Automating Academic Illustration for AI Scientistscited by 26
- 2025nvAgent: Automated Data Visualization from Natural Language via Collaborative Agent Workflowcited by 23
- 2025nvBench 2.0: Resolving Ambiguity in Text-to-Visualization through Stepwise Reasoningcited by 19
- 2025InterChat: Enhancing Generative Visual Analytics using Multimodal Interactionscited by 13
- 2025DeepVIS: Bridging Natural Language and Data Visualization Through Step-wise Reasoningcited by 8
- 2025Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimizationcited by 7
- 2024Towards Robustness of Text-to-Visualization Translation against Lexical and Phrasal Variabilitycited by 2
- 2026Aligning Text, Code, and Vision: A Multi-Objective Reinforcement Learning Framework for Text-to-Visualizationcited by 2
- 2025DashChat: Interactive Authoring of Performance Dashboard Design Prototypes through Conversation with LLM-Powered Agentcited by 1
- 2026NL2Dashboard: A Lightweight and Controllable Framework for Generating Dashboards with LLMscited by 1
- 2026VegaChat: A Robust Framework for LLM-Based Chart Generation and Assessmentcited by 1
- 2026AdaLens: Interactive Storyline for Monitoring and Steering Long-Running Agentic Data Analysis18 Aug 2026
- 2026Agentic Authoring of Interactive Multiview Visualizations in Genomics29 May 2026
- 2026PaperBanana: Automating Academic Illustration for AI Scientists30 Jan 2026
- 2026VegaChat: A Robust Framework for LLM-Based Chart Generation and Assessment21 Jan 2026
- 2026Aligning Text, Code, and Vision: A Multi-Objective Reinforcement Learning Framework for Text-to-Visualization8 Jan 2026
- 2026NL2Dashboard: A Lightweight and Controllable Framework for Generating Dashboards with LLMs4 Jan 2026
- 2025DeepVIS: Bridging Natural Language and Data Visualization Through Step-wise Reasoning3 Aug 2025
- 2025DashChat: Interactive Authoring of Performance Dashboard Design Prototypes through Conversation with LLM-Powered Agent17 Apr 2025
- 2025nvBench 2.0: Resolving Ambiguity in Text-to-Visualization through Stepwise Reasoning17 Mar 2025
- 2025InterChat: Enhancing Generative Visual Analytics using Multimodal Interactions6 Mar 2025
- 2025Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization16 Feb 2025
- 2025nvAgent: Automated Data Visualization from Natural Language via Collaborative Agent Workflow7 Feb 2025
- 2025nvAgent: Automated Data Visualization from Natural Language via Collaborative Agent Workflowcited by 23
- 2025DashChat: Interactive Authoring of Performance Dashboard Design Prototypes through Conversation with LLM-Powered Agentcited by 1
- 2026Agentic Authoring of Interactive Multiview Visualizations in Genomicscited by 0
- 2026AdaLens: Interactive Storyline for Monitoring and Steering Long-Running Agentic Data Analysiscited by 0
- 2026AdaLens: Interactive Storyline for Monitoring and Steering Long-Running Agentic Data Analysis18 Aug 2026
- 2026Agentic Authoring of Interactive Multiview Visualizations in Genomics29 May 2026
- 2025DashChat: Interactive Authoring of Performance Dashboard Design Prototypes through Conversation with LLM-Powered Agent17 Apr 2025
- 2025nvAgent: Automated Data Visualization from Natural Language via Collaborative Agent Workflow7 Feb 2025
- 2025nvBench 2.0: Resolving Ambiguity in Text-to-Visualization through Stepwise Reasoningcited by 19
- 2025DeepVIS: Bridging Natural Language and Data Visualization Through Step-wise Reasoningcited by 8
- 2025Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimizationcited by 7
- 2025DeepVIS: Bridging Natural Language and Data Visualization Through Step-wise Reasoning3 Aug 2025
- 2025nvBench 2.0: Resolving Ambiguity in Text-to-Visualization through Stepwise Reasoning17 Mar 2025
- 2025Automated Visualization Code Synthesis via Multi-Path Reasoning and Feedback-Driven Optimization16 Feb 2025
- 2024VisEval: A Benchmark for Data Visualization in the Era of Large Language Modelscited by 45
- 2026PaperBanana: Automating Academic Illustration for AI Scientistscited by 26
- 2025InterChat: Enhancing Generative Visual Analytics using Multimodal Interactionscited by 13
- 2024Towards Robustness of Text-to-Visualization Translation against Lexical and Phrasal Variabilitycited by 2
- 2026Aligning Text, Code, and Vision: A Multi-Objective Reinforcement Learning Framework for Text-to-Visualizationcited by 2
- 2026NL2Dashboard: A Lightweight and Controllable Framework for Generating Dashboards with LLMscited by 1
- 2026VegaChat: A Robust Framework for LLM-Based Chart Generation and Assessmentcited by 1
- 2026PaperBanana: Automating Academic Illustration for AI Scientists30 Jan 2026
- 2026VegaChat: A Robust Framework for LLM-Based Chart Generation and Assessment21 Jan 2026
- 2026Aligning Text, Code, and Vision: A Multi-Objective Reinforcement Learning Framework for Text-to-Visualization8 Jan 2026
- 2026NL2Dashboard: A Lightweight and Controllable Framework for Generating Dashboards with LLMs4 Jan 2026
- 2025InterChat: Enhancing Generative Visual Analytics using Multimodal Interactions6 Mar 2025
- 2024VisEval: A Benchmark for Data Visualization in the Era of Large Language Models1 Jul 2024
- 2024Towards Robustness of Text-to-Visualization Translation against Lexical and Phrasal Variability10 Apr 2024