NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Word, graph and manifold embedding from Markov processes

Tatsunori B. Hashimoto, David Alvarez-Melis, Tommi S. Jaakkola

Abstract

Word embeddings like word2vec and GloVe are foundational to modern NLP, yet their success has often been viewed as empirical rather than theoretical. This paper demonstrates that these algorithms are performing metric recovery from Markov random walks. By proving that the negative log of word co-occurrences converges to the squared Euclidean distance in a latent space, the authors unify existing methods and propose a novel 'metric regression' approach that generalizes to graph and manifold learning.

Introduction

Continuous vector representations of words have revolutionized NLP by capturing rich semantic properties, such as solving analogies through vector arithmetic. However, a rigorous theoretical foundation for why simple co-occurrence counting captures such depth has been lacking. This research seeks to ground these algorithms in a principled mathematical framework, bridging the gap between machine learning and the 'semantic space' theories of cognitive psychology.

Theoretical Framework and Methods

The authors reframe word embeddings through the lens of Markov random walks. By treating a text corpus as a random walk between words and applying Varadhan’s formula from diffusion processes, they prove that as the corpus grows, the negative log of co-occurrence probability converges to the squared $L_2$ distance between words in a latent semantic space.

This proof allows for the mathematical deconstruction of GloVe, word2vec, and SVD-based embeddings, showing they all implicitly optimize for this metric recovery limit. Building on this, the authors propose Metric Regression, a novel algorithm that uses a negative binomial generalized linear model to directly regress $L_2$ distances against log co-occurrence counts. Crucially, because the underlying mathematics relies on diffusion processes, this framework is not limited to text; it applies equally to random walks on graphs and manifolds.

Evaluation Tasks

To test the robustness of their framework, the authors utilized standard analogy datasets (Google, MSR, SAT) and introduced two new inductive reasoning tasks based on WordNet: Series Completion and Classification.

Geometric representations of reasoning tasks: Analogy, Series Completion, and Classification.

As shown in the figure above, these tasks test the geometric properties of the embedding space:

  • Analogy: Testing if the vector difference between pairs is consistent (e.g., $A \to B$ is parallel to $C \to I$).
  • Series Completion: Testing linear progression in the latent space (e.g., penny, nickel, dime $\to$ quarter).
  • Classification: Testing if words belonging to the same category cluster together or relate to a central concept.

Key Results

The proposed metric regression method proved highly competitive, achieving 73.7% accuracy on the Google Analogies task, outperforming GloVe (71.7%) and word2vec (73.3%). It also excelled on the new psychometric tasks, scoring 87.6% on Classification and 58.3% on Series Completion.

Beyond NLP, the framework's generality was validated using the MNIST dataset. By treating digits as nodes in a k-nearest neighbor graph, the metric regression algorithm successfully embedded the images with a 75.3% cluster separation accuracy, significantly outperforming traditional manifold techniques like PCA (48.6%) and Isomap (49.4%).

Discussion and Insights

The fundamental insight is that log co-occurrence is a proxy for squared distance. This justifies the use of $L_2$ distance as a principled metric for semantic spaces, moving beyond the heuristic use of cosine similarity. Furthermore, the success of embeddings derived solely from human free-association surveys (Nelson et al.) validates cognitive science hypotheses that human reasoning relies on latent metric semantic manifolds.

Conclusion

This work provides a unifying theory for word embeddings, framing them as a specific case of manifold learning via Markov processes. While the current implementation uses probabilistic shortcuts for efficiency and relies on asymptotic assumptions, it opens the door to embedding larger structures like phrases or sentences and suggests that NLP-inspired algorithms should be more widely applied in general graph and manifold learning domains.

Summary updated

BibTeX
@misc{hashimoto2015word,
  author = {Tatsunori B. Hashimoto and David Alvarez-Melis and Tommi S. Jaakkola},
  title = {{Word, graph and manifold embedding from Markov processes}},
  year = {2015},
  eprint = {1509.05808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.05808},
}

Loading related content...

Figure