Abstract
Gradient Boosted Decision Trees (GBDTs) are a cornerstone of machine learning for tabular data, yet understanding which training samples most influence a model's prediction remains a significant challenge. This difficulty stems from the non-parametric and discontinuous nature of tree ensembles. We introduce a novel framework to efficiently estimate the influence of individual training points by approximating leave-one-out retraining and weight perturbations. By assuming that small data changes do not alter tree structures, we derive two proxy metrics: LeafRefit and LeafInfluence. Our fast approximation algorithms significantly reduce computational overhead, enabling practical model debugging, label noise identification, and domain mismatch correction without the need for prohibitively expensive model retraining.
Introduction
As machine learning models are increasingly deployed in high-stakes domains, the need for robust interpretability and debugging tools grows. Identifying "influential training samples"—those that most significantly impact a specific prediction—is a powerful technique for understanding model behavior. While "Influence Functions" have been successfully applied to smooth, parametric models like neural networks, they are not directly applicable to GBDTs. GBDTs rely on hard, discontinuous feature splits, making it impossible to compute derivatives through the tree structure. Given the ubiquity of GBDTs in industry, bridging this gap is essential for building reliable and transparent systems.
Methodology
The core insight of this work is that while tree structures (the splits) are generally robust to the removal of a single training point, the leaf values change smoothly. By fixing the tree structures, we can treat the leaf values as parameters and apply influence-based mathematics.
Influence Proxies
We propose two primary methods for estimating influence:
- LeafRefit: This method approximates leave-one-out retraining by recalculating leaf values as if a specific training point were removed, keeping the splits constant. To make this computationally feasible, we introduce FastLeafRefit, which limits updates to a small "update set" of training points at each boosting step.
- LeafInfluence: This approach calculates the gradient of the model's prediction with respect to an infinitesimal change in a training sample's weight. FastLeafInfluence uses a similar update-set approximation to accelerate computation.
Optimization Heuristics
To further enhance efficiency, we employ the TopKLeaves heuristic. This method focuses updates on the $k$ leaves that have experienced the largest accumulated prediction changes, exploiting the "snowball effect" where changes in early boosting steps compound in subsequent trees. This allows the algorithm to ignore leaves where the prediction delta is negligible, saving massive amounts of compute.
Experimental Evaluation
We evaluated our framework on several benchmark tabular datasets, including Adult (census income), Amazon Employee Access, and KDD Cup 2009 Upselling.
Approximation Quality and Speed
Our fast approximations demonstrate exceptional fidelity to exact calculations. For instance, FastLeafInfluence with the Top64Leaves heuristic achieves near-perfect NDCG scores compared to exact gradients. Crucially, these approximations offer substantial speedups over naive retraining. FastLeafInfluence is particularly efficient as its mathematical operations can be vectorized, and certain gradients can be precomputed during the initial training phase.
Model Debugging: Label Noise and Domain Mismatch
A key application of our framework is identifying problematic data. In experiments where labels were intentionally flipped, our algorithms successfully flagged noisy points with high ROC-AUC scores. Removing the most "harmful" points identified by the influence scores consistently reduced Logloss on targeted test indices.
Furthermore, the framework proved effective in detecting domain mismatches. In a hospital readmission scenario with biased training data, the algorithm correctly identified underrepresented samples (e.g., specific age groups) that, if upweighted, would improve generalization to the test set.
Discussion and Limitations
The effectiveness of this framework hinges on the fixed-structure assumption. While generally valid for small perturbations, this assumption may fail if a training point is uniquely pivotal to a specific split. In such cases, the influence approximation may diverge from actual retraining results. Additionally, while our methods are significantly faster than retraining, calculating influence for every training point in massive datasets still presents a computational challenge, suggesting a need for further sampling-based optimizations in future work.
Conclusion
This work provides a mathematically grounded and computationally tractable approach to finding influential samples in GBDT ensembles. By decoupling tree structure from leaf values, we enable a suite of debugging and interpretability tools previously unavailable for this popular model class, paving the way for more robust and accountable machine learning deployments.
Summary updated