Next Article in Journal
Thermodynamic Analysis of an Ideal Compressed Air Energy Storage (CAES) Cycle Integrated with a Solar Booster
Previous Article in Journal
A High-Strain-Rate Viscohyperelastic Constitutive Framework for Soft Biological Tissues: A Multi-Tissue Evaluation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Bootstrap-Assisted Inference for Interpretable Feature Importance in High-Dimensional Black-Box Models

1
Department of Mathematics and Computer Science, Faculty of Exact Sciences, University of Bechar, Bechar 08000, Algeria
2
Laboratory of Mathematics, Djillali Liabes University of Sidi Bel-Abbes, P.O. Box 89, Sidi Bel-Abbes 22000, Algeria
3
Department of Management, College of Business Administration in Hawtat Bani Tamim, Prince Sattam bin Abdulaziz University, Al-Kharj 11942, Saudi Arabia
*
Author to whom correspondence should be addressed.
AppliedMath 2026, 6(7), 106; https://doi.org/10.3390/appliedmath6070106
Submission received: 8 June 2026 / Revised: 23 June 2026 / Accepted: 24 June 2026 / Published: 1 July 2026
(This article belongs to the Topic Statistics and Data Science)

Abstract

The rapid growth of high-dimensional predictive models in science and industry has intensified the need for statistically rigorous interpretability tools. Although model-agnostic feature importance methods are widely used to explain black-box models, they lack formal uncertainty quantification, leading to unreliable conclusions in high-dimensional settings where spurious correlations are common. We propose a Bootstrap-of-Bootstrap (BoB) inference framework that enables valid uncertainty quantification and hypothesis testing for any model-agnostic feature importance measure. To overcome the high computational cost of nested resampling, we develop an efficient analytical approximation based on influence function theory. The proposed approach provides calibrated confidence intervals and a stability score for each feature, strengthening the statistical foundations of explainable AI. Simulation studies and real-world applications in cancer genomics and credit risk modeling demonstrate its effectiveness, providing reliable, auditable explanations for high-stakes decision-making.

1. Introduction

The widespread adoption of high-performance black-box models (from deep neural networks to sophisticated ensemble methods) has precipitated what many scholars characterize as a credibility crisis in high-stakes decision-making domains, including healthcare, finance, and criminal justice [1,2]. Although these models frequently achieve superior predictive accuracy, their inherent opacity undermines stakeholder trust, complicates regulatory compliance, and impedes scientific discovery by obscuring the mechanisms that drive their predictions [3,4,5]. This tension has catalyzed the rapid development of Explainable AI (XAI), with post hoc, model-agnostic feature importance techniques emerging as a dominant paradigm for interpreting complex predictive systems [6,7].
By systematically perturbing model inputs and observing consequential changes in outputs, methods such as Permutation Feature Importance (PFI) and Shapley Additive Explanations (SHAP) generate intuitive rankings of feature relevance, offering both local and global insights [8,9,10]. Their model-agnostic nature ensures broad applicability across diverse modeling architectures, rendering them indispensable tools for practitioners across disciplines [11]. Nevertheless, a critical and frequently overlooked limitation persists: these importance scores are conventionally reported as point estimates, devoid of any accompanying measures of statistical uncertainty or reliability [12,13].
In high-dimensional regimes where the number of features p approaches or exceeds the number of observations n, this practice becomes particularly problematic. A feature may attain elevated importance due to spurious correlations or idiosyncrasies specific to a particular training sample, rather than reflecting any stable underlying relationship with the outcome [14,15]. In the absence of formal uncertainty quantification, practitioners lack the statistical machinery to distinguish robust, replicable signals from stochastic noise, potentially leading to erroneous conclusions, wasted resources on false leads, and models that fail to generalize beyond their training contexts [16].
The imperative for statistical rigor in XAI has gained increasing recognition within the research community [17,18]. Recent methodological developments have begun addressing this gap. For instance, Williamson et al. [19] proposed using jackknife and infinitesimal jackknife procedures to estimate variance components of importance scores, while Covert et al. [20] adapted concepts from causal inference to construct confidence intervals for feature attributions. However, existing approaches frequently rely on restrictive assumptions (e.g., linearity, asymptotic normality), scale poorly to high-dimensional settings and computationally intensive models, or lack general frameworks for formal hypothesis testing [21,22]. A comprehensive, nonparametric, and computationally feasible solution for uncertainty quantification in model-agnostic interpretability remains an open research challenge.
This work directly addresses this challenge by developing a robust, general-purpose inference framework grounded in nonparametric bootstrap theory [23,24,25]. Our approach bridges classical statistical inference with modern machine learning interpretability through three principal contributions:
  • The Bootstrap-of-Bootstrap (BoB) Procedure: We introduce a rigorous nested resampling algorithm that constructs calibrated confidence intervals and enables formal hypothesis tests for any model-agnostic feature importance measure. This framework provides a statistically principled answer to whether an estimated importance differs significantly from zero.
  • A Fast Influence-Function-Based Approximation: To overcome the prohibitive computational burden of nested bootstrap procedures for complex models, we derive a novel analytical approximation. By leveraging influence function theory [26,27] and extending concepts from the functional analysis of trained models [28], we approximate the sampling distribution of importance scores at a fraction of the computational cost, enabling rigorous inference for real-world high-dimensional problems.
  • The Feature Stability Score: We propose an intuitive metric derived from the bootstrap distribution that quantifies the robustness of a feature’s importance ranking across plausible variations in the training data. This measure moves beyond point estimates toward stability-aware feature selection and model validation.
