Neuron Empirical Gradient: Discovering and Quantifying Neurons' Global Linear Controllability

Xin Zhao, Zehui Jiang, Naoki YoshinagaACL 2025

Introduction

Large Language Models (LLMs) are often viewed as "black boxes," where the internal mechanisms of feed-forward (FF) neurons—acting as key-value memories—remain largely qualitative. While researchers can identify "important" neurons, they have lacked the tools to precisely quantify their influence. For instance, if a specific neuron's activation is increased by a set amount, how exactly does that translate to a change in the model's output probability?

This research introduces the Neuron Empirical Gradient (NEG) to bridge this gap, providing a quantitative "map" of neurons as control levers for model output.

Quantifying Neuron Influence: The Discovery of Linearity

The researchers began by conducting systematic Neuron Interventions. By manually shifting the activations of random neurons across various ranges and observing the resulting "output shift" (the change in target token probability), they uncovered a striking property: Global Linearity.

Within a standard activation range (±2), the relationship between a neuron's activation shift and the model's output shift is almost perfectly linear ($r > 0.95$). This slope is defined as the NEG. To make this discovery practical for massive models like Llama-70B, the authors developed NeurGrad, an efficient estimation method. NeurGrad approximates the NEG by combining the standard computational gradient with the sign of the neuron's current activation: $\tilde{G}_E = \text{Computational Gradient} \times \text{sign}(\text{Activation})$.

Overview of the Neuron Empirical Gradient (NEG) framework, illustrating the pipeline from neuron intervention to skill probing.

Key Insights into Model Behavior

The study reveals several fundamental characteristics of how LLMs process information:

  • Linearity as a Universal Trait: This predictable linear influence isn't limited to a few specialized neurons; it is a global property observed across diverse architectures, including BERT, Llama 2/3, and Qwen.
  • Gradients as Superior Indicators: For knowledge-intensive tasks (like factual recall), the NEG—representing how a neuron responds to change—is a significantly more accurate indicator of a "skill neuron" than its static activation value.
  • Collaborative Intelligence: Neurons do not act in isolation. The researchers found that language skills are emergent properties of neuron groups. Modeling these interdependencies using a Random Forest classifier, termed Tree-Probe, significantly outperformed simpler aggregation methods like majority voting.

Benchmarking and Results

To evaluate these findings, the authors introduced MCEval8K, a comprehensive benchmark covering 22 tasks across six genres, including linguistics, factuality, and multilinguality. Each task is balanced to prevent label bias and capped at 8,000 queries.

The results demonstrate both the efficiency and efficacy of the NEG approach:

  • Efficiency: NeurGrad is approximately 120x faster than traditional methods like Integrated Gradients (0.16s vs. 19.3s per prompt on Llama2-7B), enabling the analysis of full-scale models.
  • Probing Accuracy: The NEG-based Tree-Probe consistently achieved higher accuracies across the MCEval8K suite compared to standard token probability baselines, showing high robustness to prompt phrasing.
Radar charts comparing the performance of different probing methods across 22 tasks in zero-shot and few-shot settings.

Conclusion and Future Directions

While currently focused on single-token outputs, this work provides a foundational framework for understanding and controlling LLMs. By identifying the specific "levers" that govern model behavior, future research can move toward more precise knowledge editing and bias mitigation, directly adjusting activations to correct facts or reduce stereotypes without the need for extensive retraining.

Summary updated

BibTeX
@inproceedings{zhao2025neuron,
  author = {Xin Zhao and Zehui Jiang and Naoki Yoshinaga},
  title = {{Neuron Empirical Gradient: Discovering and Quantifying Neurons' Global Linear Controllability}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure