Labeling Neural Representations with Inverse Recognition

Kirill Bykov, Laura Kopf, Shinichi Nakajima, Marius Kloft, Marina M.-c. Höhne

Abstract

Deep Neural Networks (DNNs) are often criticized for their "black box" nature, where internal decision-making processes remain opaque to human observers. This lack of transparency can lead to "shortcut learning," where models rely on spurious correlations rather than meaningful features. This paper presents Inverse Recognition (INVERT), a scalable and statistically rigorous framework for labeling the representations learned by individual neurons. By utilizing Area Under the Curve (AUC) metrics and compositional logic, INVERT identifies human-understandable concepts within DNNs without the need for expensive pixel-level segmentation masks. Our results demonstrate that INVERT significantly outperforms existing methods in accuracy and efficiency, while providing a bridge between connectionist models and symbolic reasoning.

Introduction

As Deep Neural Networks become increasingly integrated into critical decision-making systems, the need for interpretability has never been greater. While these models achieve state-of-the-art performance, they often learn features that are difficult for humans to interpret. For example, a model might correctly identify a "chameleon" not by its physical characteristics, but by the presence of a specific watermark common in nature photography.

Existing interpretability methods, such as Network Dissection, attempt to label neurons by measuring the overlap between neuron activation maps and human-labeled segmentation masks. However, these approaches suffer from three primary limitations: they require high-cost pixel-level data, they often lack statistical significance testing, and they are computationally expensive when dealing with high-dimensional masks across large networks. INVERT addresses these challenges by reframing the problem: instead of training a model to recognize a concept, it identifies which human concepts a specific neuron is already optimized to detect.

Methodology

AUC Similarity and Statistical Rigor

Unlike traditional methods that rely on Intersection over Union (IoU)—which requires an arbitrary hard threshold for neuron activation—INVERT utilizes the Area Under the Receiver Operating Characteristic (AUC). This metric measures how effectively a neuron's continuous activation values distinguish between images containing a specific concept and those that do not. By linking AUC to the Wilcoxon-Mann-Whitney test, INVERT provides a formal p-value for every explanation, ensuring that labels are statistically significant rather than mere coincidences.

Individual neurons often represent concepts more complex than a single word. To capture this complexity, INVERT employs Beam Search to find the optimal logical combination of concepts (e.g., "recreational vehicle" OR "trailer truck" AND NOT "pickup"). This allows for more nuanced and accurate descriptions of a neuron's functional role within the network.

Fuzzy Logic Circuits

The framework also explores the symbolic properties of neural networks. By combining neurons using fuzzy logic (specifically the Gödel norm), researchers can "handcraft" circuits to detect complex scenes. For instance, a "boathouse" detector can be constructed by logically combining neurons that independently detect "boats," "houses," and "lakes."

Experimental Results

Labeling Accuracy and Efficiency

INVERT was evaluated across several standard benchmarks, including ImageNet 2012, MS COCO, and Places365. On ImageNet, INVERT achieved labeling accuracies between 73% and 86%, a substantial improvement over the ~19% accuracy achieved by Network Dissection on the same task. Furthermore, INVERT maintains high computational efficiency; while previous compositional methods (like CompExp) suffer from exponential runtime increases as explanation complexity grows, INVERT’s runtime remains manageable.

Zero-Training Fine-Tuning

In a unique experiment using the Caltech101 dataset, the authors demonstrated that a functional classifier could be built without any gradient updates. By selecting neurons based on their INVERT labels and combining them via fuzzy logic, the researchers created a "handcrafted" model that achieved 69.5% accuracy. This result highlights the potential for using interpretability tools to perform task adaptation without traditional training.

Identifying Spurious Correlations

INVERT proved highly effective at diagnosing model failures. In one instance, it revealed that a neuron in a ResNet model, which appeared to be a "chameleon" detector, was actually responding to "Chinese text" watermarks. This capability is crucial for auditing models for bias and ensuring they rely on robust features.

Conclusion and Future Work

INVERT provides a powerful, scalable, and statistically grounded method for interpreting the internal representations of DNNs. By removing the requirement for segmentation masks and introducing compositional logic, it offers a more practical path toward transparent AI. However, the method remains dependent on a predefined "dictionary" of labels; if a neuron learns a concept not present in the dataset, it cannot be accurately named. Future research will focus on automated concept generation and the exploration of alternative similarity measures to further refine the mapping between neural activations and human language.

Summary updated

BibTeX
@inproceedings{bykov2023labeling,
  author = {Kirill Bykov and Laura Kopf and Shinichi Nakajima and Marius Kloft and Marina M.-C. Höhne},
  title = {{Labeling Neural Representations with Inverse Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=gLfgyIWiWW},
}
Figure