TL;DR
Large Language Models (LLMs) contain specific internal neurons dedicated to processing emotions and rhetorical devices, primarily located in their upper layers. By introducing a novel adaptive attenuation masking and steering framework, this paper successfully localizes these neurons, resolves the counterintuitive pitfalls of traditional neuron ablation, and demonstrates that steering rhetoric neurons can significantly amplify emotional expressions and recognition.
What Problem Does This Paper Address?
When we want an LLM to express empathy or use clever metaphors, we typically resort to "external" optimizations like prompt engineering or fine-tuning. While effective at the output level, these methods treat the model as a black box, offering little insight into how emotions and rhetoric are internally represented.
Recent interpretability research has started identifying "emotion neurons," but two major gaps remain:
- The Rhetoric Gap: We know very little about how rhetorical devices (like sarcasm, hyperbole, or metaphors) are represented at the neuron level, or how they interact with emotional representations.
- The Causal Verification Paradox: Traditionally, researchers verify a neuron's function by "masking" it (setting its activation to zero or a mean value) and observing if performance drops. Surprisingly, in emotion and rhetoric tasks, hard ablation often causes performance to increase due to the model's internal redundancy and compensation mechanisms. This makes reliable causal validation incredibly difficult.
This paper introduces a systematic framework to recognize, reliably mask, and steer both emotion and rhetoric neurons inside LLMs.
Methods
The authors use Llama-3.1-8B-Instruct (and 70B) as their primary testbeds, focusing on the Feed-Forward Network (FFN) layers. Their framework consists of three core components:
- Neuron Recognition: To find neurons selective to 6 emotions and 4 rhetorical devices, they track activation frequencies across tokens, normalize them into probabilities, and apply an entropy-based filter. The top 1% of neurons with the lowest entropy are selected as target neurons.
- Adaptive Masking: To fix the causal verification paradox, the authors reject hard zeroing. Instead, they propose attenuation masking, which dynamically scales down a neuron's activation based on its specificity. Combined with a feedback loop on a validation set, this precisely weakens the target capacity without triggering the model's chaotic compensation pathways.
- Neuron Steering: By extracting the activation patterns of these core neurons into a functional vector, they inject these signals into the FFN layers when processing non-target sentences, effectively forcing the model to shift its prediction toward the target emotion or rhetorical style.
Datasets
The framework was evaluated across five primary datasets:
- DailyDialogue (Emotion classification)
- TroFi (Metaphor detection)
- HYPO (Hyperbole detection)
- ColBERT (Humor detection)
- IAC-v2 (Sarcasm detection)
To ensure robustness, they also evaluated out-of-distribution performance on five cross-datasets: IEMOCAP, LCC, HYPO-L, FunLines, and MUStARD.
Key Insights and Ideas
- The Layer-Wise Shift with Scale: In Llama-3.1-8B, emotion and rhetoric neurons are heavily clustered in the top layers (layers 25–32), showing that the model relies on high-level semantic integration. However, in Llama-3.1-70B, emotion neurons exhibit a dual-end concentration—appearing in both the very bottom and top layers. Larger models seem to capture emotional signals much earlier in the network.
- Why Traditional Masking Fails: Hard-ablating a core neuron (setting it to zero) acts like a shock to the network, causing alternative neural pathways to activate and overcompensate, which weirdly improves task accuracy.
- Rhetoric as an Emotional Amplifier: Rhetoric neurons and emotion neurons share a synergistic relationship. For example, injecting hyperbole neuron activations consistently amplifies the intensity of all emotion categories, while metaphor neurons specifically sharpen the model's perception of fear by grounding it in concrete expressions.
Key Results
- Reliable Causal Validation: Unlike zero-masking and mean-masking (which frequently caused counterintuitive accuracy increases), the proposed adaptive masking successfully caused a steady, predictable drop in accuracy across all datasets (e.g., dropping DailyDialogue emotion accuracy by up to 14.26%), proving that the identified neurons are truly responsible for those traits.
- Enhanced Emotion Recognition: Directly injecting rhetoric neuron activations into emotion tasks outperformed standard external prompt engineering and fine-tuning methods, demonstrating the power of internal feature synergy.
- Successful Prediction Steering: By manipulating the identified neuron sets, the authors successfully steered predictions of non-target inputs toward target categories, significantly increasing the coverage rate of desired emotional and rhetorical classifications.
Limitations and Future Work
While a major step forward for mechanistic interpretability, the authors note a few limitations:
- Scope of Attributes: The study is limited to 6 basic emotions and 4 core rhetorical devices. Future work is needed to see if these findings hold for complex, mixed emotional states or more nuanced rhetorical figures.
- Static Steering Vectors: The current steering mechanism relies on static functional vectors. Developing context-aware, dynamic adjustment strategies would likely make neuron-level steering even more precise and natural.
Summary updated