Large Language Models of Code Fail at Completing Code with Potential Bugs
원문 초록
Large language models of code (Code-LLMs) have recently brought tremendous advances to code completion, a fundamental feature of programming assistance and code intelligence. However, most existing works ignore the possible presence of bugs in the code context for generation, which are inevitable in software development. Therefore, we introduce and study the buggy-code completion problem, inspired by the realistic scenario of real-time code suggestion where the code context contains potential bugs -- anti-patterns that can become bugs in the completed program. To systematically study the task, we introduce two datasets: one with synthetic bugs derived from semantics-altering operator changes (buggy-HumanEval) and one with realistic bugs derived from user submissions to coding problems (buggy-FixEval). We find that the presence of potential bugs significantly degrades the generation performance of the high-performing Code-LLMs. For instance, the passing rates of CODEGEN-2B-MONO on test cases of buggy-HumanEval drop more than 50% given a single potential bug in the context. Finally, we investigate several post-hoc methods for mitigating the adverse effect of potential bugs and find that there remains a significant gap in post-mitigation performance.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Can Language Models Replace Programmers for Coding? REPOCOD Says 'Not Yet'
KV Prediction for Improved Time to First Token
SemCoder: Training Code Language Models with Comprehensive Semantics Reasoning
Investigating the Performance of Language Models for Completing Code in Functional Programming Languages: a Haskell Case Study
Plan for Speed -- Dilated Scheduling for Masked Diffusion Language Models
CodeMixBench: Evaluating Large Language Models on Code Generation with Code-Mixed Prompts
토론
이 논문과 연결된 포럼 글이 아직 없습니다.