Manuscript Offprint
arXiv:2609.04265ProToMEx: Rapid, Interpretable Explanations via Structured Representations
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ATHINA GEORGARA , University of Southampton, UK
ADARSH VALOOR , University of Southampton, UK
SARVAPALI D. RAMCHURN, University of Southampton, UK
Existing post-hoc explainers for machine learning classifiers primarily focus on feature attribution, assigning importance scores to individual features. While valuable, this approach struggles to articulate the complex, combinatorial patterns that often drive a model's decision-making process. To overcome this limitation, we introduce ProToMEx, a new paradigm for explainability that leverages Probabilistic Topic Models (PTMs). Our model-agnostic framework learns latent "topics" that represent distinct, high-level reasons for a classification, moving beyond simple feature importance to reveal underlying semantic structures. ProToMEx naturally provides both global explanations of a model's overall behaviour and local explanations that can disentangle multiple co-existing reasons for a specific prediction. We demonstrate empirically that ProToMEx not only produces explanations of comparable fidelity to popular methods like SHAP and LIME but also drastically reduces the amortised computational cost of generating local explanations, making it highly suitable for real-time applications. Specifically, we show that ProToMEx is 30-40 faster than SHAP and LIME over standardised tabular datasets and synthetic datasets.
Additional Key Words and Phrases: Explainable AI, Explaining Classifiers, Probabilistic Topic Modelling
ACM Reference Format:
Athina Georgara, Adarsh Valoor, and Sarvapali D. Ramchurn. 2018. ProToMEx: Rapid, Interpretable Explanations via Structured Representations. 1, 1 (September 2018), 13 pages. https://doi.org/XXXXXXX.XXXXXXX
We contend that a single prediction may be underpinned by multiple, distinct lines of reasoning. For instance, a loan application might be denied due to either a pattern of low income and high debt, or a pattern of unstable
Both authors contributed equally to this research.
The datasets are publicly available in open repositories.
Authors' Contact Information: Athina Georgara, a.georgara@soton.ac.uk, University of Southampton, Hampshire, England, UK; Adarsh Valoor, University of Southampton, Hampshire, England, UK; Sarvapali D. Ramchurn, University of Southampton, Hampshire, England, UK.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM XXXX-XXXX/2018/9-ART
https://doi.org/XXXXXXX.XXXXXXX
2 • Georgara et al.
employment history. A simple feature ranking conflates these distinct reasons. To address this, we introduce a new paradigm for explanation that models these underlying reasons as latent topics. We propose ProToMEx, a novel, model-agnostic explainer that leverages Probabilistic Topic Models - a class of generative statistical models from natural language processing—to discover these latent patterns. ProToMEx operates by learning a vocabulary of discretised feature-values and class labels from a classifier's behaviour. It then identifies topics as distributions over this vocabulary, where each topic represents a distinct, interpretable combination of feature values associated with a specific class label. Crucially, the learned topics serve a dual purpose: they act as a global summary of the model's prototypical reasoning patterns across the dataset, while their specific activation in an instance provides a targeted local explanation.
The primary technical challenge in this endeavour is bridging the gap between the structured tabular data used by classifiers and the bag-of-words format required by PTMs. We resolve this with a novel data transformation process that converts instance-label pairs into weighted textual documents. To the best of our knowledge, this is the first work to successfully adapt PTMs for generating post-hoc explanations of any black-box classifier.
Against this background, this paper makes the following contributions to the state-of-the-art:
(1) We propose ProToMEx, a new model-agnostic explainer that moves beyond feature attribution to topic-based reasoning. It provides both global explanations (prototypical feature patterns for a class) and local explanations (the specific patterns active in a single instance), and is uniquely capable of disentangling multiple reasons for a prediction.
(2) We introduce a novel translation methodology that transforms structured tabular data into a weighted bag-of-words corpus. This technique is the key that unlocks the application of powerful PTMs to the problem of classifier explainability.
The paper is organised as follows. Section 2 reviews related work, Section 3 provides necessary background, and Section 4 details the ProToMEx framework.
2 Related work
Back et al. in [1] introduced Layer-wise Relevance BackPropagation (LRP) to explain neural networks (NNs). LRP finds the importance of each feature by backpropagating the score of the output class towards the input layer. Ribeiro et al. introduced LIME [16], a model-agnostic method for providing local explanations. Specifically, given some complex ML model and some input vector, LIME builds a linear model around the input and uses the weights of this local linear model as indicators to identify the most important input features. Chen and Song [5] propose a framework where a feature selection function is trained to identify the most informative subset of features for each individual data instance. This function is optimised considering the mutual information between the selected features and the response variable, based on the conditional distribution defined by the model being explained.
Lundberg and Lee put forward SHAP [9]. SHAP utilises a game theoretic solution concept, namely the Shapley Values, to compute the marginal contributions of the different input features to the outcome. SHAP explainer is the current state-of-the-art explainer. However, computing an explanation with SHAP can be a computationally demanding task, especially as the number of features increases. This is due to the fact that SHAP needs to compute the Shapley value of each feature, considering all the possible combinations of features—which grows exponentially. Notably, even though SHAP acknowledges that the joint contribution of features when combined in different ways varies, the explanations it builds partially convey this information through the features' importance weights. Opposed to SHAP, the model we introduce in this paper provides explanations capturing such knowledge.
Beyond feature importance, Ribeiro et al. in [17] introduced a novel approach to explaining the predictions of complex machine learning models. The authors put forward the concept of 'anchors', which are high-precision rules anchoring a prediction locally—as soon as the rules of an anchor are satisfied, the prediction remains consistent.
ProToMEx: Rapid, Interpretable Explanations via Structured Representations • 3
Radja et al. [14] proposed a novel approach for explaining multi-label classification models based on formal concept analysis (FCA). Specifically, the FCA-based explainer identifies properties related to outcomes.
Different to the works above, ProToMEx identifies patterns of features associated with class labels, and the explanation provided corresponds to a reason, i.e., a selection of features that together justify the outcome.
3 Background
Here we provide the necessary background on ML classifiers and Probabilistic Topic Models.
3.1 ML Classifiers
Classification refers to the problem of assigning class labels to data points, and more precisely, supervised classification aims to establish a rule that associates a new observation (data point) with one of the existing classes [11]. An observation is denoted with and is characterised by features (we denote the set of all features as ). Let be the domain space of feature , i.e., feature only exhibits values in for any observation; thus, observation is an -element vector with . Given a set of class labels , we assume the existence of a rule that maps each observation with a label . Therefore, an ML classifier, , approximates rule by considering a set of observations () along with their associated labels ().
3.2 Probabilistic Topic Modelling
Probabilistic Topic Models (PTMs) are a class of unsupervised generative models used to discover latent semantic structures within a collection of documents, known as a corpus [2]. Formally, a corpus is a collection of documents, where each document is a sequence of words from a fixed vocabulary . The core function of a PTM is to uncover the underlying semantic themes, or latent topics, that permeate the corpus. Formally, a topic is a multinomial distribution over the vocabulary .
A foundational PTM is Latent Dirichlet Allocation (LDA) [3]. LDA posits a generative process where each document is modelled as a random mixture over a set of latent topics. The generative process for each document in the corpus is as follows:
(1) Draw topic proportions .
(2) For each of the words in the document:
(a) Draw a topic assignment .
(b) Draw the observed word .
Here, is the parameter for the Dirichlet prior on the per-document topic distributions, and are the topic-word distributions. Given an observed corpus, the primary computational task is to perform posterior inference to estimate the latent variables—the per-document topic mixtures and the shared topic-word distributions .
4 ProToMEx: A Probabilistic Topic Model Explainer
We introduce ProToMEx, a novel, model-agnostic framework that leverages Probabilistic Topic Models (PTMs) to generate post-hoc explanations for any black-box classifier. ProToMEx operates by first learning a latent topic space where each topic represents a semantically coherent co-occurrence of feature-values and class labels. These topics are then used to provide both global explanations of a model's overall behaviour and local explanations for individual predictions. A key advantage of our approach is its ability to disentangle and present multiple, distinct reasons for a given classification outcome. The entire process, from model training to explanation generation, is detailed in Algorithm 1 and Algorithm 2.
The methodology consists of two phases: an offline phase for corpus construction and topic model training, and an online phase for generating explanations for new instances.
Georgara et al.
Algorithm 1: ProToMEx: Phase 1 - Offline Corpus Construction & Training
Require: Black-box classifier , feature domain , number of synthetic samples , number of topics , number of feature-weighting bins , discretization factor .
Ensure: A trained PTM represented by topic-word distributions , and the set of class-conditional feature distributions .
1: {Initialize synthetic dataset}
2: for to do
3: Sample
4:
5:
6: end for
7: for each class and each feature do
8: Compute probability mass function and rank function from the subset using intervals.
9: end for
10: Construct vocabulary from all feature-value centres and class labels.
11: {Initialize corpus}
12: for each do
13:
14:
15: end for
16: Train LDA on corpus with topics to obtain topic-word distributions .
Algorithm 2: ProToMEx: Phase 2 - Online Local Explanation Generation
Require: A new instance , the classifier , the trained PTM , and the set of distributions from Phase 1.
Ensure: A local explanation for : the set of relevant topics and their corresponding distributions .
1: {Get the model's prediction for the instance}
2: d' \leftarrow \text{TRANSLATETODOCUMENT}(\mathbf{x}', l', \{\mu_i^l'\}, \{\mathrm{idx}_i^l'\}, |B|) {Create a document for the instance}
3: Infer the topic mixture for document using the trained model .
4: return Set of topics and their distributions .
4.1 Offline Phase: Corpus Construction and Topic Modelling
The core innovation of ProToMEx lies in translating the structured, numerical feature space of a classification problem into a textual corpus suitable for PTMs. This phase is executed once per trained black-box model.
Synthetic Dataset Generation. Given a black-box classifier , we first probe its decision boundaries by generating a synthetic dataset , where each instance is sampled from the domain and its label is obtained from the classifier. This dataset serves as an empirical representation of the classifier.
Document Transformation. The central step is the transformation of each instance-label pair into a document. This process creates a bag-of-words representation where “words” correspond to class labels and discretised feature-value pairs.
Vocabulary Construction. The vocabulary is the set of all unique words that can appear in our synthetic corpus. It is composed of label-specific tokens and feature-value tokens: , where is the set of features and is the set of discretized value-centres for feature conditioned on class .
Feature Discretisation and Weighting. To capture the relationship between feature values and class labels, we first compute class-conditional probability mass functions for each feature. For each class and each feature
, we discretize the observed value range into uniform intervals, where contains all instances classified as . Let be the set of interval centres. The empirical probability mass function is computed as:
This function, , quantifies the prevalence of a feature's value range for a specific class. We then define a rank function that orders the interval centres based on their mass, with higher ranks corresponding to higher probability mass.
Document Assembly. For a given pair , we construct a document by populating it with words from . For each feature , we identify the centre corresponding to the value . The features are then partitioned into bins based on their rank . A feature in bin (for ) results in the word being repeated times in the document . This weighting scheme ensures that feature-values more strongly characteristic of class have a greater influence in the document. Finally, the word is added to the document, repeated times to assert its importance.
Topic Modelling. With the full corpus constructed, we train a standard Latent Dirichlet Allocation (LDA) model [3]. The LDA training yields topics, where each topic is a probability distribution over the vocabulary .
4.2 Online Phase: Explanation Generation
Once the PTM is trained, generating explanations for the classifier is computationally efficient.
Local Explanations. To explain a prediction for a new instance , we first obtain its label . We then transform the pair into a document using the pre-computed distributions and ) from the offline phase. Using the trained LDA model, we infer the topic-document distribution , which represents the mixture of topics that constitute document .
The local explanation for is the set of topics with non-negligible probability in this mixture, . Each such topic highlights a distinct combination of feature-values (via its distribution ) that justifies the classification . This allows ProToMEx to reveal if a prediction is supported by multiple, independent lines of reasoning within the data.
Global Explanations. Global explanations describe the general behaviour of the classifier for an entire class, without reference to a specific instance. A global explanation for a class is the set of topics that are strongly associated with its corresponding vocabulary word. Formally, this is the set of topics . Each of these topics represents a prototypical instance profile for that class, identifying a distinct pattern of feature-values that the model has learned to associate with the label .
5 Empirical Evaluation
To validate our proposed model, we conducted an empirical evaluation designed to assess ProToMEx on two primary axes: explanation fidelity and computational performance. We benchmark our method against two widely-used explainers, SHAP [9] and LIME [16]. The evaluation spans multiple public and synthetic datasets with diverse characteristics, including both binary and multi-class classification tasks, to demonstrate the general applicability of our approach.
Implementation Details. Our experiments were coded in Python 3.12. The black-box models to be explained are Neural Networks implemented with scikit-learn [4]. ProToMEx's topic modelling component is built upon
Georgara et al.
the Gensim library 's [15] implementation of LDA. For comparison, we used the official SHAP library (v0.46.0). The code will be publicly available upon acceptance.
5.1 Datasets
In this empirical evaluation, we used both synthetic and publicly available datasets, which we describe below. The description is shown in Table 1 and Table 2. All datasets can be found in https://bit.ly/protomex-datasets.
Synthetic Datasets. We constructed synthetic tabular datasets containing both numerical and categorical data, with a varying number of features and a varying number of class labels. For each dataset, we generated patterns of features related to each class label. That is, each feature can take values in the domain space , a pattern is characterised by a subset of features with each feature taking values from a subdomain space and a single class label . For each dataset, we randomly generated features with each feature being numerical with probability 75%, otherwise categorical. The domain space of categorical data contains 2 to 4 distinct values (randomly selected), while the domain space of all numerical data is . Given the features of a dataset, for label we generate patterns so that for each pattern it holds:
(1) the size of the pattern randomly selected from the range
(2) the subdomain space for each is
• a single value if f is categorical, or
• a range in if f is numerical
(3) the similarity of pattern with any other pattern of the dataset is less than 0.35.
For measuring the similarity between two patterns and we put forward the similarity metric below:
with denoting the average of maximum similarity of each feature to a feature , i.e.,:
and if and refer to the same feature in ; otherwise . Scaling factor , inspired by the similarity metric defined in [6], takes into consideration the coverage and alignment degree to determine the maximum possible similarity between the two patterns:
with coverage degree measuring the common features over all features in the patterns, and alignment degree measuring the distance of the smallest pattern to become subset of the largest. Finally, is a normalisation factor, and are regulating parameters. In our experiments, we set and . Intuitively, the larger the coverage is, the more similar the two patterns are allowed to be. Similarly, the larger the alignment is (i.e., the closer one of the two patterns is to a subset of the other), the more similar the two patterns are allowed to be.
We generated a number of data points (varying across the settings) per label by sampling over the patterns related to the label at hand. Intuitively, the pattern used to generate a data point corresponds to reason why the data point is labelled with a specific class label; therefore, the pattern is a sufficient explanation.
| Setting | # Features | # Labels | # Patterns | Size |
|---|---|---|---|---|
| F8P10L2 | 8 | 2 | 10 | 20000 |
| F8P6L3 | 8 | 3 | 6 | 20000 |
| F9P10L2 | 9 | 2 | 10 | 30000 |
| F9P6L3 | 9 | 3 | 6 | 30000 |
| F10P4L2 | 10 | 2 | 4 | 20000 |
| F10P10L2 | 10 | 2 | 10 | 20000 |
| F10P15L3 | 10 | 3 | 15 | 30000 |
| F10P20L2 | 10 | 2 | 20 | 20000 |
| F15P10L2 | 15 | 2 | 10 | 20000 |
Table 1. Synthetic datasets description We used 60% of the dataset for training the classifier, 35% for training ProToMEx and 5% for testing.
| Dataset | Size (# data points) | #Feat | Labels | ||
|---|---|---|---|---|---|
| Training | Corpus | Testing | |||
| Loan | 31751 | 12349 | 900 | 14 | Binary |
| Lungs | 2116 | 824 | 60 | 15 | Binary |
| Wine | 14816 | 5767 | 420 | 11 | Multiple |
| Air | 3526 | 1374 | 100 | 10 | Multiple |
Table 2. Publicly available datasets description
Loan Approval Dataset. This dataset contains data regarding financial risk for loan approval [7]. It consists of 45000 data points, and each data point is characterised by 13 features (both categorical and continuous ones). Specifically, there are 5 categorical features, 8 continuous features (6 float numbers and 2 integer numbers). There are two (2) classes in this dataset: loan approved (~ 22.23% of the data points) or loan rejected (~ 77.77% of the data points).
Lung Cancer Dataset. This dataset contains data related to various factors that may influence the risk of lung cancer [13]. It consists of 3000 data points, and each data point is characterised by 15 features (14 categorical features and 1 continuous feature). There are two (2) classes in this dataset, healthy lungs (49.4% of the data points) or malignant lungs (50.6% of the data points).
Wine Quality Dataset. This dataset contains data regarding wine quality [8]. It consists of 21000 data points, and each data point is characterised by 11 features (all features are continuous). There are two (3) classes in this dataset, low quality (28.57% of the data points), mediocre quality (42.86% of the data points) and high quality (28.57% of the data points).
Air Quality Dataset. This dataset contains data regarding the air quality across various regions [10]. It consists of 5000 data points, and each data point is characterised by 9 features (all features are continuous). There are four (4) classes in the dataset, air quality: good (40% of the data points), moderate (30% of the data points), poor (20% of the data points) and hazardous (10% of the data points).
5.2 Setup
Our evaluation protocol is executed independently for each dataset. For each dataset, we partition the data into three disjoint sets: a training set (60% for synthetic data; 70% for public data), a corpus set (35% and 28%, respectively),
8 • Georgara et al.
| Setting | Corpus Gen (sec) | ProToMEx training (sec) | Explain Instance (×10⁻² sec) | |
|---|---|---|---|---|
| SHAP | ProToMEx | |||
| F8P10L2 | 1.53 | 54.97 | 0.46 | 0.12 |
| F8P6L3 | 2.33 | 86.14 | 0.97 | 0.13 |
| F9P10L2 | 1.59 | 62.09 | 0.97 | 0.14 |
| F9P6L3 | 2.32 | 90.72 | 1.77 | 0.14 |
| F10P4L2 | 1.72 | 59.91 | 3.87 | 0.15 |
| F10P10L2 | 1.59 | 57.49 | 1.83 | 0.13 |
| F10P15L3 | 2.46 | 82.19 | 3.33 | 0.14 |
| F10P20L2 | 1.53 | 57.06 | 1.78 | 0.13 |
| F15P10L2 | 1.93 | 66.76 | 3.05 | 0.14 |
Table 3. Synthetic Datasets. Average time required for ProToMEx vs SHAP
| Setting | Detected Topics | Most Probable Relevant Topic | Most Similar Relevant Topic | Weighted Avg of Relevant Topics |
|---|---|---|---|---|
| F8P10L2 | 0.81 | 0.75 | 0.78 | 0.66 |
| F8P6L3 | 0.77 | 0.71 | 0.74 | 0.69 |
| F9P10L2 | 0.75 | 0.7 | 0.71 | 0.61 |
| F9P6L3 | 0.77 | 0.66 | 0.73 | 0.66 |
| F10P4L2 | 0.82 | 0.71 | 0.76 | 0.68 |
| F10P10L2 | 0.66 | 0.59 | 0.62 | 0.49 |
| F10P15L3 | 0.72 | 0.65 | 0.69 | 0.56 |
| F10P20L2 | 0.62 | 0.56 | 0.59 | 0.43 |
| F15P10L2 | 0.79 | 0.65 | 0.68 | 0.56 |
Table 4. Similarity between topics and original patterns
and a testing set (5% and 2%). First, we train a black-box classifier, a 5-layer neural network with ReLU activation on the training set. Next, to prepare our explainer, we use the trained classifier to generate predictions for the corpus set. These instance-label pairs are used to construct the document corpus and train the LDA model for ProToMEx, as detailed in Section 4.1. Finally, we generate local explanations for each instance in the testing set using ProToMEx, SHAP, and LIME. To ensure statistical robustness, we repeat this entire procedure 100 times with different random seeds. All reported results are the average values across these runs.
5.3 Results
We analyse the computational performance of ProToMEx against SHAP on synthetic datasets, with results averaged over 100 runs shown in Table 3 (Fig. 1). The performance of ProToMEx is characterised by two phases. First, a one-time offline overhead is incurred for corpus generation and LDA model training, a cost that scales with corpus size. Second, during the online phase of explaining an individual instance, ProToMEx is up to 25× faster than SHAP. This significant speed-up is because ProToMEx utilises its pre-trained model for inference, whereas SHAP must recompute its explanation for every new instance. As we show later in this section, this performance advantage over competing methods is even greater on public datasets.
Next, we evaluate the capability of ProToMEx to identify the reasons why an instance is classified with a specific class label. We constructed the synthetic dataset so that each instance is created using some pattern, with the pattern denoting the reasons for labelling the instance in a specific way. Our evaluation explores two aspects. First, we assess whether ProToMEx extract topics that match to patterns used to create a given dataset. Second, we assess how well ProToMEx can identify for each instance the specific pattern it was generated with. Table 4 shows the corresponding results. For measuring the similarity between the patterns and the topics detected by ProToMEx, we use the similarity metric described in Equation 1. That is, a detected topic is converted into a pattern considering all the non-zero terms. The subdomain domain space of a feature in a topic is the interval reconstructed by the centre used in the term during the document generation (see “Offline Phase” in Section 4). Notably, the similarity metric entirely neglects the label associated with the pattern. As such, we measure the similarity between a topic ( ) and a pattern ( ) as where if and only if , and 0 otherwise. Intuitively, denotes that two patterns are considered completely dissimilar when their labels are different, i.e., patterns associated with different labels cannot be similar.
In Table 4, we see that ProToMEx extract topics that are very similar (with similarity at least 0.62 on average) to the patterns with which the dataset at hand was generated. Notably, patterns and topics are of different sizes; therefore the similarity drops due to the coverage degree ; however the alignment degree of the patterns and the average maximum similarity (avg sim) increase the similarity between the patterns. That is, the original patterns tend to be subsets of the topics discovered by ProToMEx. As expected, the quality of the topics depends on the number of features of the dataset and the number of patterns used.
To assess the capability of our model to identify the correct pattern when explaining a single instance, we consider three quantities:
-
the similarity of the instance's ground truth pattern with the instance's most probable relevant topic;
-
the similarity of the instance's ground truth pattern with its most similar across the instance's relevant topics; and
-
the average over the similarity of the instance's ground truth pattern with any of instance's relevant topics, weighted with the topic's probability.
As we can see, most probable relevant topics achieve good similarity with the ground truth, indicating that ProToMEx can provide a close-to-ground-truth reason why an instance is classified with a specific label. Interestingly, there is a divergence between the most probable and the most similar topics (with most similar exhibiting higher similarity), indicating that ProToMEx manages to associate instances with topics close to the ground truth, but with not quite accurate probability.
Table 5 (Fig. 2) details the computational requirements of ProToMEx against SHAP and LIME in the publicly available datasets, averaged over 100 runs. Again, the performance of ProToMEx involves two distinct phases: the one-time overhead corpus generation and LDA model training, and the time required to explain a single instance. In this online phase, ProToMEx demonstrates a significant performance advantage, generating explanations at least 30-40x faster than SHAP and 20x LIME. This is because ProToMEx leverages its pre-trained model, while the baselines must recompute for every instance. Consequently, for applications requiring repeated explanations, the initial time investment is quickly offset. We find that ProToMEx becomes the most time-efficient method after explaining 2600 instances on the Loan dataset, 1225 on Wine, 125 on Air, and just 90 instances on the Lung Cancer dataset.
To evaluate the quality of our explainer, we consider the features appearing in the topics relevant to the instance at hand, and we compare them with the most influential ones according to SHAP and LIME. Specifically, since both SHAP and LIME compute an importance score for each feature, we consider as most influential all the features that exceed 1/3 of the average Shapley value and the average feature weight, respectively. Then, we compute the features detected by ProToMEx, and consider the number of influential features that ProToMEx missed. Tables 6 and 7 hold the relevant information. Specifically, and columns show the average number of influential features according to SHAP/LIME, and the average number of features detected by ProToMEx, respectively.
Georgara et al.
| Dataset | Corpus Gen (sec) | ProToMEx training (sec) | Explain Instance ( sec) | ||
|---|---|---|---|---|---|
| SHAP | LIME | ProToMEx | |||
| Loan | 1.68 | 117.92 | 1320.04 | 3.74 | 0.125 |
| Lungs | 0.07 | 6.001 | 94.3 | 2.29 | 0.121 |
| Wine | 1.56 | 26.71 | 484.6 | 2.46 | 0.106 |
| Air | 0.3 | 5.933 | 121.6 | 2.76 | 0.095 |
Table 5. Publicly Available Datasets. Average time required for ProToMEx vs SHAP vs LIME.
| Dataset | # Influential Features | # Instances with # Missing Influential Features Equal to (=) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SHAP | ProToMEx | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
| Loan | 5.27 | 9.63 | 332.83 | 283.58 | 164.5 | 37.92 | 13.33 | 63.5 | 4.33 | 0 | 0 | 0 | 0 |
| Lungs | 10.203 | 10.234 | 0.36 | 4.44 | 6.48 | 8.12 | 14.88 | 16.2 | 9.04 | 0.44 | 0.04 | 0 | 0 |
| Wine | 4.12 | 8.87 | 67.2 | 76.8 | 118.1 | 114.6 | 36 | 7.3 | 0 | 0 | 0 | 0 | 0 |
| Air | 5.73 | 7.21 | 5.73 | 33.08 | 37.14 | 20.44 | 3.36 | 0.25 | 0 | 0 | 0 | - | - |
Table 6. Average number of influential features according to SHAP and average number of influential features found by ProToMEx (across the whole testing dataset). Average number of instances (within testing dataset) that ProToMEx missed x influential features.
| Dataset | # Influential Features | # Instances with # Missing Influential Features Equal to (=) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LIME | ProToMEx | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
| Loan | 5.39 | 9.63 | 261.17 | 246 | 238.67 | 16.33 | 34.83 | 3 | 0 | 0 | 0 | 0 | 0 |
| Lungs | 8.56 | 10.23 | 0.72 | 4.32 | 13.48 | 20.2 | 15.48 | 5.04 | 0.68 | 0.08 | 0 | 0 | 0 |
| Wine | 4.12 | 55.4 | 68.6 | 115.3 | 130.2 | 43.7 | 6.8 | 0 | 0 | 0 | 0 | 0 | 0 |
| Air | 5.67 | 7.21 | 4.87 | 31.87 | 36.69 | 23.3 | 3.01 | 0.26 | 0 | 0 | 0 | - | - |
Table 7. Average number of influential features according to LIME and average number of influential features found by ProToMEx (across the whole testing dataset). Average number of instances (within testing dataset) that ProToMEx missed x influential features.
The remaining 10 columns show the average (over 100 iterations) number of instances that missed influential features per dataset. As we can see, ProToMEx misses fewer than 3 influential features (as identified either by SHAP or LIME) in the majority of the instances across all different datasets.
Finally, we conduct an analysis to show that ProToMEx can identify influential features when SHAP fails. Specifically, SHAP computes the Shapley value of each feature, which requires the consideration of all possible combinations of features. Such a task is computationally demanding, and when the number of features increases, it becomes prohibitive. To overcome the computationally expensive nature of Shapley values, SHAP performs sampling of feature combinations. As such, in large datasets involving hundreds of features, SHAP might fail to sample the influential features. To emulate this extreme situation, we force SHAP to “miss” sampling the top 3 influential features. Since the Python API of SHAP does not allow us to directly hide some feature from sampling, we obfuscate the influential features by considering the mean value of this feature across the dataset. Moreover, we reduce the number of samples used to n = 10, while the default value is with being the number of features. In Table 8 we illustrate the average number of missing influential features by the SHAP explainer, when SHAP is forced to miss the top-3 influential features—we refer to this explainer as ‘Poor Sampling
ProToMEx: Rapid, Interpretable Explanations via Structured Representations •
11

Fig. 1. Explaining single instance in Synthetic Datasets: SHAP vs ProToMEx.

Fig. 2. Explaining single instance in Publically Available Datasets: SHAP vs ProToMEx.
SHAP'. As we can see, the Poor Sampling SHAP misses more than 6 influential features in more instances than ProToMEx. Notably, the Wine and Air datasets, while ProToMEx in no instance misses more than 6 features, the Poor Sampling SHAP does in 9 and 3.37 instances.
Note that these results are not conclusive, however, they indicate that ProToMEx can identify influential features when SHAP misses sampling them. We expect this observation to become stronger when the number of features increases.
12 • Georgara et al.
| Dataset | Missing Influential Features | ||||
|---|---|---|---|---|---|
| ≥ 6 | ≥ 7 | ≥ 8 | ≥ 9 | ≥ 10 | |
| Loan | 5.38 | 2.88 | 1 | 0.13 | 0 |
| Lungs | 9.2 | 5.08 | 3.04 | 2.08 | 1.32 |
| Wine | 9 | 3.4 | 0.5 | 0 | 0 |
| Air | 3.73 | 1.08 | 0.19 | 0.04 | 0 |
Table 8. Average missing influential features by SHAP, when SHAP is forced to miss to sample the top-3 most influential features.
6 Conclusions
In this paper, we introduced ProToMEx, a novel general classifier explainer. Our proposed explainer uses probabilistic topic modelling (PTM), and specifically LDA, to extract latent relations among the input features and the classifier's output. We showed how to translate input data into documents to be fed to the PTM component, and we discussed how the topics can serve as global and local explanations. Then we conducted a preliminary empirical evaluation to test the effectiveness of our approach. We employed ProToMEx to explain classifiers trained with four different datasets, and we pitched it against the well-celebrated explainers SHAP and LIME. Our results showed that we can provide explanations of similar quality with SHAP (for 75% of the instances in three datasets misses less than 2 influential features). At the same time, ProToMEx significantly outperforms SHAP in explaining single instances—it can yield an explanation at least 40× faster. Finally, we showed, ProToMEx manages to identify more influential features than a Poor Sample SHAP explainer that misses influential features. This work is a practical step towards a new class of explainers that offer richer, more structured, and computationally scalable insights into complex models. The immediate direction for future research is to conduct user studies to formally evaluate the human-interpretability and utility of these topic-based explanations.
Acknowledgments
This research was supported by the Engineering and Physical Sciences Research Council (grant number EP/Y009800/1), through funding from Responsible Ai UK.
References
[1] Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus-Robert Müller, and Wojciech Samek. 2015. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one 10, 7 (2015), e0130140.
[2] David M Blei. 2012. Probabilistic topic models. Commun. ACM 55, 4 (2012), 77–84.
[3] David M Blei, Andrew Y Ng, and Michael I Jordan. 2003. Latent dirichlet allocation. Journal of machine Learning research 3, Jan (2003), 993–1022.
[4] Lars Buitinck, Gilles Louppe, Mathieu Blondel, Fabian Pedregosa, Andreas Mueller, Olivier Grisel, Vlad Niculae, Peter Prettenhofer, Alexandre Gramfort, Jaques Grobler, Robert Layton, Jake VanderPlas, Arnaud Joly, Brian Holt, and Gaël Varoquaux. 2013. API design for machine learning software: experiences from the scikit-learn project. In ECML PKDD Workshop: Languages for Data Mining and Machine Learning. 108–122.
[5] Jianbo Chen, Le Song, Martin Wainwright, and Michael Jordan. 2018. Learning to explain: An information-theoretic perspective on model interpretation. In International conference on machine learning. PMLR, 883–892.
[6] Yuhua Li, Zuhair A Bandar, and David McLean. 2003. An approach for measuring semantic similarity between words using multiple information sources. IEEE Transactions on knowledge and data engineering 15, 4 (2003), 871–882.
[7] Tawei Lo. 2024. Loan Approval Classification Dataset. https://www.kaggle.com/datasets/taweilo/loan-approval-classification-data/data.
[8] Tawei Lo. 2025. Wine Quality Dataset. https://www.kaggle.com/datasets/taweilo/wine-quality-dataset-balanced-classification.
[9] Scott M. Lundberg and Su-In Lee. 2017. A unified approach to interpreting model predictions. In Proceedings of the 31st International Conference on Neural Information Processing Systems (Long Beach, California, USA) (NIPS'17). Curran Associates Inc., Red Hook, NY, USA, 4768–4777.
[10] Mujtaba Mateen. 2025. Air Quality and Pollution Assessment. https://www.kaggle.com/datasets/mujtabamatin/air-quality-and-pollution-assessment.
[11] Donald Michie, David J Spiegelhalter, Charles C Taylor, and John Campbell. 1995. Machine learning, neural and statistical classification. Ellis Horwood.
[12] Tim Miller. 2019. Explanation in artificial intelligence: Insights from the social sciences. Artificial intelligence 267 (2019), 1–38.
[13] Humair Munir. 2025. Lung Cancer Dataset. https://www.kaggle.com/datasets/humairmunir/lung-cancer-risk-dataset/data.
[14] Hakim Radja, Yassine Djouadi, and Karim Tabia. 2022. Towards an FCA-Based Approach for Explaining Multi-label Classification. In International Conference on Information Processing and Management of Uncertainty in Knowledge-Based Systems. Springer, 638–651.
[15] Radim Rehurek and Petr Sojka. 2011. Gensim—python framework for vector space modelling. NLP Centre, Faculty of Informatics, Masaryk University, Brno, Czech Republic 3, 2 (2011).
[16] Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. 2016. "Why should I trust you?" Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining. 1135–1144.
[17] Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. 2018. Anchors: High-precision model-agnostic explanations. In Proceedings of the AAAI conference on artificial intelligence, Vol. 32.
Received 20 February 2007; revised 12 March 2009; accepted 5 June 2009