Neuron Empirical Gradient: Discovering and Quantifying Neurons Global Linear Controllability

Xin Zhao, Zehui Jiang, Naoki Yoshinaga
12/24/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

While feed-forward neurons in pre-trained language models (PLMs) can encode knowledge, past research targeted a small subset of neurons that heavily influence outputs. This leaves the broader role of neuron activations unclear, limiting progress in areas like knowledge editing. We uncover a global linear relationship between neuron activations and outputs using neuron interventions on a knowledge probing dataset. The gradient of this linear relationship, which we call the neuron empirical gradient (NEG), captures how changes in activations affect predictions. To compute NEG efficiently, we propose NeurGrad, enabling large-scale analysis of neuron behavior in PLMs. We also show that NEG effectively captures language skills across diverse prompts through skill neuron probing. Experiments on MCEval8k, a multi-genre multiple-choice knowledge benchmark, support NEG's ability to represent model knowledge. Further analysis highlights the key properties of NEG-based skill representation: efficiency, robustness, flexibility, and interdependency. The code and data are released.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{zhao2024neuron,
  title  = {Neuron Empirical Gradient: Discovering and Quantifying Neurons Global Linear Controllability},
  author = {Xin Zhao and Zehui Jiang and Naoki Yoshinaga},
  year   = {2024},
  eprint = {2412.18053},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.18053v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.18053.svg)](https://codeofpaper.com/paper/2412.18053)

Discussion