[Paper Review] Trees, forests, and impurity-based variable importance
This paper provides the first theoretical justification for Mean Decrease Impurity (MDI), a widely used variable importance measure in random forests. It proves that MDI estimates a variance decomposition of the response when input variables are independent and no interactions are present, offering a rigorous foundation for interpreting MDI in regression trees and forests under these ideal conditions.
Tree ensemble methods such as random forests [Breiman, 2001] are very popular to handle high-dimensional tabular data sets, notably because of their good predictive accuracy. However, when machine learning is used for decision-making problems, settling for the best predictive procedures may not be reasonable since enlightened decisions require an in-depth comprehension of the algorithm prediction process. Unfortunately, random forests are not intrinsically interpretable since their prediction results from averaging several hundreds of decision trees. A classic approach to gain knowledge on this so-called black-box algorithm is to compute variable importances, that are employed to assess the predictive impact of each input variable. Variable importances are then used to rank or select variables and thus play a great role in data analysis. Nevertheless, there is no justification to use random forest variable importances in such way: we do not even know what these quantities estimate. In this paper, we analyze one of the two well-known random forest variable importances, the Mean Decrease Impurity (MDI). We prove that if input variables are independent and in absence of interactions, MDI provides a variance decomposition of the output, where the contribution of each variable is clearly identified. We also study models exhibiting dependence between input variables or interaction, for which the variable importance is intrinsically ill-defined. Our analysis shows that there may exist some benefits to use a forest compared to a single tree.
Motivation & Objective
- To provide a theoretical justification for Mean Decrease Impurity (MDI), a standard variable importance measure in random forests.
- To clarify what MDI estimates in the context of regression trees and forests, especially under idealized conditions.
- To investigate the limitations of MDI when input variables are dependent or interact, where variable importance becomes intrinsically ill-defined.
- To establish conditions under which MDI can be interpreted as a valid decomposition of output variance.
- To contribute to the interpretability of random forests by grounding a key interpretability tool in theoretical principles.
Proposed method
- Analyzes the theoretical behavior of MDI in regression trees under controlled conditions using a recursive partitioning framework.
- Uses a theoretical tree construction where splits are systematically assigned to specific variables (e.g., $X^{(1)}$ or $X^{(2)}$) to isolate variable contributions.
- Applies variance decomposition techniques to show that MDI corresponds to the contribution of each variable to the total output variance.
- Employs limit analysis as the number of tree levels $k \to \infty$ to derive asymptotic expressions for MDI values.
- Compares MDI values across different tree structures (e.g., all splits on $X^{(1)}$ vs. all on $X^{(2)}$) to demonstrate symmetry and consistency under i.i.d. inputs.
- Leverages technical lemmas to prove that the total decrease in variance due to splits along a variable converges to a well-defined quantity related to the marginal variance of the response.
Experimental results
Research questions
- RQ1What does the Mean Decrease Impurity (MDI) measure actually estimate in random forests?
- RQ2Under what conditions is MDI a valid and interpretable measure of variable importance?
- RQ3How does MDI behave when input variables are dependent or interact in the response function?
- RQ4Can MDI be theoretically justified as a variance decomposition of the output in regression trees?
- RQ5What are the limitations of MDI when input variables are correlated or when interactions are present?
Key findings
- MDI provides a valid variance decomposition of the output when input variables are independent and there are no interactions in the model.
- In the absence of interactions and with independent inputs, the MDI value for each variable corresponds exactly to its contribution to the total output variance.
- When input variables are dependent or interact, the concept of variable importance becomes intrinsically ill-defined, and MDI cannot be meaningfully interpreted as a marginal contribution.
- The MDI values for $X^{(1)}$ and $X^{(2)}$ in a symmetric model where $Y = X^{(1)} + X^{(2)}$ converge asymptotically to $\frac{1}{3} - \frac{1}{3}\left(\frac{1}{4}\right)^\beta$ as the number of tree levels increases.
- The theoretical analysis confirms that MDI is not biased toward variables with more categories or higher frequency categories under the assumed i.i.d. and independence conditions, though this does not extend to correlated features.
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.