NL2VIS

Translating natural langauge to visualizations

Supporting the translation from natural language (NL) query to visualization (NL2VIS) can simplify the creation of data visualizations because if successful, anyone can generate visualizations by their natural language from the tabular data. The state-of-the-art NL2VIS approaches (e.g., NL4DV and FlowSense) are based on semantic parsers and heuristic algorithms, which are not end-to-end and are not designed for supporting (possibly) complex data transformations. Deep neural network powered neural machine translation models have made great strides in many machine translation tasks, which suggests that they might be viable for NL2VIS as well.

We present ncNet, a Transformer-based sequence-to-sequence model for supporting NL2VIS, with several novel visualization-aware optimizations, including using attention-forcing to optimize the learning process, and visualization-aware rendering to produce better visualization results. To enhance the capability of machine to comprehend natural language queries, ncNet is also designed to take an optional chart template (e.g., a pie chart or a scatter plot) as an additional input, where the chart template will be served as a constraint to limit what could be visualized. We conducted both quantitative evaluation and user study, showing that ncNet achieves good accuracy in the nvBench benchmark and is easy-to-use.

References

2022

  1. Natural Language to Visualization by Neural Machine Translation
    Yuyu Luo, Nan Tang, Guoliang Li, Jiawei Tang, and 2 more authors
    IEEE Trans. Vis. Comput. Graph., 2022

2021

  1. Synthesizing Natural Language to Visualization (NL2VIS) Benchmarks from NL2SQL Benchmarks
    Yuyu Luo, Nan Tang, Guoliang Li, Chengliang Chai, and 2 more authors
    In SIGMOD ’21: International Conference on Management of Data, Virtual Event, China, June 20-25, 2021, 2021

2018

  1. DeepEye: Visualizing Your Data by Keyword Search
    Xuedi Qin, Yuyu Luo, Nan Tang, and Guoliang Li
    In Proceedings of the 21st International Conference on Extending Database Technology, EDBT 2018, Vienna, Austria, March 26-29, 2018, 2018