Introduction
While black-box models like Recurrent Neural Networks (RNNs) excel at processing multivariate time-series data—such as electronic health records—they are notoriously difficult to interpret. In high-stakes fields like healthcare, clinicians need to know why a model is predicting a high risk of mortality at a specific moment.
Existing explanation methods (like LIME, SHAP, or Integrated Gradients) were largely designed for static data. When applied to time-series, they often fail because they treat time steps as independent features, ignoring inherent temporal dependencies. Furthermore, many methods "perturb" data by replacing features with zeros or mean values. This creates "out-of-distribution" samples that the model never saw during training, leading to unreliable explanations.
To address this, researchers introduce FIT (Feature Importance in Time), a model-agnostic framework designed to explain the predictions of black-box time-series models. By quantifying how much specific observations contribute to shifts in a model's predictive distribution over time, FIT identifies not just which features are important, but exactly when they become critical.
The FIT Methodology
FIT defines feature importance through the lens of information theory and counterfactuals, focusing on dynamic changes rather than static weights.
- Distributional Shift: Instead of looking at raw output changes, FIT measures the KL-divergence between the model’s predictive distribution at time $t-1$ and time $t$. This captures the "temporal shift" in the model's belief.
- The FIT Score: The importance of a feature subset $S$ is calculated as the total temporal shift minus the "unexplained" shift that remains when only $S$ is observed. Essentially, it asks: How much of the model's change in opinion can be explained by seeing only these specific features?
- Generative Counterfactuals: To avoid the "out-of-distribution" trap caused by zeroing out data, FIT uses a Recurrent Latent Variable Model (a generative model) to estimate what the unobserved features would likely have been, given the past data and the features we did observe.
- Model Agnostic: FIT does not rely on the internal architecture of the black-box model; it only requires that the model can output a probability distribution.
Key Insights and Datasets
The authors evaluated FIT on both synthetic data (Spike Data, State Data, Switch-Feature Data) and real-world clinical data (MIMIC-III). The clinical tasks included predicting mortality within 48 hours and predicting the need for clinical interventions like ventilators.
Through these evaluations, several core insights emerged:
- Importance is Dynamic: In time-series, a feature's importance isn't a static property. A feature might be irrelevant for hours and then suddenly become the primary driver of a prediction.
- The Power of "Unobserved" vs. "Zeroed": By using a generative model to fill in the blanks, FIT creates realistic counterfactuals. This ensures the black-box model is evaluated on data that looks like its training set, leading to more "honest" explanations.
- Handling Subsets: FIT can evaluate the joint importance of groups of features (e.g., "all cardiac vitals"). This is vital in medicine, where a single lab value might be meaningless without the context of another.
- Temporal Control: You must control for the underlying temporal shift. If the model's prediction hasn't changed since the last time step, no new observation at the current time step can be considered "important" for that specific prediction.
Key Results
FIT consistently outperformed standard static attribution methods in complex, dynamic environments.
- Superior Localization: On synthetic "State" data, FIT achieved an AUROC of 0.798 for identifying important features. This was significantly higher than baselines like Deep-Lift (0.550) or SHAP (0.486), which struggled with the non-stationary nature of the data.
- Performance Deterioration Test: The authors tested what happens if you "hide" the most important features identified by each method. Removing features identified by FIT caused the largest drop in the black-box model's performance (a 0.71 drop compared to ~0.5 for baselines), proving FIT successfully identifies the features the model actually relies on.
- Clinical Relevance: In the MIMIC-mortality task, FIT was more effective at identifying the specific observations that led to a change in patient risk status compared to traditional attention-based or gradient-based methods.
Limitations and Future Work
While powerful, the FIT framework has a few current limitations:
- Instantaneous Attribution: FIT currently measures the importance of an observation at time $t$ for the prediction at time $t$. It does not explicitly account for "lagged" importance (e.g., a medication given at $t-5$ that causes a physiological change at $t$).
- Computational Overhead: Because FIT requires a trained generative model and Monte Carlo sampling to estimate expectations, it is more computationally expensive than simple gradient-based methods.
- Multi-step Predictions: The authors suggest that for long-term disease management, the framework could be extended to explain multi-step-ahead predictions rather than just the next immediate state.
Summary updated