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

发现深度 NLP 模型中的显著神经元

Discovering Salient Neurons in Deep NLP Models

Qatar Computing Research Institute(卡塔尔计算研究所);Hamad Bin Khalifa University(哈马德·本·哈利法大学);Dalhousie University(达尔豪斯大学)

Nadir Durrani, Fahim Dalvi, Hassan Sajjad

AI总结:

本文提出语言相关性分析方法,用于识别深度 NLP 模型中承载特定语言属性的显著神经元,并通过细粒度分析揭示其层次分布、冗余性、微调迁移规律及跨模型与跨语言差异。

摘要:

尽管已有大量工作致力于理解深度 NLP 模型内部学到的表示及其捕获的知识,但对单个神经元的关注却很少。我们提出一种称为语言相关性分析的技术,用于针对任意外部属性提取模型中的显著神经元,目标是理解此类知识如何在神经元中得到保留。我们进行了细粒度分析以回答以下问题:(i) 我们能否识别网络中捕获特定语言属性的神经元子集?(ii) 神经元在整个网络中的局部化或分布式程度如何?(iii) 信息的保留具有多大冗余性?(iv) 针对下游 NLP 任务微调预训练模型会如何影响已学到的语言知识?(v) 不同架构在学习不同语言属性时有何差异?我们的数据驱动定量分析揭示了有趣的发现:(i) 我们发现小规模神经元子集能够预测不同的语言任务;(ii) 捕获基本词汇信息(如后缀化)的神经元局部化于最底层;(iii) 而学习复杂概念(如句法角色)的神经元主要位于中间层和更高层;(iv) 在迁移学习过程中,显著语言神经元会从更高层迁移到更低层,因为网络将更高层保留用于任务特定信息;(v) 我们发现不同预训练模型在语言信息的内部保留方式上存在有趣差异;(vi) 我们发现多语言 transformer 模型中,概念在不同语言间表现出相似的神经元分布。我们的代码已作为 NeuroX 工具包的一部分公开提供。

英文摘要:

While a lot of work has been done in understanding representations learned within deep NLP models and what knowledge they capture, little attention has been paid towards individual neurons. We present a technique called as Linguistic Correlation Analysis to extract salient neurons in the model, with respect to any extrinsic property - with the goal of understanding how such a knowledge is preserved within neurons. We carry out a fine-grained analysis to answer the following questions: (i) can we identify subsets of neurons in the network that capture specific linguistic properties? (ii) how localized or distributed neurons are across the network? iii) how redundantly is the information preserved? iv) how fine-tuning pre-trained models towards downstream NLP tasks, impacts the learned linguistic knowledge? iv) how do architectures vary in learning different linguistic properties? Our data-driven, quantitative analysis illuminates interesting findings: (i) we found small subsets of neurons that can predict different linguistic tasks, ii) with neurons capturing basic lexical information (such as suffixation) localized in lower most layers, iii) while those learning complex concepts (such as syntactic role) predominantly in middle and higher layers, iii) that salient linguistic neurons are relocated from higher to lower layers during transfer learning, as the network preserve the higher layers for task specific information, iv) we found interesting differences across pre-trained models, with respect to how linguistic information is preserved within, and v) we found that concept exhibit similar neuron distribution across different languages in the multilingual transformer models. Our code is publicly available as part of the NeuroX toolkit.

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

↑