Natural Language Processing · TEE · papers

Q1c · Word2Vec versus Doc2Vec

2023-01-30 · re-exam · recovered AI paper

Previous examination · complete worked answers

Question. Differentiate Word2Vec and Doc2Vec. [5 marks]

Answer

AspectWord2VecDoc2Vec
RepresentationOne learned vector per word typeLearns document/paragraph vectors as well as, in variants, word vectors
TrainingCBOW predicts centre from context; Skip-gram predicts context from centrePV-DM combines document/context to predict words; PV-DBOW predicts sampled words from document ID
UnitWord/token typeSentence, paragraph or document
New textRetrieve known word vectors; combine via a separate pooling choiceInfer a new document vector while learned model weights stay fixed
UseWord similarity, featuresDocument similarity, retrieval or classification

Averaging Word2Vec word vectors is a possible document representation, but it is not the Doc2Vec training algorithm. This older paper names Doc2Vec explicitly; the current course names word and sentence embeddings but does not explicitly list Doc2Vec.