Explanations Go Linear: Interpretable and Individual Latent Encoding for Post-hoc Explainability
Simone Piaggesi, Riccardo Guidotti, Fosca Giannotti, Dino Pedreschi
TL;DR
Illume tackles the challenge of post-hoc explainability for black-box classifiers by unifying local and global explanations through a latent-space approach. It learns instance-specific locally linear encodings via a meta-encoder to produce a latent representation $oldsymbol{z}_i = W_i^b oldsymbol{x}_i$, on which a global surrogate operates, while an explanation generator maps back to human-interpretable explanations. The method is regularized to ensure decision conditioning, local linearity, and stable mappings, and uses KL-based objectives to align input, latent, and mapping distributions. Experiments on synthetic and real-world tabular data show Illume improves fidelity, robustness, and efficiency of explanations compared to existing surrogates and local explainers, with explanations that can be feature-attribution or rule-based and readily mapped to input space. This approach enables scalable, faithful post-hoc explanations compatible with a variety of surrogate models and offers a practical path toward end-to-end or cross-dataset explanation inference for tabular data.
Abstract
Post-hoc explainability is essential for understanding black-box machine learning models. Surrogate-based techniques are widely used for local and global model-agnostic explanations but have significant limitations. Local surrogates capture non-linearities but are computationally expensive and sensitive to parameters, while global surrogates are more efficient but struggle with complex local behaviors. In this paper, we present ILLUME, a flexible and interpretable framework grounded in representation learning, that can be integrated with various surrogate models to provide explanations for any black-box classifier. Specifically, our approach combines a globally trained surrogate with instance-specific linear transformations learned with a meta-encoder to generate both local and global explanations. Through extensive empirical evaluations, we demonstrate the effectiveness of ILLUME in producing feature attributions and decision rules that are not only accurate but also robust and faithful to the black-box, thus providing a unified explanation framework that effectively addresses the limitations of traditional surrogate methods.
