arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.03777cs.CLcs.IRcs.LG
收藏

文本分类中的词袋、图和序列:质疑文本图的必要性和宽MLP的惊人优势

Bag-of-Words vs. Graph vs. Sequence in Text Classification: Questioning the Necessity of Text-Graphs and the Surprising Strength of a Wide MLP

University of Kiel(基尔大学);MPI for Psycholinguistics(马克斯·普朗克心理语言学研究所);University of Ulm(乌尔姆大学)

Lukas Galke, Ansgar Scherp

摘要:

图神经网络引发了基于图的文本分类方法的复兴,定义了当今的最新技术水平。我们表明,使用Bag-of-Words(BoW)的宽多层感知器(MLP)在归纳文本分类设置中优于最近基于图的模型TextGCN和HeteGCN,并与HyperGAT相当。此外,我们微调了基于序列的BERT和轻量级DistilBERT模型,这两个模型的性能都优于所有最先进的模型。这些结果质疑现代文本分类器中使用的合成图的重要性。在效率方面,DistilBERT仍然是我们基于BoW的宽MLP的两倍,而基于图的模型(如TextGCN)需要建立一个$\mathcal{O}(N^2)$图,其中$N$是词汇表加上语料库大小。最后,由于Transformers需要计算序列长度为$L$的$\mathcal{O}(L^2)$注意力权重,因此MLP模型在具有长序列的数据集上显示出更高的训练和推理速度。

英文摘要:

Graph neural networks have triggered a resurgence of graph-based text classification methods, defining today's state of the art. We show that a wide multi-layer perceptron (MLP) using a Bag-of-Words (BoW) outperforms the recent graph-based models TextGCN and HeteGCN in an inductive text classification setting and is comparable with HyperGAT. Moreover, we fine-tune a sequence-based BERT and a lightweight DistilBERT model, which both outperform all state-of-the-art models. These results question the importance of synthetic graphs used in modern text classifiers. In terms of efficiency, DistilBERT is still twice as large as our BoW-based wide MLP, while graph-based models like TextGCN require setting up an $\mathcal{O}(N^2)$ graph, where $N$ is the vocabulary plus corpus size. Finally, since Transformers need to compute $\mathcal{O}(L^2)$ attention weights with sequence length $L$, the MLP models show higher training and inference speeds on datasets with long sequences.

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

↑