Weakening Neurons: An Input-Output Functionality in Transformers
Weakening Neurons: An Input-Output Functionality in Transformers with Outsize Influence
This paper provides a novel analysis method for understanding the internal workings of large language models, which is valuable for researchers and developers working on AI systems.
Researchers analyzed GLU-based neurons in large language models and identified 'weakening neurons' that have a strong negative cosine similarity between their input and output weight vectors. These neurons are found mostly in late layers, activate frequently, and have a large influence on model behavior, especially when gate values are negative.
Weakening Neurons: An Input-Output Functionality in Transformers with Outsize Influence
We analyze the learned input-output behavior of GLU-based neurons in large language models (LLMs). We propose a simple analysis method: For each neuron, we compute the cosine similarities between its input (reading) and output (writing) weight vectors. In this scheme, a strong negative cosine similarity indicates the neuron weakens the direction it detects in the residual stream, so we call this a weakening neuron. This allows us to gain a number of novel insights. First, we show that nine different LLMs have similar patterns: weakening neurons appear mostly in late layers whereas their counterparts, (conditional) strengthening neurons, are frequent in early-middle layers. Second, we find that weakening neurons display surprising behavior: even though there are few, they activate often and have a large influence on model behavior. Third, weakening neurons have a strong effect on model output when gate values are negative -- which is surprising since negative gate values are not expected to encode functionality.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include GLU, large language models, neurons.
Source attribution: curated from arXiv cs.LG (@Sebastian Gerstner, Hilal AlQuabeh, Kentaro Inui, Hinrich Schütze).