Correlations between Word Vector Sets

Vitalii Zhelezniak, April Shen, Daniel Busbridge, Aleksandar Savkov, Nils Hammerla
10/7/2019
cs.CLcs.LG

Official code: babylonhealth/corrsim (38 stars, Python, Apache-2.0, last commit 2022-07-14).

Abstract

Similarity measures based purely on word embeddings are comfortably competing with much more sophisticated deep learning and expert-engineered systems on unsupervised semantic textual similarity (STS) tasks. In contrast to commonly used geometric approaches, we treat a single word embedding as e.g.

Show full abstract

300 observations from a scalar random variable. Using this paradigm, we first illustrate that similarities derived from elementary pooling operations and classic correlation coefficients yield excellent results on standard STS benchmarks, outperforming many recently proposed methods while being much faster and trivial to implement. Next, we demonstrate how to avoid pooling operations altogether and compare sets of word embeddings directly via correlation operators between reproducing kernel Hilbert spaces. Just like cosine similarity is used to compare individual word vectors, we introduce a novel application of the centered kernel alignment (CKA) as a natural generalisation of squared cosine similarity for sets of word vectors. Likewise, CKA is very easy to implement and enjoys very strong empirical results.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for the papers: Correlation Coefficients and Semantic Textual Similarity, NAACL-HLT 2019 & Correlations between Word Vector Sets, EMNLP-IJCNLP 2019.

387Python, ShellMar 13, 20194 years agoApache-2.0
correlation-coefficientsmachine-learningnatural-language-processingresearch-papersimilarity-measures+1 more

Similar Papers

Cite this paper

@article{zhelezniak2019correlations,
  title  = {Correlations between Word Vector Sets},
  author = {Vitalii Zhelezniak and April Shen and Daniel Busbridge and Aleksandar Savkov and Nils Hammerla},
  year   = {2019},
  eprint = {1910.02902},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.02902}
}

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/1910.02902.svg)](https://codeofpaper.com/paper/1910.02902)

Discussion