NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CoSy: Evaluating Textual Explanations of Neurons

Laura Kopf, Philine Lou Bommer, Anna Hedström, Sebastian Lapuschkin, Marina M.-c. Höhne, Kirill Bykov · DOI

Abstract

Mechanistic interpretability aims to demystify Deep Neural Networks (DNNs) by assigning human-understandable textual labels to individual neurons. However, the field has lacked a standardized, automated, and architecture-agnostic method to validate these explanations. We present CoSy (Concept Synthesis), a framework that leverages generative AI to quantitatively evaluate textual descriptions. By synthesizing images from candidate explanations and measuring neuron responses, CoSy provides a robust benchmark for interpretability methods across various models and layers.

Introduction

Deep Neural Networks are often characterized as "black boxes" due to their complex, non-linear internal representations. To address this, researchers employ mechanistic interpretability to label neurons with concepts like "striped pattern" or "dog face." While these labels provide a semblance of understanding, a critical question remains: How do we verify that a textual label accurately captures a neuron's function?

Historically, evaluation has relied on expensive human studies or narrow "ground truth" datasets, both of which are difficult to scale and prone to bias. CoSy (Concept Synthesis) addresses this bottleneck by turning the explanation process into a closed-loop verification system: if a textual label is accurate, the neuron should respond strongly to images generated specifically to represent that label.

The CoSy Framework

CoSy is an architecture-agnostic framework designed to evaluate open-vocabulary explanations without requiring access to training data or internal gradients. The process consists of three primary stages:

  1. Synthetic Data Generation: A textual explanation (e.g., "red circular objects") is used as a prompt for a state-of-the-art text-to-image model, such as Stable Diffusion XL (SDXL). This produces a set of synthetic images representing the "ideal" visual manifestation of the concept.
  2. Activation Collection: These synthetic images are passed through the target DNN. Simultaneously, a control set of random natural images (typically from ImageNet) is processed to establish a baseline activation level for the neuron under investigation.
  3. Quantitative Scoring: The framework compares the neuron's response to the synthetic concept images versus the control images using two metrics:
  4. Area Under the ROC Curve (AUC): A non-parametric measure (0 to 1) of the neuron's ability to rank synthetic images higher than random ones.
  5. Mean Activation Difference (MAD): A parametric measure of the magnitude of the neuron's firing rate when exposed to the synthetic concept compared to the baseline.

Experimental Methodology

The authors validated CoSy across a diverse range of architectures, including ResNet18, ResNet50, DenseNet161, GoogLeNet, ViT-B/16, and DINO ViT-S/8. Evaluation was conducted using standard datasets like ImageNet (for object-centric features) and Places365 (for scene-centric features). To ensure the reliability of the synthetic images, the framework utilized high-fidelity generative models like Stable Diffusion XL and Stable Cascade.

Key Insights and Results

Benchmarking Interpretability Methods

CoSy was used to benchmark several prominent explanation methods: MILAN, INVERT, CLIP-Dissect, and FALCON. The results revealed significant performance disparities. INVERT and CLIP-Dissect emerged as top performers, frequently achieving AUC scores above 0.90 in higher network layers. Conversely, MILAN and FALCON often produced explanations that performed only marginally better than random chance (AUC < 0.65).

A consistent finding across all models was the "Lower Layer Struggle." Neurons in the final layers of a network, which often correspond to distinct semantic classes (e.g., "pomegranates"), were easily explained and verified with near-perfect AUC scores (0.98+). However, neurons in early convolutional layers, which detect abstract textures and edges, proved much harder to label accurately in natural language. This suggests that current interpretability methods are better suited for high-level semantics than for low-level visual primitives.

Generative Validity

A crucial sanity check confirmed that DNNs respond to synthetic images and natural images of the same class in nearly identical ways. This validates the use of generative AI as a proxy for real-world visual data in the context of neuron evaluation.

Discussion and Limitations

While CoSy provides a powerful new tool for the interpretability community, it is subject to the "generative bottleneck." The framework's accuracy is inherently limited by the capabilities of the underlying text-to-image model. If a model cannot accurately render a specific concept—such as a rare medical pathology or a highly specific abstract pattern—CoSy cannot provide a fair evaluation of that explanation.

Furthermore, the study noted that the specificity of a prompt (e.g., "dog" vs. "pug") impacts evaluation, suggesting that the "temperature" or diversity of the generative output plays a significant role in the resulting scores.

Conclusion

CoSy represents a significant step toward a standardized, automated pipeline for mechanistic interpretability. By bridging the gap between textual descriptions and visual activations via generative AI, it allows researchers to rigorously test their hypotheses about how neural networks see the world. Future work may extend this framework to Natural Language Processing and specialized domains like healthcare, where precise and verifiable neuron explanations are essential for safety and trust.

Summary updated

BibTeX
@inproceedings{kopf2024cosy,
  author = {Laura Kopf and Philine Lou Bommer and Anna Hedström and Sebastian Lapuschkin and Marina M.-C. Höhne and Kirill Bykov},
  title = {{CoSy: Evaluating Textual Explanations of Neurons}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=GGDSFjY6Tn},
}
Figure