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

在NLP中可视化和理解神经模型

Visualizing and Understanding Neural Models in NLP

Stanford University(斯坦福大学);Carnegie Mellon University(卡内基梅隆大学)

Jiwei Li, Xinlei Chen, Eduard Hovy, Dan Jurafsky

摘要:

虽然神经网络已经成功地应用于许多自然语言处理任务,但由此产生的基于向量的模型非常难以解释。例如,不清楚它们如何实现{ \em组合性},从单词和短语的意义中构建句子意义。在本文中,我们描述了四种策略,可视化NLP神经模型中的组合性,灵感来自计算机视觉的类似工作。我们首先绘制单位值来可视化否定、强化和让步从句的组合性,让我们看到否定中众所周知的标记不对称。然后,我们介绍了三种简单而直接的方法来可视化一个单元的{ \em显着性},它对最终组成的意义的贡献量:(1)梯度反向传播,(2)从平均单词节点的令牌的方差,(3)LSTM风格的门,测量信息流。我们使用简单的递归网络和LSTM来测试我们的方法。我们的通用方法可能在理解深度网络的组合性和其他语义属性方面具有广泛的应用,并且还揭示了为什么LSTM优于简单的递归网络,

英文摘要:

While neural networks have been successfully applied to many NLP tasks the resulting vector-based models are very difficult to interpret. For example it's not clear how they achieve {\em compositionality}, building sentence meaning from the meanings of words and phrases. In this paper we describe four strategies for visualizing compositionality in neural models for NLP, inspired by similar work in computer vision. We first plot unit values to visualize compositionality of negation, intensification, and concessive clauses, allow us to see well-known markedness asymmetries in negation. We then introduce three simple and straightforward methods for visualizing a unit's {\em salience}, the amount it contributes to the final composed meaning: (1) gradient back-propagation, (2) the variance of a token from the average word node, (3) LSTM-style gates that measure information flow. We test our methods on sentiment using simple recurrent nets and LSTMs. Our general-purpose methods may have wide applications for understanding compositionality and other semantic properties of deep networks , and also shed light on why LSTMs outperform simple recurrent nets,

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

↑