We validate our framework through comprehensive simulation studies, demonstrating appropriate control of Type I error and substantial statistical power. We then illustrate its practical utility and interdisciplinary relevance through two high-dimensional applications: identifying robust genetic biomarkers in cancer genomics and determining stable, auditable drivers of credit default for regulatory compliance.
This paper is organized as follows. In Section 2, we establish the necessary notation and formally introduce the Bootstrap-of-Bootstrap (BoB) framework for uncertainty quantification in feature importance. We then derive our fast influence-function-based approximation and define the feature stability score. Section 3 presents comprehensive simulation studies evaluating Type I error control, statistical power, and computational efficiency of the proposed methods relative to the existing approaches. We demonstrate the practical utility of our framework through two high-stakes applications: identifying robust genetic biomarkers in breast cancer genomics using TCGA data, and determining auditable drivers of credit default for regulatory compliance. Section 4 discusses the broader implications, limitations, and opportunities for future work. Finally, Section 5 concludes the paper with a summary of our contributions and their significance for trustworthy machine learning.

2. Methodology

2.1. Preliminaries and Notation

Let D = { ( x i , y i ) } i = 1 n denote a dataset comprising n independent observations, where x i R p is a p-dimensional feature vector and y i R (or categorical labels for classification settings) is the corresponding response variable. In high-dimensional settings, p may be large or even exceed n.
Let f ^ : R p R denote a fitted black-box model trained on D , such as a neural network, gradient boosting machine, or random forest. Let S ( f ^ , D ) be a performance metric that evaluates the predictive accuracy of f ^ on dataset D . For regression tasks, common choices include the coefficient of determination R 2 or mean squared error; for classification, accuracy, AUC-ROC, or log-loss are typically used.
For a given feature j { 1 ,     ,   p } , let I ( f ^ , D , j ) denote a model-agnostic feature importance score that quantifies the contribution of feature j to the predictive performance of f ^ . These scores are computed directly from the trained model and the data, without relying on model-specific internal parameters.
In this work, we focus on permutation feature importance (PFI), one of the most widely used model-agnostic importance measures. The PFI for feature j is defined as
I PFI ( j ) = S ( f ^ , D ) S ( f ^ , D ( j ) ) ,
where D ( j ) denotes the dataset D with the values of feature j randomly permuted, thereby breaking any association between that feature and the outcome. A large positive value of I PFI ( j ) indicates that feature j is highly influential: its removal via permutation substantially degrades model performance. Conversely, a value near zero suggests that the feature contributes little to predictive accuracy.
For clarity, Table 1 summarizes the key notation used throughout this paper.

2.2. The Bootstrap-of-Bootstrap (BoB) Framework

The fundamental objective is to estimate the sampling distribution of the importance score I ( j ) , thereby enabling inference about its population counterpart. We achieve this through a nested bootstrap procedure.
  • Outer Bootstrap: Generate B 1 bootstrap samples D * ( b ) , b = 1 ,     ,   B 1 , by resampling n observations with replacement from the original dataset D . For each bootstrap, replicate D * ( b ) :
    • Train model f ^ * ( b ) on the bootstrap sample.
    • Calculate the point estimate I * ( b ) ( j ) of feature importance on D * ( b ) .
  • Inner Bootstrap: For each outer bootstrap sample b, generate B 2 inner bootstrap samples D * ( b , c ) , c = 1 ,     ,   B 2 , by resampling with a replacement from D * ( b ) . For each inner sample:
    • Compute the importance score I * ( b , c ) ( j ) .
    • For each outer sample b, estimate the standard error s e ^ * ( b ) ( j ) from the B 2 inner estimates.
  • Confidence Interval Construction: We employ the percentile-t method to achieve improved coverage properties. Define t-statistics:
    t * ( b ) ( j ) = I * ( b ) ( j ) I ^ ( j ) s e ^ * ( b ) ( j )
    where I ^ ( j ) denotes the importance score computed on the original dataset D . The ( 1 α ) confidence interval is then
    I ^ ( j ) q 1 α / 2 · s e ^ ( j ) , I ^ ( j ) q α / 2 · s e ^ ( j )
    where q α represents the α -quantile of the bootstrap t-statistics { t * ( b ) ( j ) } , and s e ^ ( j ) denotes the standard error of the outer bootstrap estimates { I * ( b ) ( j ) } .

2.3. Fast Approximation via Influence Functions

The full BoB procedure requires B 1 × B 2 model retrainings, which becomes computationally prohibitive for complex models or large-scale datasets. To address this limitation, we derive an analytical approximation to the inner bootstrap standard error se ^ * ( b ) ( j ) using influence function theory, a classical tool from robust statistics that has recently gained renewed attention in the machine learning interpretability literature [28,29].

2.3.1. Theoretical Foundation

Consider the importance score I ( j ) as a statistical functional T j ( P ) of the underlying data distribution P. The influence function of T j at distribution P characterizes the first-order effect of an infinitesimal contamination at observation i:
IF i , T j ( P ) = lim ε 0 T j ( ( 1 ε ) P + ε δ i ) T j ( P ) ε ,
where δ i denotes a point mass at observation i. For the empirical distribution P n = n 1 i = 1 n δ i , this reduces to the empirical influence function:
IF i , T j = lim ε 0 T j ( P n , i , ε ) T j ( P n ) ε ,
where P n , i , ε = ( 1 ε ) P n + ε δ i represents a perturbed empirical distribution with observation i up weighted by a factor of 1 + ε [30].
The key theoretical result underpinning our approximation is the von Mises expansion, which states that for sufficiently regular functionals,
T j ( P n ) T j ( P ) = 1 n i = 1 n IF i , T j ( P ) + o p ( n 1 / 2 ) .
This expansion provides a first-order approximation of the functional T j ( P n ) around T j ( P ) . Under standard regularity conditions, it implies that the functional is asymptotically linear and that its asymptotic distribution is normal:
n T j ( P n ) T j ( P ) d N 0 , E [ IF i , T j 2 ] .
This result directly justifies the use of the influence functions for variance estimation. In particular, the asymptotic variance of T j ( P n ) is E [ IF i , T j 2 ] / n . A natural plug-in estimator replaces the population expectation with its empirical counterpart, yielding
Var ^ inf ( T j ) = 1 n 2 i = 1 n IF i , T j 2 .
The factor n 2 arises because the variance of T j ( P n ) is of order n 1 ; the empirical variance of the influence functions, being of order n 1 , must be divided by n to obtain the correct asymptotic order. This estimator is consistent and serves as a computationally efficient alternative to the bootstrap variance estimator.
This result, originally established in the context of the bootstrap [16], provides a principled foundation for our approximation: the influence-function-based variance estimator approximates the bootstrap variance of the importance score without requiring computationally expensive resampling.

