Skip to content
NewA calmer, faster ZeroHour

PreciseCoder: Faithful and Generalizable Debugging Beyond Unit-Test Rewards

Hugging Face daily papersby Yunkai Zhan, Miaosen Chai, Shangshang Wang ()1 min read2
AI summary · grok-4.7-buildSummaries by Vani AI

PreciseCoder trains code models to debug with smaller, localized edits instead of hallucinating bugs.

PreciseCoder augments unit-test rewards for code-model debugging with a signal for semantically verified, localized edits. Unit-test-only training raises pass rates but also teaches models to edit more and to invent bugs in already-correct code. On 4B, 9B, and 27B models, PreciseCoder cuts average edit lines from 7-15 to 3 at comparable pass rates and generalizes from single-line bugs to repository-level repair. Reasoning traces from a 9B PreciseCoder improve edit precision of GPT-5.6 Sol and Qwen3.8-Max by 4.6-12.4 points without further training.

Key facts
  • Unit-test-only rewards raise pass rates but increase edits and hallucinated bugs.
  • PreciseCoder adds a reward for semantically verified, localized edits.
  • On 4B, 9B, and 27B models, average edit lines fall from 7-15 to 3.
  • Single-line-bug training generalizes to repository-level repair with smaller patches.
  • A 9B reasoning trace lifts frontier edit precision by 4.6-12.4 points.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at huggingface.co

Reinforcement learning (RL) from unit tests is the common recipe for post-training code models, but a unit test only asks whether the final program passes. We analyze what this unit-test-only reward teaches a model during debugging and find that, while it raises pass rates, it also teaches the model to edit more and to hallucinate bugs in code that is already correct.

Hugging Face daily papers

By Yunkai Zhan, Miaosen Chai, Shangshang Wang · huggingface.co

Read the full article at Hugging Face daily papers

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.