Papers › Generalizing Point Embeddings using the Wasserstein Space of Elliptical Distributions

Generalizing Point Embeddings using the Wasserstein Space of Elliptical Distributions

19 May 2018NeurIPS 2018 12arXiv:1805.07594archive 2025-07-28

Boris Muzellec, Marco Cuturi

Embedding complex objects as vectors in low dimensional spaces is a longstanding problem in machine learning. We propose in this work an extension of that approach, which consists in embedding objects as elliptical probability distributions, namely distributions whose densities have elliptical level sets. We endow these measures with the 2-Wasserstein metric, with two important benefits: (i) For such measures, the squared 2-Wasserstein metric has a closed form, equal to a weighted sum of the squared Euclidean distance between means and the squared Bures metric between covariance matrices. The latter is a Riemannian metric between positive semi-definite matrices, which turns out to be Euclidean on a suitable factor representation of such matrices, which is valid on the entire geodesic between these matrices. (ii) The 2-Wasserstein distance boils down to the usual Euclidean metric when comparing Diracs, and therefore provides a natural framework to extend point embeddings. We show that for these reasons Wasserstein elliptical embeddings are more intuitive and yield tools that are better behaved numerically than the alternative choice of Gaussian embeddings with the Kullback-Leibler divergence. In particular, and unlike previous work based on the KL geometry, we learn elliptical distributions that are not necessarily diagonal. We demonstrate the advantages of elliptical embeddings by using them for visualization, to compute embeddings of words, and to reflect entailment or hypernymy.

PaperPDFConference PDFCodeCode 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="1805.07594")

Code

Syntology Ran 0 of 8 code samples harvested from 1 repository linked to this paper; 8 have no recorded run.

By repository: community (archive-listed): 8 samples from 1 repository, 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.

BorisMuzellec/EllipticalEmbeddings officialmentioned in papermentioned on GitHub report
albpurpura/PE4IR mentioned on GitHubpytorchApache-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

8 samples harvested; 0 ran; 0 honoured the contract we drafted; 8 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.

8unverified

Licence: 0 of the 8 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 albpurpura/PE4IR. “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.

compute_sim_matrices_w2v albpurpura/PE4IR/MP_original/data_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · cd253ddb46b812f6 · report
convert_we_dict_to_emb_matrix albpurpura/PE4IR/MP_original/main_MP_original.py community (archive-listed) unverified Apache-2.0 (permissive) · 656d40d494a8804d · report
get_retrieved_doc_names_for_qry albpurpura/PE4IR/MP_WN_WE/data_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 92b95fcd4eaa9926 · report
load_json albpurpura/PE4IR/MP_WN_WE/util.py community (archive-listed) unverified Apache-2.0 (permissive) · 066e4dbaa7dc5bcd · report
load_model albpurpura/PE4IR/MP_WN_WE/util.py community (archive-listed) unverified Apache-2.0 (permissive) · 1bc245f33b630412 · report
run_trec_eval albpurpura/PE4IR/MP_WN_WE/util.py community (archive-listed) unverified Apache-2.0 (permissive) · d57c0af7ad16200a · report
run_trec_eval albpurpura/PE4IR/MP_original/util.py community (archive-listed) unverified Apache-2.0 (permissive) · eac6eded7005496e · report
sample_neg_doc albpurpura/PE4IR/MP_original/data_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 54dde80bde539606 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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