Auxiliary Metrics Help Decoding Skill Neurons in the Wild

Yixiu Zhao, Xiaozhi Wang, Zijun Yao, Lei Hou, Juanzi LiarXiv 2025 · DOI

Large Language Models (LLMs) have demonstrated remarkable capabilities across a wide range of tasks, yet they often function as "black boxes." While we observe their performance, understanding the internal mechanisms—specifically, which neurons are responsible for particular skills—remains a significant challenge. Previous research has identified "skill neurons" for simple classification tasks, but these methods frequently struggle with the complexity of real-world, open-ended language tasks. Researchers from Tsinghua University have proposed a novel, lightweight framework to address this by using auxiliary metrics to decode skill neurons "in the wild."

The Challenge of Open-Ended Tasks

Identifying skill neurons in complex scenarios is difficult for several reasons. First, real-world tasks involve multiple tokens, making it hard to aggregate neuron activations meaningfully. Second, models often rely on "shortcuts"—heuristics that yield correct answers for the wrong reasons. To overcome these hurdles, a method is needed that can automatically identify neurons tied to specific skills and heuristics without extensive manual labeling.

A Three-Stage Framework for Neuron Decoding

The proposed method introduces a systematic approach to pinpointing task-specific neurons within the Feed-Forward Network (FFN) layers of an LLM.

The three-stage framework: Soft Prompt Tuning, Metric Calculation, and Correlation Analysis.

The framework consists of three main stages:

  1. Soft Prompt Tuning: Rather than fine-tuning the entire model, which is computationally expensive and alters the model's weights, the researchers keep the LLM frozen. They train a small set of "soft prompt" vectors that act as a task-specific trigger, activating the model's internal knowledge for a given dataset.
  2. Metric Calculation: For each sample in the dataset, an auxiliary metric ($m$) is defined. This metric can be an explicit label (e.g., the presence of a metaphor) or an internal signal such as the per-sample loss, which reflects the model's confidence or "surprise" regarding the correct answer.
  3. Correlation Analysis: The framework tracks the activation of every neuron in the FFN layers as the model processes the soft prompt. By calculating the Pearson correlation between these activations and the auxiliary metric, the "top-K" neurons most aligned with the specific skill are identified.

Experimental Evaluation

The framework was tested using the Qwen 1.5 (1.8B) model on three diverse benchmarks:

  • Skill-Mix: A dataset designed to evaluate specific linguistic and logical skills, such as spatial reasoning and metaphor creation.
  • HANS (Heuristic Analysis for NLI Systems): Used to detect if models rely on simple word overlap (lexical overlap) rather than true logical inference.
  • BigBench Arithmetic: A collection of math problems used to probe reasoning and identify potential shortcuts.

Key Insights: Sparsity and Shortcuts

The research yielded several critical insights into the internal structure of LLMs. One major finding is the sparsity of skills: out of millions of neurons, only a tiny subset (often fewer than 10) correlates strongly with a specific skill. By focusing on neuron activations on the soft prompt rather than the entire input sequence, the researchers avoided the "manual aggregation" problem. The soft prompt effectively distills the task's requirements into a fixed set of tokens.

Furthermore, the method proved effective at discovering "cheats" or unintended heuristics. In the arithmetic task, the researchers identified neurons that fire specifically when a multiplication problem can be solved by simply looking at the last digit of the numbers (e.g., $...0 \times ...3 = ...0$).

Key Results

The framework successfully isolated neurons for distinct skills. In the Skill-Mix task, the method clearly separated neurons associated with "spatial reasoning" from those linked to "metaphor." As shown in the density plots of activation values, these neurons exhibit distinct peaks depending on the task requirement.

Density plots showing the separation of activation values for neurons associated with Spatial Reasoning vs. Metaphor.

On the HANS dataset, the framework identified neurons specialized for "Lexical Overlap" heuristics. These neurons fired strongly when the premise and hypothesis shared many words, regardless of the actual logical relationship. In the BigBench Arithmetic task, using model loss as a metric led to the discovery of a "shortcut" neuron with an exceptionally high correlation score of 0.93. When this neuron was active, the model was essentially bypassing complex multi-digit math in favor of simpler rules.

Limitations and Future Directions

While powerful, the method currently identifies correlational signatures rather than proving causality. Future work involving "intervention" experiments—such as knocking out identified neurons—is necessary to confirm their causal role in model behavior. Additionally, the success of this approach depends on the availability of a high-quality auxiliary metric for the skill in question. Moving forward, these findings open the door to "steering" model behavior or systematically removing harmful shortcuts and biases by targeting these specific skill neurons.

Summary updated

BibTeX
@misc{zhao2025auxiliary,
  author = {Yixiu Zhao and Xiaozhi Wang and Zijun Yao and Lei Hou and Juanzi Li},
  title = {{Auxiliary Metrics Help Decoding Skill Neurons in the Wild}},
  year = {2025},
  eprint = {2511.21610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.21610},
}
Figure