2.3.2. Derivation for Permutation Importance

For permutation feature importance I PFI ( j ) = S ( f ^ , D ) S ( f ^ , D ( j ) ) , we derive the influence function via the chain rule applied to two components: (i) the model fitting procedure mapping the empirical distribution to the fitted model f ^ ; and (ii) the permutation operation mapping the empirical distribution to the permuted dataset D ( j ) .
Let θ ( P ) denote the parameters of the fitted model as a functional of the data distribution, and let L ( θ , P ) denote the loss functional. Under standard regularity conditions (including differentiability of the loss with respect to the model parameters and boundedness of the relevant gradients), the influence function of the performance metric S can be expressed as
IF i , S = θ S ( θ 0 ) IF i , θ + ε S ( θ 0 , P n , i , ε ) | ε = 0 ,
where IF i , θ = H 1 θ L ( θ 0 ; δ i ) is the influence function of the model parameters, with H = θ 2 L ( θ 0 ; P n ) denoting the Hessian of the loss. For the permuted dataset term, the influence function additionally accounts for the randomness introduced by the permutation operation.

2.3.3. Assumptions and Scope of Validity

The accuracy of the influence function approximation depends on several key assumptions, which we now make explicit:
(A1)
Differentiability of the loss function: The loss L ( θ ; z ) must be twice continuously differentiable with respect to model parameters θ . This assumption holds for most commonly used loss functions in supervised learning (e.g., squared error, cross-entropy) but may be violated for non-smooth objectives or models with discontinuous components.
(A2)
Convexity or local convexity: The standard influence function derivation assumes the loss is strongly convex, ensuring a unique global minimum and invertibility of the Hessian. For non-convex models such as deep neural networks, influence functions may still perform reasonably well in practice, though their theoretical guarantees weaken [28].
(A3)
Model convergence: The model must be trained to (or near) a stationary point of the loss, such that first-order optimality conditions hold.
(A4)
Small perturbation regime: The influence function is a first-order approximation; its accuracy degrades when the perturbation (here, the permutation of a feature) induces large changes in the model. For permutation importance, this assumption is more likely to hold when features are not overwhelmingly influential.
(A5)
Regularity of the importance functional: The importance score T j ( P ) must be sufficiently smooth as a functional of the data distribution, a condition that is generally satisfied for permutation importance but may require additional scrutiny for other importance measures.

2.3.4. High-Dimensional Considerations

A growing body of recent work has critically examined the behavior of influence functions in high-dimensional regimes where the number of parameters p exceeds the number of observations n. Ref. [31] demonstrates that standard influence functions can become unreliable when p n , as the underlying theoretical guarantees rely on low-dimensional asymptotic assumptions. In such settings, the Hessian matrix may be ill-conditioned or singular, rendering the inverse-Hessian-vector product computation unstable.
To mitigate these challenges, our framework employs two complementary strategies. First, for models with explicit regularization (e.g., L2 regularization in neural networks or shrinkage in gradient boosting), the regularized Hessian remains well-conditioned even when p > n . Second, we adopt the generalized influence function framework proposed by [29], which selectively updates only a subset of parameters most relevant to the quantity of interest, thereby reducing the effective dimensionality of the influence computation. Recent advances in efficient Hessian approximation, such as K-FAC and generalized Gauss–Newton methods [32,33,34], further enhance the scalability of our approach.

2.3.5. Practical Implementation and Computational Gains

In practice, we compute the influence function-based standard error as follows:
  • For each observation i, compute the empirical influence function IF i , T j using automatic differentiation.
  • Estimate the variance as Var ^ inf ( T j ) = n 2 i = 1 n IF i , T j 2 .
  • Use this variance estimate in place of the inner bootstrap standard error se ^ * ( b ) ( j ) in the percentile-t confidence interval construction.
This approximation reduces the computational complexity from O ( B 1 × B 2 × C train ) to O ( B 1 × C train + n × C inf ) , where C train is the cost of a single model retraining and C inf is the cost of influence function evaluation per observation. As demonstrated in our simulation studies, this yields a reduction in computation time exceeding 97% while maintaining near-identical statistical performance.

2.4. Feature Stability Score

From the outer bootstrap distribution { I * ( b ) ( j ) } b = 1 B 1 , we define the stability score ζ j [ 0 ,   1 ] for feature j:
ζ j = 1 IQR ( { I * ( b ) ( j ) } ) median ( { I * ( b ) ( j ) } )
where IQR denotes the interquartile range. A score approaching 1 indicates high stability (low relative variability), while a score near 0 signals high sensitivity to data resampling. This metric provides an intuitive measure of feature robustness that complements traditional point estimates.
Numerical stability considerations: We note that the stability score in Equation (8) relies on the median importance value in the denominator. For features with negligible or near-zero importance, this ratio may become numerically unstable or undefined. In practice, we recommend computing the stability score only for features whose median importance exceeds a small positive threshold τ > 0 (e.g., τ = 10 6 ), as features with vanishing importance are typically not of practical interest for downstream selection. Alternatively, for exploratory analyses where weak features are of interest, the interquartile range can be computed on a log-transformed scale to improve numerical stability. In all reported applications in this paper, the median importance values for the features analyzed were safely above zero, so this issue does not affect our results. We also note that alternative stability measures, such as rank stability or the probability of exceeding a threshold, may be more appropriate for features with very small importance values.
The complete implementation of the BoB framework is summarized in Algorithm 1, which details the nested resampling procedure, the percentile-t confidence interval construction, and the stability score computation.
Algorithm 1 Bootstrap-of-Bootstrap (BoB) Framework for Feature Importance Inference
Require: 
Original dataset D = { ( x i , y i ) } i = 1 n , model f ^ , importance measure I ( · ) , performance metric S ( · ) , number of outer bootstrap samples B 1 , number of inner bootstrap samples B 2 , significance level α
Ensure: 
95 % confidence intervals for each feature, stability scores ζ j
  1:
