arXiv:2610.02995cs.SEOct 2026

Manuscript Offprint

arXiv:2610.02995

BISCEPTER: Probability-Driven Bisection for Large-Scale System Software

Mingyan Gao, Celine Wüst, Zuming Jiang, Zhendong Su

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mingyan Gao ∗^{*}

The University of Hong Kong

Hong Kong

mingyan.gao@connect.hku.hk

Celine Wüst ∗^{*}

ETH Zürich

Switzerland

celine.wuest0@gmail.com

Zuming Jiang

The University of Hong Kong

Hong Kong

jzuming@hku.hk

Zhendong Su

ETH Zürich

Switzerland

zhendong.su@inf.ethz.ch

Abstract—Identifying the bug-inducing commit (BIC) is a fundamental step in regression debugging and a key input to emerging BIC-aware fault-localization pipelines. In practice, BICs are commonly obtained with bisection. Standard bisection selects the median commit of the remaining good–bad interval, thereby balancing commit count. This strategy is optimal under the assumption that each commit is equally likely to be the BIC.

This paper shows that this assumption does not match real-world BIC histories. We construct a dataset of 8,172 bug reports from GCC, the Linux kernel, and MariaDB. We find a strong temporal skew: across the studied systems, 50% of BICs lie within the most recent 0.69% of the report-time commit history. Motivated by this observation, we introduce BISCEPTER, a probability-driven bisection approach that uses historical BIC latency as a lightweight prior. Instead of selecting pivots that split the number of remaining commits, BISCEPTER selects weighted-median pivots that split estimated BIC probability mass, while preserving the same good–bad oracle and interface as standard bisection. We evaluate BISCEPTER on three large-scale systems. The evaluation results show that BISCEPTER reduces bisection iterations by 25.75% on average (up to 55.55%) compared with standard median bisection, while improving over the baseline in 91.26% of test cases. Robustness experiments further demonstrate that the benefit remains stable under noisy historical data. We expect that our research can effectively save effort in debugging software in practice and, more broadly, benefit future software engineering research by bringing insights about BIC distribution.

I. INTRODUCTION

Regression debugging often begins by localizing a fault in time. When a system exhibits a failure, developers need to determine which historical commit first exhibits failing behavior. The bug-inducing commit (BIC) captures this transition point in the commit history [1]. Once identified, a BIC provides a compact and actionable debugging target, enabling developers to inspect a specific change, perform root-cause analysis, or directly revert the offending commit [2], [3]. As a result, BIC identification has become a common practice in regression-debugging workflows [4].

Recent fault-localization work further shows that BICs are not only useful for manual debugging, but also provide effective signals for automated localization. BASIC treats the files modified in an identified BIC as fault candidates and shows that this developer-aligned strategy can outperform spectrum-based compiler fault-localization techniques [4]. DualTrack further combines BIC-derived historical information with dynamic execution spectra, demonstrating that these two sources capture complementary fault signals and can improve localization accuracy in complex systems such as GCC and LLVM [5]. Thus, efficient BIC identification matters both for established regression-debugging workflows and for emerging BIC-aware fault-localization methods.

In practice, BICs are commonly obtained through bisection, as implemented by tools such as git bisect [6]. Given a bug-triggering test, a good commit triggering no bug, and a bad commit triggering the bug, bisection repeatedly tests an intermediate commit to shrink the interval between the good and bad commits until finding the oldest commit where the bug manifests. This simple interface makes bisection broadly applicable: it requires only an ordered commit history and an executable oracle that determines whether the target bug is present. However, each bisection query can be expensive in large-scale systems. Testing a commit requires restoring a compatible build environment, rebuilding the system, and running the resource-intensive test [7]. Reducing the number of tested commits therefore directly reduces the practical cost of BIC identification.

Standard bisection controls search cost by repeatedly testing the median commit of the remaining interval. By halving the number of candidate commits at each step, this strategy minimizes the worst-case search depth when no additional information about the BIC location is available. Implicitly, this approach treats every commit as equally likely to be the bug-inducing commit. Under this assumption, balancing the number of commits on both sides of the pivot is equivalent to balancing the likelihood that the BIC lies on either side. However, if real BICs are not uniformly distributed throughout project commit histories, this equivalence no longer holds. A median pivot may eliminate half of the remaining commits while leaving most of the actual BIC likelihood concentrated on one side of the interval.

