arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.11354cs.SEcs.AI
收藏

迈向基于大语言模型的代码生成:一份研究路线图

Towards Advancing Code Generation with Large Language Models: A Research Roadmap

University of Sydney(悉尼大学);CSIRO’s Data61(澳大利亚联邦科学与工业研究组织Data61研究院)

Haolin Jin, Huaming Chen, Qinghua Lu, Liming Zhu

AI总结:

本文提出六层愿景框架,划分代码生成阶段,分析大语言模型及其智能体框架面临的挑战,旨在提升代码生成系统的可靠性、稳健性与可用性,并为未来研究提供路线图建议。

摘要:

近年来,我们见证了大语言模型的快速发展,这些模型在代码生成这一下游任务中展现出了卓越的能力。然而,尽管潜力巨大,基于大语言模型的代码生成仍面临诸多技术和评估方面的挑战,尤其是在嵌入现实世界开发场景时。在本文中,我们阐述了当前研究方向的愿景,并对该任务上的现有研究进行了深入分析。我们提出了一个六层愿景框架,将代码生成过程划分为不同阶段,即输入阶段、编排阶段、开发阶段和验证阶段。此外,我们概述了我们的愿景工作流程,该流程反映了当前流行的框架。我们系统地分析了大型语言模型(包括基于大语言模型的智能体框架)在代码生成任务中所面临的挑战。基于此,我们提供了多方面的视角和可操作的建议。我们的目标是为提高基于大语言模型的代码生成系统的可靠性、稳健性和可用性提供指导。最终,这项工作旨在解决持续存在的挑战,并为未来代码生成工作提供更务实的基于大语言模型的解决方案的实用建议。

英文摘要:

Recently, we have witnessed the rapid development of large language models, which have demonstrated excellent capabilities in the downstream task of code generation. However, despite their potential, LLM-based code generation still faces numerous technical and evaluation challenges, particularly when embedded in real-world development. In this paper, we present our vision for current research directions, and provide an in-depth analysis of existing studies on this task. We propose a six-layer vision framework that categorizes code generation process into distinct phases, namely Input Phase, Orchestration Phase, Development Phase, and Validation Phase. Additionally, we outline our vision workflow, which reflects on the currently prevalent frameworks. We systematically analyse the challenges faced by large language models, including those LLM-based agent frameworks, in code generation tasks. With these, we offer various perspectives and actionable recommendations in this area. Our aim is to provide guidelines for improving the reliability, robustness and usability of LLM-based code generation systems. Ultimately, this work seeks to address persistent challenges and to provide practical suggestions for a more pragmatic LLM-based solution for future code generation endeavors.

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

↑