Abstract
Knowledge of the importance of input features towards decisions made by machine-learning models is essential to increase our understanding of both the models and the underlying data. Here, we present a new approach to estimating feature importance with neural networks based on the idea of distributing the features of interest among experts in an attentive mixture of experts (AME). AMEs use attentive gating networks trained with a Granger-causal objective to learn to jointly produce accurate predictions as well as estimates of feature importance in a single model. Our experiments show (i) that the feature importance estimates provided by AMEs compare favourably to those provided by state-of-the-art methods, (ii) that AMEs are significantly faster at estimating feature importance than existing methods, and (iii) that the associations discovered by AMEs are consistent with those reported by domain experts.
Introduction
Deep neural networks (DNNs) have achieved remarkable success across diverse domains, yet they remain largely "black boxes." This lack of transparency is a significant barrier in high-stakes environments like healthcare or legal systems, where understanding the "why" behind a prediction is as critical as the prediction itself.
Current interpretability methods generally fall into two categories. Post-hoc explainers, such as LIME and SHAP, are model-agnostic but computationally expensive, often requiring thousands of perturbations to explain a single instance. Conversely, internal attention mechanisms provide "built-in" explanations but often lack theoretical grounding; attention weights do not necessarily correlate with actual feature importance and can "collapse" or leak information. This paper introduces Attentive Mixtures of Experts (AMEs) to bridge this gap, offering a model that is inherently interpretable, theoretically grounded via Granger causality, and orders of magnitude faster than existing solutions.
Methods: The AME Architecture
The core innovation is the AME architecture, which partitions input features among $p$ individual experts ($E_i$). Unlike standard networks where all features interact in the first hidden layer, each expert in an AME only processes its assigned subset of features.
An Attentive Gating Network ($G_i$) assigns an attention factor ($a_i$) to each expert's contribution. The final output $y$ is a weighted sum of these expert outputs. To ensure these attention weights are meaningful, the authors introduce a Granger-causal objective. In this framework, a feature is considered "causal" if its inclusion significantly reduces prediction error compared to its exclusion.
The model trains auxiliary predictors that systematically exclude one expert at a time. The resulting difference in error ($\Delta\epsilon_i$) is used to supervise the gating network. If removing Expert A causes a significant spike in error, the gating network is penalized unless it assigns a high attention weight to that expert. This provides the "truthful" incentive that standard attention mechanisms lack.
Experimental Setup and Results
The researchers evaluated AMEs across three distinct datasets: MNIST (digit classification), Medical Prescription Demand (large-scale time series), and TCGA RNAseq (cancer genomics). The experiments demonstrated that AMEs achieve state-of-the-art interpretability with unprecedented efficiency.
1. Computational Efficiency
The most striking result is the speedup. In the prescription demand task, AMEs generated explanations in just 2 seconds. In contrast, LIME took approximately 16 minutes, and SHAP was estimated to require nearly 200 hours. This linear scaling makes AMEs uniquely suitable for high-dimensional, large-scale datasets where post-hoc methods fail.
2. Attribution Accuracy and Domain Alignment
On the MNIST task, AMEs identified critical pixels differentiating '8' from '3' with accuracy comparable to SHAP. In the genomics task, AME (with the causal objective) achieved a Recall@10 of 1.0, identifying all 10 gene-cancer associations supported by domain experts. In comparison, "naive" attention (AME with $\alpha=0$) only identified 2 out of 10, highlighting the necessity of the Granger-causal grounding.
3. The Interpretability-Performance Trade-off
The study identified a slight "interpretability tax." Increasing the weight of the Granger-causal objective ($\alpha$) can lead to a minor increase in prediction error. However, a "sweet spot" (e.g., $\alpha=0.03$) was found where the model maintains high predictive performance while providing highly accurate feature attributions.
Conclusion
AMEs represent a significant step forward in neural network interpretability. By integrating Granger causality directly into the training objective, they provide "truthful" attention weights that reflect actual feature importance. While AMEs require a specific architectural commitment from the start of model development, the benefits in speed and reliability make them a compelling choice for transparent machine learning in complex domains.
Summary updated