arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.10101cs.SEcs.CL
收藏

大语言模型仓库级提示技术综述

A Review of Repository Level Prompting for LLMs

Northeastern University(东北大学)

Douglas Schonholtz

AI总结:

本文综述了仓库级LLM代码生成提示技术,对比了黑盒LLM适配的相关方法的权衡与最佳实践,明确了迭代提示优化与先进检索的核心作用,为应用及未来软件工程领域的相关研究提供指引。

摘要:

随着编程挑战日趋复杂,大语言模型(LLM)近期的发展已取得显著成果,例如在HumanEval基准上达到94.6%的解决率。与此同时,商业领域正越来越多地推动仓库级行内代码补全工具的发展,如GitHub Copilot和Tab Nine,旨在提升开发者生产力。本文深入探讨了从单个编程问题到仓库级解决方案的转变,对当前仓库级代码生成场景下有效LLM提示技术的相关文献进行了全面综述。我们研究了可与黑盒LLM兼容的方法,以确保其能适用于商业用例,并分析了这些方法在仓库级代码解读方面的适用性。我们将仓库级提示生成技术与RepoCoder(一种迭代检索与生成方法)进行对比,明确了每种方法固有的权衡关系,并确立了其在前沿编程基准中应用的最佳实践。提示的迭代优化与先进检索系统开发之间的相互作用是本文讨论的核心,这为大幅提升LLM在代码生成任务中的性能提供了可行路径。本研究的见解不仅可为这些方法的应用提供指导,还为未来将此类技术整合到更广泛的软件工程场景中的研究指明了方向。

英文摘要:

As coding challenges become more complex, recent advancements in Large Language Models (LLMs) have led to notable successes, such as achieving a 94.6\% solve rate on the HumanEval benchmark. Concurrently, there is an increasing commercial push for repository-level inline code completion tools, such as GitHub Copilot and Tab Nine, aimed at enhancing developer productivity. This paper delves into the transition from individual coding problems to repository-scale solutions, presenting a thorough review of the current literature on effective LLM prompting for code generation at the repository level. We examine approaches that will work with black-box LLMs such that they will be useful and applicable to commercial use cases, and their applicability in interpreting code at a repository scale. We juxtapose the Repository-Level Prompt Generation technique with RepoCoder, an iterative retrieval and generation method, to highlight the trade-offs inherent in each approach and to establish best practices for their application in cutting-edge coding benchmarks. The interplay between iterative refinement of prompts and the development of advanced retrieval systems forms the core of our discussion, offering a pathway to significantly improve LLM performance in code generation tasks. Insights from this study not only guide the application of these methods but also chart a course for future research to integrate such techniques into broader software engineering contexts.

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

↑