Look Back Before You Bisect: A Risk-Aware Approach for Efficient Bisection
Ali Sayedsalehi, Peter C. RigbyCulprit localization often relies on bisection over version history to identify the first revision that exhibits a failure. A familiar instance is
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.