Lune

SIGMOD2021Top-tier venue

Synthesizing Natural Language to Visualization (NL2VIS) Benchmarks from NL2SQL Benchmarks

Yuyu Luo, Nan Tang, Guoliang Li, Chengliang Chai, Wenbo Li, Xuedi Qin

2021Year
90Citations
35Top-tier citations

Abstract

Natural language (nl) is a promising interaction paradigm for data visualization (vis). However, there are not any nl to vis (nl2vis) benchmarks available. Our goal is to provide the first nl2vis benchmark to enable and push the field of nl2vis, especially with deep learning technologies.

In this paper, we propose a nl2vis synthesizer (nl2sql-to-nl2vis) that synthesizes nl2vis benchmarks by piggybacking nl2sql benchmarks. The intuition is based on the semantic connection between sql queries and vis queries: sql queries specify what data is needed and vis queries additionally need to specify how to visualize. However, different from sql that has well-defined syntax, vis languages (e.g., Vega-Lite, VizQL, ggplot2) are syntactically very different. To provide nl2vis benchmarks that can support many vis languages, we use a unified intermediate representation, abstract syntax trees (ASTs), for both sql and vis queries. We can synthesize multiple vis trees through adding/deleting nodes to/from an sql tree. Each vis tree can then be converted to (any) vis language. The nl for vis will be modified based on the nl for sql to reflect corresponding tree edits.

We produce the first nl2vis benchmark (nvBench), by applying nl2sql-to-nl2vis on a popular nl2sql benchmark Spider, which covers 105 domains, supports seven common types of visualizations, and contains 25,750 (nl, vis) pairs. Our method reduces the manhour to 5.7% of developing a nl2vis benchmark from scratch (or building a nl2vis benchmark from scratch takes 17.5 × man-hours of our method). Extensive human validation, through 23 experts and 312 crowd workers, demonstrates the high-quality of nvBench.

In order to verify that nvBench can enable learning-based approaches, we develop a seq2vis model. Our experimental results show that seq2vis works well and significantly outperforms the state-of-the-art methods of the nl2vis task.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext ff8f8b37-deef-42ce-8008-73bcfb31a1b8

Cited by top-tier papers35

Ask how each one uses it

Builds on8

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines