Reproduce “On Distribution Shift in Learning-based Bug Detectors” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jingxuan He, Luca Beurer-Kellner, Martin Vechev

Researchers at ETH Zurich developed a two-phase training framework to overcome distribution shift in learning-based bug detectors, significantly improving their precision on real-world codebases from under 10% to over 60% for certain bug types. This approach integrates training on both synthetic and real-world imbalanced data, alongside architectural and loss function enhancements.

Key insights

  • The primary challenge for practical learning-based bug detection is the severe distribution shift between synthetic training data and the characteristics of real bugs and their highly imbalanced occurrence in codebases.
  • A complementary training approach, leveraging both the abundance of synthetic data for initial learning and the specific patterns of real bugs for fine-tuning, is essential to bridge this gap.
  • Careful dataset construction that mirrors real-world data imbalance and includes actual bugs is crucial for developing and evaluating deployable bug detectors.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.