Compute importance scores I ^ ( j ) on original dataset D for j = 1 ,     ,   p .
  2:
for  b = 1  to  B 1   do
  3:
   Generate bootstrap sample D * ( b ) by resampling n observations with replacement from D .
  4:
   Train model f ^ * ( b ) on D * ( b ) .
  5:
   Compute importance scores I * ( b ) ( j ) on D * ( b ) for all j.
  6:
   for  c = 1  to  B 2  do
  7:
        Generate inner bootstrap sample D * ( b , c ) by resampling with replacement from D * ( b ) .
  8:
        Compute importance scores I * ( b , c ) ( j ) on D * ( b , c ) for all j.
  9:
   end for
10:
   Compute standard error s e ^ * ( b ) ( j ) from { I * ( b , c ) ( j ) } c = 1 B 2 .
11:
   Compute t-statistic: t * ( b ) ( j ) = I * ( b ) ( j ) I ^ ( j ) s e ^ * ( b ) ( j ) .
12:
end for
13:
Compute outer standard error s e ^ ( j ) from { I * ( b ) ( j ) } b = 1 B 1 .
14:
Determine quantiles q α / 2 and q 1 α / 2 from { t * ( b ) ( j ) } b = 1 B 1 .
15:
Construct confidence intervals:
I ^ ( j ) q 1 α / 2 · s e ^ ( j ) , I ^ ( j ) q α / 2 · s e ^ ( j ) .
16:
Compute stability score for each feature:
ζ j = 1 IQR ( { I * ( b ) ( j ) } ) median ( { I * ( b ) ( j ) } ) .
17:
return Confidence intervals { [ CI L ( j ) , CI U ( j ) ] } j = 1 p and stability scores { ζ j } j = 1 p .

3. Experimental Results

3.1. Implementation Details

All experiments were implemented in MATLAB (version R2023b). The core resampling procedures, including the outer and inner bootstraps, were implemented using the bootstrp function from the Statistics and Machine Learning Toolbox™. The bootci function was used to construct bias-corrected and accelerated (BCa) confidence intervals. For neural network training in the genomic application, we used the Deep Learning Toolbox™, with fully connected layers, ReLU activations, and dropout implemented using the fullyConnectedLayer, reluLayer, and dropoutLayer functions, respectively. For the Gradient Boosting Machine in the credit risk application, we used the fitcensemble function with the Bag method and 500 learning cycles. All models were trained using a 70/15/15 train–validation–test split, with hyperparameters tuned via grid search on the validation set.
To mitigate the computational cost of the full BoB procedure in the real-data applications, we applied the Fast BoB (Influence) approximation described in Section 2.3. Influence function computations were performed using automatic differentiation via the dlgradient function. Parallelization of bootstrap replicates was achieved using the Parallel Computing Toolbox™(parfor). All experiments were conducted on a workstation with an Intel Xeon Gold 6248 CPU and 128 GB of RAM.

3.2. Simulation Study: Control of Type I Error and Power

Experimental Setup: We generated synthetic data with n = 500 observations and p = 100 features, among which only 5 features exhibited true predictive relationships with the continuous outcome y. Features were drawn from a multivariate normal distribution [35] with pairwise correlation ρ = 0.3 following standard simulation protocols [36]. The response was generated as y = x S β + ε , where S denotes the set of true predictors, β = ( 2 , 1.5 , 1 , 0.8 , 0.6 ) , and ε N ( 0 , 1 ) . We fit a random forest model (500 trees, default parameters) and computed permutation feature importance based on the increase in mean squared error. The bootstrap sample sizes were chosen as B 1 = 200 and B 2 = 200 in accordance with standard recommendations [16,26]. Sensitivity analyses with B 1 , B 2 { 50 , 100 , 200 , 300 , 500 } confirmed that the Type I error and power estimates stabilized beyond B 1 = B 2 = 200 , making our choice a practical compromise between accuracy and computational cost. This experimental configuration directly reflects the methodological framework described in Algorithm 1 (Section 2.3), where B 1 controls the number of outer bootstrap samples used to construct the sampling distribution, and B 2 controls the number of inner bootstrap samples used to estimate the standard error for the percentile-t confidence intervals.
Method Comparison: We compared four approaches: (i) a naive single bootstrap (200 resamples) using standard normal confidence intervals; (ii) a parametric approximation assuming asymptotic normality; (iii) our full BoB procedure ( B 1 = 200 , B 2 = 200 ); and (iv) our Fast BoB (Influence) approximation. All methods were evaluated on Type I error control (probability of declaring a null feature significant), statistical power (probability of detecting a truly predictive feature), and computational time.
Results: Table 2 presents the comprehensive simulation results. The naive single bootstrap exhibited an inflated Type I error rate (0.12 versus the nominal 0.05), demonstrating that conventional bootstrap confidence intervals are inadequate for this inference problem. The parametric approximation, while computationally efficient, proved overly conservative (Type I error = 0.01) with correspondingly low power (0.45), rendering it impractical for real applications.
In contrast, the proposed full BoB procedure achieved near-nominal Type I error control (0.049) while maintaining high power (0.92), establishing its statistical validity. However, this rigor came at a substantial computational cost (4500 s). Critically, the proposed Fast BoB (Influence) approximation achieved performance equivalent to the original BoB’s Type I error (0.052) and power (0.90), while reducing computation time by over 97% to just 130 s. These results demonstrate that rigorous inference for feature importance can be both statistically sound and computationally practical for real-world high-dimensional problems.

3.3. Application 1: Genomic Biomarker Discovery in Breast Cancer Sub-Typing

3.3.1. Data and Experimental Setup

