LINE: LLM-based Iterative Neuron Explanations for Vision Models

NeurIPS 2026

Vladimir Zaigrajew1,2 Michał Piechota2,* Gaspar Sekula2,* Paweł Gelar1,2 Przemysław Biecek1,2,3

1Centre for Credible AI 2Warsaw University of Technology 3University of Warsaw *Equal contribution

LINE neuron descriptions for ViT-B/16 neuron 488 (image projector), ResNet50 neuron 1912 (frozen landscape) and ResNet18 neuron 460 (aquatic biome): the top three activating images, the top concepts on LINE's final scoreboard with their neuron activation, and the CoSy AUC of LINE, CLIP-Dissect and INVERT.
LINE neuron descriptions. For three neurons from different models, we show (from the left): the top three activating images from the model-trained dataset, the top concepts LINE registered in the final scoreboard with their origin (predefined, generated or summary concept), and CoSy benchmark AUC scores for LINE and the baseline methods. The images and the LINE concepts are provided with their neuron activation scores.

Abstract

Interpreting the concepts encoded by individual neurons in deep neural networks is a crucial step towards understanding their complex decision-making processes and ensuring AI safety. Despite recent progress in neuron labeling, existing methods often limit the search space to predefined concept vocabularies or produce overly specific descriptions that fail to capture higher-order, global concepts. We introduce LINE, a novel, training-free iterative approach tailored for open-vocabulary concept labeling in vision models. Operating in a strictly gray-box setting, LINE leverages a large language model and a text-to-image generator to iteratively propose and refine concepts in a closed loop, guided by activation history. We demonstrate that LINE achieves state-of-the-art performance across multiple model architectures, yielding AUC improvements of up to 0.15 on ImageNet and 0.05 on Places365, while discovering, on average, 25% of new concepts missed by predefined vocabularies. Beyond identifying the top concept, LINE provides a complete generation history, enabling polysemanticity evaluation and producing supporting visual explanations that rival gradient-dependent activation maximization methods.

How LINE works

LINE is an automatic, training-free, gray-box framework for labeling vision model neurons: it requires only access to the inspected neuron's activations, without access to the model weights or gradients. Following an initialization phase that creates a concept scoreboard H, each iteration proceeds through four stages, adding a newly evaluated concept to the scoreboard.

Overview of the LINE iterative framework: concept proposal, image synthesis, activation extraction and concept scoring update the scoreboard for N iterations; in the final summary iteration (N + 1) a Summary Concept step replaces concept proposal, and the highest-scoring concept is returned.
  1. Step 1

    Concept proposal

    An LLM proposes a new concept t based on the descriptions from the scoreboard H (e.g., generalizing strawberry and cherry into red fruit).

  2. Step 2

    Image synthesis

    A text-to-image (T2I) model generates a batch of diverse synthetic images illustrating the concept t.

  3. Step 3

    Activation extraction

    These images are processed by the target vision model, extracting concept activations At.

  4. Step 4

    Concept scoring

    A scoring function (the mean activation, ψavg) converts At into score st, and H is updated with the result.

Initialization. The scoreboard is initialized with ImageNet-1K class labels, a diverse vocabulary that closely resembles the target model's training distribution. To balance exploitation and exploration, it is populated with the top 5 highest-scoring class labels (scored on 50 natural images per class) alongside 5 randomly selected ones, and their scores are calculated on synthesized images to ensure consistency with the iterative process. Summary step. After N iterations, the LLM is provided with the top three concepts from the scoreboard to generate a generalized, higher-order concept, which is evaluated via the standard pipeline. The highest-scoring concept from H is then returned, together with the complete generation history. LINE uses Llama 3.1 8B, Stable Diffusion XL (SDXL) with 5 images generated per concept, and N = 10 refinement iterations.

Evaluation on the CoSy benchmark and VLM correlation

