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

从代码到法庭:LLM作为新的软件评审者

From Code to Courtroom: LLMs as the New Software Judges

Junda He, Jieke Shi, Terry Yue Zhuo, Christoph Treude, Jiamou Sun, Zhenchang Xing, Xiaoning Du, David Lo

AI总结:

本文指出评估LLM生成软件工件质量面临人工成本高和传统自动化指标不足的挑战,提出LLM-as-a-Judge范式作为解决方案,并展望了至2030年该范式在软件工程领域的发展路线图与研究路径。

摘要:

最近,大型语言模型(LLM)越来越多地被用于自动化代码生成和摘要等软件工程(SE)任务。然而,评估LLM生成的软件工件的质量仍然具有挑战性。人工评估虽然有效,但成本高昂且耗时。像BLEU这样的传统自动化指标依赖于高质量参考,难以捕捉软件质量的细微方面,如可读性和实用性。作为回应,采用LLM进行自动化评估的LLM-as-a-Judge范式应运而生。鉴于LLM通常经过训练以与人类判断对齐,并具备强大的编码能力和推理技能,它们有望成为人类评估者的经济高效且可扩展的替代品。尽管如此,SE社区中的LLM-as-a-Judge研究仍处于早期阶段,仍需许多突破。这篇前瞻性的SE 2030论文旨在引导研究界推进LLM-as-a-Judge以评估LLM生成的软件工件,同时分享实现该目标的潜在研究路径。我们对现有的关于LLM-as-a-Judge的SE研究进行了文献综述,并设想这些框架将成为可靠、稳健且可扩展的人类替代品,能够在2030年及以后通过一致的、多方面的评估来评价软件工件。为了验证这一愿景,我们分析了当前研究的局限性,确定了关键研究空白,并概述了指导软件工程中LLM-as-a-Judge未来发展的详细路线图。虽然本工作并非旨在作为最终指南,但其目标是促进SE社区对LLM-as-a-Judge框架的进一步研究和采用,最终提高软件工件评估方法的有效性和可扩展性。

英文摘要:

Recently, Large Language Models (LLMs) have been increasingly used to automate SE tasks such as code generation and summarization. However, evaluating the quality of LLM-generated software artifacts remains challenging. Human evaluation, while effective, is very costly and time-consuming. Traditional automated metrics like BLEU rely on high-quality references and struggle to capture nuanced aspects of software quality, such as readability and usefulness. In response, the LLM-as-a-Judge paradigm, which employs LLMs for automated evaluation, has emerged. Given that LLMs are typically trained to align with human judgment and possess strong coding abilities and reasoning skills, they hold promise as cost-effective and scalable surrogates for human evaluators. Nevertheless, LLM-as-a-Judge research in the SE community is still in its early stages, with many breakthroughs needed. This forward-looking SE 2030 paper aims to steer the research community toward advancing LLM-as-a-Judge for evaluating LLMgenerated software artifacts, while also sharing potential research paths to achieve this goal. We provide a literature review of existing SE studies on LLM-as-a-Judge and envision these frameworks as reliable, robust, and scalable human surrogates capable of evaluating software artifacts with consistent, multi-faceted assessments by 2030 and beyond. To validate this vision, we analyze the limitations of current studies, identify key research gaps, and outline a detailed roadmap to guide future developments of LLM-as-a-Judge in software engineering. While not intended to be a definitive guide, our work aims to foster further research and adoption of LLM-as-a-Judge frameworks within the SE community, ultimately improving the effectiveness and scalability of software artifact evaluation methods.

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

↑