arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.07863cs.CLcs.AI
收藏

$k$ -最近邻增强神经网络的文本分类

$k$-Nearest Neighbor Augmented Neural Networks for Text Classification

IBM T.J. Watson Research Center(IBM T.J. Watson 研究中心);University of Rochester(罗切斯特大学)

Zhiguo Wang, Wael Hamza, Linfeng Song

摘要:

近年来,提出了许多基于深度学习的文本分类模型。从统计学的角度来看,这种模型很好地拟合了训练集。然而,它缺乏利用训练集中单个实例的实例级信息的能力。在这项工作中,我们建议通过允许它们利用来自输入文本的$k$ -最近邻(kNN)的信息来增强神经网络模型。我们的模型采用了一个神经网络,将文本编码成文本嵌入。此外,我们还利用$k$ -输入文本的最近邻作为外部存储器,并利用它来捕获训练集的实例级信息。最后的预测是根据来自神经网络编码器和kNN存储器的特征进行的。在几个标准基准数据集上的实验结果表明,我们的模型在所有数据集上的性能都优于基线模型,甚至在几个数据集上击败了一个非常深的神经网络模型(有29层)。我们的模型在训练实例稀缺以及训练集严重不平衡时也表现出优异的性能。我们的模型还很好地利用了半监督训练和迁移学习等技术。

英文摘要:

In recent years, many deep-learning based models are proposed for text classification. This kind of models well fits the training set from the statistical point of view. However, it lacks the capacity of utilizing instance-level information from individual instances in the training set. In this work, we propose to enhance neural network models by allowing them to leverage information from $k$-nearest neighbor (kNN) of the input text. Our model employs a neural network that encodes texts into text embeddings. Moreover, we also utilize $k$-nearest neighbor of the input text as an external memory, and utilize it to capture instance-level information from the training set. The final prediction is made based on features from both the neural network encoder and the kNN memory. Experimental results on several standard benchmark datasets show that our model outperforms the baseline model on all the datasets, and it even beats a very deep neural network model (with 29 layers) in several datasets. Our model also shows superior performance when training instances are scarce, and when the training set is severely unbalanced. Our model also leverages techniques such as semi-supervised training and transfer learning quite well.

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

↑