Summary
This paper proposes an automatic evaluation for textual explanations of neurons in vision models. The evaluation works by using a text-to-image model to generate images based on the explanation of a neuron. Then, these images are passed through the vision model and that neuron’s activations are recorded. These activations are compared to neuron activations on control images that should have nothing to do with the explanation. A good explanation should yield generated images that produce high neuron activations, as compared to control images. Two metrics are used to measure the difference in neuron activations. The paper validates the evaluation framework by checking that (1) generated images are similar to natural images of class concepts, (2) vision model neuron activations are similar for generated and natural images, and (3) that “ground-truth” explanations (class concept labels) receive high scores while “random” explanations (random class labels) receive low scores. Finally, the authors apply their evaluation to several prominent neuron explanation methods and draw some conclusions about which methods work better and at which layers.
Strengths
- Very important: This paper provides an automatic evaluation for textual explanations of neurons that should provide a reasonably reliable signal for explanation quality. Such an evaluation should serve to guide methods research in the area, and has been sorely needed.
- Very important: The paper tackles an important problem, evaluation of explanation methods in computer vision.
- Important: The paper is very clear, well-organized, and has good illustrations.
- Important: Many small design choices in the paper are very reasonable, like the choice of metrics and prompt selection.
- Important: The paper provides some empirical results with current explanation methods that highlight directions for future research in the area.
Weaknesses
- Very important: The meta-evaluation in this paper suffers a bit on two fronts. First, it is difficult to say it is a meta-evaluation in the sense that we could plug another evaluation procedure into this framework and mesaure how different evaluation results correlate with some *third,* more ground-truth or utility-driven evaluation of explanation methods. Take for example the meta-evaluation of automatic machine-translation metrics. Metrics like BLEU and ROUGE are accepted on the basis of their correlation (or lack thereof) with human judgment of translation quality. What would make the meta-evaluation in this paper more of a meta-evaluation is if it compared with, for instance, evaluations from prior work described in “Prior Methods for Evaluation”, using some third ground-truth/utility-oriented evaluation as a target measure (see e.g. evaluations in https://arxiv.org/pdf/2211.10154 as possible targets). To clarify why I don’t think the results in Sec. 4.3 count as such a ground-truth evaluation, my second point here is that there is a major distribution shift in what we want to measure between typical uses of textual neuron explanations and the validations conducted in Sec. 4. Specifically, Sec. 4 focuses exclusively on evaluations of “output neurons”, i.e. class logits, whereas textual neuron explainers are applied almost exclusively to intermediate hidden neurons in models. This means that even a proper meta-evaluation comparing CoSY against competing explanation methods would be limited by a narrow focus on output neurons and not intermediate neurons. I wonder, could the paper inclue a meta-evaluation experiment utilizing a model that has been trained with intermediate representation supervision, like a kind of concept-bottleneck model, so there could be some ground-truth label for an intermediate neuron (at least as ground-truth as using output neurons, which are learned with direct supervision)?
- Important: I have some other doubts about how the evaluation will work for neurons that represent low-level (perhaps early layer neurons) or abstract features (possibly middle/later layer neurons). For instance, how about low-level edge/shape features, or abstract features like “white objects”. It seems guaranteed that the control images will share many low-level features with the generated images. And it seems very possible that the control images include white objects. These cases seem problematic in that they could lead to low AUC or MAD scores even if the explanation is correct. Can the control images be generated in a conditional way that encourages them to lack the concepts in the proposed explanations?
- Important: Concepts could overlap or be nested in semantic hierarchies, and I am not sure that the evaluation framework could clearly discriminate between good and bad explanations in these settings. For example, we might want to distinguish between “red apples”, “red fruits”, and “red objects” as explanations for a neuron. In order to do this, we need the generated images for each explanation to achieve a sufficient amount of diversity. It would be a problem if when the text-to-image model gets the phrase “red fruits”, it generates mostly red apples (a very salient example of red fruit). So, I would suggest that one meta-evaluation experiment focus on measuring diversity or coverage of the generated images.
Questions
- There has been a shift in the literature from treating neurons as the unit of analysis to feature directions, starting with TCAV (https://arxiv.org/abs/1711.11279) and extending through work like CRAFT (https://arxiv.org/pdf/2211.10154). One example of automatic textual explanation of feature directions is given for LLMs in Sec. 3 of https://arxiv.org/pdf/2309.08600 (as well as https://transformer-circuits.pub/2023/monosemantic-features#global-analysis-interp-auto-acts). I don’t know if any existing methods for vision models could be adapted to focus on latent feature directions rather than neurons, but this would be a ripe direction for future methods.
- Based on the above, the related work section might also point to (1) https://arxiv.org/pdf/2309.08600, (2) https://transformer-circuits.pub/2023/monosemantic-features#global-analysis-interp-auto-acts, and (3) https://arxiv.org/pdf/2211.10154, and possibly point to automatic, model-based evaluations of local explanations like https://arxiv.org/pdf/2312.12747.
- I’m curious what you would think of fitting a logistic classifier to the neuron activations and computing that classifier’s AUC. How would that differ from your non-parametric AUC?
Limitations
I think the limitations discussion is sufficient.