The Document Vectors Using Cosine Similarity Revisited
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
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2014Distributed Representations of Sentences and Documentscited by 678
- 2014word2vec Explained: deriving Mikolov et al.'s negative-sampling word-embedding methodcited by 112
- 2014Ensemble of Generative and Discriminative Techniques for Sentiment Analysis of Movie Reviewscited by 5
- 2015Learning Document Embeddings by Predicting N-grams for Sentiment Classification of Long Movie Reviewscited by 2
Built on by
Citing papers per year: 2022: 2; 2023: 0; 2024: 0; 2025: 2; 2026: 1.
5 papers.
- 2022Understanding Aesthetics with Language: A Photo Critique Dataset for Aesthetic Assessmentcited by 15
- 2022This is the way: designing and compiling LEPISZCZE, a comprehensive NLP benchmark for Polishcited by 13
- 2025Fine-tuning BERT with Bidirectional LSTM for Fine-grained Movie Reviews Sentiment Analysiscited by 1
- 2025QDER: Query-Specific Document and Entity Representations for Multi-Vector Document Re-Rankingcited by 1
- 2026SSDAU: Structured Semantic Data Augmentation for Joint Entity and Relation Extractioncited by 0
- 2026SSDAU: Structured Semantic Data Augmentation for Joint Entity and Relation Extraction22 May 2026
- 2025QDER: Query-Specific Document and Entity Representations for Multi-Vector Document Re-Ranking13 Oct 2025
- 2025Fine-tuning BERT with Bidirectional LSTM for Fine-grained Movie Reviews Sentiment Analysis28 Feb 2025
- 2022This is the way: designing and compiling LEPISZCZE, a comprehensive NLP benchmark for Polish23 Nov 2022
- 2022Understanding Aesthetics with Language: A Photo Critique Dataset for Aesthetic Assessment17 Jun 2022