[Paper Review] An Empirical Evaluation of doc2vec with Practical Insights into Document Embedding Generation
This paper provides a rigorous empirical evaluation of doc2vec, demonstrating that the simpler dbow variant outperforms dmpv across multiple tasks. It shows that doc2vec achieves state-of-the-art performance when trained on large external corpora and further improved with pre-trained word embeddings, offering practical hyperparameter recommendations and releasing code and models for reproducibility.
Recently, Le and Mikolov (2014) proposed doc2vec as an extension to word2vec (Mikolov et al., 2013a) to learn document-level embeddings. Despite promising results in the original paper, others have struggled to reproduce those results. This paper presents a rigorous empirical evaluation of doc2vec over two tasks. We compare doc2vec to two baselines and two state-of-the-art document embedding methodologies. We found that doc2vec performs robustly when using models trained on large external corpora, and can be further improved by using pre-trained word embeddings. We also provide recommendations on hyper-parameter settings for general purpose applications, and release source code to induce document embeddings using our trained doc2vec models.
Motivation & Objective
- To resolve conflicting reports on doc2vec's performance and clarify whether dbow or dmpv is superior.
- To investigate whether hyperparameter tuning and pre-trained word embeddings improve doc2vec performance.
- To evaluate doc2vec's effectiveness in comparison to word vector averaging and n-gram baselines.
- To determine if doc2vec can serve as a reliable, off-the-shelf document embedding method like word2vec.
- To provide practical, empirically grounded recommendations for deploying doc2vec in real-world NLP applications.
Proposed method
- The authors evaluate doc2vec on two extrinsic tasks: sentence similarity (STS) and community question-answering (Q-Dup).
- They compare doc2vec (dbow and dmpv) against two baselines: word vector averaging and n-gram models.
- They train doc2vec models using both in-domain data and large external corpora (e.g., Wikipedia, AP News), with and without pre-trained word embeddings.
- For hyperparameter tuning, they optimize window size, vector dimensionality, and negative sampling rate using development sets.
- They use t-SNE visualization to qualitatively analyze how document embeddings align with content vs. function words.
- They release trained models and source code to enable replication and practical deployment.
Experimental results
Research questions
- RQ1How does doc2vec perform relative to word vector averaging and n-gram baselines on document-level tasks?
- RQ2Which variant—dbow or dmpv—is more effective for document embedding generation?
- RQ3Can performance be improved through hyperparameter tuning and the use of pre-trained word embeddings?
- RQ4Does training on large external corpora enhance doc2vec’s generalization and robustness?
- RQ5Can doc2vec be reliably used as an off-the-shelf document embedding method?
Key findings
- The dbow variant of doc2vec consistently outperforms dmpv across all evaluated tasks, including both STS and Q-Dup.
- When trained on large external corpora such as Wikipedia and AP News, doc2vec achieves state-of-the-art performance compared to both baselines and two SOTA document embedding methods.
- Using pre-trained skip-gram word embeddings from Wikipedia or AP News significantly improves doc2vec performance on smaller in-domain datasets, with no degradation observed.
- Hyperparameter tuning reduces the number of training epochs required to reach optimal performance, indicating faster convergence with better initialization.
- t-SNE visualization confirms that dbow learns document embeddings that are biased toward content words and away from function words, unlike simple averaging.
- The study demonstrates that random word embeddings severely degrade doc2vec performance, highlighting the importance of meaningful word vector initialization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.