We applied our Fast BoB framework to identify robust gene expression biomarkers for breast cancer molecular sub-typing using the Cancer Genome Atlas (TCGA) BRCA dataset [37]. This dataset comprises RNA-seq expression profiles for 20,531 genes across 1094 breast tumor samples, classified into four intrinsic molecular subtypes: Luminal A, Luminal B, HER2-enriched, and Basal-like. Following established preprocessing protocols [38], we filtered for protein-coding genes, applied variance-stabilizing normalization, and obtained a final feature matrix of n = 1094 samples × p = 15,237 genes.
We implemented a three-layer neural network with L2 regularization (hidden layer sizes: 512, 256, 128; ReLU activations; dropout rate 0.3), achieving an overall cross-validated accuracy of 92.3%. Global feature importance was computed as the mean absolute SHAP value across all samples, and we applied our Fast BoB inference framework ( B 1 = 500 ) to construct 95% confidence intervals and stability scores for each gene.

3.3.2. Results and Interpretation

Conventional SHAP analysis identified 247 genes with mean absolute SHAP values exceeding the 99th percentile threshold, a typical approach for biomarker selection in genomic studies. However, our inference framework revealed that only 68 of these genes (27.5%) had confidence intervals excluding zero at the 95% confidence level. This dramatic reduction underscores the risk of false discoveries when relying solely on point estimates in high-dimensional genomic settings.
Table 3 presents the top 10 genes ranked by stability scores. All listed genes have well-established roles in breast cancer biology, with ESR1, PGR, and ERBB2 representing canonical markers for hormone receptor and HER2 status that define clinical subtypes. The high stability scores ( ζ > 0.79 ) indicate consistent importance across bootstrap resamples, suggesting these are robust biomarkers rather than artifacts of specific sample compositions.
The stability scores reported in Table 3 were computed using Equation (8) from Section 2.4. A score of ζ > 0.8 indicates that the interquartile range of the bootstrap importance distribution is less than 20 % of its median value, signifying high robustness to resampling variations.
The exclusion decisions for Zip Code, Public Records Count, and State of Residence were based on the statistical inference criteria established in Section 2: features with confidence intervals including zero or stability scores ζ < 0.4 were flagged as unstable or non-significant. This provides a principled, auditable justification for feature selection in regulatory compliance.
Figure 1 (volcano-style plot) visualizes the complete set of 15,237 genes. The horizontal axis represents the mean absolute SHAP value (importance), the vertical axis displays the stability score ( ζ ), and the point color indicates statistical significance (orange: confidence interval excludes zero; blue: confidence interval includes zero). The upper-right quadrant contains high-importance, high-stability genes, which represent the most reliable biomarkers. Notably, several genes with moderate importance but low stability (lower-right quadrant) would be prioritized by traditional methods but are correctly flagged as unreliable by our framework.
Pathway enrichment analysis using g: Profiler [39] revealed that genes characterized by both high importance and high stability ( ζ > 0.8 , confidence interval excluding zero) were significantly enriched for established breast cancer pathways, including the “estrogen-signaling pathway” (FDR = 3.2 × 10 9 ), the “PI3K-Akt-signaling pathway” (FDR = 1.4 × 10 6 ), and “focal adhesion” (FDR = 5.7 × 10 5 ). In contrast, genes with high importance but low stability ( ζ < 0.3 ) showed no significant pathway enrichment, suggesting that they represent noise or sample-specific artifacts.

3.3.3. External Validation

To assess the replicability of our findings, we examined the 68 high-stability significant genes in the independent METABRIC cohort [40]. Of these, 59 genes (86.8%) maintained significant differential expression across subtypes in the validation dataset, compared to only 143 of the original 247 genes (57.9%) identified by traditional SHAP ranking. This represents a 49.9% relative improvement in replicability. Our framework thus provides a more reliable gene signature for potential clinical assay development, potentially reducing the cost and failure rate of downstream validation studies.

3.4. Application 2: Auditable Feature Importance in Credit Risk Modeling

3.4.1. Data and Experimental Setup

We evaluated our methodology on the Lending Club loan dataset (2018–2020 vintage) www.lendingclub.com/info/download-data.action (accessed on 8 February 2026), comprising 112,915 completed loans with 151 features encompassing borrower financials, credit history, loan characteristics, and geographic information. The binary classification task predicted loan default (charged-off status) versus full repayment. We trained a Gradient Boosting Machine (XGBoost) [41] with early stopping (learning rate of 0.05, maximum depth of 6, 500 rounds, stopping after 50), achieving an AUC-ROC of 0.834 on a held-out test set. Feature importance was calculated using permutation importance with log-loss as the performance metric. Our Fast BoB framework generated confidence intervals and stability scores for regulatory compliance reporting.

3.4.2. Results: Stability-Aware Feature Audit

Table 4 presents a regulatory compliance report format that our framework enables. Traditional feature importance rankings would include all 15 features shown, but our inference reveals critical distinctions: while most financial features demonstrate high stability and significant importance, three features (zip code, public records count, and state of residence) have confidence intervals crossing zero and extremely low stability scores ( ζ < 0.32 ). These features are also legally sensitive under fair lending regulations (the Equal Credit Opportunity Act and the Fair Housing Act). Our method provides statistical justification for excluding them from the final model, reducing both regulatory risk and model complexity.
The regulatory compliance report in Table 4 was generated directly from the confidence intervals and stability scores produced by the BoB framework. Features were classified as “restricted” and recommended for exclusion if their 95 % confidence interval included zero or their stability score fell below ζ < 0.4 , following the statistical inference principles established in Section 2.2 and Section 2.4.
Figure 2 displays permutation importance estimates with 95% confidence intervals for the top 10 features. Blue bars represent features with confidence intervals excluding zero (statistically significant), while red bars indicate intervals including zero. The dashed horizontal line marks the zero importance threshold. This visualization clearly separates reliable determinants (annual income, FICO score) from unstable or non-significant features (zip code, state), providing an intuitive audit tool for model risk teams.

3.4.3. Business Impact and Model Risk Management

