Semantic Prototypes: Enhancing Transparency without Black Boxes

Orfeas Menis-Mastromichalakis, Giorgos Filandrianos, Jason Liartis, Edmund Dervakos, Giorgos Stamou

TL;DR

This paper introduces "semantic prototypes" that leverage human-understandable descriptions of data, rather than raw features, to create more interpretable machine learning models. By bridging the gap between complex data and human cognition, their method enhances transparency and user trust, outperforming existing prototype-based approaches in a user study.

What Problem Does This Paper Address?

As machine learning models become more complex, understanding why they make certain decisions is crucial for trust, accountability, and fairness. Prototypes, which represent typical examples of data classes, offer a way to explain these decisions. However, traditional prototype methods often rely on raw, unstructured data features or opaque "black box" latent spaces. This makes the prototypes themselves difficult to interpret, potentially leading to misinformation and a lack of trust. For instance, in genomics, raw DNA sequences are too complex for direct human understanding, and even in image recognition, a prototypical image might not reveal which specific visual features make it representative. This paper aims to solve this by creating prototypes that are grounded in semantic descriptions, making them inherently more understandable.

Methods

The core innovation is the concept of semantic prototypes. Instead of selecting prototypes based on raw data features, the authors propose using Attribute Set Descriptions (ASDs). An ASD is a structured way to describe data semantically, representing entities and their attributes.

The process involves:

  1. Generating Class Cluster Descriptions (CCDs): These are ASDs that specifically describe data points belonging to a particular class, and only that class. This is achieved through a greedy algorithm that merges positive data point descriptions while ensuring they don't overlap with negative data points.
  2. Computing Semantic Prototypes: For each CCD, the algorithm identifies the data point whose ASD is "closest" to the CCD. This closeness is measured using a set edit distance, aiming to find a data point that embodies the CCD's semantics with minimal extraneous information. This ensures the prototype is representative and avoids distracting details.

This approach bypasses the need for non-interpretable latent spaces and directly grounds explanations in human-understandable semantic concepts.

Datasets

The authors evaluated their approach using two datasets:

  • CLEVR-Hans3: An artificial dataset of images with clear semantic properties, used for qualitative analysis to demonstrate the method's ability to capture distinct class semantics.
  • CUB-200: A real-world dataset of bird images, used to evaluate the method's performance on complex, natural data and compare it against existing techniques.

Key Insights and Ideas

  • Semantics over Sub-symbolic Data: The fundamental insight is that relying on human-understandable semantic descriptions (ASDs) for prototypes is far more effective for interpretability than using raw features or latent spaces.
  • Bridging the Semantic Gap: The method directly addresses the "semantic gap" between low-level data representations and high-level human concepts, making explanations more intuitive.
  • Transparency through Description: By providing both the prototypical example and its corresponding Class Cluster Description (CCD), users can understand why an example is prototypical, fostering trust.
  • Minimizing Redundancy: The focus on finding prototypes with the "least extraneous information" is key to creating focused and easily digestible explanations, preventing cognitive overload.

Key Results

  • Qualitative Evaluation: On CLEVR-Hans3, the semantic prototypes clearly captured the distinct semantic characteristics of each class, unlike other methods that produced less focused or potentially misleading examples.
  • User Survey: A user study involving 20 PhD candidates showed that the proposed "Semantic Prototypes" (ProtoSem) achieved the highest accuracy (83.12% ± 5.19%) and the highest user preference (50%) among various methods, including Random Images, ProtoPNet, Protodash, and only CCDs.
  • Improved Understanding: Participants found semantic prototypes most helpful for machine teaching and understanding unfamiliar tasks, indicating their effectiveness in conveying information.

Limitations and Future Work

  • Data Requirement: The method assumes the availability of data with semantic descriptions (ASDs). While they suggest ways to generate these (human annotation, existing metadata, vision-language models), this remains a prerequisite.
  • User Preference Trade-off: The user survey revealed a preference for simpler explanations (e.g., just images) even when they led to lower performance. This highlights a trade-off between informativeness and simplicity, suggesting a need for conciseness in explanations.
  • Future Directions:
    • Integrating prototypes with Large Language Models (LLMs) for few-shot or in-context learning.
  • Utilizing LLMs for generating semantic descriptions.
  • Leveraging knowledge representation and knowledge graphs for richer semantic descriptions.
  • Extending the framework to labeled directed graphs for more expressive descriptions.
  • Combining semantic prototypes with other explanation types, such as counterfactuals.
  • Further research into objectively evaluating XAI methodologies and user cognition.

Summary updated

BibTeX
@inproceedings{menismastromichalakis2024semantic,
  author = {Orfeas Menis-Mastromichalakis and Giorgos Filandrianos and Jason Liartis and Edmund Dervakos and Giorgos Stamou},
  title = {{Semantic Prototypes: Enhancing Transparency without Black Boxes}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679795},
}

Loading related content...

Figure