CoSy evaluates open-vocabulary textual explanations of neurons with synthetic data: if a concept label accurately explains a neuron, the neuron should activate significantly more on generated images of the concept than on a control set of random natural images. AUC is the probability that a synthetic concept image activates the neuron more strongly than a random control image; MAD is the difference in mean activations between the synthetic and control images, normalized by the control's standard deviation. Because both CoSy and LINE rely on T2I models, we additionally evaluate with simulation with correlation scoring (Corr), the Pearson correlation between neuron activations and SigLIP label-image similarities across the dataset, which uses no generated images.

CoSy AUC and MAD, and the Pearson correlation (×10−1) between neuron activations and the SigLIP similarity of each image to the neuron's predicted label. Averaged over 100 neurons; higher is better. Best in bold, second-best underlined.
ModelDatasetMetricLINECLIP-DissectINVERTDnD
ResNet18ImageNetAUC0.97±0.040.90±0.140.85±0.140.77±0.21
MAD4.76±1.913.42±2.172.16±1.611.97±1.99
Corr0.57±0.490.41±0.390.47±0.450.44±0.46
ResNet18Places365AUC0.93±0.100.89±0.150.80±0.180.85±0.19
MAD3.77±2.313.63±2.781.85±1.703.16±2.92
Corr0.51±0.540.29±0.430.20±0.330.64±0.58
ResNet50ImageNetAUC0.97±0.070.87±0.180.88±0.150.85±0.18
MAD5.28±2.103.56±2.522.81±1.953.40±3.02
Corr0.81±0.570.33±0.460.48±0.510.66±0.47
ResNet50Places365AUC0.94±0.080.89±0.150.84±0.140.84±0.18
MAD4.27±2.813.69±2.902.04±1.702.74±2.56
Corr0.36±0.570.24±0.480.16±0.300.57±0.54
ViT-B/16ImageNetAUC0.94±0.070.74±0.200.79±0.180.64±0.20
MAD2.12±0.541.00±0.891.05±0.700.60±0.84
Corr0.26±0.210.07±0.150.23±0.210.07±0.15
DINOv3LVD-1689MAUC0.94±0.080.76±0.220.76±0.180.62±0.23
MAD2.05±0.681.12±1.060.95±0.730.47±0.92
Corr0.32±0.230.09±0.200.24±0.240.11±0.21
Overall–AUC0.95±0.080.84±0.190.82±0.170.76±0.22
MAD3.71±2.272.74±2.501.81±1.612.06±2.50
Corr0.47±0.500.24±0.390.30±0.380.41±0.50

Table 1 of the paper. Layers: avgpool for ResNet50 and ResNet18, encoder for ViT-B/16 and norm for DINOv3. DnD results on ViT-based models are affected by a bug in the original implementation (Appendix B.3). The AUC, MAD and Corr of every neuron are in the released explanations.

Browse the explanations

Visual explanations without gradients

By coupling iterative concept search with image synthesis, LINE generates highly activating images that serve as visual explanations alongside textual descriptions. This enables direct comparison with activation maximization (AM) methods like DiffExplainer and DEXTER, which optimize the text prompts of diffusion models with gradients. Following the Salient ImageNet protocol, we show visual explanations of the top-5 features for six classes in a RobustResNet50: three classes relying mainly on core features (Jeep, Daisy, Rifle) and three classes containing heavily spurious features (Bathing Cap, Patio, Seat Belt). LINE shows the top-activating of its five images of the reported concept; the number under each image is the neuron activation, with the highest per feature in bold.

Contact

For questions about the paper or the code, write to Vladimir Zaigrajew (vladimir.zaigrajew.dokt@pw.edu.pl) or Paweł Gelar (pawel.gelar@pw.edu.pl). Bug reports and feature requests are welcome as GitHub issues.

Citation

@inproceedings{
zaigrajew2026line,
title={{LINE}: {LLM}-based Iterative Neuron Explanations for Vision Models},
author={Vladimir Zaigrajew and Micha{\l} Piechota and Gaspar Sekula and Pawe{\l} Gelar and Przemyslaw Biecek},
booktitle={The Fortieth Annual Conference on Neural Information Processing Systems},
year={2026},
url={https://openreview.net/forum?id=Cyqy5Yh0Ho}
}