Abstract
Recent advances have greatly increased the capabilities of large language models (LLMs), but our understanding of the models and their safety has not progressed as fast. In this paper we aim to understand LLMs deeper by studying their individual neurons. We build upon previous work showing large language models such as GPT-4 can be useful in explaining what each neuron in a language model does. Specifically, we analyze the effect of the prompt used to generate explanations and show that reformatting the explanation prompt in a more natural way can significantly improve neuron explanation quality and greatly reduce computational cost. We demonstrate the effects of our new prompts in three different ways, incorporating both automated and human evaluations.
Introduction
As Large Language Models (LLMs) are increasingly deployed in safety-critical domains, the "black box" nature of these systems presents a significant liability. Mechanistic interpretability seeks to address this by reverse-engineering models to understand the functions of individual neurons. A landmark study by OpenAI demonstrated that GPT-4 could be used to automatically generate and score explanations for neurons in GPT-2. However, the original methodology relied on a dense, "unnatural" prompt format that interspersed every text token with its numerical activation value. This approach is not only computationally expensive but also difficult for the explainer model to process effectively. This paper investigates how prompt tuning—specifically simplifying and naturalizing the prompt format—can improve both the quality and cost-effectiveness of automated neuron explanations.
Prompting Strategies
To overcome the limitations of the original tab-separated activation format, we propose four alternative prompting strategies designed to leverage the natural language processing strengths of LLMs:
- Summary: Presents the original text excerpt followed by a concise list of the most highly activating tokens (top 10%).
- Highlight: Embeds activation information directly into the text by wrapping highly activating tokens in square brackets (e.g.,
the [apple] fell). - Highlight Summary (HS): A hybrid approach combining bracketed text with a summary list of top tokens.
- Activation Value + Highlight Summary (AVHS): Similar to HS, but includes numerical activation values specifically for the highlighted tokens.
These strategies aim to reduce "noise" by omitting activation values for non-firing tokens (zeros), allowing the explainer model to focus on relevant context.
Evaluation and Results
We evaluated these strategies using GPT-2 XL (307,200 neurons) across three primary metrics: simulation scoring (predicting neuron reactions to new text), AdaCS (similarity to "gold standard" explanations), and human evaluation.
Our results indicate that "less is more." The proposed prompts achieved a significant reduction in token count, leading to efficiency gains of 1.72x to 2.64x compared to the original OpenAI method.
The Summary prompt emerged as the most effective overall, consistently ranking at the top of both automated and human metrics. In human trials using GPT-3.5 as the explainer, the Summary prompt received an average rating of 4.31/5, a substantial improvement over the 3.49/5 achieved by the original prompt. Furthermore, on "Neuron Puzzles" with known ground-truth functions, the new prompts produced explanations that were significantly more accurate.
Discussion and Conclusion
The success of these simplified prompts highlights the "naturalness advantage": because LLMs are trained on human language rather than structured data tables, formatting neuron data as natural text allows the explainer model to better grasp contextual nuances. This is particularly beneficial for smaller, cheaper models like GPT-3.5, which saw massive performance gains from prompt tuning, suggesting a path toward more scalable interpretability.
While this work significantly improves explanation quality and cost, challenges such as polysemanticity—where a single neuron responds to multiple unrelated concepts—remain. Future research will focus on scaling these techniques to even larger models and exploring automated iterative refinement to further enhance explanation accuracy.
Summary updated