We quantified the practical impact by comparing two models: (1) the full model incorporating all 151 features, and (2) a reduced model excluding 23 features with stability scores ζ < 0.4 and/or confidence intervals including zero. The reduced model exhibited virtually identical predictive performance (AUC-ROC: 0.832 vs. 0.834, difference not statistically significant by DeLong’s test, p = 0.42 ) while employing 15.2% fewer features. More importantly, the reduced model demonstrated improved calibration across protected subgroups (race, age) as measured by maximum demographic disparity in predicted default probabilities, which decreased from 8.7% to 3.2%.
From a model risk management perspective, our framework addresses key regulatory requirements: it provides statistical evidence for feature inclusion/exclusion decisions (SR 11-7), enhances model transparency (ECOA), and supports fair lending compliance by identifying unstable demographic proxies. The stability score serves as a quantitative metric for model validation documentation, satisfying both internal audit and regulatory scrutiny requirements.

4. Discussion

The proposed Bootstrap-of-Bootstrap framework addresses a fundamental limitation in contemporary explainable AI: the lack of uncertainty quantification for feature-importance measures in high-dimensional settings. By integrating nonparametric bootstrap theory with influence function approximations, we have demonstrated that rigorous statistical inference for model-agnostic interpretability is both theoretically sound and computationally feasible.
Several aspects of our methodology warrant further discussion. First, the influence function approximation, while computationally efficient, relies on differentiability assumptions that may not hold for all importance measures or model classes [42]. Our empirical results suggest robustness to mild violations, but the theoretical characterization of the approximation error remains an important direction for future research. Second, the stability score, while intuitive, is only one possible summary of the bootstrap distribution; alternative measures based on rank stability or the probability of exceeding thresholds may prove valuable in specific applications.
The substantive applications presented herein illustrate the framework’s versatility. In genomics, our approach reduced the candidate biomarker set by 72% while improving external replicability by nearly 50%, suggesting substantial potential for accelerating biomedical discovery. In credit risk modeling, the framework enabled statistically principled feature selection that simultaneously reduced regulatory risk and maintained predictive performance, a rare instance of alignment between statistical rigor and practical constraints.

5. Conclusions

This paper introduces a statistically rigorous framework that addresses a critical weakness in explainable AI: the lack of uncertainty quantification for feature-importance scores in high-dimensional black-box models. We proposed the Bootstrap-of-Bootstrap (BoB) procedure, which provides calibrated confidence intervals and hypothesis tests for any model-agnostic importance metric, along with its fast influence function-based approximation, thereby rendering rigorous inference computationally feasible. The accompanying feature stability score offers an intuitive measure of feature robustness, advancing interpretability from heuristic rankings toward statistically sound inference.
Our framework was validated through comprehensive simulations that demonstrated appropriate Type I error control and substantial statistical power, and was applied to two high-stakes domains. In genomics, it successfully filtered spurious associations, identifying robust, biologically validated biomarkers with significantly improved replicability. In credit risk modeling, it enabled auditable feature selection for regulatory compliance, providing statistical justification to exclude unstable or legally sensitive variables without sacrificing predictive performance.
As black-box models continue to permeate high-stakes decision-making environments, integrating statistical inference with interpretability methods will become increasingly essential. The framework presented herein represents a step toward that integration, offering practitioners the tools to distinguish signal from noise in the explanations of their most complex models.

Author Contributions

Conceptualization, I.S.; methodology, I.S.; software, S.A.F.; validation, I.S.; formal analysis, H.D.; investigation, I.S. and H.D.; resources, H.D.; data curation, H.D.; writing—original draft, S.A.F.; writing—review and editing, S.A.F. and R.A.A.; visualization, I.S.; supervision, R.A.A.; project administration, R.A.A.; funding acquisition, R.A.A. All authors have read and agreed to the published version of the manuscript.

Funding

The authors extend their appreciation to Prince Sattam bin Abdulaziz University for funding this research work through the project number (PSAU/2026/01/44566).

Data Availability Statement

No new data were created or analyzed in this study.

Conflicts of Interest

The authors declare that there are no conflicts of interest.

