Patched RTC:评估用于多样化软件开发的LLM
Patched RTC: evaluating LLMs for diverse software development tasks
AI总结:
本文提出Patched RTC评估框架,通过无需人工干预的自我评估衡量LLM在错误修复等软件开发任务中的一致性,并证明其能有效区分模型性能与任务难度,为提示优化和模型选择提供指导。
摘要:
本文介绍了Patched RTC(往返正确性),这是一种用于评估大型语言模型(LLM)在多样化软件开发任务中的新技术,特别关注错误修复、代码审查和文档更新等“外环”活动。Patched RTC扩展了原始的RTC方法,使其能够与任何LLM及下游任务配合使用,提供了一个自我评估框架,可在无需人工干预的情况下衡量模型响应的一致性和鲁棒性。研究表明,Patched RTC得分与特定任务的准确度指标之间存在相关性,这使其成为开放域任务评估中LLM-as-Judge(LLM作为评判者)范式的一种替代方案。我们在名为patchwork的开源框架中实现了Patched RTC,允许在各种patchflow中透明地进行推理评估。在不同软件开发任务上比较GPT-3.5和GPT-4模型的实验显示,Patched RTC能有效区分模型性能与任务难度。本文还探讨了一致性提示对提升模型准确度的影响,表明Patched RTC能够为复杂软件开发工作流中的提示优化和模型选择提供指导。
英文摘要:
This paper introduces Patched Round-Trip Correctness (Patched RTC), a novel evaluation technique for Large Language Models (LLMs) applied to diverse software development tasks, particularly focusing on "outer loop" activities such as bug fixing, code review, and documentation updates. Patched RTC extends the original Round-Trip Correctness method to work with any LLM and downstream task, offering a self-evaluating framework that measures consistency and robustness of model responses without human intervention. The study demonstrates a correlation between Patched RTC scores and task-specific accuracy metrics, presenting it as an alternative to the LLM-as-Judge paradigm for open-domain task evaluation. We implement Patched RTC in an open-source framework called patchwork, allowing for transparent evaluation during inference across various patchflows. Experiments comparing GPT-3.5 and GPT-4 models across different software development tasks reveal that Patched RTC effectively distinguishes model performance and task difficulty. The paper also explores the impact of consistency prompts on improving model accuracy, suggesting that Patched RTC can guide prompt refinement and model selection for complex software development workflows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。