[Paper Review] Skip-gram word embeddings in hyperbolic space
This paper proposes a hyperbolic skip-gram model for learning word embeddings using the hyperboloid model of hyperbolic space, deriving a gradient-based objective function based on hyperbolic distance. It demonstrates that hyperbolic embeddings outperform Euclidean counterparts in low dimensions (e.g., 20D) on word similarity and analogy tasks, though performance degrades in higher dimensions, and introduces a corrected formulation for the analogy task in curved spaces.
Recent work has demonstrated that embeddings of tree-like graphs in hyperbolic space surpass their Euclidean counterparts in performance by a large margin. Inspired by these results and scale-free structure in the word co-occurrence graph, we present an algorithm for learning word embeddings in hyperbolic space from free text. An objective function based on the hyperbolic distance is derived and included in the skip-gram negative-sampling architecture of word2vec. The hyperbolic word embeddings are then evaluated on word similarity and analogy benchmarks. The results demonstrate the potential of hyperbolic word embeddings, particularly in low dimensions, though without clear superiority over their Euclidean counterparts. We further discuss subtleties in the formulation of the analogy task in curved spaces.
Motivation & Objective
- To investigate whether hyperbolic space can improve word embedding quality for natural language data, particularly given the hierarchical and scale-free structure of word co-occurrence graphs.
- To develop a differentiable objective function for skip-gram word embeddings in hyperbolic space using the hyperboloid model.
- To evaluate hyperbolic embeddings on standard NLP benchmarks such as word similarity and analogy tasks.
- To address the challenge of generalizing the word analogy task to non-Euclidean, negatively curved manifolds like hyperbolic space.
- To explore the potential of hyperbolic geometry for distributional semantics and hierarchical language structure modeling.
Proposed method
- The paper employs the hyperboloid model of hyperbolic space as the embedding manifold, parameterizing word vectors as points in the Minkowski space with a specific quadratic form.
- It derives a loss function based on hyperbolic distance between context words and target words, adapted to the skip-gram negative-sampling framework.
- Gradient updates are computed using Riemannian optimization, with tangent vectors obtained via logarithmic maps and parallel transport to maintain geometric consistency.
- The analogy task is redefined using geodesic paths: given A:B = C:D, the model computes D as the point reached by parallel transporting the vector Log_A(B) from point C.
- The model is trained using stochastic gradient descent with negative sampling, similar to the original word2vec, but with hyperbolic geometry constraints.
- The authors compare performance against standard Euclidean skip-gram across multiple dimensions (5, 20, 50, 100) on word similarity and Google analogy datasets.
Experimental results
Research questions
- RQ1Can hyperbolic word embeddings outperform Euclidean skip-gram models on standard NLP evaluation benchmarks?
- RQ2How does the performance of hyperbolic embeddings vary with dimensionality, especially in low-dimensional spaces?
- RQ3What is the correct geometric formulation of the word analogy task in hyperbolic space, given the non-commutativity of geodesic paths?
- RQ4Does the hierarchical structure of word co-occurrence graphs benefit from the exponential volume growth of hyperbolic space?
- RQ5How does the choice of objective function based on hyperbolic distance affect learning compared to Euclidean alternatives?
Key findings
- Hyperbolic word embeddings achieve higher accuracy than Euclidean skip-gram on the Google analogy dataset at dimension 20 (0.2251 vs. 0.2089), indicating a performance gain in low dimensions.
- At dimension 50, hyperbolic embeddings underperform the Euclidean baseline (0.3536 vs. 0.3866), suggesting a performance drop in higher dimensions.
- The analogy task in hyperbolic space yields two distinct results depending on the path taken (via B or C), and the correct formulation using Log_A(B) yields significantly better results (0.2251) than the alternative (0.0365).
- The lowest dimension (5) performs poorly for both models, with accuracy near zero, indicating degeneracy in very low-dimensional hyperbolic space.
- The proposed objective function based on hyperbolic distance enables effective training of word embeddings in hyperbolic space, though performance is sensitive to dimensionality and task formulation.
- The study confirms that hyperbolic geometry can be beneficial for word embeddings when the data exhibits hierarchical structure, particularly in low-dimensional manifolds.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.