arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.18053cs.CLcs.AI
收藏

神经元经验梯度:发现并量化神经元的全局线性可控性

Neuron Empirical Gradient: Discovering and Quantifying Neurons Global Linear Controllability

The University of Tokyo(东京大学);Institute of Industrial Science, The University of Tokyo(东京大学工业科学研究所)

Xin Zhao, Zehui Jiang, Naoki Yoshinaga

AI总结:

本文提出神经元经验梯度(NEG)和NeurGrad方法,用于大规模发现并量化预训练语言模型中神经元激活与输出之间的全局线性可控关系,并在知识基准上验证其表示能力。

摘要:

尽管预训练语言模型(PLM)中的前馈神经元能够编码知识,但以往研究只关注一小部分对输出有重大影响的神经元。这使得神经元激活的更广泛作用仍不清楚,限制了知识编辑等领域的进展。我们通过在知识探测数据集上进行神经元干预,揭示了神经元激活与输出之间的全局线性关系。这一线性关系的梯度——我们称之为神经元经验梯度(NEG)——刻画了激活变化如何影响预测。为了高效计算NEG,我们提出了NeurGrad,从而能够对PLM中的神经元行为进行大规模分析。我们还表明,通过技能神经元探测,NEG能够有效捕捉不同提示下的语言技能。在多体裁多项选择知识基准MCEval8k上的实验支持了NEG表示模型知识的能力。进一步分析突出了基于NEG的技能表示的关键特性:高效性、鲁棒性、灵活性和相互依赖性。代码和数据已发布。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