Precise Debugging Benchmark: Is Your Model Debugging or Regenerating?
Miaosen Chai, Wang Bill Zhu, Shangshang Wang, Yejia Liu, Song Bian, Honghua Dong, Willie Neiswanger, Robin Jia
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › Software Engineering Benchmarks · Type: benchmark or dataset · Keywords: debugging benchmark, code debugging, edit precision, bug recall, LLM evaluation
Areas: Code & Coding Agents › Code Verification › Coding agent benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Software Engineering Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Software Engineering Benchmarks
Summary
PDB is a dataset-agnostic framework that converts any coding dataset into a debugging benchmark with precision-aware evaluation, revealing that frontier LLMs often regenerate over-edited solutions rather than performing precise debugging.
Explained to a 5-year-old
When a program has a mistake, we need to fix just the part that is wrong. Some computers just rewrite the whole program to make it work, which can be too much. We made a new way to test computers so they have to fix only the exact mistake. This helps us see if computers really understand how to debug. It shows that many computers still need to get better at fixing only the right parts.
Explained to a 5-year-old, longer
Computers can make code, but sometimes the code has bugs. A bug is a mistake that makes the program not work. Debugging means finding the mistake and fixing only that part. Some computers, when asked to debug, just rewrite the whole program to make tests pass. This can hide whether they really understand the problem. We created a test that forces computers to fix only the exact mistake. The test uses many small bugs put together. It measures how many mistakes are fixed and how many changes are made. We found that big computers still often change too much. Even when we tell them to be careful, they still rewrite a lot. This tells us we need to teach computers better how to debug. The test will help make future computers smarter about fixing problems. It also helps people see where computers need improvement.
For a technical reader
The paper introduces a framework that turns any coding dataset into a debugging benchmark by injecting known bugs and evaluating how models fix them. It defines two metrics: edit-level precision (how many of the required changes are made) and bug-level recall (how many bugs are resolved). Experiments on leading LLMs show high test-pass rates but low precision, indicating models tend to rewrite code rather than make minimal fixes. The released benchmarks cover single-line and multi-line/repository scenarios, providing a more realistic assessment of debugging capabilities.
Problem
Current coding models often pass unit tests by regenerating correct but over-edited solutions, making it difficult to assess whether they truly debug or simply rewrite code. There is a need for a benchmark that measures precise debugging behavior, distinguishing minimal edits from wholesale regeneration.
Method
The approach converts any coding dataset into a debugging benchmark by synthesizing verified atomic bugs and composing them into multi-bug programs, then evaluates models using edit-level precision and bug-level recall metrics. Two benchmarks are released: one for single-line bugs and another for multi-line and repository-level bugs.
Results
Frontier models achieve unit-test pass rates above 76% but their edit-level precision remains below 45%, and iterative or agentic debugging does not significantly improve these metrics.
Contributions
A general, dataset-agnostic framework for creating debugging benchmarks with precision-aware evaluation, two new benchmarks covering single-line and multi-line/repository bugs, and two novel metrics (edit-level precision and bug-level recall) that expose the discrepancy between test passing and precise debugging.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction