In traditional machine learning, we often ask: "Which features are most important to this model?" We calculate a global score—like Permutation Feature Importance or a Gini ranking—and conclude that, for example, Income and Credit Score are the primary drivers of a loan approval model.
However, this global perspective is often a statistical mirage. As Giuseppe Casalicchio notes in On benchmark experiments and visualization methods for the evaluation and interpretation of machine learning models, aggregate scores frequently obscure local variations. A feature might be a critical signal for one subgroup of people but complete noise for another.
The research direction of Localized Feature Relevance shifts the question from "What matters overall?" to "Under what specific circumstances does this feature become important?"
The Failure of Global Importance
The core problem with global feature selection is the assumption of homogeneity. In complex, high-dimensional datasets, the relationship between inputs and outputs is rarely uniform across the entire space.
Consider a medical diagnosis model. A specific genetic mutation might be a powerful predictor of a disease, but only if the patient is over the age of 60. In a global analysis, this mutation's importance is averaged across all age groups, potentially diluting its signal so much that it is dismissed as noise. Jaime Roquero Gimenez and James Y. Zou argue in Discovering Conditionally Salient Features with Statistical Guarantees that standard methods fail to capture these "conditionally salient" features, which are only relevant in specific sub-regions of the feature space.
This isn't just an interpretability issue; it's a performance bottleneck. In high-dimensional spaces, the "nearest neighbor" often becomes meaningless because points become nearly equidistant. Alexander Hinneburg and colleagues showed in What Is the Nearest Neighbor in High Dimensional Spaces? that by identifying query-specific subsets of dimensions, we can recover meaningful similarity patterns that are otherwise drowned out by irrelevant features.
Mechanisms for Localization
How do we move from global to local? The literature suggests three primary mechanisms:
1. Space Partitioning
The earliest approaches, such as Jerome H. Friedman’s MARS (Multivariate Adaptive Regression Splines) in Adaptive Spline Networks, use basis functions to perform local variable selection. By choosing to ignore certain inputs within specific regions, the model focuses only on what is locally relevant. Similarly, Antonio Sutera and others in Context-dependent feature analysis with random forests use the structure of decision trees to identify "niche drivers" that only exhibit predictive power within specific environmental contexts.
2. Instance-wise Gating
Modern deep learning approaches use "hypernetworks" to perform selection on the fly. In Contextual Feature Selection with Conditional Stochastic Gates, Gal Mishne introduces c-STG, which dynamically opens or closes "gates" for specific features based on contextual information like age or location. This allows the model to adapt its architecture to the specific data point it is currently processing.
3. Local Sensitivity Analysis
For models that are already trained, researchers use sensitivity-based methods to generate pointwise relevance estimates. Topi Paananen and Aki Vehtari demonstrate in Variable selection for Gaussian processes via sensitivity analysis of the posterior predictive distribution that analyzing the gradient of the posterior predictive distribution allows us to see how feature influence shifts across the data manifold.
Solving the Disagreement Problem
One of the most practical benefits of localized relevance is solving the "XAI Disagreement Problem." When different explanation methods (like SHAP and PDP) give conflicting results, it is often because they are trying to summarize complex feature interactions into a single global number.
In Tackling the XAI Disagreement Problem with Regional Explanations, Gabriel Laberge and Yann Pequignot propose FD-Trees. By partitioning the data into regions where the model's behavior is locally additive, they effectively silence the disagreement. Within these regions, the "true" local importance of a feature becomes clear because the confusing global interactions have been partitioned away.
Intuition: The Manifold of Importance
Imagine the data as a landscape. A global importance metric is like saying "the average elevation of this country is 500 meters." While technically true, it tells you nothing about the peaks of the mountains or the depths of the valleys.
Localized feature relevance is the topographic map. It recognizes that in the "valley" of one subgroup, Feature A is the dominant landmark, while in the "mountain range" of another, Feature A is invisible and Feature B is the only thing that matters. By allowing feature importance to be spatially heterogeneous—as explored in Methods for interpreting a self-organized map in data analysis by Samuel Kaski and colleagues—we gain a much more faithful understanding of how complex models actually navigate the data.