arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.17446cs.CLcs.LGcs.PLcs.SE
收藏

L2CEval:评估大型语言模型的语言到代码生成能力

L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models

Google DeepMind(谷歌DeepMind);Salesforce Research(赛富时研究院);Yale University(耶鲁大学);Allen Institute for AI(艾伦人工智能研究所)

Ansong Ni, Pengcheng Yin, Yilun Zhao, Martin Riddell, Troy Feng, Rui Shen, Stephen Yin, Ye Liu, Semih Yavuz, Caiming Xiong, Shafiq Joty, Yingbo Zhou, Dragomir Radev, Arman Cohan

AI总结:

本文提出 L2CEval,在语义解析、数学推理和 Python 编程的 7 项任务上系统评估 LLM 的语言到代码生成能力,并结合校准与人工评估揭示其影响因素、能力边界和典型失败模式。

摘要:

近来,大型语言模型(LLM),尤其是那些在代码上进行预训练的模型,已经展示出以少样本甚至零样本方式从自然语言输入生成程序的强大能力。尽管结果令人鼓舞,但对这些模型的语言到代码生成能力仍明显缺乏全面评估。现有研究往往聚焦于特定任务、模型架构或学习范式,导致人们对整体格局的理解较为零散。在本工作中,我们提出 L2CEval,对 LLM 的语言到代码生成能力进行系统评估,涵盖语义解析、数学推理和 Python 编程领域范围内的 7 项任务,并分析可能影响其性能的因素,例如模型规模、预训练数据、指令微调以及不同的提示方法。除评估模型性能外,我们还衡量模型的置信度校准,并对输出程序开展人工评估。这使我们能够识别并分析跨各类任务和模型的典型失败模式。L2CEval 全面呈现了 LLM 在语言到代码生成方面的能力与局限。我们还发布了该评估框架和所有模型输出,希望为该领域未来的进一步研究奠定基础。

英文摘要:

Recently, large language models (LLMs), especially those that are pretrained on code, have demonstrated strong capabilities in generating programs from natural language inputs in a few-shot or even zero-shot manner. Despite promising results, there is a notable lack of a comprehensive evaluation of these models language-to-code generation capabilities. Existing studies often focus on specific tasks, model architectures, or learning paradigms, leading to a fragmented understanding of the overall landscape. In this work, we present L2CEval, a systematic evaluation of the language-to-code generation capabilities of LLMs on 7 tasks across the domain spectrum of semantic parsing, math reasoning and Python programming, analyzing the factors that potentially affect their performance, such as model size, pretraining data, instruction tuning, and different prompting methods. In addition to assessing model performance, we measure confidence calibration for the models and conduct human evaluations of the output programs. This enables us to identify and analyze the typical failure modes across various tasks and models. L2CEval offers a comprehensive understanding of the capabilities and limitations of LLMs in language-to-code generation. We also release the evaluation framework and all model outputs, hoping to lay the groundwork for further future research in this domain.

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

↑