Papers › Distributed Representations of Sentences and Documents

Distributed Representations of Sentences and Documents

16 May 2014arXiv:1405.4053archive 2025-07-28

Quoc V. Le, Tomas Mikolov

Many machine learning algorithms require the input to be represented as a fixed-length feature vector. When it comes to texts, one of the most common fixed-length features is bag-of-words. Despite their popularity, bag-of-words features have two major weaknesses: they lose the ordering of the words and they also ignore semantics of the words. For example, "powerful," "strong" and "Paris" are equally distant. In this paper, we propose Paragraph Vector, an unsupervised algorithm that learns fixed-length feature representations from variable-length pieces of texts, such as sentences, paragraphs, and documents. Our algorithm represents each document by a dense vector which is trained to predict words in the document. Its construction gives our algorithm the potential to overcome the weaknesses of bag-of-words models. Empirical results show that Paragraph Vectors outperform bag-of-words models as well as other techniques for text representations. Finally, we achieve new state-of-the-art results on several text classification and sentiment analysis tasks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1405.4053")

Code

Syntology Ran 0 of 4 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run.

By repository: community (archive-listed): 4 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

27 repositories listed; official and paper-mentioned ones first.

Nalydy/doc2vec mentioned on GitHub report
TheCyberian/androidMalwareDetectionWithNLP mentioned on GitHubApache-2.0 report
TheCyberian/windowsMalwareDetectionWithNLP mentioned on GitHubApache-2.0 report
YinpeiDai/NAUM mentioned on GitHubtfMIT report
bombdiggity/paper-bag mentioned on GitHubtf report
dhyeon/ingredient-vectors mentioned on GitHubpytorch report
eske/multivec mentioned on GitHubApache-2.0 report
g-k-l/dsi-arxiv-recommender mentioned on GitHub report
hithisisdhara/doc2vec mentioned on GitHubpytorchMIT report
ibrahimsharaf/doc2vec mentioned on GitHubMIT report
inejc/paragraph-vectors mentioned on GitHubpytorchMIT report
jimmy6727/Informd mentioned on GitHubtf report
julian-risch/ICADL2018 mentioned on GitHubtf report
kinimod23/NMT_Project mentioned on GitHub report
kr900910/supreme_court_opinion mentioned on GitHubtf report
kramamur/sentiment-analysis mentioned on GitHub report
rvstraalen/doc2vec-workshop mentioned on GitHub report
slme1109/lyrics-generator mentioned on GitHubtf report
tsandefer/capstone_2 mentioned on GitHubtf report
tsandefer/dsi_capstone_2 mentioned on GitHubtf report
vanboefer/nn_doc2vec_exercise mentioned on GitHubLGPL-3.0 report
wiflore/IBM_Articles_Recomender mentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

4 samples harvested; 0 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4unverified

Licence: 0 of the 4 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

extract_name_attribute_from_xml TheCyberian/windowsMalwareDetectionWithNLP/xml2strings.py community (archive-listed) unverified Apache-2.0 (permissive) · 5c8561d39b5f3185 · report
list_dir TheCyberian/androidMalwareDetectionWithNLP/doc2vec_training_plus_binary_classification.py community (archive-listed) unverified Apache-2.0 (permissive) · ffa4cd04f2875291 · report
logistic_predictor_from_sklearn TheCyberian/androidMalwareDetectionWithNLP/doc2vec_training_plus_binary_classification.py community (archive-listed) unverified Apache-2.0 (permissive) · e53b2b396184b0c0 · report
retrieve_vectors TheCyberian/androidMalwareDetectionWithNLP/utilities/vectorize_csv.py community (archive-listed) unverified Apache-2.0 (permissive) · 4aa99ad90bcb852d · report

Tasks

Question AnsweringSentiment AnalysisText Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Question Answering QASent Paragraph vector (lexical overlap + dist output) MAP 0.6762 #4 of 7 Archive leaderboard report
Question Answering QASent Paragraph vector (lexical overlap + dist output) MRR 0.7514 #4 of 7 Archive leaderboard report
Question Answering QASent Paragraph vector MAP 0.5213 #7 of 7 Archive leaderboard report
Question Answering QASent Paragraph vector MRR 0.6023 #7 of 7 Archive leaderboard report
Question Answering WikiQA Paragraph vector (lexical overlap + dist output) MAP 0.5976 #24 of 25 Archive leaderboard report
Question Answering WikiQA Paragraph vector (lexical overlap + dist output) MRR 0.6058 #24 of 25 Archive leaderboard report
Question Answering WikiQA Paragraph vector MAP 0.5110 #25 of 25 Archive leaderboard report
Question Answering WikiQA Paragraph vector MRR 0.5160 #25 of 25 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections