Skip to main content
QUICK REVIEW

[Paper Review] Document Embedding with Paragraph Vectors

Andrew M. Dai, Christopher Olah|arXiv (Cornell University)|Jul 29, 2015
Topic ModelingComputer Science5 references266 citations
TL;DR

This paper proposes Paragraph Vectors, a neural network-based method for learning dense distributed representations of entire documents, by combining document-level memory vectors with word embeddings. It demonstrates superior performance over LDA and bag-of-words models in capturing semantic similarity across Wikipedia and arXiv articles, with optimal performance at 100 dimensions and the ability to perform meaningful vector arithmetic akin to word2vec.

ABSTRACT

Paragraph Vectors has been recently proposed as an unsupervised method for learning distributed representations for pieces of texts. In their work, the authors showed that the method can learn an embedding of movie review texts which can be leveraged for sentiment analysis. That proof of concept, while encouraging, was rather narrow. Here we consider tasks other than sentiment analysis, provide a more thorough comparison of Paragraph Vectors to other document modelling algorithms such as Latent Dirichlet Allocation, and evaluate performance of the method as we vary the dimensionality of the learned representation. We benchmarked the models on two document similarity data sets, one from Wikipedia, one from arXiv. We observe that the Paragraph Vector method performs significantly better than other methods, and propose a simple improvement to enhance embedding quality. Somewhat surprisingly, we also show that much like word embeddings, vector operations on Paragraph Vectors can perform useful semantic results.

Motivation & Objective

  • To evaluate Paragraph Vectors on document similarity tasks beyond sentiment analysis, such as Wikipedia and arXiv article retrieval.
  • To compare Paragraph Vectors with established methods like LDA and bag-of-words in terms of performance and robustness to hyperparameter changes.
  • To investigate whether vector operations on paragraph vectors yield semantically meaningful results, similar to word2vec.
  • To explore the impact of jointly training word embeddings on paragraph vector quality.

Proposed method

  • Paragraph Vectors use a distributed bag-of-words model where a document-specific memory vector is concatenated with local word vectors to predict the next word in a sequence.
  • The model jointly trains document vectors and word embeddings via stochastic gradient descent, optimizing for next-word prediction.
  • Inference uses only the document vector, discarding word vectors and classifier parameters after training.
  • The method employs hierarchical softmax with a Huffman tree for efficient training and cosine similarity for measuring document similarity.
  • The authors include a variant that jointly trains word embeddings with paragraph vectors, improving final representation quality.
  • Experiments use t-SNE visualization and triplet-based evaluation to measure semantic similarity on Wikipedia and arXiv corpora.

Experimental results

Research questions

  • RQ1How does Paragraph Vector performance compare to LDA and bag-of-words models in capturing semantic similarity between long documents?
  • RQ2Does the performance of Paragraph Vectors vary significantly with embedding dimensionality, and is there an optimal size?
  • RQ3Can vector arithmetic operations on paragraph vectors produce semantically meaningful results, such as finding equivalent articles in different languages?
  • RQ4Does jointly training word embeddings improve the quality of paragraph vectors?
  • RQ5How sensitive are Paragraph Vectors and LDA to changes in hyperparameters like embedding size or number of topics?

Key findings

  • Paragraph Vectors achieved 85.0% accuracy on the arXiv triplet dataset at 100 dimensions, matching the best-performing LDA configuration.
  • Paragraph Vectors outperformed LDA in semantic similarity tasks on Wikipedia articles across all tested embedding sizes.
  • The method showed consistent performance across embedding dimensions, with a peak at 100 dimensions, and was less sensitive to size changes than LDA was to topic count.
  • Vector operations on paragraph vectors produced meaningful results, such as identifying the Japanese equivalent of 'Lady Gaga' or related papers like 'Distributed Representations of Sentences and Documents'.
  • Jointly training word embeddings with paragraph vectors led to a measurable improvement in embedding quality.
  • The method successfully retrieved relevant articles on both Wikipedia and arXiv, demonstrating utility in local and non-local corpus navigation.

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.