CoSy: Evaluating Textual Explanations of Neurons

Laura Kopf, Philine Lou Bommer, Anna Hedström, Sebastian Lapuschkin, Marina M. -C. Höhne +1 more
5/30/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: lkopf/cosy (20 stars, last commit 2026-01-28).

Abstract

A crucial aspect of understanding the complex nature of Deep Neural Networks (DNNs) is the ability to explain learned concepts within their latent representations. While methods exist to connect neurons to human-understandable textual descriptions, evaluating the quality of these explanations is challenging due to the lack of a unified quantitative approach. We introduce CoSy (Concept Synthesis), a novel, architecture-agnostic framework for evaluating textual explanations of latent neurons. Given textual explanations, our proposed framework uses a generative model conditioned on textual input to create data points representing the explanations. By comparing the neuron's response to these generated data points and control data points, we can estimate the quality of the explanation. We validate our framework through sanity checks and benchmark various neuron description methods for Computer Vision tasks, revealing significant differences in quality.

View on arXivView PDF

Code Implementations(1)

lkopf/cosyCommunity100%

[NeurIPS 2024] CoSy is an automatic evaluation framework for textual explanations of neurons.

202Python, Jupyter NotebookFeb 1, 20248 months ago
global-explainabilitymachine-learningmechanistic-interpretabilityxai-evaluation

Similar Papers

Cite this paper

@article{kopf2024cosy,
  title  = {CoSy: Evaluating Textual Explanations of Neurons},
  author = {Laura Kopf and Philine Lou Bommer and Anna Hedström and Sebastian Lapuschkin and Marina M. -C. Höhne and Kirill Bykov},
  year   = {2024},
  eprint = {2405.20331},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.20331},
  url    = {http://arxiv.org/abs/2405.20331v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.20331.svg)](https://codeofpaper.com/paper/2405.20331)

Discussion