PreciseCoder: Faithful and Generalizable Debugging Beyond Unit-Test Rewards
PreciseCoder cut average edits from 7–15 lines to three while matching unit-test-only training’s pass rate.
The authors find that rewarding only test success encourages models to make extra edits and invent bugs in correct code. PreciseCoder adds a reward signal for semantically verified, localized edits, with results reported across 4B, 9B and 27B models. Despite training only on single-line bugs, it also resolved more repository-level issues with smaller patches. Sharing a 9B PreciseCoder model’s reasoning traces with stronger models improved their edit precision by 4.6–12.4 points without additional training.
HF Daily Papers' note
The authors find that rewarding only test success encourages models to make extra edits and invent bugs in correct code. PreciseCoder adds a reward signal for semantically verified, localized edits, with results reported across 4B, 9B and 27B models. Despite training only on single-line bugs, it also resolved more repository-level issues with smaller patches. Sharing a 9B PreciseCoder model’s reasoning traces with stronger models improved their edit precision by 4.6–12.4 points without additional training.
HF Daily Papers' note
score 5