LINE: LLM-based Iterative Neuron Explanations for Vision Models

Vladimir Zaigrajew, Michał Piechota, Gaspar Sekula, Paweł Gelar, Przemyslaw BiecekNeurIPS 2026

TL;DR

Trying to figure out what individual neurons in a vision model actually "see" usually requires guessing from a fixed list of words or peering into the model's internal gradients. LINE turns this into an automated game of "hot and cold": an LLM guesses a visual concept, an image generator draws it, and the target neuron's activation tells the LLM whether it's getting warmer. By refining concepts in a closed loop without needing model weights or training, LINE uncovers nuanced, open-vocabulary explanations and clean visual examples of what makes vision models tick.

What Problem Does This Paper Address?

Deep vision networks are notoriously opaque—a major hurdle when deploying them in high-stakes fields like healthcare. Mechanistic interpretability tries to solve this by translating individual neural activations into human-readable concepts ("neuron labeling").

However, existing methods usually hit one of two walls. First, many rely on predefined vocabularies; if a neuron actually detects aquatic biomes (see below), a fixed word list lacking that phrase might awkwardly label it snorkeling or coelenterate. Second, generative methods that write free-form captions in a single pass often produce overly specific descriptions, missing the broader, higher-order concept. Meanwhile, visual explanation methods (Activation Maximization) optimize pixels or prompts using model gradients, which eats up memory, requires full white-box access, and often hallucinates psychedelic, unnatural artifacts.

Figure 1: 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, CoSy benchmark [Kopf et al., 2024] AUC scores for LINE and the baseline methods. The images and the LINE concepts are provided with their neuron activation scores. Extended results for different layers and models are in Appendix E.4.

Methods

LINE (LLM-based Iterative Neuron Explanations) is a training-free, gray-box pipeline—meaning it only observes a neuron's output activation numbers, requiring zero access to model weights or gradients.

While combining LLMs and Text-to-Image (T2I) models for interpretability has been tried in single-pass setups, LINE’s novelty lies in putting them in an iterative feedback loop guided by a "concept scoreboard":

Figure 2: Overview of the LINE iterative framework. Step 1: An LLM proposes a new concept t based on the descriptions from the scoreboard H (e.g., generalizing strawberry and cherry into red fruit). Step 2: A Text-to-Image (T2I) model generates a batch of diverse synthetic images illustrating the concept t. Step 3: These images are processed by the target vision model, extracting concept activations At. Step 4: A scoring function (ψavg(A)) converts At into score st, and the H is updated with the result. Upon reaching the final iteration N, an additional final summary iteration (N + 1) evaluates the higher-order concept reasoned from top-scoreboard descriptions; here, Step 1 is replaced by a Summary Concept step, while the remaining steps are unchanged. The highest- scoring concept from H is then returned. The LINE algorithm is summarized in Appendix C.1.
  1. Initialization: To avoid starting blind, the scoreboard is seeded using natural images from ImageNet-1K, picking the top 5 highest-activating class labels (exploitation) and 5 random ones (exploration), re-scored on synthetic images for consistency.
  2. Concept Proposal: A lightweight LLM (Llama 3.1 8B) reads the scoreboard and reasons out a new candidate concept (e.g., noticing strawberry and cherry score well, it proposes red fruit).
  3. Image Synthesis & Extraction: A T2I model (SDXL) generates 5 diverse photos of that concept across varied angles and lighting, which are fed into the target vision model.
  4. Concept Scoring: LINE averages the neuron's raw activations across those 5 images and updates the scoreboard.
  5. Summary Step: After $N$ iterations (typically 10), the LLM reviews the top 3 concepts to propose and test one overarching, higher-order abstraction.

Datasets

Because LINE is training-free, datasets are strictly for initialization and evaluation:

  • ImageNet-1K: Used to initialize the scoreboard and evaluate ImageNet-trained models (ResNet18/50, ViT-B/16).
  • Places365 & LVD-1689M: Used to evaluate scene-recognition ResNets and self-supervised DINOv3, respectively (testing how LINE handles models trained on different or private data).
  • CoSy (Concept Synthesis): A unified, architecture-agnostic benchmark used to quantitatively score neuron labels.
  • Salient ImageNet: Used to evaluate how well LINE's synthetic images expose model biases compared to Activation Maximization baselines.

Key Insights and Ideas

  • Fixed dictionaries leave concepts on the table: Even when initialized with 1,000 diverse ImageNet classes, LINE’s LLM invents a better, winning label 25% of the time on average (and up to 44% on Places365), proving single-pass vocabulary matching is suboptimal.
  • Image cropping can mislead explainability: Baseline methods that crop highly activating image patches often feed confusing, out-of-context snippets to vision-language models, yielding vague labels like various perched creatures. Whole-image synthesis sidesteps this trap.
  • Gradient-free visual explanations look human: Because LINE doesn't backpropagate gradients, you can drop in modern T2I generators (like SDXL or FLUX) to visualize model biases without generating trippy adversarial noise.
  • Small LLMs are enough: You don't need massive, unconstrained multimodal agents to interpret neurons; an 8B-parameter LLM paired with a T2I generator in a tight loop achieves state-of-the-art results.

Key Results

Across ResNet18, ResNet50, ViT-B/16, and DINOv3, LINE achieves state-of-the-art neuron labeling:

  • Quantitative Wins: On the CoSy benchmark, LINE hits an overall 0.95 AUC (vs. 0.84 for CLIP-Dissect, 0.82 for INVERT, and 0.76 for DnD), boosting AUC by up to 0.15 on ImageNet and 0.05 on Places365. On generator-free SigLIP correlation checks, LINE also ranks first overall (0.47 vs. 0.41 for DnD).
  • Causal Validation: When an image-editing model surgically erases LINE's predicted concept from real scenes (like removing a volcano or steam train), neuron activations plummet by up to 90–97%, confirming the labels capture true causal triggers.
Figure 4: Causal impact of concept ablation on neuron activation. Using image-to-image generative models, we remove visual concepts associated with the neuron description from ResNet50 avgpool layer identified by LINE. Original (left) and ablated (right) images are shown side-by-side, with normalized neuron activations displayed below each pair. Original images are outlined in blue, ablated versions in orange, and the resulting relative drop in activation is marked in green. Extended results featuring failure cases are provided in Appendix D.2.

Limitations and Future Work

  • Polysemanticity: Many neurons fire for multiple unrelated concepts. LINE’s greedy optimization tends to lock onto a single conceptual direction, though its transparent scoreboard history offers a natural starting point for multi-label extensions.
  • Compute Bottleneck: Synthesizing images in a loop adds up when auditing thousands of neurons—the T2I generator alone consumes 88% of compute time. Swapping in smaller, distilled diffusion models or fewer steps is a practical path forward.
  • Domain Boundaries: LINE is only as knowledgeable as its generative models. Auditing specialized networks in domains like medical X-rays or satellite imagery will struggle until high-fidelity, domain-specific T2I generators catch up.

Summary updated

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. The LINE source code is available at https://github.com/CredibleAI/LINE
BibTeX
@inproceedings{zaigrajew2026line,
  author = {Vladimir Zaigrajew and Michał Piechota and Gaspar Sekula and Paweł Gelar and Przemyslaw Biecek},
  title = {{LINE: LLM-based Iterative Neuron Explanations for Vision Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Cyqy5Yh0Ho},
}
Figure