arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.11863cs.HCcs.AIcs.CL
收藏

ChatVis:使用大型语言模型自动化科学可视化

ChatVis: Automating Scientific Visualization with a Large Language Model

Argonne National Laboratory(阿贡国家实验室)

Tanwi Mallick, Orcun Yildiz, David Lenz, Tom Peterka

AI总结:

研究开发了迭代式助手ChatVis,利用LLM自动生成并修正Python数据可视化脚本,通过错误检测与纠正机制在五个场景中成功生成正确脚本,优于无辅助LLM。

摘要:

我们开发了一个迭代式助手,称为ChatVis,它能使用大型语言模型(LLM)合成生成用于数据分析和可视化的Python脚本。该助手允许用户用自然语言指定操作,尝试为所需操作生成Python脚本,并根据需要提示LLM修改脚本,直到其正确执行。迭代过程包含错误检测与纠正机制,该机制从脚本执行中提取错误信息,随后提示LLM纠正错误。我们的方法在五个典型可视化场景中展示了正确的执行效果,并将结果与真实值进行了比较。我们还将结果与未经任何辅助的其他几个LLM生成的脚本进行了对比。在所有实例中,ChatVis均成功生成了正确的脚本,而未受辅助的LLM则未能做到。代码可在GitHub上获取:https://github.com/tanwimallick/ChatVis/。

英文摘要:

We develop an iterative assistant we call ChatVis that can synthetically generate Python scripts for data analysis and visualization using a large language model (LLM). The assistant allows a user to specify the operations in natural language, attempting to generate a Python script for the desired operations, prompting the LLM to revise the script as needed until it executes correctly. The iterations include an error detection and correction mechanism that extracts error messages from the execution of the script and subsequently prompts LLM to correct the error. Our method demonstrates correct execution on five canonical visualization scenarios, comparing results with ground truth. We also compared our results with scripts generated by several other LLMs without any assistance. In every instance, ChatVis successfully generated the correct script, whereas the unassisted LLMs failed to do so. The code is available on GitHub: https://github.com/tanwimallick/ChatVis/.

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

↑