arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.13391cs.HC
收藏

使用大型语言模型从自然语言查询生成数据可视化的分析规范

Generating Analytic Specifications for Data Visualization from Natural Language Queries using Large Language Models

Subham Sah, Rishab Mitra, Arpit Narechania, Alex Endert, John Stasko, Wenwen Dou

AI总结:

本文提出一种综合文本提示词,利用LLM从自然语言查询生成包含数据属性、分析任务和可视化推荐的分析规范,提升可解释性与可调试性,并支持对话交互与歧义检测,已集成至NL4DV工具包。

摘要:

最近,大型语言模型(LLMs)在将自然语言(NL)查询转化为可视化方面展现出了巨大潜力,但其“黑盒”特性往往限制了可解释性和可调试性。作为回应,我们提出了一个综合文本提示词,在给定表格数据集和关于该数据集的NL查询时,生成包含(检测到的)数据属性、(推断出的)分析任务和(推荐的)可视化的分析规范。该规范捕捉了查询翻译过程的关键方面,提供了可解释性和可调试性。例如,它提供了从检测到的实体到输入查询中相应短语的映射,以及决定可视化推荐的具体视觉设计原则。此外,与先前基于LLM的方法不同,我们的提示词支持对话式交互和歧义检测能力。在本文中,我们详细介绍了策划提示词的迭代过程,展示了使用GPT-4的初步性能评估,并讨论了LLMs在查询翻译各个阶段的优势和局限性。该提示词是开源的,并已集成到NL4DV中,这是一个流行的基于Python的可视化自然语言工具包,可通过 https://nl4dv.github.io 访问。

英文摘要:

Recently, large language models (LLMs) have shown great promise in translating natural language (NL) queries into visualizations, but their "black-box" nature often limits explainability and debuggability. In response, we present a comprehensive text prompt that, given a tabular dataset and an NL query about the dataset, generates an analytic specification including (detected) data attributes, (inferred) analytic tasks, and (recommended) visualizations. This specification captures key aspects of the query translation process, affording both explainability and debuggability. For instance, it provides mappings from the detected entities to the corresponding phrases in the input query, as well as the specific visual design principles that determined the visualization recommendations. Moreover, unlike prior LLM-based approaches, our prompt supports conversational interaction and ambiguity detection capabilities. In this paper, we detail the iterative process of curating our prompt, present a preliminary performance evaluation using GPT-4, and discuss the strengths and limitations of LLMs at various stages of query translation. The prompt is open-source and integrated into NL4DV, a popular Python-based natural language toolkit for visualization, which can be accessed at https://nl4dv.github.io.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