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

基于余弦相似度的文档向量再认识

The Document Vectors Using Cosine Similarity Revisited

National Research University Higher School of Economics(国家研究型高等经济学院);Samsung Research Center Russia(三星俄罗斯研究中心);Lomonosov Moscow State University(罗蒙诺索夫莫斯科国立大学)

Zhang Bingyu, Nikolay Arefyev

摘要:

\citet{thongtan-phienthrakul-2019-sentiment}报告了IMDB电影评论数据集上当前最先进的测试准确率(97.42\%),并通过在他们的论文中提出的使用余弦相似性(DV-ngrams-cosine)的文档向量和通过朴素贝叶斯权重缩放的Bag-of-N-gram(BON)向量上训练的逻辑回归分类器实现。虽然大型的基于transformer的预训练模型已经在许多数据集和任务中显示了SOTA结果,但上述模型并没有被它们超越,尽管它更简单,并且只在IMDB数据集上进行了预训练。在本文中,我们描述了这个模型的评估过程中的一个错误,当我们试图分析它在IMDB数据集上的出色性能时发现了这个错误。我们进一步表明,以前报道的97.42%的测试准确度是无效的,应纠正为93.68%。我们还分析了不同数量的训练数据(IMDB数据集的子集)的模型性能,并将其与基于Transformer的RoBERTa模型进行比较。结果表明,虽然RoBERTa对于较大的训练集具有明显的优势,但当标记的训练集非常小时(10或20个文档),DV-ngrams-cosine的性能优于RoBERTa。最后,我们引入了一种基于朴素贝叶斯权重的子采样方案用于DV-ngrams-cosine的训练过程,这使得训练速度更快,质量更好。

英文摘要:

The current state-of-the-art test accuracy (97.42\%) on the IMDB movie reviews dataset was reported by \citet{thongtan-phienthrakul-2019-sentiment} and achieved by the logistic regression classifier trained on the Document Vectors using Cosine Similarity (DV-ngrams-cosine) proposed in their paper and the Bag-of-N-grams (BON) vectors scaled by Naive Bayesian weights. While large pre-trained Transformer-based models have shown SOTA results across many datasets and tasks, the aforementioned model has not been surpassed by them, despite being much simpler and pre-trained on the IMDB dataset only. In this paper, we describe an error in the evaluation procedure of this model, which was found when we were trying to analyze its excellent performance on the IMDB dataset. We further show that the previously reported test accuracy of 97.42\% is invalid and should be corrected to 93.68\%. We also analyze the model performance with different amounts of training data (subsets of the IMDB dataset) and compare it to the Transformer-based RoBERTa model. The results show that while RoBERTa has a clear advantage for larger training sets, the DV-ngrams-cosine performs better than RoBERTa when the labelled training set is very small (10 or 20 documents). Finally, we introduce a sub-sampling scheme based on Naive Bayesian weights for the training process of the DV-ngrams-cosine, which leads to faster training and better quality.

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

↑