Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

0.6B Model Memorizes Java Answers but Fails Defect Repair

AI summary

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.

In-depth insight

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 也没有修好。

#Qwen3-4B#Defects4J#LoRA#Java

Original · 20 min readRead the original
Group chat

No comments yet. Start the conversation.