Look Back Before You Bisect: A Risk-Aware Approach for Efficient Bisection
Ali Sayedsalehi, Peter C. Rigby
Key points
From the paper's conclusion- We thus model culprit localization as two coupled phases, lookback followed by bisection, and study how risk-aware lookback and risk-aware bisection together reduce the total number of localization steps needed for finding the culprit.
Abstract
Culprit localization often relies on bisection over version history to identify the first revision that exhibits a failure. A familiar instance is git bisect , which applies a standard midpoint search once a known-good and known-bad boundary are available. In practice, however, bisection-based culprit localization faces two key limitations: midpoint selection assumes a uniform culprit probability over the commits in the search interval, and the workflow requires a trustworthy clean boundary even though the most recent clean revision is often unknown or costly to validate. We therefore introduce an initial phase that looks back through the sequence of commits to localize a clean commit and construct a small, effective search interval for bisection. We call this phase lookback . To estimate culprit likelihood over commit history, we use just-in-time defect prediction to assign commit-level risk scores, and then use these scores to guide both lookback and bisection. We thus model culprit localization as two coupled phases, lookback followed by bisection, and study how risk-aware lookback and risk-aware bisection together reduce the total number of localization steps needed for finding the culprit. We provide new localization algorithms and adapt and evaluate some algorithms from previous studies, including risk-aware variants, and augment these algorithms with commit-level risk scores derived from learned risk prediction models. To train these models, we create MozillaJIT, a large just-in-time defect prediction dataset mined from Mozilla Firefox repository history, and fine-tune both LLaMA- and ModernBERT-based risk models on it, comparing their performance. To evaluate these algorithms, we implement a simulation framework that captures the end-to-end workflow and the interaction between lookback and bisection. Using Mozilla historical regressions in this simulation, we show that accurate lookback substantially reduces end-to-end cost by shrinking the search interval, and that augmenting both phases with risk scores yields additional savings. Across the evaluated strategies, our best end-to-end combinations achieve roughly 35% fewer localization steps than a NoLookback + StandardMidpointBisection baseline. We release our dataset and a replication package containing model training code and experimental artifacts.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- KG-AST for Cheaper CI/CD: Budgeted Test Selection and AI Bug ReviewarXiv · 2026
- SZZBench: Controlled Git Histories with Explicit Oracles for Diagnosing SZZ ImplementationsarXiv · 2026
- CuraLoc: Repository-Level Fault Localization via Planned Code InspectionarXiv · 2026
- One Strategy Does Not Fit All: Rethinking Data Labeling for Just-in-Time Vulnerability PredictionarXiv · 2026
- Prosecutor: Bayesian Counterfactual Fault LocalizationProceedings of the ACM on Programming Languages · 2026
- Inquest: Log-Guided Root-Cause Code Localization with a Staged AgentarXiv · 2026