BigIssue: A Realistic Bug Localization Benchmark

Paul Kassianik, Erik Nijkamp, Bo Pang, Yingbo Zhou, Caiming XiongarXiv 2022 · DOI

Introduction

Automatic Program Repair (APR) represents a significant frontier in AI-assisted software engineering. However, the effectiveness of APR is fundamentally limited by the accuracy of Bug Localization (BL)—the ability to identify the specific lines of code responsible for a software failure. Salesforce Research introduces BigIssue, a large-scale benchmark designed to address the limitations of existing datasets and push the boundaries of context-aware bug localization.

The Limitations of Existing Benchmarks

Current bug localization research often relies on Spectrum-Based Fault Localization (SBFL), which necessitates a comprehensive suite of test cases. In many real-world development scenarios, such test suites are unavailable. Consequently, there is a growing need for models capable of "static" bug localization—identifying errors by analyzing code logic and context alone.

The authors identify three primary hurdles in the field:

  1. The Localization Gap: A disconnect between models trained to fix bugs with known locations and the task of finding them.
  2. The Context Problem: Standard code encoders like CodeBERT are limited to a 512-token window, whereas real-world bugs often involve dependencies spanning hundreds of lines.
  3. Dataset Stagnation: Existing benchmarks like Defects4J are too small, leading to overfitting rather than generalized learning.

The BigIssue Dataset

To overcome these challenges, the researchers developed BigIssue, which comprises two distinct components:

  • BigIssue-Real: A collection of 10,905 confirmed bug fixes mined from 4,233 Java repositories on GitHub. These are mapped to specific lines without requiring test execution.
  • BigIssue-Synthetic: A large-scale dataset created using InCoder, a 1-billion parameter generative model, to "infill" code blocks. This produces syntactically correct but logically flawed code, providing a more challenging "sanity check" than simple rule-based perturbations.
Comparison of BigIssue with existing bug localization datasets.

As shown in the table above, BigIssue significantly exceeds previous benchmarks in both size and diversity of repositories.

Methodology and Modeling

The researchers explored long-context modeling to address the limitations of standard encoders. By utilizing Longformer architectures and mean-pooling strategies, they extended the context window to 8,192 tokens. This allows models to ingest entire Java files, capturing non-local dependencies critical for identifying complex bugs.

Experimental Results and the "Reality Gap"

The evaluation of baseline models reveals a stark "reality gap" between synthetic and real-world performance. While models perform exceptionally well on synthetic data, their performance degrades significantly when faced with the nuances of real-world code.

Performance of Longformer models on synthetic and realistic datasets under different training regimes.

Key findings from the experimental results include:

  • Contextual Impact: Increasing the context window from 512 to 4,096 tokens notably improves performance on synthetic data, confirming that many bugs require broader context for identification.
  • Precision Challenge: On the Real benchmark, the Longformer-4096 model achieved a recall of 42.98% but a precision of only 3.74%. This low precision suggests that models frequently generate false positives, a major barrier to practical deployment.
  • Synthetic as a Proxy: Training on synthetic "infilled" data proved more effective than training on real data alone, likely because the synthetic data provides a clearer signal for learning fundamental coding patterns before tackling the complexity of real-world errors.

Conclusion

BigIssue highlights the immense difficulty of real-world bug localization. While long-context models show promise, the significant gap in precision on realistic data indicates that current AI still struggles with the subtle logical errors made by human developers. Future research must focus on cross-file context, more nuanced training objectives, and scaling to larger language models to bridge this gap.

Summary updated

BibTeX
@misc{kassianik2022bigissue,
  author = {Paul Kassianik and Erik Nijkamp and Bo Pang and Yingbo Zhou and Caiming Xiong},
  title = {{BigIssue: A Realistic Bug Localization Benchmark}},
  year = {2022},
  eprint = {2207.10739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.10739},
}
Figure