Paragraph Vectors

A document may have useful characteristics beyond an average of its word vectors. Paragraph vectors learn a document representation by asking it to help predict the words in that document.

14 sections · 15 questions · 3 coding challenges

1 / 14

Could a Whole Document Have a Learned Representation?

BOTIE

Individual word vectors do not automatically describe a whole review or article. Averaging them is a useful baseline, but we may want a representation learned specifically to retain information about the surrounding document.

Le and Mikolov introduced Paragraph Vector in 2014. Their methods learned vectors associated with text passages through word-prediction tasks, extending the idea that a useful representation can be learned by asking it to support predictions about the text.

A passage vector supplies information shared across predictions drawn from that passage. In one formulation it helps predict a word alongside local context; in another it predicts sampled words from the passage. A new document requires an inference procedure for its vector, rather than automatically receiving a trained row. The representation reflects the prediction task and does not preserve every sentence or word order exactly.

Sources for this history