r/ChatGPTCoding • u/Dedap85 • 3d ago
Discussion Small experiment: devs finished ~10 min faster with an LLM chat, then took ~60% longer to find planted bugs in that same code (arXiv 2611.24216)
A paper from Nov 18 that I think is worth a few minutes if you code with a chat model all day.
Setup. 35 people (students, academics, working devs) each did two small Java tasks in a crossover design: one with LLM chat, one without. Afterwards, the researchers planted bugs (mutations like off-by-one) in each person's own solution and in some unseen code, and timed how long people took to find them.
Results (averages)
- Writing: 14m31s with the LLM vs 24m41s without.
- Seconds per planted bug found: 37.1 in self-written code, 60.4 in their own LLM-generated code, 108.5 in code they'd never seen.
- Share of bugs found: 88.5% / 80% / 66.9%.
- 59.3% of bugs found in self-written code were found "from memory", vs 34.3% in generated code.
Both versions passed the same test suites. The authors' line: "cognitive debt can accumulate behind working code and passing tests."
The part I found most practical. It wasn't uniform. High reliance on the chat plus low engagement with the task went with clearly lower comprehension. Writing your own prompts and leaning less on generated code predicted faster bug-finding.
Caveats
- n=35 and small tasks. The authors say the effect is "less pronounced for small tasks".
- Finding mutations is a proxy for comprehension, which the authors flag themselves.
- The LLM group still came out well ahead on total time for these tasks.
If you only read one part, read the bug-finding section before the headline speed numbers.
9
u/WordWithinTheWord 3d ago
Did the planted bugs pass unit tests?
My experience with these comparisons is that they don’t follow the typical path of how human-developed code gets to a PR stage.
1
u/Dedap85 3d ago
Paper: https://arxiv.org/abs/2611.24216 (HTML: https://arxiv.org/html/2611.24216v1)
3
u/ipreuss 3d ago
Mutations like off-by-one are not the bugs I would worry about.
I currently have a bug in my game where when I get a call while the game runs and go back to the game while still staying on the call, the music comes back prematurely. This is likely a bug in the framework I use.
It would take new age to even learn how to debug that. Claude told me what tools to install, how to configure my phone, added logging to my game and wrote the test protocol. I’m confident that we will have identified and patched the bug in a couple of iterations.
I haven’t really looked at the code since the beginning of the project in January. I don’t feel the need to.
4
u/Longjumping-Sweet818 3d ago
Developing with AI is a new paradigm, and as always, people are too slow to adapt and are asking the wrong questions.
This is like going from Java to Rust and asking "How do I write an EventListener?"
2
u/ChemicalExcellent463 3d ago
the drop from 59% to 34% of bugs found from memory is the bit i'd worry about. every change in my setup gets reviewed by a different vendor's model, but that doesn't tell me whether i can debug it later.
1
u/EndOfWorldBoredom 2d ago
Your headline is misleading. You make 10 minutes sounds small and 60% sound large.
But the total time was 24 minutes vs 14 minutes. 24 minutes is 71% longer than 14 minutes.
1
u/anoncaatyee 2d ago
faster typing can hide slower understanding. i'd love a follow-up that measures the whole loop: initial task, first bug fix, then a change a week later without the original chat. the interesting question is whether the time saved at creation survives contact with maintenance.
1
u/BarathKanna 1d ago
This matches what I see. When you write code, you build the mental model while typing. When you accept generated code, you skip that step and pay for it later during debugging, with interest.
The fix isn't avoiding the chat, it's paying the cost up front on purpose. Before accepting a chunk, write down in one line what each branch should do, then ask the model for the inputs that would break it. Better yet, write one failing test yourself before you let it implement anything. That forces the mental model to exist.
Off-by-one mutations are also the easy ones. The real tax shows up in state and lifecycle bugs, where nobody ever understood the flow, including the model.
1
u/synth_mania 10h ago edited 10h ago
I don't like how we are comparing relative with absolute measures.
What if 10 minutes faster is ≥ 60% x (time to find bug) faster? It could concievably be the case, depending on the exercise. The headline right now is too vague to draw any conclusions because it could go wither way, so it invites the reader to assume the case that suits their prejudices.
A phrase like "saved ~10 minutes writing, cost ~23 seconds per bug to debug" presents the tradeoff much more transparently.
2
u/[deleted] 3d ago
[removed] — view removed comment