Across four Java bug-fixing tests, the fine-tuned model's patch applicability rate rose from 0/4 to 4/4, while its trigger-test pass rate remained 0/4. These results show that the model learned to submit modifications in a more standard format, but did not gain the ability to solve new defects.

What this is

This experiment tested models on defect-fixing tasks using real Java projects from Defects4J. Rather than relying on another model to judge the output, the evaluation used compilers and tests to provide direct answers: whether the patch could be applied, whether the project could compile, whether the originally failing test had turned into a passing test, and whether any related tests had been broken.

Initially, neither the 0.6B nor the 4B model solved the designated problems. The experiment then tried full-method generation, structured local replacement, adding more examples and training epochs, adjusting the LoRA rank—a training method that fine-tunes only some parameters—supplying the correct code locations, adding actual execution results, and enabling deep reasoning mode, in which the model analyzes before answering.

Over time, the models became better able to quote the source text that needed modification and generate applicable patches, but they did not develop a transferable ability to fix defects. In particular, after the supervised target was reduced from 1,212 tokens to roughly 80 tokens, training efficiency appeared to improve, yet every validation-set test still failed.

Industry view

The most valuable takeaway from this retrospective is not that “small models cannot fix bugs,” but that it separates several metrics often treated as interchangeable: declining training loss, compliant output formatting, applicable patches, and actual defect resolution are four different things. If companies look only at demo performance or training curves, they risk mistaking “looking more like the correct answer” for “already knowing how to solve the problem.”

One counterargument should still be preserved: the experiment covered only a small number of Java tasks, and the prompts, output protocol, and reasoning settings still have room for further adjustment. It is therefore enough to reject the optimistic conclusion that “a few rounds of fine-tuning will transfer,” but not enough to prove that 0.6B or 4B models are equally ineffective across a broader range of coding tasks.

Our judgment is that the key to small-model engineering is not merely compressing parameters. It is first confirming that the model has the baseline capabilities required for the task, then training it through the smallest, most verifiable form of output. If the base model cannot connect the problem to evidence of the desired behavior, adding more examples will usually reinforce imitation rather than reasoning.

Impact on regular people

For enterprise IT: When procuring models, teams should make real-task pass rates, regression tests, and failure types core evaluation metrics. They should rely less on “can generate” or “executable” as acceptance criteria.

For individual professionals: When using AI to fix code, ask it to reproduce the issue, explain the evidence, and propose the smallest possible modification before validating the result through tests. Successful compilation or a plausible-looking answer does not mean the problem has been fixed.

For the consumer market: Built-in writing, coding, and customer-service features will continue to proliferate. But this experiment suggests that product teams should prioritize access to capabilities with clear validation standards, rather than using larger models to conceal weak baseline reliability.