用于代码的大型语言模型综述:演进、基准测试与未来趋势
A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trends
AI总结:
本文系统综述了Code LLM的类型、与通用LLM的性能差异及关系,分析了134项相关研究,并在多个主流基准上评估了不同软件工程任务的最佳LLM,为开发者和从业者提供了模型选择与改进方向的指导。
摘要:
以ChatGPT为代表的通用大型语言模型(LLM)在软件工程的代码生成等任务中展现了巨大潜力。这促成了专门用于软件工程的LLM的发展,即Code LLM。相当一部分Code LLM是通过模型微调从通用LLM衍生而来的。因此,Code LLM经常被频繁更新,其性能也会受到基础LLM的影响。然而,目前缺乏对Code LLM及其性能的系统调查。在本研究中,我们对Code LLM的类型及其与通用LLM的性能差异进行了全面的调查和分析。我们旨在解决三个问题:(1) 哪些LLM是专门为软件工程任务设计的,这些Code LLM之间的关系是什么?(2) 在软件工程任务中,Code LLM是否真的优于通用LLM?(3) 在不同的软件工程任务中,哪些LLM更加熟练?为了回答这些问题,我们首先从五个主要数据库和开源社区收集了相关文献和作品,得到了134项作品进行分析。接下来,我们根据发布者对Code LLM进行分类,并检查它们与通用LLM之间以及它们相互之间的关系。此外,我们调查了通用LLM和Code LLM在各种软件工程任务中的性能差异,以展示基础模型和Code LLM的影响。最后,我们全面维护了LLM在多个主流基准上的性能,以识别每个软件工程任务中表现最佳的LLM。我们的研究不仅帮助Code LLM的开发者选择基础模型以开发更先进的LLM,还为从业者提供了更好地理解Code LLM关键改进方向的见解。
英文摘要:
General large language models (LLMs), represented by ChatGPT, have demonstrated significant potential in tasks such as code generation in software engineering. This has led to the development of specialized LLMs for software engineering, known as Code LLMs. A considerable portion of Code LLMs is derived from general LLMs through model fine-tuning. As a result, Code LLMs are often updated frequently and their performance can be influenced by the base LLMs. However, there is currently a lack of systematic investigation into Code LLMs and their performance. In this study, we conduct a comprehensive survey and analysis of the types of Code LLMs and their differences in performance compared to general LLMs. We aim to address three questions: (1) What LLMs are specifically designed for software engineering tasks, and what is the relationship between these Code LLMs? (2) Do Code LLMs really outperform general LLMs in software engineering tasks? (3) Which LLMs are more proficient in different software engineering tasks? To answer these questions, we first collect relevant literature and work from five major databases and open-source communities, resulting in 134 works for analysis. Next, we categorize the Code LLMs based on their publishers and examine their relationships with general LLMs and among themselves. Furthermore, we investigate the performance differences between general LLMs and Code LLMs in various software engineering tasks to demonstrate the impact of base models and Code LLMs. Finally, we comprehensively maintained the performance of LLMs across multiple mainstream benchmarks to identify the best-performing LLMs for each software engineering task. Our research not only assists developers of Code LLMs in choosing base models for the development of more advanced LLMs but also provides insights for practitioners to better understand key improvement directions for Code LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。