绘制熊猫:大语言模型生成绘图代码的基准
Drawing Pandas: A Benchmark for LLMs in Generating Plotting Code
AI总结:
本文提出PandasPlotBench基准,包含175个任务,评估LLMs在Matplotlib、Seaborn和Plotly上生成绘图代码的能力,发现任务缩短影响小,但Plotly仍具挑战。
摘要:
本文介绍了人工策划的PandasPlotBench数据集,旨在评估语言模型作为视觉数据探索助手的有效性。我们的基准专注于根据自然语言指令生成用于可视化表格数据(如Pandas DataFrame)的代码,补充了当前的评估工具并扩展了其范围。该数据集包含175个独特任务。我们的实验评估了多个领先的大语言模型(LLMs)在三个可视化库:Matplotlib、Seaborn和Plotly上的表现。我们表明,任务的缩短对绘图能力的影响极小,允许用户界面容纳简洁的用户输入而不牺牲功能或准确性。我们的另一项发现揭示,虽然LLMs在像Matplotlib和Seaborn这样的流行库上表现良好,但在Plotly上仍存在挑战,突出了改进的领域。我们希望我们基准的模块化设计将拓宽当前关于生成可视化的研究。我们的数据集和基准代码可在线获取:https://huggingface.co/datasets/JetBrains-Research/PandasPlotBench;https://github.com/JetBrains-Research/PandasPlotBench。
英文摘要:
This paper introduces the human-curated PandasPlotBench dataset, designed to evaluate language models' effectiveness as assistants in visual data exploration. Our benchmark focuses on generating code for visualizing tabular data - such as a Pandas DataFrame - based on natural language instructions, complementing current evaluation tools and expanding their scope. The dataset includes 175 unique tasks. Our experiments assess several leading Large Language Models (LLMs) across three visualization libraries: Matplotlib, Seaborn, and Plotly. We show that the shortening of tasks has a minimal effect on plotting capabilities, allowing for the user interface that accommodates concise user input without sacrificing functionality or accuracy. Another of our findings reveals that while LLMs perform well with popular libraries like Matplotlib and Seaborn, challenges persist with Plotly, highlighting areas for improvement. We hope that the modular design of our benchmark will broaden the current studies on generating visualizations. Our dataset and benchmark code are available online: https://huggingface.co/datasets/JetBrains-Research/PandasPlotBench; https://github.com/JetBrains-Research/PandasPlotBench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。