Auxiliary Metrics Help Decoding Skill Neurons in the Wild
Yixiu Zhao, Xiaozhi Wang, Zijun Yao, Lei Hou, Juanzi Li
TL;DR
The paper tackles interpretability in LLMs by identifying skill-specific neurons through correlations between FFN activations on a trained soft prompt and auxiliary metrics. It extends prior skill-neuron work to multi-skill settings and uses soft-prompt tuning with frozen models to avoid altering core weights, enabling broad applicability without manual token aggregation. The method is validated on open-ended generation (Skill-Mix), natural language inference (HANS), and arithmetic task discovery (BigBench), revealing sparse neurons that align with known skills and uncovering a previously unknown arithmetic shortcut. These findings advance mechanistic understanding of LLMs and point to routes for causal intervention and safer deployment.
Abstract
Large language models (LLMs) exhibit remarkable capabilities across a wide range of tasks, yet their internal mechanisms remain largely opaque. In this paper, we introduce a simple, lightweight, and broadly applicable method with a focus on isolating neurons that encode specific skills. Building upon prior work that identified "skill neurons" via soft prompt training on classification tasks, our approach extends the analysis to complex scenarios involving multiple skills. We correlate neuron activations with auxiliary metrics -- such as external labels and the model's own confidence score -- thereby uncovering interpretable and task-specific behaviors without the need for manual token aggregation. We empirically validate our method on tasks spanning open-ended text generation and natural language inference, demonstrating its ability to detect neurons that not only drive known skills but also reveal previously unidentified shortcuts in arithmetic reasoning on BigBench.
