文本分类RNN中的几何积分
The geometry of integration in text classification RNNs
摘要:
尽管递归神经网络(RNN)在各种任务中得到了广泛的应用,但对RNN如何解决这些任务的统一理解仍然难以捉摸。特别是,目前还不清楚在经过训练的RNN中会出现哪些动态模式,以及这些模式如何依赖于训练数据集或任务。这项工作解决了这些问题的背景下,一个特定的自然语言处理任务:文本分类。使用动力系统分析的工具,我们研究了在一系列自然和合成文本分类任务上训练的递归网络。我们发现这些经过训练的RNN的动力学既可解释又低维。具体来说,跨架构和数据集,RNN在处理文本时为每个类积累证据,使用低维吸引子流形作为底层机制。此外,吸引子流形的维数和几何形状由训练数据集的结构决定;特别是,我们描述了如何使用在训练数据集上计算的简单字数统计来预测这些属性。我们的观察跨越了多个架构和数据集,反映了RNN用于执行文本分类的常见机制。在某种程度上,将证据整合到决策中是一种常见的计算原语,这项工作为使用动态系统技术研究RNN的内部工作奠定了基础。
英文摘要:
Despite the widespread application of recurrent neural networks (RNNs) across a variety of tasks, a unified understanding of how RNNs solve these tasks remains elusive. In particular, it is unclear what dynamical patterns arise in trained RNNs, and how those patterns depend on the training dataset or task. This work addresses these questions in the context of a specific natural language processing task: text classification. Using tools from dynamical systems analysis, we study recurrent networks trained on a battery of both natural and synthetic text classification tasks. We find the dynamics of these trained RNNs to be both interpretable and low-dimensional. Specifically, across architectures and datasets, RNNs accumulate evidence for each class as they process the text, using a low-dimensional attractor manifold as the underlying mechanism. Moreover, the dimensionality and geometry of the attractor manifold are determined by the structure of the training dataset; in particular, we describe how simple word-count statistics computed on the training dataset can be used to predict these properties. Our observations span multiple architectures and datasets, reflecting a common mechanism RNNs employ to perform text classification. To the degree that integration of evidence towards a decision is a common computational primitive, this work lays the foundation for using dynamical systems techniques to study the inner workings of RNNs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。