识别与交互式细化数据可视化代码生成中的模糊用户目标
Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation
AI总结:
本研究针对数据可视化代码生成中的用户目标模糊问题,提出模糊类型分类法与量化指标,并利用多轮语用对话(基于格莱斯合作原则等模型)减少模糊性,提升代码准确性。
摘要:
建立共享目标是人与人工智能沟通的基本步骤。然而,模糊性可能导致输出看似正确,但未能反映说话者的意图。在本文中,我们以数据可视化领域为重点探讨这一问题,在该领域中,自然语言中的模糊性会影响可视化数据的代码生成。上下文(例如,预期绘图和渲染绘图的代码)上的多种视图的存在,使得能够对不同模糊类型进行独特而全面的分析。我们开发了在此任务中出现的模糊类型分类法,并提出了量化这些模糊性的指标。使用来自DS-1000数据集的Matplotlib问题,我们证明了我们的模糊性指标比不确定性基线更好地与人类标注相关。我们的工作还探讨了多轮对话如何减少模糊性,从而通过更好地匹配用户目标来提高代码准确性。我们评估了三种语用模型以指导我们的对话策略:格莱斯合作原则、话语表征理论和讨论中的问题。一项模拟用户研究揭示了语用对话如何减少模糊性并提高代码准确性,突显了多轮交互在代码生成中的价值。
英文摘要:
Establishing shared goals is a fundamental step in human-AI communication. However, ambiguities can lead to outputs that seem correct but fail to reflect the speaker's intent. In this paper, we explore this issue with a focus on the data visualization domain, where ambiguities in natural language impact the generation of code that visualizes data. The availability of multiple views on the contextual (e.g., the intended plot and the code rendering the plot) allows for a unique and comprehensive analysis of diverse ambiguity types. We develop a taxonomy of types of ambiguity that arise in this task and propose metrics to quantify them. Using Matplotlib problems from the DS-1000 dataset, we demonstrate that our ambiguity metrics better correlate with human annotations than uncertainty baselines. Our work also explores how multi-turn dialogue can reduce ambiguity, therefore, improve code accuracy by better matching user goals. We evaluate three pragmatic models to inform our dialogue strategies: Gricean Cooperativity, Discourse Representation Theory, and Questions under Discussion. A simulated user study reveals how pragmatic dialogues reduce ambiguity and enhance code accuracy, highlighting the value of multi-turn exchanges in code generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。