Plots Made Quickly: An Efficient Approach for Generating Visualizations from Natural Language Queries

Henrik Voigt, Kai Lawonn, Sina Zarrieß


Abstract
Generating visualizations from natural language queries is a useful extension to visualization libraries such as Vega-Lite. The goal of the NL2VIS task is to generate a valid Vega-Lite specification from a data frame and a natural language query as input, which can then be rendered as a visualization. To enable real-time interaction with the data, small model sizes and fast inferences are required. Previous work has introduced custom neural network solutions with custom visualization specifications and has not systematically tested pre-trained LMs to solve this problem. In this work, we opt for a more generic approach that (i) evaluates pre-trained LMs of different sizes and (ii) uses string encodings of data frames and visualization specifications instead of custom specifications. In our experiments, we show that these representations, in combination with pre-trained LMs, scale better than current state-of-the-art models. In addition, the small and base versions of the T5 architecture achieve real-time interaction, while LLMs far exceed latency thresholds suitable for visual exploration tasks. In summary, our models generate visualization specifications in real-time on a CPU and establish a new state of the art on the NL2VIS benchmark nvBench.
Anthology ID:
2024.lrec-main.1119
Volume:
Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)
Month:
May
Year:
2024
Address:
Torino, Italia
Editors:
Nicoletta Calzolari, Min-Yen Kan, Veronique Hoste, Alessandro Lenci, Sakriani Sakti, Nianwen Xue
Venues:
LREC | COLING
SIG:
Publisher:
ELRA and ICCL
Note:
Pages:
12787–12793
Language:
URL:
https://aclanthology.org/2024.lrec-main.1119
DOI:
Bibkey:
Cite (ACL):
Henrik Voigt, Kai Lawonn, and Sina Zarrieß. 2024. Plots Made Quickly: An Efficient Approach for Generating Visualizations from Natural Language Queries. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), pages 12787–12793, Torino, Italia. ELRA and ICCL.
Cite (Informal):
Plots Made Quickly: An Efficient Approach for Generating Visualizations from Natural Language Queries (Voigt et al., LREC-COLING 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.lrec-main.1119.pdf