References

  1. Barocas, S.; Hardt, M.; Narayanan, A. Fairness and Machine Learning: Limitations and Opportunities; MIT Press: Cambridge, MA, USA, 2023. [Google Scholar]
  2. Rudin, C. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nat. Mach. Intell. 2019, 1, 206–215. [Google Scholar] [CrossRef] [PubMed]
  3. European Union. Proposal for a Regulation of the European Parliament and of the Council Laying Down Harmonised Rules on Artificial Intelligence (Artificial Intelligence Act) and Amending Certain Union Legislative Acts; COM/2021/206 final; European Union: Brussels, Belgium, 2021; pp. 1–107. [Google Scholar]
  4. Doshi-Velez, F.; Kim, B. Towards a rigorous science of interpretable machine learning. arXiv 2017, arXiv:1702.08608. [Google Scholar]
  5. Mehdiyev, N.; Majlatow, M.; Fettke, P. Integrating permutation feature importance with conformal prediction for robust Explainable Artificial Intelligence in predictive process monitoring. Eng. Appl. Artif. Intell. 2025, 149, 110363. [Google Scholar] [CrossRef]
  6. Guidotti, R.; Monreale, A.; Ruggieri, S.; Turini, F.; Giannotti, F.; Pedreschi, D. A survey of methods for explaining black box models. ACM Comput. Surv. (CSUR) 2018, 51, 93. [Google Scholar] [CrossRef]
  7. Molnar, C. Interpretable Machine Learning: A Guide for Making Black Box Models Explainable, 2nd ed.; Independently Published: Munich, Germany, 2022. [Google Scholar]
  8. Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  9. Fisher, A.; Rudin, C.; Dominici, F. All models are wrong, but many are useful: Learning a variable’s importance by studying an entire class of prediction models simultaneously. J. Mach. Learn. Res. 2019, 20, 177. [Google Scholar] [PubMed]
  10. Nakanishi, T. Bayesian-AIME: Quantifying Uncertainty and Enhancing Stability in Approximate Inverse Model Explanations. IEEE Access 2025, 13, 175547–175564. [Google Scholar]
  11. Lundberg, S.M.; Lee, S.I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017, 30, 4765–4774. [Google Scholar]
  12. Hooker, G.; Mentch, L.; Zhou, S. Unrestricted permutation forces extrapolation: Variable importance requires at least one more model, or there is no free variable importance. Stat. Comput. 2021, 31, 82. [Google Scholar] [CrossRef]
  13. Mentch, L.; Zhou, S. Randomization as regularization: A degrees of freedom explanation for random forest success. J. Mach. Learn. Res. 2020, 21, 1–36. [Google Scholar]
  14. Candès, E.J.; Tao, T. The Dantzig selector: Statistical estimation when p is much larger than n. Ann. Stat. 2007, 35, 2313–2351. [Google Scholar] [CrossRef]
  15. Fan, J.; Lv, J. Sure independence screening for ultrahigh dimensional feature space. J. R. Stat. Soc. Ser. B (Stat. Methodol.) 2008, 70, 849–911. [Google Scholar] [CrossRef]
  16. Efron, B. Prediction, estimation, and attribution. Int. Stat. Rev. 2020, 88, S28–S59. [Google Scholar] [CrossRef]
  17. Lipton, Z.C. The mythos of model interpretability: In machine learning, the concept of interpretability is both important and slippery. Queue 2018, 16, 31–57. [Google Scholar]
  18. Murdoch, W.J.; Singh, C.; Kumbier, K.; Abbasi-Asl, R.; Yu, B. Definitions, methods, and applications in interpretable machine learning. Proc. Natl. Acad. Sci. USA 2019, 116, 22071–22080. [Google Scholar] [CrossRef] [PubMed]
  19. Williamson, B.D.; Gilbert, P.B.; Carone, M.; Simon, N. Nonparametric variable importance assessment using machine learning techniques. Biometrics 2021, 77, 9–22. [Google Scholar] [PubMed]
  20. Covert, I.; Lundberg, S.; Lee, S.I. Explaining by removing: A unified framework for model explanation. J. Mach. Learn. Res. 2021, 22, 1–90. [Google Scholar]
  21. Ribeiro, M.T.; Singh, S.; Guestrin, C. “Why should I trust you?” Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016; pp. 1135–1144. [Google Scholar]
  22. Strumbelj, E.; Kononenko, I. An efficient explanation of individual classifications using game theory. J. Mach. Learn. Res. 2010, 11, 1–18. [Google Scholar]
  23. Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman & Hall/CRC: Boca Raton, FL, USA, 1994. [Google Scholar]
  24. Hall, P. The Bootstrap and Edgeworth Expansion; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  25. Zribi, M.; Sadok, I.; Marhaba, B. Kernel-Diffeomorphism Bayesian Bootstrap Filter to reduce speckle noise on SAR images. Comput. Stat. 2025, 40, 3613–3643. [Google Scholar] [CrossRef]
  26. Davison, A.C.; Hinkley, D.V. Bootstrap Methods and Their Application; Cambridge University Press: Cambridge, UK, 1997. [Google Scholar]
  27. Hampel, F.R.; Ronchetti, E.M.; Rousseeuw, P.J.; Stahel, W.A. Robust Statistics: The Approach Based on Influence Functions; John Wiley & Sons: Hoboken, NJ, USA, 1986. [Google Scholar]
  28. Koh, P.W.; Liang, P. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning; PMLR: Sydney, Australia, 2017; Volume 70, pp. 1885–1894. [Google Scholar]
  29. Lyu, H.; Jang, J.; Ryu, S.; Yang, H.J. Deeper understanding of black-box predictions via generalized influence functions. arXiv 2023, arXiv:2312.05586. [Google Scholar]
  30. Wright, M.N.; Ziegler, A. ranger: A fast implementation of random forests for high dimensional data in C++ and R. J. Stat. Softw. 2017, 77, 1–17. [Google Scholar] [CrossRef]
  31. Zou, H.; Auddy, A.; Kwon, Y.; Rad, K.R.; Maleki, A. Newfluence: Boosting model interpretability and understanding in high dimensions. arXiv 2025, arXiv:2507.11895. [Google Scholar]
  32. Mlodozeniec, B.; Eschenhagen, R.; Bae, J.; Immer, A.; Krueger, D.; Turner, R.E. Influence functions for scalable data attribution in diffusion models. In International Conference on Learning Representations; ICLR: London, UK, 2025; Volume 2025, pp. 51728–51764. [Google Scholar]
  33. Sadok, I.; Masmoudi, A. New parametrization of stochastic volatility models. Commun. Stat.-Theory Methods 2022, 51, 1936–1953. [Google Scholar]
  34. Sadok, I.; Masmoudi, A.; Zribi, M. Integrating the EM algorithm with particle filter for image restoration with exponential dispersion noise. Commun. Stat.-Theory Methods 2023, 52, 446–462. [Google Scholar]
  35. Sadok, I.; Zribi, M. Bayesian GLM: A non-informative approach for parameter estimation in exponential dispersion regression models. Reliab. Theory Appl. 2025, 20, 715–727. [Google Scholar]
  36. Sadok, I.; Zribi, M.; Masmoudi, A. Non-informative Bayesian estimation in dispersion models. Hacet. J. Math. Stat. 2023, 53, 251–268. [Google Scholar]
  37. Cancer Genome Atlas Network. Comprehensive molecular portraits of human breast tumours. Nature 2012, 490, 61–70. [Google Scholar] [CrossRef] [PubMed]
  38. Love, M.I.; Huber, W.; Anders, S. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol. 2014, 15, 550. [Google Scholar] [CrossRef] [PubMed]
  39. Raudvere, U.; Kolberg, L.; Kuzmin, I.; Arak, T.; Adler, P.; Peterson, H.; Vilo, J. g:Profiler: A web server for functional enrichment analysis and conversions of gene lists (2019 update). Nucleic Acids Res. 2019, 47, W191–W198. [Google Scholar] [CrossRef] [PubMed]
  40. Curtis, C.; Shah, S.P.; Chin, S.F.; Turashvili, G.; Rueda, O.M.; Dunning, M.J.; Speed, D.; Lynch, A.G.; Samarajiwa, S.; Yuan, Y.; et al. The genomic and transcriptomic architecture of 2000 breast tumours reveals novel subgroups. Nature 2012, 486, 346–352. [Google Scholar] [PubMed]
  41. Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
  42. Sadok, I. Non-informative Bayesian dispersion particle filter. J. Innov. Appl. Math. Comput. Sci. 2023, 3, 173–189. [Google Scholar]