Empirical Study: BIC Distribution. To examine whether this assumption matches practice, we construct a dataset of 8,172 real-world bug reports from three large open-source systems: GCC, the Linux kernel, and MariaDB. These systems belong to different software categories (i.e., compiler, OS kernel, and database) but share a strong and consistent BIC temporal skew: 50% of bugs were introduced by only the most recent 0.69% of

∗^{*}Mingyan Gao and Celine Wüst contributed equally to this work.

commits in the report-time history. Under a uniform prior, such a narrow recent region should contain about 0.69% of BICs, not roughly half of them. This empirical mismatch suggests that median bisection is often balanced by commit count but highly imbalanced by the actual distribution of bug-inducing commits. As a result, early median pivots can spend effort testing commits that are unlikely to be the inducing commit.

Core Idea: Probability-Driven Bisection. This empirical mismatch motivates BISCEPTER, a probability-driven bisection framework. Instead of selecting pivots that split the number of remaining commits, BISCEPTER selects pivots that split the estimated BIC probability mass. The key signal is historical BIC latency: how far, in commit-index distance, a bug-inducing commit lies behind the latest commit available when the bug was reported. These historical latencies provide a lightweight project-specific prior over where future BICs are likely to appear. Given this prior, BISCEPTER chooses a weighted-median pivot that approximately balances the estimated probability mass of the two possible bisection outcomes. This design targets a different point in the debugging pipeline from techniques such as Fonte [8], DiWi [9], RecBi [10], LLM4CBI [11], and ODFL [12], which require coverage spectra, generated witnesses, test mutation, configuration variation, or language-specific program analysis. BISCEPTER preserves the standard bisection workflow, changes only the pivot-selection rule, and uses the same bug-triggering test as the oracle.

We implement BISCEPTER as a standalone, language-agnostic bisection tool. We evaluate BISCEPTER in a deployment-oriented setting. For each project, we sort BICs chronologically by bug-report time: older records initialize the historical latency prior, a validation partition selects the cutoff that determines when BISCEPTER falls back to standard bisection, and the newest records are held out for performance evaluation. The evaluation results on the three large-scale systems show that BISCEPTER reduces bisection iterations by an average of 25.75%, up to 55.55%, compared with standard bisection. It achieves improvement in 91.26% of test cases. Robustness experiments further demonstrate that BISCEPTER remains stable under noisy, missing, and duplicated historical BIC records. These results show that a small change that exploits historical BIC regularities in the pivot-selection rule can significantly improve bisection efficiency while retaining the simplicity and generality of conventional bisection.

This paper makes the following contributions:

• An empirical study of BIC temporal distributions. We construct a dataset of 8,172 real-world bug reports from GCC, the Linux kernel, and MariaDB. Across the studied systems, 50% of bugs are introduced by only the most recent 0.69% of commits, revealing a strong temporal skew that challenges the equal-likelihood assumption implicit in standard bisection.

• A lightweight probability-driven bisection technique. We introduce BISCEPTER, which uses historical BIC latencies as a project-specific prior and selects weighted-median pivots that approximately balance estimated BIC probability mass rather than commit count. The approach

Historical BIC prior

(a) Standard median bisection

Median pivot

Splits commit count

50% commits

50% commits

(b) Probability-driven bisection

Weighted-median pivot

Splits estimated BIC probability mass

Historical BIC prior

50% estimated mass

50% estimated mass

Fig. 1. Commit-count partitioning versus probability-mass partitioning.

changes only the pivot-selection rule and preserves the testing interface of standard bisection.

• An evaluation of effectiveness and robustness. Across three large-scale systems, BISCEPTER reduces bisection iterations by an average of 25.75% (up to 55.55%) while outperforming standard bisection in 91.26% of cases. Additional experiments demonstrate that the improvements remain stable under noisy, incomplete, and duplicated historical BIC data.

References (30)