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

统一NLP与软件工程的视角:面向代码的语言模型综述

Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code

Shanghai Jiao Tong University(上海交通大学);Ant Group(蚂蚁集团)

Ziyin Zhang, Chaoyu Chen, Bingchang Liu, Cong Liao, Zi Gong, Hang Yu, Jianguo Li, Rui Wang

AI总结:

本文系统综述了语言模型在软件工程中的应用,涵盖70+模型、180+数据集,整合SE与NLP视角,并指出代码建模从统计模型到LLM的演进,同时展望了未来挑战与方向。

摘要:

在这项工作中,我们系统性地回顾了语言模型在软件工程领域的最新进展,涵盖了70多个模型、40多项评估任务、180多个数据集以及900篇相关研究。与以往工作不同,我们通过讨论双方的视角,将软件工程(SE)与自然语言处理(NLP)相结合:SE应用语言模型实现开发自动化,而NLP则采用SE任务进行语言模型评估。我们将代码处理模型分解为以GPT系列为代表的通用语言模型和专门针对代码进行预训练(通常具有定制目标)的专用模型。我们讨论了这些模型之间的关系和差异,并强调了代码建模从统计模型和RNN到预训练Transformer和LLM的历史性转变,这一转变与NLP所经历的发展轨迹完全相同。我们还超越了编程本身,回顾了LLM在其他软件工程活动中的应用,包括需求工程、测试、部署和运维,力求提供NLP在SE中应用的全局视图,并识别该领域的关键挑战和潜在未来方向。我们保持该综述的开放性和持续更新,可在GitHub上访问:https://github.com/codefuse-ai/Awesome-Code-LLM。

英文摘要:

In this work we systematically review the recent advancements in software engineering with language models, covering 70+ models, 40+ evaluation tasks, 180+ datasets, and 900 related works. Unlike previous works, we integrate software engineering (SE) with natural language processing (NLP) by discussing the perspectives of both sides: SE applies language models for development automation, while NLP adopts SE tasks for language model evaluation. We break down code processing models into general language models represented by the GPT family and specialized models that are specifically pretrained on code, often with tailored objectives. We discuss the relations and differences between these models, and highlight the historical transition of code modeling from statistical models and RNNs to pretrained Transformers and LLMs, which is exactly the same course that had been taken by NLP. We also go beyond programming and review LLMs' application in other software engineering activities including requirement engineering, testing, deployment, and operations in an endeavor to provide a global view of NLP in SE, and identify key challenges and potential future directions in this domain. We keep the survey open and updated on GitHub at https://github.com/codefuse-ai/Awesome-Code-LLM.

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

↑