arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13117stat.APcs.AI
收藏

大型语言模型在统计编程中的性能评估

Performance Evaluation of Large Language Models in Statistical Programming

Virginia Tech(弗吉尼亚理工大学);University of South Florida(南佛罗里达大学)

Xinyi Song, Kexin Xie, Lina Lee, Ruizhe Chen, Jared M. Clark, Hao He, Haoran He, Jie Min, Xinlei Zhang, Simin Zheng, Zhiyang Zhang, Xinwei Deng, Yili Hong

AI总结:

本文通过多类统计分析任务和专家评分,评估两个 ChatGPT 版本及一个 Llama 版本生成 SAS 代码的能力,揭示其语法优势及深层统计理解局限。

摘要:

大型语言模型(LLM)的编程能力已经彻底改变了自动代码生成,并为自动统计分析开辟了新途径。然而,在这些生成代码被广泛采用之前,需要系统评估其有效性和质量。尽管 LLM 日益受到重视,但文献中仍缺乏对其生成的统计代码的全面评估。本文评估了 LLM 在用于统计分析的 SAS 编程领域中的性能,涉及两个版本的 ChatGPT 和一个版本的 Llama。我们的研究使用了一组涵盖不同统计主题和数据集的统计分析任务。每个任务都包含问题描述、数据集信息以及经过人工验证的 SAS 代码。我们通过人类专家评估,从正确性、有效性、可读性、可执行性以及输出结果准确性等方面,全面评估 LLM 生成的 SAS 代码质量。对评分的分析表明,尽管 LLM 在生成语法正确的代码方面表现出实用性,但它们在需要深入领域理解的任务上存在困难,并可能产生冗余或不正确的结果。本研究为认识 LLM 在统计编程中的能力和局限提供了有价值的见解,并为未来面向统计分析的 AI 辅助编程系统的发展提供指导。

英文摘要:

The programming capabilities of large language models (LLMs) have revolutionized automatic code generation and opened new avenues for automatic statistical analysis. However, the validity and quality of these generated codes need to be systematically evaluated before they can be widely adopted. Despite their growing prominence, a comprehensive evaluation of statistical code generated by LLMs remains scarce in the literature. In this paper, we assess the performance of LLMs, including two versions of ChatGPT and one version of Llama, in the domain of SAS programming for statistical analysis. Our study utilizes a set of statistical analysis tasks encompassing diverse statistical topics and datasets. Each task includes a problem description, dataset information, and human-verified SAS code. We conduct a comprehensive assessment of the quality of SAS code generated by LLMs through human expert evaluation based on correctness, effectiveness, readability, executability, and the accuracy of output results. The analysis of rating scores reveals that while LLMs demonstrate usefulness in generating syntactically correct code, they struggle with tasks requiring deep domain understanding and may produce redundant or incorrect results. This study offers valuable insights into the capabilities and limitations of LLMs in statistical programming, providing guidance for future advancements in AI-assisted coding systems for statistical analysis.

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

↑