Figure 1. Volcano-style plot of gene importance (mean absolute SHAP) versus stability score ζ for 15,237 genes. Orange points indicate statistically significant genes (95% CI excludes zero), while blue points indicate non-significant genes.
Figure 1. Volcano-style plot of gene importance (mean absolute SHAP) versus stability score ζ for 15,237 genes. Orange points indicate statistically significant genes (95% CI excludes zero), while blue points indicate non-significant genes.
Appliedmath 06 00106 g001
Figure 2. Permutation importance estimates with 95% confidence intervals for the top 10 credit risk features. Blue bars indicate statistically significant features, while red bars indicate features with CIs including zero.
Figure 2. Permutation importance estimates with 95% confidence intervals for the top 10 credit risk features. Blue bars indicate statistically significant features, while red bars indicate features with CIs including zero.
Appliedmath 06 00106 g002
Table 1. Summary of key notation.
Table 1. Summary of key notation.
SymbolDescription
nNumber of observations
pNumber of features
D Original dataset
D ( j ) Dataset with feature j permuted
x i Feature vector for observation i
y i Response variable for observation i
f ^ Fitted black-box model
S ( · ) Performance metric (e.g., R 2 , accuracy, log-loss)
I ( j ) Feature importance score for feature j
B 1 Number of outer bootstrap samples
B 2 Number of inner bootstrap samples
P n Empirical distribution of the data
δ i Point mass at observation i
IF i , T j Influence function of importance functional T j at observation i
ζ j Stability score for feature j
Table 2. Comparison of testing procedures in terms of Type I error, power, and computational cost.
Table 2. Comparison of testing procedures in terms of Type I error, power, and computational cost.
MethodType I Error Rate ( α = 0.05 )Power (True Features)Avg. Comp. Time (s)
Naive Single Bootstrap0.120.85120
Parametric Approximation0.01 (too conservative)0.45<1
FullBoB ( B 1 = 200 , B 2 = 200 )0.0490.924500
Fast BoB (Influence)0.0520.90130
Table 3. Top 10 most stable and significant genes identified by the Fast BoB framework.
Table 3. Top 10 most stable and significant genes identified by the Fast BoB framework.
Gene SymbolMean SHAP95% CI Lower95% CI UpperStability Score ( ζ )Known Pathway
ESR10.1420.1280.1560.94Estrogen Receptor
PGR0.1180.1050.1310.92Progesterone Signaling
ERBB20.1030.0920.1140.91HER2/EGFR Pathway
FOXA10.0890.0770.1010.88Transcription Regulation
GATA30.0850.0730.0970.87Cell Differentiation
MKi670.0820.0690.0950.85Cell Proliferation
KRT50.0760.0620.0900.82Basal Marker
KRT140.0730.0580.0880.81Basal Marker
EGFR0.0710.0560.0860.80EGFR Pathway
CDH10.0680.0540.0820.79Cell Adhesion
Table 4. Regulatory compliance report for the top 15 credit risk features.
Table 4. Regulatory compliance report for the top 15 credit risk features.
FeaturePermutation Importance95% CI Lower95% CI UpperStability ζ Regulatory StatusDecision
Annual Income0.1420.1350.1490.95ApprovedInclude
Debt-to-Income Ratio0.1380.1290.1470.93ApprovedInclude
FICO Score0.1340.1250.1430.91ApprovedInclude
Credit History Length0.0890.0820.0960.88ApprovedInclude
Revolving Utilization0.0850.0770.0930.86ApprovedInclude
Number of Derogatory Marks0.0720.0650.0790.84ApprovedInclude
Loan Amount0.0680.0590.0770.81ApprovedInclude
Employment Length0.0610.0520.0700.78ApprovedInclude
Home Ownership (Mortgage)0.0550.0480.0620.83ApprovedInclude
Zip Code (First Three Digits)0.048−0.0120.1080.28RestrictedExclude
Number of Credit Inquiries0.0430.0350.0510.76ApprovedInclude
Public Records Count0.041−0.0080.0900.31RestrictedExclude
Loan Purpose (Credit Card)0.0380.0290.0470.71ApprovedInclude
State of Residence0.036−0.0150.0870.25RestrictedExclude
Months Since Last Delinquency0.0320.0240.0400.69ApprovedInclude
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sadok, I.; Douini, H.; Faqih, S.A.; Aldallal, R.A. Bootstrap-Assisted Inference for Interpretable Feature Importance in High-Dimensional Black-Box Models. AppliedMath 2026, 6, 106. https://doi.org/10.3390/appliedmath6070106

AMA Style

Sadok I, Douini H, Faqih SA, Aldallal RA. Bootstrap-Assisted Inference for Interpretable Feature Importance in High-Dimensional Black-Box Models. AppliedMath. 2026; 6(7):106. https://doi.org/10.3390/appliedmath6070106

Chicago/Turabian Style

Sadok, Ibrahim, Hennia Douini, Saqer Abdullah Faqih, and Ramy A. Aldallal. 2026. "Bootstrap-Assisted Inference for Interpretable Feature Importance in High-Dimensional Black-Box Models" AppliedMath 6, no. 7: 106. https://doi.org/10.3390/appliedmath6070106

APA Style

Sadok, I., Douini, H., Faqih, S. A., & Aldallal, R. A. (2026). Bootstrap-Assisted Inference for Interpretable Feature Importance in High-Dimensional Black-Box Models. AppliedMath, 6(7), 106. https://doi.org/10.3390/appliedmath6070106

Article Metrics

Back to TopTop