arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.05547cs.CL
收藏

检索增强代码生成中查询可回答性评估

Assessing the Answerability of Queries in Retrieval-Augmented Code Generation

Nota Inc.(Nota公司)

Geonmin Kim, Jaeyeon Kim, Hancheol Park, Wooksu Shin, Tae-Ho Kim

AI总结:

本文提出RaCG中查询可回答性评估任务,并构建RaCGEval基准,实验显示基线模型性能仅46.7%,同时探讨了可显著提升性能的方法。

摘要:

得益于大语言模型(LLM)前所未有的语言理解与生成能力,检索增强代码生成(RaCG)近期已在软件开发人员中得到广泛应用。尽管这提升了生产力,但提供错误代码的情况仍频繁出现。尤其是,对于用户提出的、无法依据给定查询和API描述进行回答的查询,模型有时会生成看似合理却并不正确的代码。本研究提出了一项用于评估可回答性的任务,即在RaCG中评估能否基于用户查询和检索到的API生成有效答案。此外,我们构建了一个名为检索增强代码可生成性评估(RaCGEval)的基准数据集,用以评估执行该任务的模型性能。实验结果表明,该任务仍处于极具挑战性的水平,基线模型仅表现出46.7%的低性能。进一步地,本研究还讨论了能够显著提升性能的方法。

英文摘要:

Thanks to unprecedented language understanding and generation capabilities of large language model (LLM), Retrieval-augmented Code Generation (RaCG) has recently been widely utilized among software developers. While this has increased productivity, there are still frequent instances of incorrect codes being provided. In particular, there are cases where plausible yet incorrect codes are generated for queries from users that cannot be answered with the given queries and API descriptions. This study proposes a task for evaluating answerability, which assesses whether valid answers can be generated based on users' queries and retrieved APIs in RaCG. Additionally, we build a benchmark dataset called Retrieval-augmented Code Generability Evaluation (RaCGEval) to evaluate the performance of models performing this task. Experimental results show that this task remains at a very challenging level, with baseline models exhibiting a low performance of 46.7%. Furthermore, this study discusses methods that could significantly improve performance.

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

↑