0.6B Model Memorizes Java Answers but Fails Defect Repair
In a four-day experiment reported by 掘金 · 人工智能, a 0.6B model and Qwen3-4B failed to repair unseen Java defects in Defects4J under the tested protocols. Structured local-edit fine-tuning raised applicable patches from 0/4 to 4/4 on unseen cases, but none passed the triggering tests; strong optimization also enabled the 0.6B model to reproduce eight training answers exactly without demonstrating generalization. The author canceled some favorable-looking results after finding an evaluator defect and stopped the existing fine-tuning route, while explicitly rejecting a universal conclusion about the 0.6B model's capacity.
The report provides a reusable evaluation framework that separates format compliance, patch applicability, compilation, triggering-test success, memorization, and generalization, which are not interchangeable measures of automated program repair.
我们总以为大模型是个黑盒,但如果连围绕它的工程管线也是黑盒,那这就成了纯玄学。这 4 天我用了无数种极端的控制变量,终于确信:模型内部可以是黑盒,但实验外部必须绝对白盒。
先讲一个场景。
Defects4J 中有一个缺陷 Lang-33:遍历对象数组时,代码直接调用 array[i].getClass(),但数组里可能包含 null。
测试明确告诉模型:输入中有一个 null,期望输出对应的位置也保留 null。参考修复只需要在调用前增加一次空值判断。
这是一个单行修改,不需要理解整个仓库。
但 0.6B 没有修好,4B 也没有修好。