xplainfi: Feature Importance and Statistical Inference for Machine Learning in R
Lukas Burk, Fiona Katharina Ewald, Giuseppe Casalicchio, Marvin N. Wright, Bernd Bischl
Leibniz Institute for Prevention Research and Epidemiology - BIPS · Ludwig-Maximilians-Universität München
Key points
From the paper's conclusion- We introduce xplainfi, an R package built on top of the mlr3 ecosystem for global, loss-based feature importance methods for machine learning models.
Abstract
We introduce xplainfi, an R package built on top of the mlr3 ecosystem for global, loss-based feature importance methods for machine learning models. Various feature importance methods exist in R, but significant gaps remain, particularly regarding conditional importance methods and associated statistical inference procedures. The package implements permutation feature importance, conditional feature importance, relative feature importance, leave-one-covariate-out, and generalizations thereof, and both marginal and conditional Shapley additive global importance methods. It provides a modular conditional sampling architecture based on Gaussian distributions, adversarial random forests, conditional inference trees, and knockoff-based samplers, which enable conditional importance analysis for continuous and mixed data. Statistical inference is available through multiple approaches, including variance-corrected confidence intervals and the conditional predictive impact framework. We demonstrate that xplainfi produces importance scores consistent with existing implementations across multiple simulation settings and learner types, while offering competitive runtime performance. The package is available on CRAN and provides researchers and practitioners with a comprehensive toolkit for feature importance analysis and model interpretation in R.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Evaluating explanation methods by the predictors they induceScientific Reports · 2026
- ONAM: Fitting Orthogonal Neural Additive Models for Post-Hoc Interpretability of Black-Box PredictionsarXiv · 2026
- Beyond feature attribution: Recovering latent interaction structures in machine learning models via localized CBFIarXiv · 2026
- Semiparametric Inference for Conditional Shapley Feature ImportancearXiv · 2026
- MCIR: A Feature Dependence-Aware Explainability Method with Reliability GuaranteesarXiv · 2026
- Beyond Interaction Scores: Selecting Feature Interactions via Independent ReplicationarXiv · 2026