Skip to main content
QUICK REVIEW

[Paper Review] Explaining Deep Neural Networks using Unsupervised Clustering

Yu-han Liu, Sercan Ö. Arık|arXiv (Cornell University)|Jul 15, 2020
Explainable Artificial Intelligence (XAI)Computer Science25 references10 citations
TL;DR

This paper proposes a post-hoc explainability method for deep neural networks (DNNs) that uses unsupervised clustering of intermediate layer activations to create surrogate models. By clustering representations across multiple layers, the method identifies similar training samples and learned concepts, improving model trust through user studies while maintaining high fidelity to the original DNN.

ABSTRACT

We propose a novel method to explain trained deep neural networks (DNNs), by distilling them into surrogate models using unsupervised clustering. Our method can be applied flexibly to any subset of layers of a DNN architecture and can incorporate low-level and high-level information. On image datasets given pre-trained DNNs, we demonstrate the strength of our method in finding similar training samples, and shedding light on the concepts the DNNs base their decisions on. Via user studies, we show that our model can improve the user trust in model's prediction.

Motivation & Objective

  • To address the challenge of explaining black-box DNNs by systematically analyzing both low-level and high-level representations across layers.
  • To develop a post-hoc explanation framework that does not require architectural changes or labeled concepts.
  • To improve human trust in DNN predictions by providing intuitive, similar training examples as supporting evidence.
  • To enable concept-based and sample-based explainability without relying on human-provided concepts or heuristic similarity metrics.

Proposed method

  • The method extracts intermediate activations from multiple layers of a pre-trained DNN and applies unsupervised clustering to group similar representations without labels.
  • A surrogate model is trained to mimic the original DNN’s output by learning from clustered representations, preserving fidelity while enhancing interpretability.
  • The clustering process captures both low-level (e.g., color, texture) and high-level (e.g., object composition, semantic content) patterns across layers.
  • Similarity between test and training samples is determined by proximity in the embedding space of cluster centroids, enabling sample-based explanations.
  • The approach uses an encoder-decoder architecture to reconstruct and refine cluster assignments from activations, improving clustering quality.
  • The method is applied post-training, making it flexible and compatible with any DNN architecture and any subset of layers.

Experimental results

Research questions

  • RQ1Can unsupervised clustering of intermediate DNN activations effectively identify semantically and visually similar training samples?
  • RQ2To what extent can clustering-based surrogate models capture both low-level and high-level concepts learned by DNNs?
  • RQ3Does providing cluster-based similar examples improve human trust in DNN predictions compared to baseline explanation methods?
  • RQ4Can the method outperform label-based filtering (e.g., same coarse or fine label) in user-perceived similarity and trust, even when the DNN is not perfectly accurate?
  • RQ5How does the fidelity of the surrogate model compare to the original DNN when using clustering-based distillation?

Key findings

  • On CIFAR-100, the proposed method achieved a surrogate model accuracy of 0.51 and fidelity of 0.61, demonstrating strong alignment with the original DNN.
  • In a user study with 18 participants, the method selected the most similar training images in 130 out of 316 trials, outperforming nearest neighbors and label-based filtering.
  • On the magnetic tile defect dataset, the method improved user trust in model predictions (mean score 3.91 ± 0.24) when using similar examples from the same predicted coarse label, surpassing baseline methods.
  • Even without access to the test image’s fine label (which was not used during training), the method outperformed label-based filtering in trust scores, indicating robustness and generalization.
  • Clustered concepts revealed both low-level features (e.g., color palettes) and high-level semantic patterns (e.g., defect types finer than coarse labels), demonstrating multi-level interpretability.
  • The method successfully identified relevant training samples even when the original DNN misclassified the test image, confirming its reliability in real-world scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.