Introduction
Traditional machine learning models represent complex entities, such as words or images, as single points in a vector space. While effective, this approach fails to capture the inherent uncertainty or semantic breadth of objects. This paper introduces a framework for embedding data as elliptical probability distributions within the 2-Wasserstein space, providing a robust geometric foundation for representing hierarchical and uncertain relationships more effectively than traditional point or Gaussian embeddings.
The Limitations of Point and Gaussian Embeddings
Point embeddings treat all objects as equally "certain" coordinates. Previous attempts to incorporate uncertainty using Gaussian embeddings often relied on the Kullback-Leibler (KL) divergence. However, KL-divergence is numerically unstable; it approaches infinity as the variance of a distribution vanishes. This instability historically forced researchers to use diagonal covariance matrices and artificial "jitter" to maintain positive variances, limiting the model's ability to capture directional correlations.
Methodology: The Wasserstein-Bures Framework
The authors propose using the 2-Wasserstein metric to measure distances between elliptical distributions. This metric is well-behaved at the boundaries, meaning the distance between two zero-variance distributions (Dirac deltas) simplifies naturally to the standard Euclidean distance.
Wasserstein-Bures Geometry
For elliptical distributions, the squared 2-Wasserstein distance has a closed-form solution known as the Bures metric between covariance matrices, combined with the Euclidean distance between means. This allows for a seamless generalization of point embeddings where points, lines, and volumes exist in the same space.
Optimization and Scalability
To ensure covariance matrices remain positive semi-definite (PSD) during training, the authors employ a factorized representation ($C = LL^T$). Furthermore, to handle the computational overhead of matrix square roots and inverses on modern hardware, they utilize Newton-Schulz iterations, which are significantly faster on GPUs than traditional eigenvector decompositions.
Experimental Results
The framework was evaluated across word similarity and hypernymy tasks.
- Word Similarity: Trained on a 3-billion-token corpus, elliptical embeddings with full covariance matrices outperformed diagonal Gaussian models. On the WordSim-R dataset, the model achieved a Spearman correlation of 71.07, compared to 61.70 for the KL-based baseline.
- Hierarchy Modeling: In hypernymy tasks (e.g., "poodle" is a "dog"), broader terms naturally developed larger variances, effectively acting as containers for more specific terms. The model outperformed Poincaré embeddings as dimensionality increased ($d > 5$), suggesting better scalability for complex data.
Conclusion
By moving from points to the Wasserstein space of elliptical distributions, this work provides a mathematically sound and numerically stable method for embedding data with uncertainty. While the current model uses a single distribution per object, future work may explore Mixtures of Gaussians to address polysemy, despite the increased computational complexity.
Summary updated