Abstract
Standard feature selection methods typically produce global rankings, identifying variables that are important on average across an entire dataset. However, in complex domains like medicine, a feature's relevance may be highly situational. This paper introduces a novel framework for context-dependent feature analysis using Random Forests, providing mathematical measures to detect and characterize how feature importance shifts under specific circumstances.
Introduction
In many real-world applications, the predictive power of a variable is not static. For example, a specific gene might only drive tumor growth in patients of a certain gender, or a sensor reading might only be predictive when a machine operates at high temperatures. Traditional "global" methods often fail to distinguish between a feature that is universally important and one that is context-dependent. This paper addresses this gap by formalizing context-dependence and providing a practical implementation within the Random Forest framework.
Methods
The researchers extend the standard Mean Decrease Impurity (MDI) framework to introduce two novel measures computed from "totally randomized trees":
- $Imp^{|x_c|}(X_m)$ (The Detection Measure): This calculates the absolute difference between the information a feature provides globally versus the information it provides within a specific context ($x_c$). A high value indicates strong context-dependence.
- $Imp^{x_c}_s(X_m)$ (The Characterization Measure): This signed version identifies the nature of the dependency. A positive value indicates the feature is Context-Complementary (more informative in that context), while a negative value indicates it is Context-Redundant (the context itself already provides the feature's information).
These measures are computationally efficient as they can be derived from a single forest, and the authors provide asymptotic guarantees that these values converge to true information-theoretic quantities as data and tree counts increase.
Experimental Setup and Datasets
The framework was validated using a combination of synthetic and real-world data:
- Artificial Datasets: Designed to test the algorithm's ability to identify features that only become relevant when a specific "context switch" is activated.
- Primary Tumor Dataset (UCI): A clinical dataset where "Sex" was used as the context to identify gender-specific risk factors for tumor location.
- GBM (Brain Cancer) Gene Expression: A high-dimensional dataset (11,861 genes) used to find gene interactions that vary across cancer subtypes (e.g., Proneural vs. Mesenchymal).
Key Results and Insights
The analysis revealed that context-dependence is often asymmetric; a feature depending on a context does not necessarily mean the context depends on that feature. Crucially, the paper demonstrates that features appearing unimportant in global rankings may actually be the most critical variables within a specific niche.
In the Primary Tumor dataset, the model identified significant gender-specific nuances that standard Random Forest importance would overlook. For instance, features like "histologic-type" and "neck" were found to be significantly more relevant for one gender, while "peritoneum" and "abdominal" were more critical for the other.
In the high-dimensional brain cancer study, the proposed measures identified dozens of significant context-dependent gene interactions. The authors found that their absolute-difference measure was far more sensitive than simple subtraction-based approaches, which only identified a fraction of these interactions.
Conclusion
This framework provides a rigorous method for interpreting machine learning models beyond global averages. While the current implementation focuses on categorical variables, it offers a foundation for future work involving continuous context variables and the development of more personalized, local predictive models.
Summary updated