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

HEJ-Robust:基于LLM的自动程序修复的鲁棒性基准

HEJ-Robust: A Robustness Benchmark for LLM-Based Automated Program Repair

Concordia University(康科迪亚大学)

Fazle Rabbi, Jinqiu Yang

AI总结:

本文提出HEJ-Robust基准,通过八种语义保持的代码转换生成1450个实例,评估五种微调LLM,在多种转换下模型性能下降超50%,揭示当前LLM修复模型缺乏对细微语法变化的鲁棒性。

摘要:

近期大型语言模型(LLMs)在自动程序修复标准基准上表现出色。然而,这些基准仅在单一规范形式的错误代码上评估模型,未能反映现实软件中常见的语法变化,导致鲁棒性未被充分检验。本文构建了HEJ-Robust基准,基于HumanEval-Java-Bug使用八种语义保持的代码转换生成1450个实例。我们在该基准上评估了五种微调LLM,并发现模型在几种转换下性能下降超过50%,表明当前基于LLM的修复模型缺乏对细微语法变化的鲁棒性。

英文摘要:

Recent Large Language Models (LLMs) have shown strong performance on automated program repair across standard benchmarks. However, these benchmarks evaluate models on a single canonical form of buggy code and do not reflect the syntactic variations commonly observed in real-world software, leaving robustness largely unexamined. In this work, we construct HEJ-Robust, a robustness benchmark built from HumanEval-Java-Bug using eight semantics-preserving code transformations, resulting in 1,450 transformed instances. We evaluate five fine-tuned LLMs on this benchmark and show that model performance drops by over 50% under several transformations, indicating that current LLM-based repair models lack robustness to minor syntactic variations.

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

↑