Explainable Clustering via Exemplars: Complexity and Efficient Approximation Algorithms

Ian Davidson, Michael J. Livanos, Antoine Gourru, Peter B. Walker, Julien Velcin, S. S. RaviarXiv 2022

Abstract

Explainable AI (XAI) is an important developing area but remains relatively understudied for clustering. We propose an explainable-by-design clustering approach that not only finds clusters but also exemplars to explain each cluster. The use of exemplars for understanding is supported by the exemplar-based school of concept definition in psychology. We show that finding a small set of exemplars to explain even a single cluster is computationally intractable; hence, the overall problem is challenging. We develop an approximation algorithm that provides provable performance guarantees with respect to clustering quality as well as the number of exemplars used. This basic algorithm explains all the instances in every cluster whilst another approximation algorithm uses a bounded number of exemplars to allow simpler explanations and provably covers a large fraction of all the instances. Experimental results show that our work is useful in domains involving difficult to understand deep embeddings of images and text.

Introduction

Clustering is a cornerstone of unsupervised learning, yet its results often remain a "black box." Traditional explainable AI (XAI) techniques for clustering typically rely on feature-based explanations (e.g., "this cluster is defined by high values in Feature X"). However, modern machine learning increasingly relies on deep embeddings—high-dimensional mathematical representations of text or images where individual dimensions lack human-interpretable meaning. In such spaces, traditional feature-based explanations fail.

This research proposes an "explainable-by-design" framework that leverages exemplars—real, representative data points—to describe clusters. Drawing from "Exemplar Theory" in cognitive science, which suggests humans categorize the world by comparing new experiences to specific stored memories, this approach provides a more intuitive way to understand complex data groupings.

Methodology

The core challenge lies in balancing clustering quality (compactness) with explanation simplicity (the number of exemplars). The authors frame this as a bi-objective optimization problem and provide two primary algorithms:

  1. SCCE (Simultaneous Construction of Clusters and Exemplars): This algorithm partitions data to minimize maximum diameter and then employs a greedy Set Cover approach to select exemplars. It provides a provable guarantee: the cluster diameter is at most $2(D^* + \epsilon)$, and the number of exemplars is within a logarithmic factor of the optimal.
  2. SCCRB (Simultaneous Construction of Clusters and $\beta$-Bounded Exemplars): A budgeted version designed for scenarios where the number of exemplars must be strictly limited. It uses a Budgeted Maximum Coverage approach to ensure the maximum number of data points are "explained" by a fixed set of exemplars.

The parameter $\epsilon$ serves as a "knob" for interpretability, defining the coverage radius of an exemplar. A smaller $\epsilon$ yields high-detail clusters with many exemplars, while a larger $\epsilon$ provides a simpler, broader overview.

Experimental Evaluation

The researchers evaluated their approach across computer vision (MNIST, Labeled Faces in the Wild) and natural language processing (BERT embeddings of Harry Potter) datasets.

Visualization of exemplar-based clustering on the LFW dataset. Stars represent selected exemplars that explain nearby data points in the embedding space.

Key Findings

  • Predictive Power: In face recognition tests using the LFW dataset, representing a person's "concept" via exemplars achieved 48.33% accuracy in identifying them in new photos, outperforming both cluster centroids (44%) and the use of the entire raw dataset (42%).
  • Text Summarization: When applied to summarize text by selecting representative sentences, the method outperformed standard ranking algorithms like LexRank by 12.8% on ROUGE scores.
  • Efficiency: Despite the NP-hard nature of the underlying problem, the approximation algorithms are computationally efficient. For text embeddings, the SCCE/SCCRB algorithms completed tasks in approximately 95 seconds, compared to over 700 seconds for state-of-the-art domain-specific methods.

Conclusion

By binding cluster quality and explanation complexity together, this framework offers a robust solution for interpreting deep embeddings. Exemplars prove to be powerful tools not just for human understanding, but also for machine tasks like transfer learning. Future work may explore hierarchical explanations to organize exemplars into nested concepts for even greater interpretability.

Summary updated

BibTeX
@misc{davidson2022explainable,
  author = {Ian Davidson and Michael J. Livanos and Antoine Gourru and Peter B. Walker and Julien Velcin and S. S. Ravi},
  title = {{Explainable Clustering via Exemplars: Complexity and Efficient Approximation Algorithms}},
  year = {2022},
  eprint = {2209.09670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.09670},
}
Figure