利用特征文本化研究 BERT 神经元中的词汇编码
Investigating the Encoding of Words in BERT's Neurons using Feature Textualization
AI总结:
本研究提出特征文本化技术,将激活最大化适应于NLP,应用于BERT以探究单个神经元的知识可解释性,发现神经元不表示明确词汇符号,并量化编码词汇所需神经元数量。
摘要:
预训练语言模型(PLMs)构成了大多数最先进自然语言处理技术的基础。然而,它们本质上是黑盒:人类对模型中不同部分(尤其是单个神经元)编码了哪些知识没有清晰的理解。在计算机视觉领域情况有所不同,其中特征可视化提供了一种针对视觉模型神经元的分解式可解释性技术。激活最大化被用来合成单个神经元所编码信息的固有可解释的视觉表示。我们的工作受此启发,但基于首次大规模尝试将激活最大化应用于自然语言处理(特别是大型预训练语言模型)的实践,对单个神经元的可解释性提出了警示。我们提出了特征文本化,一种在预训练语言模型词嵌入空间中生成神经元稠密表示的技术。我们将特征文本化应用于 BERT 模型(Devlin 等人,2019),以研究单个神经元中编码的知识是否可以被解释和符号化。我们发现,生成的表示能够提供关于单个神经元中编码知识的见解,但单个神经元并不代表诸如词汇之类的语言中明确的符号单元。此外,我们利用特征文本化研究了在 BERT 中编码词汇需要多少个神经元。
英文摘要:
Pretrained language models (PLMs) form the basis of most state-of-the-art NLP technologies. Nevertheless, they are essentially black boxes: Humans do not have a clear understanding of what knowledge is encoded in different parts of the models, especially in individual neurons. The situation is different in computer vision, where feature visualization provides a decompositional interpretability technique for neurons of vision models. Activation maximization is used to synthesize inherently interpretable visual representations of the information encoded in individual neurons. Our work is inspired by this but presents a cautionary tale on the interpretability of single neurons, based on the first large-scale attempt to adapt activation maximization to NLP, and, more specifically, large PLMs. We propose feature textualization, a technique to produce dense representations of neurons in the PLM word embedding space. We apply feature textualization to the BERT model (Devlin et al., 2019) to investigate whether the knowledge encoded in individual neurons can be interpreted and symbolized. We find that the produced representations can provide insights about the knowledge encoded in individual neurons, but that individual neurons do not represent clearcut symbolic units of language such as words. Additionally, we use feature textualization to investigate how many neurons are needed to encode words in BERT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。