Interpretable Counterfactual Explanations Guided by Prototypes
Paper · 2021 · Arnaud Van Looveren and Janis Klaise
Summary
A classifier can change its answer for the wrong reasons. A small alteration to an input may cross a decision boundary while leaving the altered example looking almost unchanged to a person. That is enough to produce a counterfactual in the narrow sense: an input that receives a different prediction. It is less useful as an explanation of what a convincing alternative would look like. This paper studies how to find counterfactuals that both change the prediction and resemble examples belonging to the new class. Its central proposal is to guide the search towards a class prototype, a representation of nearby examples associated with an alternative prediction.
The authors distinguish several goals that can pull against each other. A counterfactual should produce the intended prediction, change relatively little, remain plausible for its new class, and arrive quickly enough to be useful. Their definition of interpretability centers on proximity to the training distribution, especially the part associated with the counterfactual class. This is stronger than asking whether an altered example resembles the dataset in general. A handwritten digit can still look like its original class while a classifier assigns it another label. Similarly, changing a house’s bedroom count without changing its floor area may increase a predicted valuation while producing an implausible example of an expensive house. The paper therefore treats sparsity as a desirable property that must be assessed alongside class-specific plausibility.
The method adds a prototype attraction term to an optimization objective. When an encoder is available, the prototype is the average representation of nearby examples assigned to another class. Without an encoder, the method uses separate k-d trees for the classes and selects a nearby training example as the target. These prototypes give the search a destination. They also make it possible to remove the prediction-based loss, whose numerical gradients are expensive when the classifier exposes only a prediction interface. The classifier still checks candidate counterfactuals, but its outputs no longer have to supply the direction of every update. The authors also describe how to give categorical values meaningful numerical distances before searching over them.
Experiments on MNIST and Breast Cancer Wisconsin (Diagnostic) support the proposal under the paper’s evaluation criteria. On MNIST, adding prototype guidance to the basic objective reduces search time by 77% and gradient updates by 84%; combining it with an autoencoder penalty gives reductions of 82% and 90%. On the breast cancer task, the prototype-guided objective without the prediction loss reduces time by 92% and updates by 93%. Reconstruction-based measures generally favor the guided counterfactuals, although the sparsest alternatives come from the basic objective. An Adult (Census) example illustrates the categorical treatment instead of establishing a comparable quantitative result. The evidence supports faster search and stronger class-specific resemblance in these settings; it does not establish that every generated change is feasible, causal, or understandable to a human decision-maker.
Interesting ideas
Give search a representative destination. A penalty can discourage undesirable outputs without saying where a good output lies. The prototype term supplies that missing direction by attracting the candidate toward examples associated with an alternative class. This idea is useful whenever an optimization process must find a nearby acceptable alternative rather than merely escape an unacceptable region. The transferable principle is to combine a change budget with a representation of the destination. Its usefulness depends on the quality of that representation: an unrepresentative destination can steer the search efficiently toward the wrong kind of answer.
Evaluate the destination’s distribution. Overall resemblance to a dataset can conceal a failure to resemble the requested category. The paper makes this visible by comparing counterfactuals with real examples of their predicted class. The same distinction matters in any system that changes an input’s category, status, or interpretation. A revised item may remain familiar in a broad sense while failing to exhibit the characteristics expected of its new category. Evaluation should therefore ask both whether the output remains plausible and whether it is plausible as the particular alternative being claimed.
Separate verification from guidance. The classifier’s prediction can certify that a candidate has crossed a decision boundary without providing the gradient that generates the candidate. Prototype guidance makes this separation practical. For an expensive prediction interface, another representation can direct the search while occasional prediction checks establish whether the desired behavioral change has occurred. This pattern could apply to constrained editing or search around a costly evaluator. It requires a useful guide and an explicit final check; similarity to a destination alone does not establish success.
Treat correlated edits as potentially explanatory. A counterfactual that changes fewer individual values is not necessarily easier to understand. The breast cancer analysis distinguishes numerical features from the attributes those features describe. Changes to the mean and worst values of the same attribute may form a more coherent explanation than isolated changes scattered across unrelated attributes. This suggests evaluating explanations at the level of meaningful groups as well as individual coordinates. The paper’s result is specific to its measurements, but the question transfers: does the edit preserve relationships that make the object intelligible?
Build category distances from evidence. Arbitrary category codes provide an ordering without establishing a meaningful notion of closeness. The categorical procedure instead estimates pairwise distances from prediction behavior or relationships with other variables. It then constructs numerical coordinates for optimization and maps candidates back to actual categories. This is a reusable way to make a continuous search procedure work with discrete choices. The distance construction remains a substantive assumption, however. Agreement in prediction frequencies and agreement in contextual associations express different kinds of similarity.
Use several kinds of evidence for explanation quality. The paper combines search measurements, elastic-net penalties, reconstruction-based scores, visual examples, and distribution comparisons. Each addresses a different possible failure. Speed says little about plausibility, and a successful prediction change says little about whether the altered input represents its new class. This evaluation structure is worth borrowing even when its particular metrics are unsuitable. An explanation method should be examined through the behavior it changes, the edits it makes, the distribution it approaches, and the assumptions of the instruments used to judge it.
Deep dive: Interpretable Counterfactual Explanations Guided by Prototypes
How class prototypes guide counterfactual explanations toward plausible alternatives, improve search speed, and expose the limits of sparse edits. · about 36 minutes to read
How Mova uses it
For Mova, the small transparent language system written in Rust, the useful connection is a possible explanation mechanism instead of an established implementation claim. The paper does not study Mova, and it supplies no evidence about prototype-guided editing in that system. Its method concerns numerical inputs and classifiers, with experiments on images and tabular records. Applying its ideas to language would require a representation of editable linguistic properties and a way to preserve valid language during the search.
A concrete possibility is to explain a classification decision through a nearby contrasting example. If Mova assigns a category to an input, an explanation component could retrieve representative examples associated with an alternative category and use their observable properties to guide candidate changes. The resulting explanation would show the original input, the altered input, the changed properties, and the prediction before and after the edit. Such a component would adopt the paper’s distinction between crossing a decision boundary and producing a convincing member of the destination category.
The k-d-tree version offers a particularly direct conceptual starting point for a transparent system. Its target is an actual example in the represented feature space, instead of an average in a learned latent space. If the features themselves have clear meanings, the attraction towards that example can be inspected in the same terms as the eventual edits. This does not make a language adaptation automatic. A numerical change to a feature describing text may have no corresponding grammatical sentence, so a separate procedure would need to construct and validate the textual candidate.
The paper’s treatment of fixed features also suggests a useful interface boundary. Mova could allow an explanation request to specify properties that must remain unchanged, then search only over permitted alternatives. In a language setting, this might mean retaining selected content while exploring changes relevant to a classification. That is a design proposal, not a reported capability. The paper supports restricting the search space, but it does not establish which linguistic constraints would be sufficient or how to enforce them in text.
The strongest immediate lesson for Mova is evaluative. A contrasting explanation should not be accepted merely because the system assigns a different label after an edit. It should also be checked for resemblance to the destination category, preservation of relevant constraints, and coherence of the changes. Representative examples could make those checks visible to a reader. The paper’s reconstruction metrics would need justification before reuse with language; an inspectable comparison of linguistic properties might be a more suitable starting point. Any implementation should keep the observed prediction change separate from the proposed interpretation of why that change is meaningful.
The problem and its context
A changed prediction is an incomplete explanation
Counterfactual explanation begins with a practical question: what would have to change for this input to receive a different result? The paper motivates the question with decisions such as loan approval and medical classification. Instead of assigning importance scores to the existing features, the explanation presents an alternative input. The contrast between the original and altered cases gives the reader something concrete to inspect.
That apparent simplicity hides a choice about what counts as a good alternative. A classifier can be sensitive to changes that carry little ordinary meaning. An optimization procedure may exploit that sensitivity because its objective rewards a prediction change and penalizes large edits. If nothing else is required, the best solution can be a minimal alteration that leaves the input strongly characteristic of its original class.
The authors therefore separate predictive success from explanatory quality. The altered input must receive an appropriate prediction, but that is only part of the requirement. Its relationship to the data matters too. In this paper, an interpretable counterfactual should sit near examples of the class it is supposed to represent. A different label attached to an otherwise unchanged-looking object can reveal a classifier’s boundary without explaining a convincing alternative outcome.
The house example clarifies the distinction. Increasing the bedroom count may lift a predicted value above £500,000 while leaving the remaining characteristics unchanged. The change is sparse, and the resulting house may remain close to ordinary houses in the full dataset. Yet it may poorly resemble houses valued above £500,000 because its floor area and related properties still fit the lower-valued group. The problem is conditional plausibility: does the input make sense given the outcome being proposed?
This framing gives the paper its main tension. The nearest counterfactual according to a numerical distance need not be the most interpretable counterfactual according to class-specific resemblance. Moving farther from the original can produce a more convincing alternative. The method does not eliminate this tension. It makes the destination class explicit in the objective so that the search can negotiate it.
What earlier objectives encouraged
The paper places counterfactual explanations alongside feature-attribution approaches such as LIME and SHAP. These are different ways to explain an individual prediction. Attribution methods identify influential aspects of the existing input, whereas a counterfactual gives a changed input and asks the reader to examine the contrast. The authors focus on how to construct that changed input.
Their discussion of Wachter and colleagues describes an objective that balances closeness to a desired prediction against an input-distance penalty. Such a formulation makes the task optimizable: change the features enough to affect the prediction, while paying for the size of the change. The paper also discusses a search procedure that expands spheres around the original instance. Both approaches seek nearby alternatives, but the authors argue that they do not explicitly address local resemblance to the counterfactual class.
Contrastive Explanations provide another part of the background. As described by the authors, that framework seeks small sets of features whose presence, absence, alteration, or preservation accounts for keeping or changing a prediction. The present paper adopts related optimization machinery and a prediction-margin loss. Its main addition is a class-based direction for the perturbation.
An autoencoder penalty is the most immediate predecessor to that addition. An autoencoder learns to reconstruct inputs, and the reconstruction error can be used to penalize unusual candidates. If a proposed counterfactual reconstructs poorly, the optimization receives a signal to move towards inputs the autoencoder represents more successfully. This offers a way to respect the broader data distribution.
The authors identify a remaining gap. An autoencoder trained on all classes can reward a candidate that reconstructs well as an example of the original class. It need not require the candidate to resemble its new predicted class. A general reconstruction penalty can therefore coexist with an unconvincing label change. It also discourages departures without necessarily pointing toward a specific useful alternative, so faster convergence is not guaranteed.
Why prototypes are a natural extension
The paper draws on earlier uses of prototypes as representative examples. Its related-work discussion mentions applications in dataset explanation, clustering, classification, and few-shot learning. The relevant idea is that a collection of examples can be represented by a carefully chosen point or summary. Here that summary becomes an optimization target.
For encoded data, the authors follow the use of mean class representations in prototypical networks. They adapt the idea locally: rather than necessarily average every encoded example in a class, they average nearby examples relative to the input being explained. This preserves a connection to the local search problem. The method is trying to find a plausible alternative near this input, rather than generate an arbitrary typical member of another class.
For data without a trained encoder, the authors use class-specific k-d trees. These organize examples so that nearby points can be retrieved. The paper relates this choice to earlier work comparing a classifier with a modified nearest-neighbor procedure. In the counterfactual method, the retrieved example supplies a destination in the original feature space.
The computational motivation is equally important. When only prediction queries are available, estimating how the output changes with every input coordinate can require many classifier evaluations. A search method whose direction depends on these numerical gradients becomes expensive as the input dimension grows. Prototypes offer an alternative source of direction, allowing prediction queries to serve as checks instead of the main gradient calculation.
The categorical contribution addresses another weakness in ordinary numerical optimization. A change between category codes has no inherent size or meaning. The authors describe earlier solutions as either costly or insufficiently sensitive to relationships between categories. Their answer is to estimate category distances before embedding categories into a numerical space. The optimization can then operate over coordinates whose spacing reflects evidence from the data or the classifier.
The method, step by step
The method first constructs representations of the classes, then uses one of those representations to guide a constrained search around the input. The classifier supplies labels for the representative data and verifies whether the search has produced a prediction change. The optimization balances that guidance against penalties for changing the original.
Searching for a prototype-guided counterfactual
The steps in order.
Define the input and the change
The original instance is a point in a numerical feature space. The search changes that point by adding a perturbation.
x_cf = x₀ + δ
Here, x₀ is the original input, δ is the vector of changes, and x_cf is the counterfactual candidate. Both inputs belong to the allowed feature space, called 𝒳 in the paper. That space has D dimensions, so each coordinate of δ corresponds to an input feature.
The basic optimization trades a prediction objective against the cost of changing the input.
min_δ c · fκ(x₀, δ) + f_dist(δ)
The minimization chooses δ. The function fκ rewards a prediction change, while f_dist penalizes the perturbation. The coefficient c controls their relative influence, and κ determines the margin behavior of the prediction term. A successful search must balance these forces: an overwhelming distance penalty can suppress changes, while an overwhelming prediction term can allow unnecessarily large ones.
The paper defines the prediction loss through the difference between the original class probability and the strongest competing class probability.
L_pred = fκ(x₀, δ) = max([f_pred(x₀ + δ)]ₜ₀ − maxᵢ≠ₜ₀ [f_pred(x₀ + δ)]ᵢ, −κ)
The function f_pred returns the classifier’s probability vector. The subscript t₀ denotes the class predicted for the original input, and i ranges over competing classes. Square brackets with a class subscript select that class’s probability. The outer maximum stops rewarding the margin once the expression reaches −κ, with κ constrained to be non-negative.
This objective seeks a class different from the original one. Though the introduction discusses counterfactual requests in terms of desired outputs more generally, the main formulation does not specify an arbitrary fixed destination label in the prediction loss. The prototype selection will supply a particular alternative direction.
The distance penalty combines absolute and squared changes.
f_dist(δ) = β · ‖δ‖₁ + ‖δ‖₂² = β · L₁ + L₂
The L₁ norm sums the absolute coordinate changes, and the squared L₂ norm sums their squares. The paper abbreviates these quantities as L₁ and L₂ within the objective. The coefficient β sets the weight of the absolute-change penalty. This elastic-net combination discourages large perturbations and promotes sparsity, but it contains no information about what members of the alternative class look like.
Add a general reconstruction constraint
A trained autoencoder can provide information about the overall data distribution. It takes a candidate input, compresses it, and reconstructs it. The difference between the candidate and reconstruction becomes an additional penalty.
L_AE = γ · ‖x₀ + δ − AE(x₀ + δ)‖₂²
AE is the autoencoder trained on the dataset, and γ weights its reconstruction error. The expression inside the norm compares the current candidate with its reconstruction. A large discrepancy increases the objective.
With that term included, the predecessor objective becomes:
L = c · L_pred + β · L₁ + L₂ + L_AE
L is the total loss being minimized. Its terms now cover prediction change, perturbation size, and reconstruction under a general autoencoder. The remaining weakness is that AE has learned the combined dataset. A candidate may reconstruct well while still resembling the original class more than its newly predicted class.
The paper illustrates this with an original digit 5. An objective using the general autoencoder produces a candidate predicted as 3, but its appearance and reconstructions remain more consistent with 5. Adding prototype guidance produces a different counterfactual, predicted as 6, that the authors regard as more interpretable. The example demonstrates the intended distinction; the broader experiments test whether it occurs systematically.
Construct a local prototype in encoded space
The prototype-based objective adds a class-specific target.
L = c · L_pred + β · L₁ + L₂ + L_AE + L_proto
L_proto is the new prototype loss. The other terms retain their earlier meanings, and L_AE is optional in this formulation. The prototype term should both encourage resemblance to an alternative class and give the optimization a useful direction.
To construct encoded prototypes, the method needs an encoder and a representative sample of training data. The sample need not arrive with labels for this procedure. The classifier predicts its labels, so class membership for prototype construction follows the classifier being explained.
The encoder, ENC, maps each input into a latent representation with E dimensions. For every predicted class, the method orders examples by their encoded distance from the original input. It then averages the nearest encoded examples within that class.
protoᵢ = (1/K) · Σₖ₌₁ᴷ ENC(xₖⁱ)
The vector protoᵢ is the prototype for class i. K is the number of nearby examples included, and xₖⁱ denotes the ordered example at position k among those assigned to class i. ENC(xₖⁱ) is that example’s latent representation. The average is formed in encoded space, so the prototype is not an average input image or an average original feature vector.
The choice of nearby examples matters. A class may contain variation that is irrelevant or distant from the current instance. Restricting the average gives the method a local representation of a possible alternative. At the same time, using too few examples can place the prototype near the boundary rather than near a representative region of the destination class.
The authors motivate the mean through their discussion of Bregman divergences and cluster representatives. Under the Euclidean construction they use, the average provides a suitable representation of the selected encoded cluster. This supports the particular choice of prototype; it does not establish that the entire class forms a simple cluster or that its latent geometry captures every meaningful property.
The method next chooses the nearest prototype belonging to a class other than the original prediction.
j = argminᵢ≠ₜ₀ ‖ENC(x₀) − protoᵢ‖₂
The index j identifies the selected alternative class. The argmin chooses the class whose prototype has the smallest Euclidean distance from the encoding of x₀. The restriction i ≠ t₀ excludes the original predicted class.
The prototype loss pulls the candidate’s encoding towards that selected representation.
L_proto = θ · ‖ENC(x₀ + δ) − protoⱼ‖₂²
The coefficient θ sets the strength of prototype attraction. ENC(x₀ + δ) is the encoded candidate, and protoⱼ is the selected destination. Minimizing this term moves the candidate toward a representation supported by examples of another class, rather than merely away from its starting prediction.
Use a retrieved example when no encoder is available
The alternative construction stays in the original feature space. The method again labels representative data with the classifier, then builds a separate k-d tree for each predicted class. For every alternative class, it retrieves the example at the selected nearest-neighbor rank and measures its distance from the original input.
The nearest of these retrieved candidates becomes the prototype. Unlike the encoded construction, this target is an actual represented example, rather than an average latent vector. The lower-case k controls the neighbor rank; it plays a different role from the upper-case K used to average encoded examples.
The corresponding penalty is:
L_proto = θ · ‖x₀ + δ − protoⱼ‖₂²
Here, protoⱼ lies in the original feature space. The coefficient θ still controls attraction, while the norm measures the candidate’s squared distance from the retrieved target. No encoder appears in this loss.
This version avoids training an encoder for prototype construction. It does not remove the need for a meaningful feature space. Distances between original coordinates still determine which examples count as close and how strongly changes are penalized. In the breast cancer experiment, the classifier uses standardized features.
Give categorical changes a distance
Categorical inputs need additional preparation because numerical optimization assumes that intermediate values and distances have meaning. Arbitrary integer identifiers do not provide that meaning. The authors estimate a distance matrix separately for each categorical variable, then embed its categories into numerical coordinates.
The Modified Value Distance Metric, or MVDM, uses class labels or classifier predictions.
d(v₁, v₂) = Σᵢ₌₁ⁿ |c₁ⁱ/c₁ − c₂ⁱ/c₂|ᵅ
The symbols v₁ and v₂ are categories of the same feature, and d is their distance. The number of classes is n. The count c₁ records all instances with category v₁, while c₁ⁱ counts those assigned to class i; c₂ and c₂ⁱ have corresponding meanings for v₂. The exponent α controls the contribution of probability differences, and the authors set α to 1.
Under this metric, categories are close when their relative frequencies across prediction classes are similar. The representation is therefore tied to predictive behavior. It need not capture every ordinary semantic distinction between the categories.
The Association-Based Distance Metric, or ABDM, instead uses relationships with the other variables.
d(v₁, v₂) = Σⱼ≠ᵢ Ψ(p(xⱼ | xᵢ = v₁), p(xⱼ | xᵢ = v₂))
The feature xᵢ contains the categories being compared, and xⱼ ranges over the other features. Each conditional distribution describes another feature given a particular category of xᵢ. The function Ψ measures dissimilarity between those distributions. The authors use Kullback–Leibler divergence for Ψ.
ABDM makes categories distant when they occur in different contexts across the remaining variables. Numerical variables are discretized into histogram bins so they can contribute to these contextual distributions. The authors also identify a weakness: independence between categories and the other variables can undermine the distance estimate. MVDM offers an alternative based on prediction information.
After estimating the distances, the appendix describes a more specific embedding procedure than the high-level account alone suggests. Multidimensional scaling first places categories in 2-dimensional Euclidean space. The point with the largest Frobenius norm is used as the origin, and the norms relative to that origin supply the final one-dimensional category values. Standard or min-max scaling then puts these values into a range compatible with the processed numerical features.
Optimization proceeds over these numerical representations. Before querying the classifier, the method maps a perturbed value to the nearest actual category. This last step is essential: the classifier is evaluated on a categorical choice, rather than an uninterpretable position between choices.
Remove the expensive prediction gradient
For a classifier with accessible derivatives, the prediction term can be differentiated automatically. A prediction-only interface requires numerical estimates instead. The paper expresses the derivative through a chain rule.
∂L_pred/∂x = ∂fκ(x)/∂x = (∂fκ(x)/∂f_pred) · (∂f_pred/∂x)
The variable x is the current candidate input. The first factor describes how the margin loss changes with classifier outputs, and the second describes how those outputs change with the input. It is the latter derivative that becomes costly when the classifier exposes only predictions.
The numerical approximation perturbs each coordinate in opposite directions.
∂f_pred/∂xₖ ≈ [f_pred(x + εₖ) − f_pred(x − εₖ)] / (2ε)
The subscript k selects an input feature. The vector εₖ is zero except at that coordinate, where it has value ε. The scalar ε sets the finite-difference step. The numerator compares classifier outputs after positive and negative perturbations.
This requires a pair of prediction evaluations for each feature during a gradient update. The paper gives the MNIST example: an image of size 28 × 28 produces 1568 prediction evaluations for that calculation. Prototype guidance changes the dependency. The candidate can follow the prototype loss without differentiating the classifier, while a prediction query after an update checks whether its label has changed.
Removing L_pred therefore removes the prediction-gradient bottleneck, rather than removing the classifier from the process. Prototype construction still uses predicted labels, and successful counterfactuals still require prediction verification. This distinction is central to understanding both the speed claim and its limits.
Optimize and select a valid candidate
The authors use FISTA, a fast iterative shrinkage-thresholding procedure. It updates the perturbation with momentum while keeping the resulting input inside the permitted feature space. The absolute-change penalty is handled through shrinkage rather than being treated like the smooth loss terms. Small coordinate perturbations are pushed back to zero according to β.
The search runs for N optimization steps and retains a valid candidate with the smallest elastic-net penalty.
n* = argminₙ∈{1,…,N} [β · ‖δⁿ‖₁ + ‖δⁿ‖₂²], subject to predicted_class(x₀ + δⁿ) ≠ t₀
The superscript n identifies an optimization step, and δⁿ is its perturbation. N is the allowed number of steps. The index n* selects the lowest-penalty candidate among those whose predicted class differs from t₀. This validity condition prevents a small but unsuccessful perturbation from being selected.
The final output uses that selected perturbation.
x_cf = x₀ + δⁿ*
The symbol x_cf now denotes the retained counterfactual rather than an arbitrary intermediate candidate. The method’s guidance can favor a particular alternative prototype, while the retention rule requires a changed prediction and evaluates the size of the edit.
The authors also note that selected features can be held at their original values during optimization. This supplies a direct way to prohibit certain changes. It constrains the candidate space, although it does not on its own establish the practical feasibility of every remaining edit.
Experiments and results
What the evaluation measures
The experiments assess search speed, perturbation cost, and the paper’s operational definition of interpretability. Speed is recorded through elapsed time and the number of gradient updates. The reported target is a satisfactory counterfactual: the best candidate produced by FISTA for a fixed prediction-loss weight at which counterfactuals are found.
The perturbation score is the elastic-net quantity already used in optimization.
EN(δ) = β · ‖δ‖₁ + ‖δ‖₂²
EN is the evaluation score, δ is the counterfactual perturbation, and β weights absolute changes. Because the score combines absolute and squared magnitudes, it should not be read simply as a count of changed features. The paper separately examines counts and grouped attributes in the breast cancer analysis.
The first interpretability measure, IM1, compares reconstruction by an autoencoder trained on the counterfactual class with reconstruction by one trained on the original class.
IM1(AEᵢ, AEₜ₀, x_cf) = ‖x₀ + δ − AEᵢ(x₀ + δ)‖₂² / [‖x₀ + δ − AEₜ₀(x₀ + δ)‖₂² + ε]
AEᵢ is trained on the counterfactual class i, and AEₜ₀ is trained on the original class t₀. The numerator is the candidate’s reconstruction error under the destination-class autoencoder; the denominator uses the original-class autoencoder. The small ε stabilizes the denominator. Lower IM1 indicates stronger relative reconstruction by the destination-class representation.
The second measure asks whether the destination-class and general autoencoders reconstruct the candidate similarly.
IM2(AEᵢ, AE, x_cf) = ‖AEᵢ(x₀ + δ) − AE(x₀ + δ)‖₂² / [‖x₀ + δ‖₁ + ε]
AE is trained across all classes. The numerator measures disagreement between its reconstruction and the reconstruction from AEᵢ. The denominator scales that disagreement by the candidate’s L₁ norm, again with ε for stability. Lower IM2 is considered better because the class-specific representation then accounts for the candidate similarly to the general representation.
The illustrative digit counterfactuals make these scores concrete. The candidate predicted as 3 has IM1 of 1.81, while the more interpretable alternative has 1.04. Their IM2 values are 0.15 and 0.12. These are measurements of particular examples, not aggregate estimates for the full experiment.
MNIST setup
The MNIST experiment constructs encoded prototypes with K set to 5. For each digit class, the authors sample 50 test examples and use 3 random seeds per example. Each objective therefore produces 1,500 counterfactuals.
The digit classifier has convolutional layers followed by pooling, a dense layer, and a softmax output over the classes. The appendix specifies 64 and 32 filters in the convolutional layers, with a dense layer of size 256. Adam trains for 3 epochs using batches of 64 and inputs scaled to an interval starting at −0.5 to 0.5. Reported test accuracy is 98.6%.
The general autoencoder supplies the encoder used for prototypes and, where included, the reconstruction penalty. It is trained for 4 epochs with Adam, using batches of 128 and mean squared reconstruction error. Separate class-specific autoencoders evaluate IM1 and IM2; their training runs for 30 epochs with batch size 128. These evaluation networks are important because the interpretability scores depend on what they reconstruct successfully.
The comparison uses a family of objectives. Its basic member contains prediction and elastic-net terms.
A = c · L_pred + β · L₁ + L₂
A is the MNIST baseline objective. The symbols retain their method definitions: prediction weight c, prediction loss L_pred, absolute-change weight β, and perturbation penalties L₁ and L₂.
The reconstruction-only extension is:
B = c · L_pred + β · L₁ + L₂ + L_AE
B adds the general autoencoder penalty L_AE to A. It tests whether respecting the combined data distribution is sufficient.
The prototype extension without the general reconstruction penalty is:
C = c · L_pred + β · L₁ + L₂ + L_proto
C adds prototype attraction L_proto to the baseline. Comparing C with A isolates the effect of that guidance within this objective family.
The version containing both forms of data guidance is:
D = c · L_pred + β · L₁ + L₂ + L_AE + L_proto
D includes the prediction, perturbation, general reconstruction, and prototype terms. It tests whether reconstruction and class guidance complement each other.
The prediction-free prototype objective is:
E = β · L₁ + L₂ + L_proto
E relies on prototype guidance to direct the search, retaining prediction checks for validity. It removes the need to obtain gradients through the classifier.
The final variant retains general reconstruction as well:
F = β · L₁ + L₂ + L_AE + L_proto
F differs from E through L_AE. Together, E and F test whether a separate prediction loss remains necessary once the search has an alternative-class destination.
The appendix holds c, κ, β, and γ at 1, 0, 0.1, and 100. Prototype weight θ is 200 for C and E, and 100 for D and F. This weighting distinction matters when interpreting comparisons between variants: the presence of the general reconstruction term is accompanied by a different prototype coefficient.
MNIST speed and interpretability
Adding the general autoencoder penalty improves average speed, but the authors report substantial variability. Prototype guidance produces a larger reduction in search time and updates. The combined objective is fastest among the reported comparisons with the basic automatic-differentiation baseline.
MNIST search-time reduction relative to objective A
Prototype guidance gives a larger time reduction than general reconstruction alone.
The numbers
| System or setting | search-time reduction % |
|---|---|
| B: general reconstruction | 36 |
| C: prototype guidance | 77 |
| D: reconstruction and prototype guidance (this paper) | 82 |
The corresponding gradient-update reductions are 54% for B, 84% for C, and 90% for D. The authors attribute much of the basic objective’s cost to finding a useful range for c. If the prediction term is too weak, shrinkage suppresses the perturbation; if it dominates, the resulting change becomes less sparse.
Interpretability results also favor prototype guidance under IM1. General reconstruction helps, but the class-specific destination improves the score more.
MNIST IM1 improvement relative to objective A
Prototype guidance improves the reconstruction-based comparison more than general reconstruction alone.
The numbers
| System or setting | IM1 improvement % |
|---|---|
| B: general reconstruction | 13 |
| C: prototype guidance | 26 |
| E: prototype guidance without prediction loss (this paper) | 29 |
For IM2, C reduces the score by 34% relative to A. Combining reconstruction and prototype guidance in D gives a reduction of 24%. Removing the prediction term in E and F has little effect on IM2. The result supports the authors’ argument that class guidance is doing work beyond simply forcing the classifier’s output to change.
The visual examples tell a compatible story. Counterfactuals produced by A and B can still resemble the original digit 2, even though the classifier assigns another label. Prototype-guided versions produce a clearer digit 0, and their general-autoencoder reconstructions support that reading. These examples illustrate the quantitative interpretation, although they do not substitute for a human evaluation.
The sparsity result points in the opposite direction. A gives the lowest elastic-net penalties. That is expected because its only objectives beyond prediction change concern the size of the perturbation. The paper therefore does not claim that prototype guidance dominates every criterion. It spends some of the edit budget to make the destination class more apparent.
The prediction-only timing comparison
The black-box experiment compares the numerical-gradient version of the baseline, called A′, with E and F. The appendix describes timing 100 optimization steps and using a test instance from each MNIST class. This setup isolates the cost of repeated numerical prediction-gradient calculations.
The authors report an approximate 100x speed advantage for the variants without L_pred. That claim should be read in its stated setting: a prediction-only baseline on image inputs, compared with objectives whose update direction comes from the prototype representation. It is not a universal multiplier for counterfactual search, nor a claim about the classifier’s own inference speed.
The distinction between total search behavior and per-update cost is useful. Prototype guidance can reduce the number of updates needed to find a counterfactual. Removing numerical classifier gradients can also make those updates cheaper. The paper provides evidence for both effects, but they arise through different mechanisms.
Breast Cancer Wisconsin setup and outcomes
The breast cancer dataset describes cell-nucleus characteristics and assigns malignant or benign labels. It contains 569 records, each with 30 numerical features. The authors train on the first 550 records and generate counterfactuals for the remaining 19. Each test record receives 5 searches with different random seeds.
The classifier is a feedforward network with 40 neurons in each hidden layer. Standardized features are used, and training runs for 500 epochs with stochastic gradient descent and batch size 128. Reported test accuracy is 100% on the stated test split. Prototypes come from class-specific k-d trees, so no encoder is required to construct the search target.
The experiment reuses the labels A, B, and C locally. Here A is the prediction-plus-elastic-net baseline; B adds the k-d-tree prototype term; C keeps the elastic-net and prototype terms while removing the prediction loss. Thus breast cancer B corresponds structurally to the prototype-augmented comparison, rather than to MNIST B’s reconstruction extension.
Prototype guidance makes the search substantially faster. B uses 13% of the baseline time. Removing the prediction loss in C reduces search time by 92%. Gradient updates fall under both guided objectives.
Breast Cancer Wisconsin gradient-update reduction relative to objective A
Both prototype objectives require fewer updates, with the prediction-free version giving the larger reduction.
The numbers
| System or setting | gradient-update reduction % |
|---|---|
| B: prototype guidance with prediction loss | 91 |
| C: prototype guidance without prediction loss (this paper) | 93 |
Adding the prototype term reduces IM1 by 55% and IM2 by 81%. The prediction-free version gives similar improvements relative to the baseline. Evaluation still uses trained autoencoders, even though prototype construction does not. Avoiding an encoder for the search should therefore be distinguished from the additional machinery used to measure the results.
As on MNIST, A produces the sparsest changes. The authors then examine what those changes mean in the dataset. Its 10 attributes each have 3 measurements, describing mean, error, and worst values. Guided counterfactuals more often change related measurements of an attribute together. This gives a plausible explanation for why a larger coordinate-level edit can be more coherent.
Adult illustrates category geometry
The Adult task predicts whether annual income exceeds $50k/year. Its mixture of categorical and numerical features provides a setting for demonstrating the category-distance procedure.
The authors inspect the embedding of Education under ABDM. They report an ordering consistent with an intuitive relationship between educational categories, whereas a frequency-based embedding does not preserve that relationship. A counterfactual example shows categorical changes being used to alter a prediction.
The evidence here is illustrative. The paper does not present an Adult counterpart to the full MNIST or breast cancer comparison, with matching quantitative search and interpretability results. Its contribution in this setting is a concrete demonstration of how to represent categorical alternatives for optimization.
A Thinkpad T480 equipped with an Intel Core i7-8550U processor runs the reported experiments on MNIST and breast cancer. The authors identify Alibi as the open-source implementation of their method.
What the ablations show
Prototype attraction contributes more than general reconstruction
The MNIST objective family provides the clearest controlled comparison. A establishes what happens when the optimizer cares about prediction change and perturbation size. B adds a general reconstruction constraint, while C instead adds class-prototype attraction. D combines them.
The contrast supports a specific conclusion: information about the combined data distribution does not fully replace information about the destination class. B improves the paper’s reconstruction-based interpretation score, but C improves it more. C also converges faster. The class-specific target therefore appears useful both as a quality constraint and as a search direction.
The comparison does not establish that reconstruction is unnecessary in every regime. D achieves a larger time reduction than C, and the discussion of prototype size explains circumstances in which general reconstruction can help keep larger movements near the data distribution. The roles are complementary in some settings. One term penalizes poor reconstruction; the other identifies where the candidate should move.
The IM2 result is especially instructive because it prevents a simplistic reading. The combined objective does not obtain the largest reported reduction at the main setting. More constraints do not automatically improve every evaluation measure. Their effect depends on how the penalties interact and on the geometry of the chosen prototype.
Prediction loss is optional under successful prototype guidance
Comparing the guided objectives with E and F asks whether a separate classifier-margin loss remains necessary. The empirical answer in these experiments is that useful counterfactuals can still be found without it. The prototype gives the candidate a direction associated with another class, and prediction checks identify successful candidates.
This finding explains the black-box speed result. The improvement is not simply a faster numerical derivative. The method avoids calculating that derivative because it has another differentiable or directly numerical target. The classifier’s role becomes narrower during the update process.
The result also clarifies what has not been proved. A target prototype is selected from data assigned to another class, but attraction toward it does not mathematically guarantee that every intermediate candidate, or every run, obtains a different label. Prediction verification remains part of the procedure. The experiments show the usefulness of this separation in the tested settings rather than a general success guarantee.
Prototype size controls locality
The MNIST appendix varies K through 2, 5, 20, and all available examples of a class. This changes the prototype itself. A small neighborhood represents examples close to the original input; a larger neighborhood includes more of the destination class.
The authors describe an initial interpretability improvement as K increases. Their explanation is that averaging more examples draws the target away from the boundary between the original and counterfactual classes. The target becomes more characteristic of the destination rather than merely close enough to cross into it.
Using every example reverses that trend. The resulting average also reflects destination-class examples near classes other than the original one. It can therefore become a less suitable local destination for the particular counterfactual search. The important lesson is that a single global class average need not be the best explanation target.
Larger K can also produce a more distant prototype and larger initial changes. The general autoencoder term can become more helpful in that regime by encouraging the candidate to remain well represented by the broader data distribution. Prototype locality, reconstruction, and sparsity should therefore be considered together.
Weight and neighbor-rank analyses suggest tolerance
For the breast cancer objective with prototype guidance, the appendix varies θ over 10, 20, 50, 100, 150, and 200. It also varies the retrieved-neighbor rank k over 1, 2, 5, and 10. The authors describe a broad working range for both choices.
This supports a limited robustness claim: the reported behavior is not presented as depending on an isolated prototype weight or neighbor rank. The analysis does not establish a generally optimal setting, and the account does not supply precise numerical performance values for every point in those sweeps.
The distinction between the parameters is worth retaining. θ changes how strongly the candidate is pulled. The neighbor rank k changes the example towards which it is pulled. Similar performance across a range of both suggests some tolerance in this dataset, but the mechanisms are different.
Attribute grouping changes the reading of sparsity
The breast cancer feature analysis examines changes larger than 1 standard deviation and compares the number of individual features with the number of underlying attributes affected. The guided objectives change more related measurements together, while the baseline is more sparse at the feature level.
This analysis adds meaning to the elastic-net result. A change to the worst radius accompanied by a change to mean radius can describe a coordinated alteration to the same measured property. Counting those as separate edits captures numerical cost, but it does not fully capture how a reader might understand the explanation.
The analysis remains descriptive. It does not establish that every coordinated change is medically feasible or that a clinician would prefer it. What it does show is that feature-level sparsity can obscure the structure of the data.
Distribution testing must respect counterfactual classes
The additional MNIST analysis compares generated counterfactuals with real test examples using maximum mean discrepancy. It applies RelMulti and RelPSI, which differ in how they handle selection of a reference candidate and the subsequent comparison. RelMulti separates those stages through a 50:50 sample split, while RelPSI uses the same sample with a procedure accounting for selection.
The comparisons use 256 features taken before the classifier’s softmax output. The tests are repeated 100 times for each counterfactual class. Sample sizes are matched to the smallest available generated set across objectives for that class.
The results support the main interpretation most clearly for classes with sample size >200: non-zero rejection rates mainly concern A and B, the objectives without prototype guidance. That is additional distributional evidence beyond the autoencoder metrics, although it still relies on the chosen representation and available samples.
The authors also explain why pooling all classes can mislead. A minimally altered image may remain close to its original digit distribution while receiving another prediction. Across the full digit dataset, such an image can still look entirely ordinary. Only a class-conditioned comparison exposes the mismatch between what it resembles and what it is now predicted to be.
This is a substantial analytical contribution. The evaluation has to preserve the same distinction the method was designed to enforce. Otherwise, a test of general familiarity can reward precisely the sparse but class-inappropriate counterfactuals that motivated the paper.
Limitations
Limits the authors identify
The authors explicitly acknowledge a tradeoff between sparsity and interpretability. Their guided counterfactuals can require larger changes than those produced by the basic objective. The method therefore cannot promise to preserve the smallest possible edit while also making the destination class clear. A user of the method must decide how much perturbation is acceptable for the explanatory purpose.
They also identify sensitivity in the construction of prototypes. Increasing the encoded neighborhood can initially improve class representation, yet averaging the entire class can make the target less useful. A prototype is a summary chosen relative to the input and representation. It should not be treated as an unquestionable definition of the alternative class.
The categorical discussion names an explicit failure condition for ABDM. If the other variables do not supply relevant associations, their conditional distributions cannot establish useful category distances. The proposed alternative, MVDM, changes the evidence source to prediction behavior. That is a practical option, but it also changes what similarity means.
The distribution-testing appendix identifies uneven sample availability. Some counterfactual classes are difficult to reach. For digit 1, objective B produces only 8 examples in the stated comparison, limiting the matched sample size for that class. Differences in total generated samples also reflect compute constraints. The evidence from the tests is consequently stronger for better-represented classes.
The authors’ actionability claim is tied to fixing selected features during search. This is a concrete mechanism for excluding prohibited edits. Its scope should be kept precise: it restricts what the optimizer may change, instead of establishing that all allowed changes can be carried out.
Limits visible in the experimental design
A careful reader should distinguish the paper’s operational interpretability from demonstrated human understanding. IM1 and IM2 measure reconstruction relationships. Lower values support the claim that a counterfactual is better represented by destination-class data under the trained autoencoders. They do not directly measure whether a person finds the explanation clear, trustworthy, useful, or actionable.
This dependence on learned evaluators is especially relevant for IM1. The score compares reconstruction errors from separately trained class-specific autoencoders. Differences in their reconstruction ability can influence the ratio. The qualitative digit examples and additional distribution tests provide complementary evidence, but they do not turn the score into a universal measure of interpretability.
The distribution tests have their own representational dependence. They compare features extracted by the digit classifier. This is a meaningful way to examine generated samples in the experimental setting, yet it does not cover every visually or semantically relevant property of the images. It is evidence about resemblance under the chosen feature representation.
Prototype construction uses predicted labels. The class structure guiding the search therefore follows the classifier’s assignments to representative data. This is appropriate for explaining that classifier’s behavior, but it should not be confused with an independent guarantee that those assignments are correct. The counterfactual is an explanation of a prediction process, not an external validation of the categories.
The breast cancer evaluation has a small stated test split and uses the last 19 records after training on the first 550. Multiple random seeds examine variation in the search for those records; they do not supply a broader set of independent test cases. The reported classification accuracy and counterfactual improvements belong to that setup.
The tabular experiments also do not establish causal effects. A generated feature vector may change a prediction and resemble an alternative-class record without corresponding to an intervention that could produce the desired real-world outcome. In the medical setting, a numerical counterfactual describes classifier behavior. It is not evidence that altering the measured properties would constitute a treatment.
The same caution applies to income-related changes. The Adult example demonstrates a representation and a prediction change. It does not show that adopting a listed category would cause a person’s income to cross the threshold. Relationships inferred from data are being used to structure search, and the experiment does not test causal recourse.
Limits of representation and scope
The category embedding compresses relationships into a final one-dimensional coordinate. The paper explains how those coordinates are produced, but it does not establish that every relevant pairwise relationship survives the transformation. Mapping numerical candidates to the nearest category also means that the classifier sees discrete jumps as the optimization moves through a continuous space.
Nor does an interpretable ordering of Education establish that the same procedure will produce a satisfactory ordering for every categorical variable. Some categories may have several distinct relationships that do not fit naturally along a line. The Adult evidence is an illustration of the method’s promise, with an explicitly stated warning about association-based distances.
The speed claims likewise have a defined scope. Avoiding numerical prediction gradients is particularly valuable when the baseline pays heavily for them. The reported approximate 100x result compares particular objectives and a particular prediction-only timing setup. It does not imply the same benefit when another search method avoids those gradients, when prediction is cheap, or when prototype preparation dominates the workload.
The method also needs representative data and a useful geometry. An encoder must capture distinctions relevant to the destination class, or original-space distances must make sense for the features. Prototype attraction can only guide according to the representation it is given. The paper demonstrates successful choices on its experimental tasks rather than a way to verify representation quality in every application.
Finally, the experiments do not evaluate direct text editing. Images permit pixel changes, and tabular records permit coordinate changes with categorical mapping. Language adds constraints on grammaticality, meaning, and the relation between a feature representation and an actual sentence. The paper offers an adaptable search principle, but its reported results do not establish those additional capabilities.
What came after
Explaining NLP Models via Minimal Contrastive Editing (MiCE) is a later citing work identified with this paper. Its title places it in the neighboring problem of explaining language-system predictions through small contrasting edits. That is a natural point of contact with the present paper’s focus on changing an input to expose a decision.
The citation relationship alone does not establish that MiCE adopts prototype attraction, the k-d-tree construction, the categorical embeddings, or the reconstruction-based metrics. There is no basis here for attributing a particular inherited mechanism or numerical result to it. The defensible connection is the shared concern with contrastive input changes, together with the fact that MiCE cites this work.
The distinction also identifies the question a language adaptation would need to answer. A minimal edit can reveal a decision boundary, while a convincing alternative must satisfy additional constraints associated with its destination. This paper makes that distinction measurable in its image and tabular settings. Its enduring methodological contribution is to make the destination distribution part of both the search objective and the evaluation, while showing why a small successful perturbation can still be an incomplete explanation.
Cite
Cite as Arnaud Van Looveren and Janis Klaise. 2021. Interpretable Counterfactual Explanations Guided by Prototypes. Lecture notes in computer science.
@inproceedings{looveren2021interpretable,
title = {{Interpretable Counterfactual Explanations Guided by Prototypes}},
author = {Arnaud {Van Looveren} and Janis Klaise},
booktitle = {Lecture notes in computer science},
year = {2021},
doi = {10.1007/978-3-030-86520-7\_40},
eprint = {1907.02584},
archivePrefix = {arXiv},
url = {https://doi.org/10.1007/978-3-030-86520-7_40}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/looveren-2021-interpretable-counterfactual-explanations-guided-prototypes/
References
- Banerjee, A., Merugu, S., Dhillon, I. S., and Ghosh, J. Clustering with bregman divergences. Journal of Machine Learning Research, 6:0 1705–1749, December 2005. ISSN 1532-4435. URL https://dl.acm.org/citation.cfm?id=1046920.1194902. OpenAlex ↗ · Scholar ↗
- Beck, A. and Teboulle, M. A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM Journal on Imaging Sciences, 20 (1):0 183–202, March 2009. ISSN 1936-4954. . URL https://dx.doi.org/10.1137/080716542. OpenAlex ↗ · Scholar ↗
- Bentley, J. L. Multidimensional binary search trees used for associative searching. Communications of the ACM, 180 (9):0 509–517, September 1975. ISSN 0001-0782. . URL https://doi.acm.org/10.1145/361002.361007. OpenAlex ↗ · Scholar ↗
- Bien, J. and Tibshirani, R. Prototype selection for interpretable classification. The Annals of Applied Statistics, 50 (4):0 2403–2424, 12 2011. . URL https://doi.org/10.1214/11-AOAS495. our card
- Borg, I. and Groenen, P. Modern Multidimensional Scaling: Theory and Applications. Springer, 2005. OpenAlex ↗ · Scholar ↗
- Cost, S. and Salzberg, S. A weighted nearest neighbor algorithm for learning with symbolic features. Machine Learning, 100 (1):0 57–78, Jan 1993. ISSN 1573-0565. . URL https://doi.org/10.1023/A:1022664626993. OpenAlex ↗ · Scholar ↗
- Dhurandhar, A., Iyengar, V., Luss, R., and Shanmugam, K. Tip: Typifying the interpretability of procedures. arXiv preprint arXiv:1706.02952, 2017. URL https://arxiv.org/abs/1706.02952. OpenAlex ↗ · Scholar ↗
- Dhurandhar, A., Chen, P.-Y., Luss, R., Tu, C.-C., Ting, P., Shanmugam, K., and Das, P. Explanations based on the missing: Towards contrastive explanations with pertinent negatives. In Advances in Neural Information Processing Systems 31, pp. 592–603. 2018. URL https://papers.nips.cc/paper/7340-explanations-based-on-the-missing-towards-contrastive-explanations-with-pertinent-negatives. OpenAlex ↗ · Scholar ↗
- Dhurandhar, A., Pedapati, T., Balakrishnan, A., Chen, P.-Y., Shanmugam, K., and Puri, R. Model agnostic contrastive explanations for structured data. arXiv preprint arXiv:1906.00117, 2019. URL https://arxiv.org/abs/1906.00117. OpenAlex ↗ · Scholar ↗
- Dua, D. and Graff, C. UCI machine learning repository, 2017. URL https://archive.ics.uci.edu/ml. OpenAlex ↗ · Scholar ↗
- Gurumoorthy, K. S., Dhurandhar, A., and Cecchi, G. Protodash: fast interpretable prototype selection. arXiv preprint arXiv:1707.01212, 2017. URL https://arxiv.org/abs/1707.01212. OpenAlex ↗ · Scholar ↗
- Jiang, H., Kim, B., Guan, M., and Gupta, M. To trust or not to trust a classifier. In Advances in Neural Information Processing Systems 31, pp. 5541–5552. 2018. URL https://papers.nips.cc/paper/7798-to-trust-or-not-to-trust-a-classifier. OpenAlex ↗ · Scholar ↗
- Kaufmann, L. and Rousseeuw, P. Clustering by means of medoids. Data Analysis based on the L1-Norm and Related Methods, pp. 405–416, 01 1987. OpenAlex ↗ · Scholar ↗
- Kim, B., Khanna, R., and Koyejo, O. O. Examples are not enough, learn to criticize! criticism for interpretability. In Advances in Neural Information Processing Systems 29, pp. 2280–2288. 2016. URL https://papers.nips.cc/paper/6300-examples-are-not-enough-learn-to-criticize-criticism-for-interpretability. OpenAlex ↗ · Scholar ↗
- Klaise, J., Van Looveren, A., Vacanti, G., and Coca, A. Alibi: Algorithms for monitoring and explaining machine learning models. URL https://github.com/SeldonIO/alibi. OpenAlex ↗ · Scholar ↗
- Laugel, T., Lesot, M.-J., Marsala, C., Renard, X., and Detyniecki, M. Comparison-based inverse classification for interpretability in machine learning. In Information Processing and Management of Uncertainty in Knowledge-Based Systems. Theory and Foundations, pp. 100–111. Springer International Publishing, 2018. ISBN 978-3-319-91473-2. URL https://hal.sorbonne-universite.fr/hal-01905982. OpenAlex ↗ · Scholar ↗
- Le, S. Q. and Ho, T. B. An association-based dissimilarity measure for categorical data. Pattern Recognition Letters, 260 (16):0 2549 – 2557, 2005. ISSN 0167-8655. . URL http://www.sciencedirect.com/science/article/pii/S0167865505001686. OpenAlex ↗ · Scholar ↗
- LeCun, Y. and Cortes, C. MNIST handwritten digit database. 2010. URL http://yann.lecun.com/exdb/mnist/. OpenAlex ↗ · Scholar ↗
- Lim, J. N., Yamada, M., Schölkopf, B., and Jitkrittum, W. Kernel stein tests for multiple model comparison. In Advances in Neural Information Processing Systems 32, pp. 2240–2250. Curran Associates, Inc., 2019. URL http://papers.nips.cc/paper/8496-kernel-stein-tests-for-multiple-model-comparison.pdf. OpenAlex ↗ · Scholar ↗
- Lundberg, S. M. and Lee, S.-I. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30, pp. 4765–4774. 2017. URL https://papers.nips.cc/paper/7062-a-unified-approach-to-interpreting-model-predictions. our card
- Luss, R., Chen, P.-Y., Dhurandhar, A., Sattigeri, P., Shanmugam, K., and Tu, C.-C. Generating contrastive explanations with monotonic attribute functions. arXiv preprint arXiv:1905.12698, 2019. URL https://arxiv.org/abs/1905.12698. OpenAlex ↗ · Scholar ↗
- Molnar, C. Interpretable Machine Learning. 2019. https://christophm.github.io/interpretable-ml-book/; accessed 22-January-2020. OpenAlex ↗ · Scholar ↗
- Mothilal, R. K., Sharma, A., and Tan, C. Explaining machine learning classifiers through diverse counterfactual explanations. Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency, Jan 2020. . URL http://dx.doi.org/10.1145/3351095.3372850. OpenAlex ↗ · Scholar ↗
- Ribeiro, M. T., Singh, S., and Guestrin, C. “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, pp. 1135–1144, 2016. ISBN 978-1-4503-4232-2. . URL https://doi.acm.org/10.1145/2939672.2939778. our card
- Rumelhart, D. E., Hinton, G. E., and Williams, R. J. Learning internal representations by error propagation. In Parallel Distributed Processing: Explorations in the Microstructure of Cognition, Vol. 1, pp. 318–362. MIT Press, Cambridge, MA, USA, 1986. ISBN 0-262-68053-X. URL https://dl.acm.org/citation.cfm?id=104279.104293. OpenAlex ↗ · Scholar ↗
- Snell, J., Swersky, K., and Zemel, R. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems 30, pp. 4077–4087. 2017. URL https://papers.nips.cc/paper/6996-prototypical-networks-for-few-shot-learning. OpenAlex ↗ · Scholar ↗
- Takigawa, I., Kudo, M., and Nakamura, A. Convex sets as prototypes for classifying patterns. Engineering Applications of Artificial Intelligence, 220 (1):0 101 – 108, 2009. ISSN 0952-1976. . URL https://www.sciencedirect.com/science/article/pii/S0952197608001589. OpenAlex ↗ · Scholar ↗
- Wachter, S., Mittelstadt, B., and Russell, C. Counterfactual explanations without opening the black box: Automated decisions and the GDPR. Harvard journal of law & technology, 31:0 841–887, 04 2018. URL https://arxiv.org/abs/1711.00399. OpenAlex ↗ · Scholar ↗
- Zou, H. and Hastie, T. Regularization and variable selection via the elastic net. Journal of the Royal Statistical Society. Series B (Statistical Methodology), 670 (2):0 301–320, 2005. ISSN 13697412, 14679868. URL https://www.jstor.org/stable/3647580. OpenAlex ↗ · Scholar ↗