Prototype and Criticism Models
Description
Prototype and criticism methods summarise a dataset with a small set of real examples. Prototypes are instances chosen to represent the bulk of the data, so that together they match its overall distribution as closely as possible. Criticisms are the instances the prototypes represent worst, which shows what the summary leaves out. In a set of customer transactions, prototypes might be the usual buying patterns and criticisms might be bulk buyers or one-off high-value customers. A reviewer can read a few dozen examples instead of the whole dataset, but the method describes the data only, so how a model performs on the unusual cases needs a separate check.
Example Use Cases
Explainability
A radiology team summarises a medical imaging dataset with prototypes and criticisms. The prototypes show the typical scans that dominate the data, and the criticisms show rare presentations the data covers thinly. The team uses the criticisms to choose cases for a separate check of how accurate the model is on rare presentations.
A credit risk team summarises its borrower records with prototypes (typical low-risk profiles) and criticisms (unusual but legitimate patterns, such as irregular self-employed income). It passes the criticism cases to a separate accuracy check, to see whether the scoring model handles them as well as typical borrowers.
An engineer preparing a visual inspection model for a production line computes prototypes and criticisms for each defect class on the model's image embeddings. The criticisms show unusual captures, such as odd lighting or partial views, which the team adds to the test set so the model is checked on them.
Limitations
- Which examples are chosen depends on the similarity measure and its settings, so different reasonable choices give different prototypes and criticisms. The original paper lists the effect of the kernel choice as future work, so there is no settled guidance.
- The method needs a similarity score between every pair of examples, so memory and time grow with the square of the dataset size. Large datasets may need to be sampled before the method is run.
- The user sets the number of prototypes and criticisms. Too few leaves large parts of the data unrepresented, and too many defeats the purpose of a summary short enough for a person to read.
- It describes the data, not the model. Criticisms are the examples the prototypes represent worst, which is not the same as the examples the model gets wrong, so a separate evaluation is needed to learn how the model performs on them.
- The original evidence that criticisms help people understand a dataset is a pilot study with four participants. Those who saw prototypes and criticisms were more accurate but slower than those who saw prototypes alone, so the benefit for a given audience is untested.
Resources
Research Papers
Examples are not Enough, Learn to Criticize! Criticism for Interpretability
Example-based explanations are widely used in the effort to improve the interpretability of highly complex distributions. However, prototypes alone are rarely sufficient to represent the gist of the complexity. In order for users to construct better mental models and understand complex data distributions, we also need criticism to explain what are not captured by prototypes. Motivated by the Bayesian model criticism framework, we develop MMD-critic which efficiently learns prototypes and criticism, designed to aid human interpretability. A human subject pilot study shows that the MMD-critic selects prototypes and criticism that are useful to facilitate human understanding and reasoning. We also evaluate the prototypes selected by MMD-critic via a nearest prototype classifier, showing competitive performance compared to baselines.
Prototype selection for interpretable classification
Prototype methods seek a minimal subset of samples that can serve as a distillation or condensed view of a data set. As the size of modern data sets grows, being able to present a domain specialist with a short list of "representative" samples chosen from the data set is of increasing interpretative value. While much recent statistical research has been focused on producing sparse-in-the-variables methods, this paper aims at achieving sparsity in the samples. We discuss a method for selecting prototypes in the classification setting (in which the samples fall into known discrete categories). Our method of focus is derived from three basic properties that we believe a good prototype set should satisfy. This intuition is translated into a set cover optimization problem, which we solve approximately using standard approaches. While prototype selection is usually viewed as purely a means toward building an efficient classifier, in this paper we emphasize the inherent value of having a set of prototypical elements. That said, by using the nearest-neighbor rule on the set of prototypes, we can of course discuss our method as a classifier as well.