Metraipolis › archive › dc_ec2310b0996c
Large Language Models for Programming: Actually Fixing or Reimplementing Incorrect Code? — arXiv:2609.29410
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.29410
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T04:49:30.330Z
- SHA-256 of the archived text
8b41234fb7955949c93689ff5b7d5657fb46133b13194eeceba5d4edf599482a- Stable URL of this page
https://metraipolis.com/documento/dc_ec2310b0996c
How to cite
Large Language Models for Programming: Actually Fixing or Reimplementing Incorrect Code? — arXiv:2609.29410 — arXiv (en), https://arxiv.org/abs/2609.29410 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_ec2310b0996c (Metraipolis archive dc_ec2310b0996c, sha256 8b41234fb7955949c93689ff5b7d5657fb46133b13194eeceba5d4edf599482a)
BibTeX
@misc{dcec2310b0996c,
title = {Large Language Models for Programming: Actually Fixing or Reimplementing Incorrect Code? — arXiv:2609.29410},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.29410},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_ec2310b0996c; sha256 8b41234fb7955949c93689ff5b7d5657fb46133b13194eeceba5d4edf599482a},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.29410. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Recent studies have shown that Large Language Models can effectively solve problems and fix bugs in diverse programming environments, including competitive programming. Existing approaches primarily evaluate LLM performance in problem solving or bug fixing independently, but do not explore the relationship between these two capabilities. This work focuses on determining how much the LLM deviates from a buggy solution to fix the bug compared to a human-written patch, and if there is a bias towards generating entirely new solutions. We construct a dataset with all the submissions ($\sim$ 3000) from a couple of users from Codeforces, and we match each buggy submission with its corresponding human fix. By using the similarity between the buggy solution and the human fix as a baseline, we evaluate the quality of LLM-generated bug fixes on 3 OpenAI GPT models (gpt-5-nano, gpt-5-mini, gpt-5.1). We check if the generated solutions solve the problem by using the Codeforces-R1 dataset, an openly available dataset that has tests generated with the DeepSeek-R1 model. Our findings suggest that LLMs tend to modify more lines than necessary compared to human fixes and, in some cases, generate entirely new solutions. We also observe that LLMs solve more problems correctly when allowed to generate solutions from scratch rather than patch buggy submissions, even when those submissions are close to the human patch. This has important implications for the design of AI-assisted programming tools, particularly in supporting user debugging processes and promoting incremental problem-solving strategies rather than solution replacement. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-25 in cs.CL). Categorie arXiv: Computation and Language (cs.CL) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2609.29410 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T04:27:20.056Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).