[Paper Review] LioNets: Local Interpretation of Neural Networks through Penultimate Layer Decoding
LioNets proposes a local explanation method for deep neural networks that generates neighborhood instances in the penultimate layer's latent space, ensuring better feature adjacency and fidelity. By training a decoder to reconstruct inputs from this latent space, LioNets produces more accurate and stable explanations than LIME, especially in capturing subtle feature importance changes in NLP tasks.
Technological breakthroughs on smart homes, self-driving cars, health care and robotic assistants, in addition to reinforced law regulations, have critically influenced academic research on explainable machine learning. A sufficient number of researchers have implemented ways to explain indifferently any black box model for classification tasks. A drawback of building agnostic explanators is that the neighbourhood generation process is universal and consequently does not guarantee true adjacency between the generated neighbours and the instance. This paper explores a methodology on providing explanations for a neural network's decisions, in a local scope, through a process that actively takes into consideration the neural network's architecture on creating an instance's neighbourhood, that assures the adjacency among the generated neighbours and the instance.
Motivation & Objective
- Address the limitation of model-agnostic local explainers like LIME, which generate neighbors in the original input space and risk poor adjacency due to sparse perturbations.
- Improve the fidelity and locality of explanations by generating neighbors in the penultimate layer’s dense latent representation, which better reflects the network’s internal decision boundaries.
- Ensure that generated neighbors are semantically and structurally closer to the original instance by leveraging the neural network’s learned representations.
- Develop a method that preserves the architectural inductive bias of deep neural networks to produce more reliable and robust local explanations.
- Demonstrate that this approach yields more accurate and stable feature importance estimates compared to existing state-of-the-art methods like LIME.
Proposed method
- Construct a local neighborhood in the penultimate layer of a trained neural network, rather than in the original input space.
- Train a decoder network to reconstruct original input examples from their penultimate-layer representations, forming a variational autoencoder-like structure.
- Use the decoder to map perturbed latent representations back to the input space, enabling interpretation in the original feature space.
- Generate an oracle dataset by combining decoded neighbors with their corresponding model predictions (class probabilities) from the original neural network.
- Train a transparent, interpretable model (e.g., Ridge Regression) on the oracle dataset to extract feature importance weights as explanations.
- Apply feature-wise attribution by scaling the coefficients with the original instance’s feature values to produce intuitive, instance-specific explanations.
Experimental results
Research questions
- RQ1Can generating neighborhood instances in the penultimate layer of a neural network lead to more faithful and accurate local explanations than perturbing the original input space?
- RQ2Does the use of a learned decoder to map from latent space back to input space preserve better proximity (adjacency) between neighbors and the original instance?
- RQ3How does LioNets compare to LIME in capturing subtle, context-dependent feature importance changes, especially in sparse data like text?
- RQ4To what extent does the latent space representation enable the generation of more representative and dense neighborhoods compared to input-space perturbations?
- RQ5Can the method maintain high fidelity while improving the interpretability of deep neural network decisions in NLP applications?
Key findings
- LioNets produces more accurate feature importance explanations than LIME, as demonstrated by consistent alignment with ablation studies—removing a feature like 'are' or 'wife' reduced the model's predicted probability for the 'hate' or 'spam' class, respectively.
- Neighborhoods generated by LioNets in the penultimate layer have significantly smaller Euclidean distances to the original instance in the latent space (0.2163) compared to LIME’s original-space neighbors (0.3961), indicating better adjacency.
- When decoded back to the original space, LioNets neighbors are only slightly more distant (0.7635) than LIME’s neighbors (0.3961), but the method ensures that the neighborhood is built in a space where semantic and structural proximity is preserved.
- The method captures delicate feature importance shifts that LIME may miss, particularly in sparse, high-dimensional data such as text, due to the limited number of unique neighbors LIME can generate.
- The use of a decoder trained on the penultimate layer enables the generation of larger, denser, and more representative neighborhoods in the latent space, improving the robustness of the transparent model’s training.
- In both the hate speech and SMS spam datasets, LioNets’ explanations were more stable and consistent with ablation results, confirming the reliability of its feature attribution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.