Contrastive Loss is All You Need to Recover Analogies as Parallel Lines

Narutatsu Ri, Fei-Tzin Lee, Nakul Verma
6/14/2023
cs.CL

No confident code implementation found for this paper.

Abstract

While static word embedding models are known to represent linguistic analogies as parallel lines in high-dimensional space, the underlying mechanism as to why they result in such geometric structures remains obscure. We find that an elementary contrastive-style method employed over distributional information performs competitively with popular word embedding models on analogy recovery tasks, while achieving dramatic speedups in training time. Further, we demonstrate that a contrastive loss is sufficient to create these parallel structures in word embeddings, and establish a precise relationship between the co-occurrence statistics and the geometric structure of the resulting word embeddings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ri2023contrastive,
  title  = {Contrastive Loss is All You Need to Recover Analogies as Parallel Lines},
  author = {Narutatsu Ri and Fei-Tzin Lee and Nakul Verma},
  year   = {2023},
  eprint = {2306.08221},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.08221v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.08221.svg)](https://codeofpaper.com/paper/2306.08221)

Discussion