Skip to main content
QUICK REVIEW

[Paper Review] Learning Document Embeddings by Predicting N-grams for Sentiment Classification of Long Movie Reviews

Bofang Li, Tao Liu|arXiv (Cornell University)|Dec 27, 2015
Topic ModelingComputer Science16 references12 citations
TL;DR

This paper proposes DV-ngram, a document embedding model that enhances sentiment classification for long movie reviews by training document vectors to predict both words and n-grams, preserving semantic meaning and word order. The model outperforms prior deep learning and bag-of-ngram methods, achieving state-of-the-art accuracy of 92.91% when ensembled with NBSVM and RNN-LM on the IMDB dataset.

ABSTRACT

Despite the loss of semantic information, bag-of-ngram based methods still achieve state-of-the-art results for tasks such as sentiment classification of long movie reviews. Many document embeddings methods have been proposed to capture semantics, but they still can't outperform bag-of-ngram based methods on this task. In this paper, we modify the architecture of the recently proposed Paragraph Vector, allowing it to learn document vectors by predicting not only words, but n-gram features as well. Our model is able to capture both semantics and word order in documents while keeping the expressive power of learned vectors. Experimental results on IMDB movie review dataset shows that our model outperforms previous deep learning models and bag-of-ngram based models due to the above advantages. More robust results are also obtained when our model is combined with other models. The source code of our model will be also published together with this paper.

Motivation & Objective

  • To address the limitation of existing document embedding models in capturing semantics and word order for sentiment classification of long reviews.
  • To improve upon Paragraph Vector by isolating document vector learning from word vector prediction, enhancing expressive power.
  • To integrate n-gram features into document vector learning to preserve sequential information while maintaining semantic representation.
  • To achieve state-of-the-art performance on the IMDB movie review sentiment classification benchmark.
  • To demonstrate the robustness and generalization of the model through feature combination and ensemble learning.

Proposed method

  • The model modifies Paragraph Vector by removing joint word vector learning and training document vectors to predict both individual words and n-gram features.
  • It uses a simplified architecture where document vectors are learned solely through predicting their own content, ensuring full expressive capacity.
  • N-gram features are incorporated as additional targets during training, allowing the model to capture local sequential patterns.
  • The model is trained using a predictive objective similar to CBOW, but with document vectors as the primary output.
  • Unlabeled data is used to pre-train the model, improving generalization before fine-tuning on labeled data.
  • Model performance is enhanced through feature combination with NB-BO-ngram vectors and ensemble learning with RNN-LM and NBSVM.

Experimental results

Research questions

  • RQ1Can a document embedding model that predicts both words and n-grams outperform standard Paragraph Vector in sentiment classification of long reviews?
  • RQ2Does isolating document vector learning from word vector prediction improve the expressive power of document representations?
  • RQ3Can n-gram prediction help preserve word order and sequential context in long document embeddings?
  • RQ4How does the proposed model compare to state-of-the-art bag-of-ngram and deep learning models on the IMDB sentiment classification benchmark?
  • RQ5Can the model’s performance be further improved through integration with other models or unlabeled data?

Key findings

  • The DV-ngram model achieves a single-model test accuracy of 91.75% on the IMDB dataset, surpassing previous deep learning models and bag-of-ngram baselines.
  • When combined with NB-BO-trigram features, the model reaches 92.74% accuracy, outperforming the best reported feature combination model (seq2-CNN at 92.33%).
  • Using unlabeled data during pre-training, the model achieves 92.14% accuracy alone, demonstrating robustness and generalization.
  • In ensemble settings, combining DV-ngram with RNN-LM and NBSVM yields a new state-of-the-art result of 93.05% accuracy, exceeding the previous best ensemble of 92.89%.
  • The model outperforms the original Paragraph Vector (88.73%) and the simplified PV variant (0.87% improvement), validating the effectiveness of n-gram prediction.
  • The model’s performance is consistently strong even without labeled data in pre-training, indicating strong inductive bias for sentiment classification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.