Skip to main content
QUICK REVIEW

[Paper Review] Gaussian Word Embedding with a Wasserstein Distance Loss

Chi Sun, Hang Yan|arXiv (Cornell University)|Aug 21, 2018
Topic ModelingComputer Science42 references12 citations
TL;DR

This paper proposes a Gaussian word embedding model trained with a Wasserstein distance loss to better capture semantic uncertainty and improve word similarity and entailment modeling. By leveraging ConceptNet for semi-supervised pretraining and using Wasserstein distance for non-overlapping distribution comparison, the model outperforms point-based and KL-divergence-based baselines on word similarity, entailment, and document classification tasks.

ABSTRACT

Compared with word embedding based on point representation, distribution-based word embedding shows more flexibility in expressing uncertainty and therefore embeds richer semantic information when representing words. The Wasserstein distance provides a natural notion of dissimilarity with probability measures and has a closed-form solution when measuring the distance between two Gaussian distributions. Therefore, with the aim of representing words in a highly efficient way, we propose to operate a Gaussian word embedding model with a loss function based on the Wasserstein distance. Also, external information from ConceptNet will be used to semi-supervise the results of the Gaussian word embedding. Thirteen datasets from the word similarity task, together with one from the word entailment task, and six datasets from the downstream document classification task will be evaluated in this paper to test our hypothesis.

Motivation & Objective

  • To improve word representation by modeling words as Gaussian distributions rather than point vectors, enabling richer semantic and uncertainty information.
  • To address the limitations of KL divergence in training distribution-based word embeddings, particularly its ill-defined nature for similar or non-overlapping distributions.
  • To leverage external knowledge from ConceptNet to semi-supervise the training process, enhancing generalization and performance on downstream tasks.
  • To evaluate the effectiveness of Wasserstein distance as a loss function in capturing meaningful dissimilarities between word distributions, especially in asymmetric relations like entailment.
  • To demonstrate the superiority of the proposed model over existing point-based and distribution-based word embedding methods across multiple NLP benchmarks.

Proposed method

  • Represent each word as a multivariate Gaussian distribution with learnable mean and covariance matrix, enabling uncertainty-aware semantic representation.
  • Use the closed-form solution of the Wasserstein distance between two multivariate Gaussians as the primary loss function to train the embedding parameters.
  • Incorporate external knowledge from ConceptNet by defining a hybrid energy function: KL divergence for 'IsA' (hypernym-hyponym) relations and Wasserstein distance for other relations.
  • Apply a semi-supervised training strategy where external relations from ConceptNet are treated as additional context to regularize the embedding space.
  • Optimize the model using stochastic gradient descent with a combination of word similarity, entailment, and external relation losses.
  • Utilize the trained embeddings in downstream tasks such as document classification using the Word Mover's Distance (WMD) as the evaluation metric.

Experimental results

Research questions

  • RQ1Can a Gaussian word embedding model trained with a Wasserstein distance loss better capture semantic uncertainty and similarity compared to point-based or KL-divergence-based models?
  • RQ2How does the use of Wasserstein distance improve modeling of asymmetric semantic relations such as entailment, especially when distributions have minimal or no overlap?
  • RQ3To what extent does incorporating external knowledge from ConceptNet enhance the performance of distribution-based word embeddings on similarity and entailment tasks?
  • RQ4Does the proposed model achieve consistent improvements across diverse downstream tasks, including document classification, compared to state-of-the-art baselines?
  • RQ5Can the model's flexibility in selecting different energy functions for different types of external relations lead to better performance than a single-loss approach?

Key findings

  • The WDG model (Wasserstein Distance Gaussian) outperforms both skip-gram (SG) and standard Gaussian embedding (W2G) on 5 out of 6 document classification datasets, with an average test error rate of 17.8% compared to 17.5% for SG and 16.1% for WDG.
  • On the word similarity task, the WDG model achieves state-of-the-art performance, with significant improvements attributed to the variance in word representations enabling richer semantic coverage.
  • The model demonstrates a notable lifting effect on the word entailment task, where the use of Wasserstein distance as the energy function enables better modeling of asymmetric relations.
  • The visualization of word embeddings shows that the size of the Gaussian circle correlates with semantic coverage, visually confirming the model's ability to represent uncertainty and scope.
  • The use of KL divergence for 'IsA' relations and Wasserstein distance for other relations leads to better performance on entailment, confirming the importance of tailored loss functions for different semantic relations.
  • The model's advantage is most pronounced in tasks requiring nuanced semantic understanding, such as similarity and entailment, while gains in document classification are moderate, suggesting room for improvement with contextual integration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.