Comparing in context: Improving cosine similarity measures with a metric tensor
Not on the map. Why?
Abstract (arXiv)
Cosine similarity is a widely used measure of the relatedness of pre-trained word embeddings, trained on a language modeling goal. Datasets such as WordSim-353 and SimLex-999 rate how similar words are according to human annotators, and as such are often used to evaluate the performance of language models. Thus, any improvement on the word similarity task requires an improved word representation. In this paper, we propose instead the use of an extended cosine similarity measure to improve performance on that task, with gains in interpretability. We explore the hypothesis that this approach is particularly useful if the word-similarity pairs share the same context, for which distinct contextualized similarity measures can be learned. We first use the dataset of Richie et al. (2020) to learn contextualized metrics and compare the results with the baseline values obtained using the standard cosine similarity measure, which consistently shows improvement. We also train a contextualized similarity measure for both SimLex-999 and WordSim-353, comparing the results with the corresponding baselines, and using these datasets as independent test sets for the all-context similarity measure learned on the contextualized dataset, obtaining positive results for a number of tests.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 8 of its 40 references that are in the map. First posted on arXiv 28 Mar 2022.
Builds on
8 of 40 references.
References · 8
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
- 2014SimLex-999: Evaluating Semantic Models with (Genuine) Similarity Estimationcited by 170
- 2020Comparative Analysis of Word Embeddings for Capturing Word Similaritiescited by 9
- 2014Evaluating Neural Word Representations in Tensor-Based Compositional Settingscited by 7
- 2019Constructive Type-Logical Supertagging with Self-Attention Networkscited by 5
- 2021Parametrized Quantum Circuits of Synonymous Sentences in Quantum Natural Language Processingcited by 2
Built on by
Citing papers per year: 2025: 2.
2 papers.