New We are releasing a new follow-up work, PreciseCoder, which uses PDB to train coding models with precision-aware RL rewards for faithful debugging.
Unlike code completion, debugging requires localizing faults and applying targeted edits. We observe that frontier LLMs often hack unit tests by regenerating correct but over-edited solutions during debugging. To evaluate how far LLMs are from precise debugging, we introduce the Precise Debugging Benchmarking (PDB), a general, dataset-agnostic framework that converts any coding dataset into a debugging benchmark with precision-aware evaluation.
PDB generates buggy programs by synthesizing verified atomic bugs and composing them into multi-bug programs. We define two novel metrics, edit-level precision and bug-level recall, which measure how many necessary edits are made and how many bugs are resolved. We release two evaluation benchmarks: PDB-Single on single-line bugs, and PDB-Wild on multi-line and repository-level bugs.
Experiments show that frontier models, such as GPT-5.1-Codex and DeepSeek-V3.2-Thinking, achieve unit-test pass rates above 76% but exhibit precision below 45%, even when explicitly instructed to perform minimal debugging on single-line bugs. Iterative and agentic debugging strategies do not substantially improve precision or recall, highlighting the need to rethink post-training pipelines for coding models.
We release two evaluation sets built with the PDB generation and evaluation pipeline, sourced from three existing coding benchmarks: BigCodeBench (API usage), LiveCodeBench (algorithmic reasoning), and SWE-smith (repository-level software engineering).
PDB-Single data distribution: 5,751 examples across source benchmark, bug count (1–4), and bug category.
Scatter plots below: hover for exact numbers. Full tables are on the Leaderboard.
Bug-count breakdown on PDB-Single (BigCodeBench).
Bug-count breakdown on PDB-Single (LiveCodeBench).
Model performance under minimal-debug vs. freeform prompting.
Model performance under iterative and agentic setups.
Recall distribution over the five bug categories.
@article{chai2026pdb,
title={Precise Debugging Benchmark: Is Your Model Debugging or Regenerating?},
author={Chai, Miaosen and Zhu, Wang Bill and Wang, Shangshang and Liu, Yejia and Bian, Song and Dong, Honghua and Neiswanger, Willie and Jia, Robin},
journal={arXiv preprint arXiv:2604.17338},
year={2026}
}