递归诱导的内隐N元语法
Implicit N-grams Induced by Recurrence
摘要:
虽然基于自我注意力的模型,如Transformers,在自然语言处理(NLP)任务上取得了显着的成功,但最近的研究表明,它们在建模顺序转换方面存在局限性(Hahn,2020),这可能会促使重新审视递归神经网络(RNN),这些网络在处理顺序数据方面表现出令人印象深刻的结果。尽管之前有许多解释RNN的尝试,但它们的内部机制尚未完全理解,关于它们如何准确捕获序列特征的问题在很大程度上仍然不清楚。在这项工作中,我们提出了一项研究,表明实际上存在一些可解释的组件,驻留在隐藏的状态,这让人想起经典的n-gram功能。我们在下游的情感分析任务中评估了从训练的RNN中提取的可解释特征,发现它们可以用来模拟有趣的语言现象,如否定和强化。此外,我们研究了单独使用这些n-gram组件作为情感分析和语言建模等任务的编码器的有效性,揭示了它们可能在促进RNN的整体性能方面发挥重要作用。我们希望我们的发现可以为RNN架构增加可解释性,并为提出新的序列数据架构提供灵感。
英文摘要:
Although self-attention based models such as Transformers have achieved remarkable successes on natural language processing (NLP) tasks, recent studies reveal that they have limitations on modeling sequential transformations (Hahn, 2020), which may prompt re-examinations of recurrent neural networks (RNNs) that demonstrated impressive results on handling sequential data. Despite many prior attempts to interpret RNNs, their internal mechanisms have not been fully understood, and the question on how exactly they capture sequential features remains largely unclear. In this work, we present a study that shows there actually exist some explainable components that reside within the hidden states, which are reminiscent of the classical n-grams features. We evaluated such extracted explainable features from trained RNNs on downstream sentiment analysis tasks and found they could be used to model interesting linguistic phenomena such as negation and intensification. Furthermore, we examined the efficacy of using such n-gram components alone as encoders on tasks such as sentiment analysis and language modeling, revealing they could be playing important roles in contributing to the overall performance of RNNs. We hope our findings could add interpretability to RNN architectures, and also provide inspirations for proposing new architectures for sequential data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。