arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.12181cs.LGcs.AIcs.CL
收藏

GPT2语言模型中的通用神经元

Universal Neurons in GPT2 Language Models

MIT(麻省理工学院);University of Cambridge(剑桥大学)

Wes Gurnee, Theo Horsley, Zifan Carl Guo, Tara Rezaei Kheirkhah, Qinyi Sun, Will Hathaway, Neel Nanda, Dimitris Bertsimas

AI总结:

本文通过比较五个不同随机种子训练的GPT2模型,发现1-5%的神经元具有跨模型通用性,并揭示其可解释类别及在简单电路中的通用功能。

摘要:

新兴的机制可解释性领域中的一个基本问题是,神经网络学习相同底层机制的程度。换言之,神经机制在不同模型之间是否通用?在本研究中,我们研究了由不同随机初始种子训练的GPT2模型之间单个神经元的通用性,其动机是通用神经元很可能具有可解释性这一假设。具体而言,我们针对五个不同种子之间的每一对神经元,计算了神经元在1亿个token上激活的成对相关性,发现1-5%的神经元是通用的,也就是成对神经元会在相同输入上持续激活。随后我们详细研究了这些通用神经元,发现它们通常具有清晰的解释,并将它们归类为少数几个神经元族。最后,我们通过研究神经元权重中的模式,确立了神经元在简单电路中的若干通用功能角色:使注意力头失活、改变下一token分布的熵,以及预测下一token(不)属于某个特定集合。

英文摘要:

A basic question within the emerging field of mechanistic interpretability is the degree to which neural networks learn the same underlying mechanisms. In other words, are neural mechanisms universal across different models? In this work, we study the universality of individual neurons across GPT2 models trained from different initial random seeds, motivated by the hypothesis that universal neurons are likely to be interpretable. In particular, we compute pairwise correlations of neuron activations over 100 million tokens for every neuron pair across five different seeds and find that 1-5\% of neurons are universal, that is, pairs of neurons which consistently activate on the same inputs. We then study these universal neurons in detail, finding that they usually have clear interpretations and taxonomize them into a small number of neuron families. We conclude by studying patterns in neuron weights to establish several universal functional roles of neurons in simple circuits: deactivating attention heads, changing the entropy of the next token distribution, and predicting the next token to (not) be within a particular set.

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

↑