nvBench 2.0: Resolving Ambiguity in Text-to-Visualization through Stepwise Reasoning

Nan Tang (Hong Kong University of Science and Technology (Guangzhou)) · Yuyu Luo (HKUST(GZ)) · Tianqi Luo (The Hong Kong University of Science and Technology (Guangzhou)) · Chuhan Huang (The Hong Kong University of Science and Technology (Guangzhou)) · Leixian Shen (The Hong Kong University of Science and Technology) · Boyan Li (The Hong Kong University of Science and Technology) · Shuyu Shen (The Hong Kong University of Science and Technology) · Wei Zeng (The Hong Kong University of Science and Technology (Guangzhou))
ambiguity-injection pipelineambiguous queriesdata insightsnatural language queriesnbench 2.0performance evaluationpreference optimizationreverse-generation workflowstep-text2visstep-wise reasoning pathstext-to-visualizationvisualizations

Text-to-Visualization (Text2VIS) enables users to create visualizations from natural language queries, making data insights more accessible. However, Text2VIS faces challenges in interpreting ambiguous queries, as users often express their visualization needs in imprecise language. To address this challenge, we introduce nBench 2.0, a new benchmark designed to evaluate Text2VIS systems in scenarios involving ambiguous queries. nvBench 2.0 includes 7,878 natural language queries and 24,076 corresponding visualizations, derived from 780 tables across 153 domains. It is built using a controlled ambiguity-injection pipeline that generates ambiguous queries through a reverse-generation workflow. By starting with unambiguous seed visualizations and selectively injecting ambiguities, the pipeline yields multiple valid interpretations for each query, with each ambiguous query traceable to its corresponding visualization through step-wise reasoning paths.We evaluate various Large Language Models (LLMs) on their ability to perform ambiguous Text2VIS tasks using nBench 2.0. We also propose Step-Text2Vis, an LLM-based model trained on nvBench 2.0, which enhances performance in ambiguous scenarios through step-wise preference optimization. Our results show that Step-Text2Vis outperforms all baselines, setting a new state-of-the-art for ambiguous Text2VIS tasks. Our source code and data are available at https://nvbench2.github.io/