What is wrong with your code generated by large language models? An extensive study

Shihan Dou, Haoxiang Jia, Shenxi Wu, Huiyuan Zheng, Muling Wu, Yunbo Tao, Ming Zhang, Mingxu Chai, Jessica Fan, Zhiheng Xi, Rui Zheng, Yueming Wu, Ming Wen, Tao Gui, Qi Zhang, Xipeng Qiu, Xuanjing Huang

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
GPT-4 code-repair evaluationSelf-critique/self-revision bug repair using bug taxonomy and compiler feedbackRepair success rate, iteration 229.2%+0.9 vs baselinesplit: test · iteration=2
Source quote
L925: Ours │ 24.1% │ 29.2%
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
RWPBDeepSeek-R1 (DSR) baselinePASS rate77.9%Real-world benchmark of 140 programming requirements collected from GitHub; table value…
Source quote
L799: PASS │ 31.4 │ 32.9 │ 22.9 │ 22.1 │ 75.7 │ 77.9 │ 44.3 │ 34.3 │ 45.7
RWPBPhi-3 (table label: Phi3) baselinePASS rate22.1%Real-world benchmark of 140 programming requirements collected from GitHub; table value…
Source quote
L799: PASS │ 31.4 │ 32.9 │ 22.9 │ 22.1 │ 75.7 │ 77.9 │ 44.3 │ 34.3 │ 45.7
GPT-4 code-repair evaluationIntervenor baselineRepair success rate, iteration 228.3%split: test · iteration=2
Source quote
L924: Intervenor \cite{wang2024intervenor} │ 22.5% │ 28.3%
BibTeX
@article{dou2026what,
  author = {Shihan Dou and Haoxiang Jia and Shenxi Wu and Huiyuan Zheng and Muling Wu and Yunbo Tao and Ming Zhang and Mingxu Chai and Jessica Fan and Zhiheng Xi and Rui Zheng and Yueming Wu and Ming Wen and Tao Gui and Qi Zhang and Xipeng Qiu and Xuanjing Huang},
  title = {{What is wrong with your code generated by large language models? An extensive study}},
  journal = {Science China Information Sciences},
  year = {2026},
  doi = {10.1007/s11432-025-4632-8},
}
Figure