Neuron Empirical Gradient: Discovering and Quantifying Neurons Global Linear Controllability

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhao, Xin, Jiang, Zehui, Yoshinaga, Naoki
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908388782243840
author Zhao, Xin
Jiang, Zehui
Yoshinaga, Naoki
author_facet Zhao, Xin
Jiang, Zehui
Yoshinaga, Naoki
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_18053
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Neuron Empirical Gradient: Discovering and Quantifying Neurons Global Linear Controllability
Zhao, Xin
Jiang, Zehui
Yoshinaga, Naoki
Computation and Language
Artificial Intelligence
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.
title Neuron Empirical Gradient: Discovering and Quantifying Neurons Global Linear Controllability
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2412.18053