arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.12141cs.CLcs.LG
收藏

大型语言模型中的神经元级知识归因

Neuron-Level Knowledge Attribution in Large Language Models

The University of Manchester(曼彻斯特大学);National Centre for Text Mining(国家文本挖掘中心)

Zeping Yu, Sophia Ananiadou

AI总结:

本文提出一种静态方法精确定位大型语言模型中的重要神经元,并识别激活价值神经元的查询神经元,在多项指标上优于现有方法,为理解知识存储机制及知识编辑研究奠定基础。

摘要:

识别对最终预测起重要作用的关键神经元对于理解大型语言模型的机制至关重要。由于计算资源的限制,现有的归因技术难以在神经元级别上进行操作。在本文中,我们提出了一种静态方法来精确定位重要神经元。与其他七种方法相比,我们的方法在三项指标上均展现出更优的性能。此外,由于大多数静态方法通常只能识别直接对最终预测做出贡献的“价值神经元”,我们提出了一种方法来识别激活这些“价值神经元”的“查询神经元”。最后,我们应用我们的方法分析了注意力层和前馈网络(FFN)层中的六类知识。我们的方法和分析有助于理解知识存储的机制,并为未来在知识编辑方面的研究奠定了基础。代码可在 https://github.com/zepingyu0512/neuron-attribution 获取。

英文摘要:

Identifying important neurons for final predictions is essential for understanding the mechanisms of large language models. Due to computational constraints, current attribution techniques struggle to operate at neuron level. In this paper, we propose a static method for pinpointing significant neurons. Compared to seven other methods, our approach demonstrates superior performance across three metrics. Additionally, since most static methods typically only identify "value neurons" directly contributing to the final prediction, we propose a method for identifying "query neurons" which activate these "value neurons". Finally, we apply our methods to analyze six types of knowledge across both attention and feed-forward network (FFN) layers. Our method and analysis are helpful for understanding the mechanisms of knowledge storage and set the stage for future research in knowledge editing. The code is available on https://github.com/zepingyu0512/neuron-attribution.

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

↑