Prototypical Self-Explainable Models Without Re-training
Srishti Gautam, Ahcene Boubekki, Marina M. C. Höhne, Michael C. Kampffmeyer
TL;DR
This work tackles the scarcity of readily usable self-explainable models by introducing KMEx, a universal method that converts any pre-trained model into a prototypical self-explainable model without re-training the backbone. KMEx reuses the existing encoder, learns $L$ class-specific prototypes via $k$-means in the embedding space, and replaces the classifier with a transparent $1$-nearest-neighbor decision rule, producing global prototype explanations and local PRP-based maps. The authors propose a novel, objective evaluation framework centered on three predicates—transparency, diversity, and trustworthiness—to assess SEMs beyond predictive accuracy, and demonstrate that KMEx achieves strong transparency and faithfulness with competitive accuracy across seven datasets while enabling diversity improvements without backbone modification. The paper also shows that KMEx can improve prototype diversity and minority-subclass representation when applied to existing SEM embeddings, offering a practical, scalable path toward broader adoption of self-explainable models in safety-critical settings.
Abstract
Explainable AI (XAI) has unfolded in two distinct research directions with, on the one hand, post-hoc methods that explain the predictions of a pre-trained black-box model and, on the other hand, self-explainable models (SEMs) which are trained directly to provide explanations alongside their predictions. While the latter is preferred in safety-critical scenarios, post-hoc approaches have received the majority of attention until now, owing to their simplicity and ability to explain base models without retraining. Current SEMs, instead, require complex architectures and heavily regularized loss functions, thus necessitating specific and costly training. To address this shortcoming and facilitate wider use of SEMs, we propose a simple yet efficient universal method called KMEx (K-Means Explainer), which can convert any existing pre-trained model into a prototypical SEM. The motivation behind KMEx is to enhance transparency in deep learning-based decision-making via class-prototype-based explanations that are diverse and trustworthy without retraining the base model. We compare models obtained from KMEx to state-of-the-art SEMs using an extensive qualitative evaluation to highlight the strengths and weaknesses of each model, further paving the way toward a more reliable and objective evaluation of SEMs (The code is available at https://github.com/SrishtiGautam/KMEx).
