A new arXiv paper investigates whether large language models (LLMs) fix bugs in code by making minimal changes or by reimplementing the solution entirely. Researchers constructed a dataset of programming submissions and human fixes from Codeforces to evaluate three OpenAI GPT models (gpt-5-nano, gpt-5-mini, gpt-5.1). The study found that LLMs often modify more code than necessary compared to human patches and sometimes generate completely new solutions. Interestingly, LLMs were more successful at solving problems when allowed to create solutions from scratch rather than patching existing buggy code. AI
IMPACT Suggests a need for AI-assisted programming tools that encourage incremental problem-solving over complete solution replacement.
RANK_REASON Academic paper analyzing LLM behavior on programming tasks. [lever_c_demoted from research: ic=1 ai=1.0]
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →