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

Don't trust your eyes: on the (un)reliability of feature visualizations

Robert Geirhos, Roland S. Zimmermann, Blair L. Bilodeau, Wieland Brendel, Been Kim · DOI

Abstract

Feature visualization (FV) has become a cornerstone of mechanistic interpretability, aiming to explain neural network behavior by optimizing inputs to maximally activate specific neurons. This study, presented at ICML 2024, provides a critical evaluation of FV reliability. We demonstrate that models can be adversarially manipulated to produce arbitrary, benign-looking visualizations (e.g., the Mona Lisa) for neurons that maintain their original behavior on natural data. Furthermore, we introduce a path-similarity metric showing that FVs in standard networks fail to trigger the same intermediate features as natural images. Finally, we provide mathematical proofs that feature visualization is theoretically insufficient for predicting the behavior of complex functions.

Introduction

In the quest to make artificial intelligence interpretable, researchers often rely on "feature visualizations"—vibrant, often psychedelic images that supposedly reveal what a neuron "wants" to see. By finding an image that maximally activates a specific neuron, the field attempts to assign semantic meaning to internal representations (e.g., identifying a "honeycomb" or "cat" detector). However, unlike other interpretability methods like saliency maps, FVs have lacked rigorous sanity checks. This research investigates whether these visualizations are faithful representations of a neuron's role in processing real-world data or merely artifacts of the optimization process.

Methods

The investigation employs a three-pronged approach:

  1. Adversarial Manipulation: The authors developed "fooling circuits" by inserting a small sub-network that functions as a "synthetic vs. natural" detector. This allows the creation of models that behave normally on natural images but produce hard-coded, arbitrary patterns when subjected to feature visualization optimization.
  2. Empirical Sanity Checks: A path-similarity metric was introduced to compare the activation paths of natural images versus their corresponding FVs. Using Spearman’s rank correlation, the researchers tested whether a "cat" visualization activates the same intermediate layers (textures, shapes) as a real photograph of a cat.
  3. Theoretical Analysis: The study formalizes FV as a mathematical map and proves theorems regarding its "decodability," testing if knowing a function's maximum activation point allows for the prediction of its behavior on other inputs.

The study primarily utilizes ImageNet-1K for training, with additional testing on ImageNet-V2 and NINCO (No ImageNet Class Objects) to ensure the robustness of the "fooling circuits" against natural distribution shifts.

Key Insights and Results

Adversarial Vulnerability and "Fairwashing"

The most striking result is the ability to "fairwash" a model. A developer could potentially hide a biased or malicious neuron by equipping it with a circuit that displays a benign visualization during an audit, while the neuron continues its original function on natural data.

Comparison of feature visualizations for original and manipulated models. The manipulated model shows arbitrary images like the Mona Lisa while maintaining identical performance on natural data.

The "fooling circuits" achieved 99.49% accuracy in distinguishing natural inputs from visualization attempts, allowing for the substitution of visualizations with zero impact on the model's top-1 accuracy on ImageNet.

Processing Divergence

In standard, unmanipulated networks like Inception-V1, FVs are processed fundamentally differently than natural images. Correlation between the processing paths was often near zero in early and mid-level layers. This suggests that FVs take a "shortcut" to final activation that natural data never utilizes, calling into question their explanatory power.

Mathematical Impossibility

The authors prove that for almost all complex function classes, including general neural networks, feature visualization is mathematically insufficient to guarantee an understanding of the function. Knowing the "peak" of a function provides no information about its behavior elsewhere in the input space.

Conclusion and Future Work

While feature visualizations remain useful for exploratory research, they are fundamentally unreliable for confirmatory purposes or safety audits. The findings suggest a shift toward "interpretability-by-design," where architectural constraints make networks mathematically decodable. Future work should prioritize the development of more rigorous sanity checks, such as the path-similarity metric introduced here, and move beyond simple activation maximization to understand how neurons behave across the entire data distribution.

Summary updated

BibTeX
@inproceedings{geirhos2024don,
  author = {Robert Geirhos and Roland S. Zimmermann and Blair L. Bilodeau and Wieland Brendel and Been Kim},
  title = {{Don't trust your eyes: on the (un)reliability of feature visualizations}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=s0Jvdolv2I},
}
Figure