ChartifyText:通过大语言模型从含数据文本自动生成图表
ChartifyText: Automated Chart Generation from Data-Involved Texts via LLM
AI总结:
针对含数值文本难以快速解读的问题,提出ChartifyText方法,利用大语言模型自动推断表格数据并生成表现力图表,经专家访谈和用户研究验证其有效性。
摘要:
涉及数值的文本文件广泛应用于科学研究、经济、公共卫生和新闻等多种场景。然而,读者很难快速解读此类含数据文本并获取深刻见解。为填补这一研究空白,本研究旨在自动生成图表,以准确向读者传达底层数据和观点,这本质上是一项具有挑战性的任务。挑战源于文本歧义、文本中数据固有的稀疏性和不确定性,以及主观情感差异。具体而言,我们提出了ChartifyText,一种新颖的全自动方法,利用大语言模型(LLMs)将复杂的含数据文本转换为表现力丰富的图表。它包含两个主要模块:表格数据推断和表现力图表生成。表格数据推断模块采用系统性提示工程,引导大语言模型(如GPT-4)推断表格数据,其中明确考虑了数据范围、不确定性、缺失数据值及相应的主观情感。表现力图表生成模块通过直观的视觉编码和简洁文本增强标准图表,以准确传达底层数据和见解。我们通过案例研究、对三位可视化专家的深入访谈,以及一项精心设计的、有15名参与者参与的用户研究,广泛评估了ChartifyText在真实世界含数据文本文档上的有效性。结果表明,ChartifyText在帮助读者高效且有效地理解含数据文本方面具有实用性和有效性。
英文摘要:
Text documents with numerical values involved are widely used in various applications such as scientific research, economy, public health and journalism. However, it is difficult for readers to quickly interpret such data-involved texts and gain deep insights. To fill this research gap, this work aims to automatically generate charts to accurately convey the underlying data and ideas to readers, which is essentially a challenging task. The challenges originate from text ambiguities, intrinsic sparsity and uncertainty of data in text documents, and subjective sentiment differences. Specifically, we propose ChartifyText, a novel fully-automated approach that leverages Large Language Models (LLMs) to convert complex data-involved texts to expressive charts. It consists of two major modules: tabular data inference and expressive chart generation. The tabular data inference module employs systematic prompt engineering to guide the LLM (e.g., GPT-4) to infer table data, where data ranges, uncertainties, missing data values and corresponding subjective sentiments are explicitly considered. The expressive chart generation module augments standard charts with intuitive visual encodings and concise texts to accurately convey the underlying data and insights. We extensively evaluate the effectiveness of ChartifyText on real-world data-involved text documents through case studies, in-depth interviews with three visualization experts, and a carefully-designed user study with 15 participants. The results demonstrate the usefulness and effectiveness of ChartifyText in helping readers efficiently and effectively make sense of data-involved texts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。