Introduction
In high-stakes domains such as medicine, criminal justice, and public policy, understanding why a model makes a prediction is often as important as the prediction itself. Researchers frequently rely on variable importance (VI) metrics to identify key drivers of outcomes. However, standard VI approaches are often "brittle," yielding results that change significantly based on the specific model trained or minor variations in the training data.
This instability stems from two primary sources: the Rashomon Effect and Data Instability. The Rashomon Effect describes the phenomenon where multiple models perform nearly identically on a dataset but rely on different sets of features. Data instability refers to how slight perturbations in the data (e.g., through bootstrapping) can lead to vastly different "best" models. Relying on a single "best" model's importance scores can thus lead to misleading or irreproducible scientific conclusions.
The RID Framework
To address these challenges, we introduce the Rashomon Importance Distribution (RID). RID is a framework that quantifies variable importance across the entire set of near-optimal models (the Rashomon set) while ensuring stability across data perturbations. By moving from a single point estimate to a full probability distribution, RID provides a more robust foundation for feature selection and scientific discovery.
The RID process consists of five integrated steps:
- Bootstrap: Generate multiple versions of the original dataset through resampling with replacement to capture data uncertainty.
- Find the Rashomon Set: For each bootstrap iteration, identify the collection of all models within a specified class (e.g., sparse decision trees) that achieve a loss within a small threshold ($\epsilon$) of the minimum.
- Compute Importance: Calculate the variable importance for every model within every identified Rashomon set.
- Aggregate into a CDF: Average the importance scores across all models and bootstraps to construct a Cumulative Distribution Function (CDF) for each variable.
- Analyze the Distribution: Derive stable statistics, such as expected importance and credible regions, from the resulting Probability Density Function (PDF).
Experimental Evaluation
We evaluated the RID framework against existing methods like Model Class Reliance (MCR) and Variable Importance Clouds (VIC) using both synthetic and real-world datasets.
Synthetic Benchmarks
Using well-known data-generating processes (Chen’s, Friedman’s, Monk 1, and Monk 3), we tested RID's ability to distinguish true signals from noise. RID was the only method to achieve a 95% recovery proportion of the true underlying importance while perfectly filtering out extraneous variables. Furthermore, RID demonstrated significantly higher stability, with a median Jaccard similarity of 0.69 across independent datasets, compared to less than 0.55 for MCR and VIC.
HIV Case Study
In a practical application, we applied RID to a high-dimensional dataset (14,742 samples) combining single-cell RNAseq and ATACseq profiles to predict HIV viral load. RID identified the LINC00486 gene as a primary predictor. While this gene was not previously associated with HIV in standard analyses, recent biological literature suggests it activates NF-$\kappa$B, a key pathway in viral infections. This finding validates RID's capacity to uncover novel, biologically plausible, and stable signals that single-model approaches might miss.
Discussion and Conclusion
The Rashomon Importance Distribution represents a shift in how we interpret machine learning models. By accounting for both model and data uncertainty, RID offers a principled way to identify variables that are truly "necessary" for an explanation.
While the current implementation is optimized for model classes where the Rashomon set can be efficiently enumerated (such as sparse decision trees), future work will focus on approximating these sets for more complex architectures. Ultimately, RID provides a path toward more reliable and reproducible data science in critical domains.
Summary updated