PreciseCoder: unit-test-only RL teaches code models to over-edit and hallucinate bugs

Berkeley · hf · 2026-10-16

Researchers from USC, UChicago, Google and UC Berkeley show that RL from unit tests raises pass rates but teaches models to edit more and hallucinate bugs in already-correct code. PreciseCoder augments the reward with semantically verified, localized edits: across 4B/9B/27B models it cuts average edited lines from 7–15 to 3 at comparable pass rates, and generalizes from single-line bugs to repository-level repair with smaller patches resolving more issues.

Original post →

More from Research

Research channel →