Abstract
As deep learning models are increasingly deployed in high-stakes domains like healthcare, the need for interpretable explanations becomes critical. Local Interpretable Model-agnostic Explanations (LIME) is a widely used tool, but it suffers from instability and poor local fidelity due to its reliance on random sampling and Euclidean distance in raw feature space. This paper introduces ALIME (Autoencoder-based LIME), a framework that integrates a denoising autoencoder to map data into a latent space. By calculating local weights in this learned manifold, ALIME produces explanations that are significantly more stable and faithful to the original black-box model.
Introduction
The "black box" nature of deep learning models is a significant barrier to their adoption in fields where accountability is paramount. In healthcare, understanding why a model predicts a specific diagnosis is essential for ensuring clinical correctness and fairness. While LIME provides a method to explain individual predictions by fitting a local linear model to perturbed samples, it is often criticized for its instability—providing different explanations for the same instance across runs—and its inability to capture complex data relationships using standard distance metrics.
Methodology
ALIME addresses these shortcomings through three key modifications to the standard LIME workflow:
- Denoising Autoencoder (DAE): A DAE is trained on the training data to learn a lower-dimensional latent representation that captures the underlying manifold of the data.
- Latent Space Weighting: Instead of weighting perturbed samples based on their distance in the raw input space, ALIME maps both the test instance and the samples into the autoencoder’s latent space. Distances are calculated in this embedding, and an exponential kernel is applied to derive weights.
- Pre-sampling for Stability: To eliminate the variance introduced by on-the-fly random sampling, ALIME utilizes a large, pre-generated pool of samples. For any given explanation, it selects the $n$ closest points from this pool based on latent space distance.
By defining the "neighborhood" through the data's actual structure, the local interpretable model becomes a more robust approximation of the black-box model's behavior.
Experimental Setup
The framework was evaluated using three healthcare datasets from the UCI Machine Learning Repository:
- Breast Cancer Dataset: 699 observations, 11 features.
- Hepatitis Patients Dataset: 155 observations, 20 features.
- Indian Liver Patient Dataset: 583 observations, 11 features.
A feed-forward neural network served as the black-box model for all experiments.
Results and Discussion
ALIME was compared against standard LIME using metrics for local fidelity and stability.
Local Fidelity
ALIME consistently outperformed LIME across all datasets, achieving higher $R^2$ scores and lower Mean Squared Error (MSE). This indicates that the local linear model trained in the latent space provides a more accurate representation of the black-box model's local decision boundary.
Stability
Stability is a prerequisite for clinical trust. By calculating the standard deviation of feature weights over multiple runs on the same instance, the authors found that ALIME exhibited significantly lower variance than LIME. The deterministic nature of selecting from a pre-sampled pool in a learned embedding effectively neutralized random noise.
Qualitative analysis of the generated feature representations demonstrates that ALIME identifies clinically relevant features, such as "area error" in breast cancer, with high consistency. This stability ensures that clinicians receive the same explanation for a given prediction every time, fostering trust in the system.
Conclusion
ALIME represents a significant step forward in making local interpretability tools reliable for high-stakes applications. By leveraging the manifold hypothesis through autoencoders, it overcomes the inherent randomness and geometric simplicity of standard LIME. Future research will focus on extending this approach to non-tabular data types, such as images and text, and providing a more rigorous theoretical foundation for latent space weighting.
Summary updated