The GitHub Recent Bugs Dataset for Evaluating LLM-Based Debugging Applications

Jae Yong Lee, Sungmin Kang, Juyeon Yoon, Shin Yoo

This paper, presented by researchers from KAIST, addresses a growing "crisis of confidence" in the evaluation of Large Language Models (LLMs) for software engineering. As LLMs become the go-to tool for automated debugging and program repair, the line between a model's ability to reason and its ability to remember is becoming dangerously blurred.

TL;DR

Researchers have developed GHRB (GitHub Recent Bugs), a new benchmark of 76 real-world Java bugs specifically curated to prevent "data leakage." By selecting bugs fixed after the training cut-off for major models like GPT-4, GHRB ensures that LLM evaluations measure true problem-solving rather than simple memorization of existing fixes.

What Problem Does This Paper Address?

The "secret sauce" of LLMs is their massive training data, often scraped from public repositories like GitHub. However, this creates a major experimental flaw: popular bug benchmarks (like the decade-old Defects4J) are almost certainly part of that training data.

If an LLM has already seen a bug and its corresponding fix during training, using that bug to test the model's debugging skills is like giving a student an exam they’ve already seen the answer key for. This is known as data leakage or contamination. We currently cannot tell if an LLM is a "genius debugger" or just a "very good parrot." This paper seeks to restore experimental integrity by providing a "clean" dataset the models haven't seen before.

Methods

The authors took a two-pronged approach:

  1. Leakage Analysis: They used a tool called "Data Portraits" to check the training data of StarCoder (a popular open-source LLM). They looked for overlaps with the widely used Defects4J benchmark, setting a conservative threshold: if 90% of a buggy method or test was found in the training set, the bug was considered "compromised."
  2. Benchmark Construction: To build GHRB, the authors created an automated pipeline to:
  3. Scrape pull requests from the top 100 starred Java repositories on GitHub.
  4. Filter for PRs created after September 2021 (the official knowledge cutoff for OpenAI’s GPT-3.5 and GPT-4).
  5. Verify that each bug is reproducible (it must have a test that fails on the buggy version and passes on the fixed version).
  6. Ensure the bug is isolated, meaning the fix doesn't include unrelated refactoring or new features.

Datasets

  • Defects4J: Used as the "control" to demonstrate the extent of data contamination in existing benchmarks.
  • StarCoder Training Data: Used as a proxy to estimate leakage in closed-source models.
  • GHRB (GitHub Recent Bugs): The newly introduced benchmark. It contains 76 bugs from 16 diverse, high-quality Java projects (including popular libraries like gson, fastjson, and rocketmq).

Key Insights and Ideas

  • The Contamination is Real: The authors found that 59% of Defects4J bugs were likely included in StarCoder’s training data. This suggests that many recent papers claiming "State-of-the-Art" results on Defects4J may be overestimating LLM capabilities due to memorization.
  • The "Fix Break": Interestingly, when checking for code overlaps, the authors noticed that the matching sequences often "broke" exactly at the location of the bug fix. This strongly suggests the models were trained on the fixed versions of these files, giving them a direct "cheat sheet" for repair tasks.
  • Temporal Isolation as a Defense: Since we don't know exactly what's in the training sets of closed models like GPT-4, the only reliable way to ensure a fair test is to use data generated after the model's training cutoff date.

Key Results

  • GHRB is "Safe": The authors confirmed that the oldest bug-revealing tests in GHRB have no overlap with StarCoder's training data.
  • High-Quality Curation: While the pipeline was automated, the authors performed manual inspections to ensure the 76 bugs were relevant to core functionality and not just fixes for build scripts or documentation.
  • Ready-to-Use Infrastructure: GHRB isn't just a list of bugs; it includes a standardized interface that automatically handles build environments (Maven/Gradle) and version control, making it easy for other researchers to integrate into their evaluation pipelines.

Limitations and Future Work

  • Language Constraint: Currently, GHRB is limited to Java. The authors hope to expand to other languages in the future.
  • The "Moving Cutoff" Problem: As companies release newer models (like GPT-4 Turbo) with more recent training data, the "safe" window for GHRB will eventually close. The authors provide their automated framework to help the community continuously generate new, post-cutoff benchmarks.
  • Dataset Size: At 76 bugs, GHRB is smaller than some older benchmarks. However, the authors argue that 76 clean bugs provide more valid scientific insight than 300 contaminated ones.

Summary updated

BibTeX
@inproceedings{lee2024github,
  author = {Jae Yong Lee and Sungmin Kang and Juyeon Yoon and Shin Yoo},
  title = {{The GitHub Recent Bugs Dataset for Evaluating LLM-Based Debugging Applications}},
  booktitle = {ICST},
  year = {2024},
  doi = {10.1109/icst60714.2024.00049},
}
Figure