Better Understanding, Better Fixes? A Study of Hallucination in LLM-based Automated Program Repair
2026-09-07 12:00Science🔥 42.2 heat score
1sources
1days unfolding
42.2heat score
0mentions
SummaryAI generated
A new study analyzed the repair processes of 832 Defects4J vulnerabilities in large language models (LLMs) for automated program repair (APR). The results showed that existing evaluation methods lacked a deep understanding of hallucination phenomena during the repair process. The study found that among 812 repaired samples, 72.7% had repair hallucinations, with the main error types being incorrect causal identification (45.9%) and incorrect repair strategies (18.5%). Additionally, models often misjudged which test cases were triggered, predicted line coverage related to branch control flows, or generated additional test cases with missing trigger conditions. Final evaluations indicated that only 21.0% to 55.9% of the generated patches passed the tests conducted by developers.