InverseScope: Scalable Activation Inversion for Interpreting Large Language Models

Yifan Luo, Zhennan Zhou, Bin Dong · DOI

Introduction

Mechanistic interpretability seeks to decode the internal computations of Large Language Models (LLMs). Traditional approaches, such as linear probing or Sparse Autoencoders (SAEs), often rely on the assumption that features are represented as linear directions or sparse combinations in high-dimensional space. However, if these structural assumptions are incorrect, the resulting interpretations may be misleading.

Activation inversion offers an alternative by identifying the set of inputs that trigger a specific internal activation. By observing commonalities among these inputs—for instance, if all inputs triggering a specific neuron mention "medicine"—researchers can infer the underlying feature. Historically, activation inversion has faced a "sampling bottleneck," where the probability of a random input producing a specific activation is extremely low, making the process computationally expensive and difficult to scale.

Methodology

InverseScope addresses these challenges by reframing activation inversion as a conditional generation task. Instead of stochastic sampling, the framework employs a decoder-only Transformer trained to generate text conditioned on a target activation.

InverseScope architecture featuring site-specific encoding and a conditional generator.

The architecture utilizes Control Layers to inject target activations into the generator's hidden states. To ensure scalability across different layers and heads without retraining the entire generator, InverseScope uses Site-Specific Projections. These small linear layers map activations from various parts of the LLM into a unified latent space. Furthermore, the training process incorporates Activation Perturbation (injecting noise) to prevent the model from simply memorizing specific input-output pairs, thereby encouraging the learning of broader semantic neighborhoods.

To move beyond qualitative "vibes-based" analysis, the authors introduce the Feature Consistency Rate (FCR). This metric quantifies the reliability of a hypothesized feature by measuring how consistently it appears in the distribution of generated inputs for a given activation.

Experimental Results and Insights

InverseScope was evaluated on benchmarks including Indirect Object Identification (IOI), RAVEL (attribute disentanglement), and Synthetic In-Context Learning (ICL) across models like GPT-2, Gemma-2-2B, and LLaMA-2-7B.

Feature Consistency Rate (FCR) heatmap and qualitative samples generated by InverseScope.

Key findings include:

  • Scalability: InverseScope successfully scales to LLaMA-2-7B, a significant advancement over previous inversion methods typically limited to much smaller models.
  • Sampling Efficiency: The framework reduced the average "refusal rate" (failure to generate matching inputs) from 10.2% to 3.5% compared to state-of-the-art baselines. In difficult cases, the refusal rate dropped from 60.5% to 31.7%.
  • Task Vector Masking: The method revealed that "task vectors" (e.g., for translation) emerge in middle layers. In early layers, the task is ambiguous; in later layers, the specific query feature emerges and "masks" the task vector as the model prepares the final output.
  • Beyond Linearity: InverseScope outperformed SAEs on the RAVEL attribute task, suggesting it captures non-linear information that traditional sparse methods might overlook.

Conclusion and Limitations

While InverseScope represents a major step forward, limitations remain. The method currently struggles with long sequences (beyond tens of tokens) due to the exponential complexity of the input distribution. Additionally, while FCR automates evaluation, the initial generation of hypotheses still requires human oversight or auxiliary LLM assistance. Future work will focus on improving computational efficiency and extending the method to longer contexts.

Summary updated

BibTeX
@misc{luo2025inversescope,
  author = {Yifan Luo and Zhennan Zhou and Bin Dong},
  title = {{InverseScope: Scalable Activation Inversion for Interpreting Large Language Models}},
  year = {2025},
  eprint = {2506.07406},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07406},
}
Figure