mlsanityData to 14 Oct 2026

The Document Vectors Using Cosine Similarity Revisited

arXiv 2205.13357 ↗First posted 26 May 2022cs.CL cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

The current state-of-the-art test accuracy (97.42%) on the IMDB movie reviews dataset was reported by citetthongtan-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.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 8 of its 12 references that are in the map. First posted on arXiv 26 May 2022.

Builds on

8 of 12 references.

References · 8

  1. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  2. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  3. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  4. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
  5. 2014Distributed Representations of Sentences and Documentscited by 678
  6. 2014word2vec Explained: deriving Mikolov et al.'s negative-sampling word-embedding methodcited by 112
  7. 2014Ensemble of Generative and Discriminative Techniques for Sentiment Analysis of Movie Reviewscited by 5
  8. 2015Learning Document Embeddings by Predicting N-grams for Sentiment Classification of Long Movie Reviewscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 2; 2023: 0; 2024: 0; 2025: 2; 2026: 1.

5 papers.