Skip to main content
QUICK REVIEW

[Paper Review] nvBench: A Large-Scale Synthesized Dataset for Cross-Domain Natural Language to Visualization Task

Yuyu Luo, Jiawei Tang|arXiv (Cornell University)|Dec 24, 2021
Data Visualization and AnalyticsComputer Science11 citations
TL;DR

This paper introduces nvBench, the first large-scale synthesized benchmark for cross-domain natural language to visualization (NL2VIS) tasks, comprising 25,750 (NL, VIS) pairs across 750 tables and 105 domains. It leverages existing NL2SQL benchmarks to automatically generate diverse, high-quality (NL, VIS) pairs, enabling effective training of deep learning models like ncNet, which achieves human-like performance in NL2VIS translation.

ABSTRACT

NL2VIS - which translates natural language (NL) queries to corresponding visualizations (VIS) - has attracted more and more attention both in commercial visualization vendors and academic researchers. In the last few years, the advanced deep learning-based models have achieved human-like abilities in many natural language processing (NLP) tasks, which clearly tells us that the deep learning-based technique is a good choice to push the field of NL2VIS. However, a big balk is the lack of benchmarks with lots of (NL, VIS) pairs. We present nvBench, the first large-scale NL2VIS benchmark, containing 25,750 (NL, VIS) pairs from 750 tables over 105 domains, synthesized from (NL, SQL) benchmarks to support cross-domain NL2VIS task. The quality of nvBench has been extensively validated by 23 experts and 300+ crowd workers. Deep learning-based models training using nvBench demonstrate that nvBench can push the field of NL2VIS.

Motivation & Objective

  • Address the lack of large-scale, high-quality benchmarks for cross-domain natural language to visualization (NL2VIS) tasks.
  • Enable deep learning-based models to learn robust NL2VIS translation by providing diverse, realistic (NL, VIS) pairs.
  • Support the development of end-to-end neural models that can generalize across domains and visualization types.
  • Facilitate research in conversational and underspecified NL2VIS by providing a scalable, extensible benchmark foundation.
  • Validate the benchmark’s quality through expert and crowd-worker evaluations to ensure real-world applicability.

Proposed method

  • Synthesize (NL, VIS) pairs by leveraging existing NL2SQL benchmarks, using semantic alignment between SQL and visualization queries.
  • Map each NL query to a corresponding SQL query, then transform the SQL into a Vega-Lite-compatible visualization specification (VIS) using predefined rules.
  • Apply data augmentation techniques to generate multiple NL variations per SQL query, increasing diversity and coverage.
  • Use a two-stage process: first, generate NL queries from SQL using template-based and paraphrasing methods; second, map each NL-SQL pair to a VIS query via a rule-based VIS generation engine.
  • Validate and filter synthesized pairs using expert review (23 experts) and crowd-sourcing (300+ workers) to ensure quality and correctness.
  • Train a deep learning model, ncNet, on nvBench to learn end-to-end NL2VIS translation, using sequence-to-sequence modeling with attention mechanisms.

Experimental results

Research questions

  • RQ1Can a large-scale, diverse, and high-quality (NL, VIS) benchmark be synthesized efficiently from existing NL2SQL benchmarks without manual annotation?
  • RQ2To what extent can deep learning models trained on nvBench achieve human-like performance in cross-domain NL2VIS?
  • RQ3How well does nvBench generalize across different domains, visualization types, and query complexity levels?
  • RQ4Can nvBench support advanced NL2VIS capabilities such as conversational queries and underspecified query handling?
  • RQ5What is the impact of benchmark quality and scale on the performance of end-to-end NL2VIS models?

Key findings

  • nvBench contains 25,750 (NL, VIS) pairs across 750 tables and 105 diverse domains, significantly exceeding prior benchmarks in scale and cross-domain coverage.
  • The benchmark was validated by 23 experts and 300+ crowd workers, confirming high quality and semantic correctness of the synthesized (NL, VIS) pairs.
  • The deep learning model ncNet, trained on nvBench, achieves human-like performance in NL2VIS translation, demonstrating the benchmark’s effectiveness for model training.
  • The synthesis pipeline enables automatic generation of diverse NL queries from SQL, supporting scalability and extensibility to new domains and visualization types.
  • nvBench supports seven common visualization types (e.g., line, bar, scatter), with potential for extension to heatmaps, box-plots, and complex visualizations.
  • The benchmark enables future research in conversational NL2VIS and underspecified query handling, as it provides a foundation for modeling partial or ambiguous queries.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.