PURE: Turning Polysemantic Neurons Into Pure Features by Identifying Relevant Circuits

Maximilian Dreyer, Erblina Purelku, Johanna Vielhaben, Wojciech Samek, Sebastian Lapuschkin
4/9/2024
cs.CVcs.AIcs.LG

Official code: maxdreyer/PURE (20 stars, last commit 2024-05-29).

Abstract

The field of mechanistic interpretability aims to study the role of individual neurons in Deep Neural Networks. Single neurons, however, have the capability to act polysemantically and encode for multiple (unrelated) features, which renders their interpretation difficult. We present a method for disentangling polysemanticity of any Deep Neural Network by decomposing a polysemantic neuron into multiple monosemantic "virtual" neurons. This is achieved by identifying the relevant sub-graph ("circuit") for each "pure" feature. We demonstrate how our approach allows us to find and disentangle various polysemantic units of ResNet models trained on ImageNet. While evaluating feature visualizations using CLIP, our method effectively disentangles representations, improving upon methods based on neuron activations. Our code is available at https://github.com/maxdreyer/PURE.

View on arXivView PDF

Code Implementations(1)

maxdreyer/PUREOfficial100%

Repository for PURE: Turning Polysemantic Neurons Into Pure Features by Identifying Relevant Circuits, accepted at CVPR 2024 XAI4CV Workshop (spotlight)

202Shell, PythonApr 8, 20242 years ago

Similar Papers

Cite this paper

@article{dreyer2024pure,
  title  = {PURE: Turning Polysemantic Neurons Into Pure Features by Identifying Relevant Circuits},
  author = {Maximilian Dreyer and Erblina Purelku and Johanna Vielhaben and Wojciech Samek and Sebastian Lapuschkin},
  year   = {2024},
  eprint = {2404.06453},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.06453v1}
}

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/2404.06453.svg)](https://codeofpaper.com/paper/2404.06453)

Discussion