[Paper Review] Explaining Latent Representations with a Corpus of Examples
SimplEx is a post-hoc explanation method that decomposes a black-box model's latent representation for a test example as a weighted mixture of user-selected corpus examples, using Integrated Jacobians to attribute feature-level contributions. It enables personalized, robust, and interpretable explanations across diverse tasks, outperforming baselines like Deep k-NN and the representer theorem in both latent and output space reconstruction.
Modern machine learning models are complicated. Most of them rely on convoluted latent representations of their input to issue a prediction. To achieve greater transparency than a black-box that connects inputs to predictions, it is necessary to gain a deeper understanding of these latent representations. To that aim, we propose SimplEx: a user-centred method that provides example-based explanations with reference to a freely selected set of examples, called the corpus. SimplEx uses the corpus to improve the user's understanding of the latent space with post-hoc explanations answering two questions: (1) Which corpus examples explain the prediction issued for a given test example? (2) What features of these corpus examples are relevant for the model to relate them to the test example? SimplEx provides an answer by reconstructing the test latent representation as a mixture of corpus latent representations. Further, we propose a novel approach, the Integrated Jacobian, that allows SimplEx to make explicit the contribution of each corpus feature in the mixture. Through experiments on tasks ranging from mortality prediction to image classification, we demonstrate that these decompositions are robust and accurate. With illustrative use cases in medicine, we show that SimplEx empowers the user by highlighting relevant patterns in the corpus that explain model representations. Moreover, we demonstrate how the freedom in choosing the corpus allows the user to have personalized explanations in terms of examples that are meaningful for them.
Motivation & Objective
- To address the lack of personalized, user-centered explanations for complex black-box models by enabling users to define their own reference examples (the corpus).
- To improve interpretability of latent representations beyond model outputs by decomposing them into meaningful, human-understandable components from a corpus.
- To provide feature-level explanations of how corpus examples contribute to the model's prediction, bridging the gap between example-based and feature importance explanations.
- To enable robust and accurate reconstruction of both latent and output space representations using corpus mixtures, surpassing existing methods in fidelity and stability.
Proposed method
- SimplEx constructs a decomposition of the test example's latent representation as a weighted mixture of latent representations from a user-defined corpus of examples.
- It uses a novel differentiable optimization framework to compute corpus weights that minimize reconstruction error in the latent space.
- The Integrated Jacobian technique generalizes Integrated Gradients to quantify the contribution of each feature in each corpus example to the latent mixture.
- The method supports flexible corpus selection—users can choose any set of examples (not limited to training data), enabling personalized explanations.
- The approach is applied post-hoc, requiring no architectural changes to the underlying model, making it broadly applicable to diverse machine learning models.
- The method ensures both latent space and output space reconstruction accuracy by jointly optimizing for fidelity in both spaces.
Experimental results
Research questions
- RQ1Can a user-defined corpus of examples improve the interpretability of latent representations in black-box models compared to fixed or default reference sets?
- RQ2How can feature-level contributions of corpus examples be explicitly quantified in the latent space decomposition to enhance model transparency?
- RQ3To what extent does SimplEx outperform existing methods like Deep k-Nearest Neighbors and the representer theorem in reconstructing latent and output representations?
- RQ4How do users perceive the value of corpus weights and feature attributions in real-world decision-making contexts, such as clinical risk prediction?
- RQ5Can the freedom to choose a personalized corpus enhance user trust and understanding of model predictions in high-stakes domains?
Key findings
- SimplEx achieves significantly higher R² scores in latent space reconstruction (e.g., 0.85–0.92 on MNIST and SEER datasets) compared to Deep k-Nearest Neighbors and the representer theorem.
- The use of corpus weights in SimplEx leads to more accurate and robust model reconstruction than uniform weighting, as demonstrated by a 20–30% improvement in reconstruction fidelity.
- Clinicians in a user study rated the corpus weights as important (mean agreement: 4.0/5), with 60% agreeing that uniform weighting obscures valuable information.
- The Jacobian Projections were deemed crucial for interpretability, with 90% of clinicians agreeing (mean: 4.6/5) that knowing which features drive similarity is essential.
- The freedom to choose a personalized corpus was seen as beneficial by 40% of clinicians, with no added cost to the method, enabling tailored explanations without compromising performance.
- In a clinical use case, clinicians reported that SimplEx explanations affected their confidence in predictions—60% agreed that a change in corpus example outcome (e.g., Bill surviving) would cast doubt on the model’s prediction for Joe.
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.