Introduction
The success of word embeddings, most notably Word2Vec, revolutionized natural language processing by demonstrating that semantic relationships could be captured through simple linear arithmetic. The famous analogy "King - Man + Woman = Queen" suggested that word vectors inhabit a space where semantic offsets correspond to meaningful conceptual shifts. However, a significant question remained: do these "semantic regularities" persist when we move from individual words to entire documents?
This paper investigates the extent to which document-level representations—ranging from traditional bag-of-words models to modern neural embeddings—capture these linear relationships. By introducing a comprehensive new benchmark, the authors evaluate whether document vectors can solve analogies such as "Article A is to Article B as Article C is to [X]."
The Challenge of Document-Level Reasoning
Representing documents as vectors is a foundational task in NLP, with applications in information retrieval, clustering, and classification. While we have numerous methods for this, such as Bag-of-Words (BOW), Latent Semantic Indexing (LSI), and Latent Dirichlet Allocation (LDA), it was previously unclear if these vectors supported the same kind of algebraic reasoning seen in word embeddings.
The authors specifically sought to determine if a document representation is truly "semantic" by testing if conceptual relationships are mathematically reachable. For instance, if a model understands the relationship between a generative model and its discriminative counterpart, it should ideally be able to map "Naive Bayes" to "Logistic Regression" and "Hidden Markov Model" to "Conditional Random Fields" using simple vector addition and subtraction.
Methodology
The study evaluates five distinct classes of document representation models:
- Weight-based Models: Standard Bag-of-Words (BOW) using TF-IDF weighting.
- Matrix Factorization: Latent Semantic Indexing (LSI) and Non-negative Matrix Factorization (NMF), which reduce dimensionality to find latent structures.
- Topic Modeling: Latent Dirichlet Allocation (LDA), a probabilistic approach to discovering document topics.
- Neural Embeddings: Paragraph Vectors (PV-DM and PV-DBOW), which are trained to predict words in a document or the document itself, learning dense embeddings directly.
- Bag of Word Embeddings (BOWE): A deceptively simple approach where a document vector is the linear combination (the sum or average) of the pre-trained Word2Vec embeddings of all words within the document.
To evaluate these models, the researchers employed the vector offset method. To solve the analogy "a is to b as c is to ?", they calculated the target vector $\vec{v} = \vec{b} - \vec{a} + \vec{c}$. They then identified the document vector $\vec{x}$ in the corpus with the highest cosine similarity to $\vec{v}$.
Datasets and Benchmarking
The models were trained on a massive corpus consisting of the April 2010 Wikipedia dump, encompassing approximately 3 million articles and 1 billion tokens.
To test for semantic regularities, the authors developed a new document analogy test set. Recognizing the difficulty of manual labeling, they repurposed existing word and phrase analogy datasets (such as the Google analogy set) by mapping the constituent terms to specific Wikipedia article titles. This process yielded a robust benchmark of 6,112 analogy questions across diverse categories.
The categories range from geographic relations (capitals and countries) to specialized domains like sports (ice hockey teams and their cities) and corporate leadership.
Key Results
The primary metric for success was the model's ability to retrieve the exact correct Wikipedia article for a given analogy. The results revealed a stark contrast between traditional and modern embedding techniques.
As shown in the performance breakdown, BOWE (Bag of Word Embeddings) emerged as the clear champion, achieving a total accuracy of 60.42%. Neural models like Paragraph Vectors (PV-DBOW and PV-DM) performed respectably, hovering around 37% accuracy. In contrast, traditional latent models (LSI, LDA, NMF) struggled significantly, with all scoring below 10%. The standard BOW (TF-IDF) model was nearly ineffective for this task, yielding only 1.34% accuracy.
Discussion and Insights
The authors identified several critical factors contributing to these results:
- The Role of PMI: Traditional models typically operate on frequency or TF-IDF matrices. However, neural models implicitly factorize a "Shifted Pointwise Mutual Information" (PMI) matrix. When the researchers replaced LSI’s TF-IDF matrix with a PMI matrix, its accuracy improved by 57%, highlighting PMI as a vital component for capturing linear regularities.
- The Efficacy of BOWE: The superior performance of simple word vector averaging (BOWE) over complex Paragraph Vectors was unexpected. The authors hypothesize that word vectors already contain dense "semantic DNA"; summing them preserves this structure at the document level. Furthermore, BOWE distance can be viewed as a computationally efficient approximation of the Word Mover’s Distance.
- The Sparsity Problem: Standard BOW models fail because they treat every word as an independent dimension. This high-dimensional sparsity prevents the model from recognizing the overlapping semantic space between related documents, which is essential for solving analogies.
Conclusion
This research demonstrates that document-level representations can indeed capture sophisticated semantic regularities, provided they use dense embedding techniques. While neural models like Paragraph Vectors are powerful, the simple averaging of word vectors (BOWE) remains a remarkably strong baseline for semantic reasoning. This new benchmark provides a path forward for developing document models that move beyond simple similarity toward true conceptual understanding.
Summary updated