A Distributional View for Visual Mechanistic Interpretability: KL-Minimal Soft-Constraint Principle

Guancheng Zhou, Yisi Luo, Zhengfu He, Zhenyu Jin, Xuyang Ge, Wentao Shu, Deyu Meng, Xipeng Qiu

Introduction

Mechanistic Interpretability (MI) seeks to reverse-engineer neural networks to understand their internal logic. In computer vision, this typically involves visualizing what specific neurons or features—often extracted via Sparse Autoencoders (SAEs)—are detecting. Historically, researchers have relied on two heuristic approaches: Dataset Search (retrieval) and Activation Maximization (optimization).

However, both methods suffer from inherent statistical biases. Retrieval is strictly bounded by the dataset; if the "perfect" activating image is absent, it will never be found, often causing results to collapse into a few extreme prototypes (a "winner-takes-most" dynamic). Conversely, optimization frequently generates "super-stimuli"—unrealistic, high-frequency noise patterns that maximize feature activation but are perceptually meaningless to humans.

To address these flaws, this paper reframes visual MI from a collection of heuristic tricks into a rigorous mathematical problem of distributional inference, introducing a framework that guarantees visualizations are both mechanistically faithful and perceptually interpretable.

The Distributional View and KLSC Principle

To resolve the biases of traditional methods, the authors propose a Distributional View. Rather than searching for a single optimal image, the objective is to find a distribution of images that balances two critical goals:

  • Faithfulness: The images must strongly activate the target feature.
  • Interpretability: The distribution should remain as close as possible to the natural image distribution.

This balance is formalized through the KL-Minimal Soft-Constraint (KLSC) principle. By minimizing Kullback-Leibler (KL) divergence, the authors shift the paradigm from "hard constraints" (e.g., strictly filtering for activations above a certain threshold) to "soft constraints" (e.g., targeting a specific average activation). Mathematical proofs in the paper demonstrate that soft constraints prevent "boundary bias"—a flaw in hard thresholding that tends to select barely-qualified, unrepresentative samples that fail to capture the core concept.

EnergyDPS: Practical Implementation

To practically sample from this ideal distribution, the authors introduce Energy-Guided Diffusion Posterior Sampling (EnergyDPS). This method utilizes a pre-trained diffusion model as a prior for natural images, treating the feature activation as an "energy function" that guides the denoising process.

Crucially, EnergyDPS is score-agnostic and operates directly on the model's internal signals. This bypasses the "prompt bottleneck" seen in recent proxy-guided methods, which force non-verbal visual features (like abstract textures or complex geometric shapes) into restrictive text descriptions, inevitably losing critical information.

Experimental Validation

The framework was evaluated primarily on the DINOv3 vision model, interpreting features extracted via SAEs and Transcoders trained on ImageNet-1K. The results demonstrate significant improvements across multiple dimensions:

  • Qualitative Superiority: EnergyDPS generates clear, semantically consistent images (e.g., distinct heart shapes, wing patterns, or clock faces), whereas traditional optimization yields unrecognizable textures.
  • Quantitative Performance: The method outperforms baselines on no-reference metrics such as QualiCLIP (measuring perceptual interpretability) and NRQM (measuring image quality).
  • Human and AI Validation: In blinded studies, both human raters and Large Language Models (GPT-4 and Gemini) overwhelmingly preferred EnergyDPS visualizations for their interpretability and consistency.
  • Efficiency: Despite leveraging complex diffusion sampling, EnergyDPS is approximately 2x faster and consumes 45% less memory than recent prompt-based diffusion competitors (96s vs. 217s per sample).

Limitations and Future Directions

While highly effective, the approach has a few notable limitations. First, it remains computationally heavier than simple gradient-descent optimization, which takes roughly half the time (~48s). Second, the quality of the visual explanation is inherently tied to the diffusion prior; if the diffusion model lacks exposure to certain image types, the resulting explanations may be biased toward its training distribution. Finally, the authors acknowledge a "Realism vs. Concept Gap": while resembling a natural image is a strong proxy for human interpretability, some model features may genuinely detect non-natural patterns that are critical to understanding the model's underlying behavior.

Summary updated

BibTeX
@inproceedings{zhou2026distributional,
  author = {Guancheng Zhou and Yisi Luo and Zhengfu He and Zhenyu Jin and Xuyang Ge and Wentao Shu and Deyu Meng and Xipeng Qiu},
  title = {{A Distributional View for Visual Mechanistic Interpretability: KL-Minimal Soft-Constraint Principle}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=TZvHUmClPP},
}
Figure