[Paper Review] MDA for random forests: inconsistency, and a practical solution via the Sobol-MDA
This paper identifies fundamental inconsistencies in the Mean Decrease Accuracy (MDA) variable importance measure for random forests, showing it converges to a biased estimate under covariate dependence. To resolve this, the authors propose Sobol-MDA—a computationally efficient, consistent alternative that correctly estimates variable importance by aligning with Sobol sensitivity indices, outperforming existing methods in variable selection on simulated and real data.
Variable importance measures are the main tools to analyze the black-box mechanisms of random forests. Although the mean decrease accuracy (MDA) is widely accepted as the most efficient variable importance measure for random forests, little is known about its statistical properties. In fact, the definition of MDA varies across the main random forest software. In this article, our objective is to rigorously analyze the behavior of the main MDA implementations. Consequently, we mathematically formalize the various implemented MDA algorithms, and then establish their limits when the sample size increases. This asymptotic analysis reveals that these MDA versions differ as importance measures, since they converge towards different quantities. More importantly, we break down these limits into three components: the first two terms are related to Sobol indices, which are well-defined measures of a covariate contribution to the response variance, widely used in the sensitivity analysis field, as opposed to the third term, whose value increases with dependence within covariates. Thus, we theoretically demonstrate that the MDA does not target the right quantity to detect influential covariates in a dependent setting, a fact that has already been noticed experimentally. To address this issue, we define a new importance measure for random forests, the Sobol-MDA, which fixes the flaws of the original MDA, and consistently estimates the accuracy decrease of the forest retrained without a given covariate, but with an efficient computational cost. The Sobol-MDA empirically outperforms its competitors on both simulated and real data for variable selection. An open source implementation in R and C++ is available online.
Motivation & Objective
- To rigorously analyze the asymptotic behavior of existing MDA implementations in random forests.
- To identify why MDA produces inconsistent variable importance rankings when covariates are dependent.
- To develop a theoretically sound and computationally efficient alternative to MDA that correctly estimates variable importance under dependence.
- To empirically validate the superiority of the new measure in variable selection tasks.
Proposed method
- Mathematically formalize multiple implementations of MDA and derive their asymptotic limits.
- Decompose the limiting MDA values into three components: two related to Sobol indices and one driven by covariate dependence.
- Propose Sobol-MDA as a new importance measure that isolates the Sobol-index-based component, ensuring consistency.
- Use Monte Carlo estimation of Sobol indices to compute variable importance efficiently without retraining the forest.
- Prove that Sobol-MDA is consistent and converges to the true accuracy decrease when a covariate is excluded.
- Implement the method in R and C++ using the ranger random forest framework for practical use.
Experimental results
Research questions
- RQ1How do different implementations of MDA behave asymptotically in the presence of dependent covariates?
- RQ2Why does MDA fail to correctly rank influential variables when covariates are dependent?
- RQ3Can a new variable importance measure be constructed that consistently estimates the true impact of a variable on model accuracy under dependence?
- RQ4Does the proposed Sobol-MDA outperform existing MDA variants in variable selection on real and simulated data?
- RQ5Is the computational cost of Sobol-MDA comparable to standard MDA while maintaining theoretical consistency?
Key findings
- The standard MDA converges to a limit that combines Sobol indices and a dependence-induced bias term, making it inconsistent under covariate dependence.
- The dependence-induced term dominates when correlation between covariates exceeds √2/2 ≈ 0.707, leading to incorrect variable rankings.
- Sobol-MDA is proven to be consistent and converges to the true accuracy decrease when a variable is excluded from the forest.
- On simulated data, Sobol-MDA correctly identifies relevant variables even under high correlation, while standard MDA fails.
- On real-world datasets, Sobol-MDA outperforms MDA and other competitors in variable selection accuracy.
- The open-source implementation of Sobol-MDA in R and C++ enables efficient deployment with minimal computational overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.