沙漠中的一粒沙是什么?分析深度NLP模型中的单个神经元
What Is One Grain of Sand in the Desert? Analyzing Individual Neurons in Deep NLP Models
摘要:
尽管深度神经网络在自然语言处理(NLP)中取得了显著的进步,但其可解释性仍然是一个挑战。以前的工作主要集中在这些模型在表示级别上学习什么。我们进一步分解这种分析,并研究NLP任务中端到端神经模型学习的向量表示中的各个维度(神经元)。我们提出两种方法:语言相关性分析,基于监督方法提取与外部任务最相关的神经元,以及跨模型相关性分析,一种无监督方法提取与外部任务最相关的突出神经元。模型本身。我们通过消融识别出的神经元并重新评估两项任务的网络性能来评估我们的技术的有效性:神经机器翻译(NMT)和神经语言建模(NLM)。我们进一步提出了一个全面的神经元分析,旨在解决以下问题:i)如何本地化或分布的模型中的不同的语言属性?ii)某些神经元是否只具有某些特性而不具有其他特性?iii)信息在NMT和NLM中的分布是否更大或更小?以及iv)通过语言相关方法识别的神经元对整体任务有多重要?我们的代码作为NeuroX工具包的一部分公开提供(Dalvi et al. 2019)。
英文摘要:
Despite the remarkable evolution of deep neural networks in natural language processing (NLP), their interpretability remains a challenge. Previous work largely focused on what these models learn at the representation level. We break this analysis down further and study individual dimensions (neurons) in the vector representation learned by end-to-end neural models in NLP tasks. We propose two methods: Linguistic Correlation Analysis, based on a supervised method to extract the most relevant neurons with respect to an extrinsic task, and Cross-model Correlation Analysis, an unsupervised method to extract salient neurons w.r.t. the model itself. We evaluate the effectiveness of our techniques by ablating the identified neurons and reevaluating the network's performance for two tasks: neural machine translation (NMT) and neural language modeling (NLM). We further present a comprehensive analysis of neurons with the aim to address the following questions: i) how localized or distributed are different linguistic properties in the models? ii) are certain neurons exclusive to some properties and not others? iii) is the information more or less distributed in NMT vs. NLM? and iv) how important are the neurons identified through the linguistic correlation method to the overall task? Our code is publicly available as part of the NeuroX toolkit (Dalvi et al. 2019).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。