ACL 2022short63 citations

Problems with Cosine as a Measure of Embedding Similarity for High Frequency Words

Kaitlyn Zhou, Kawin Ethayarajh, Dallas Card, Dan Jurafsky

Abstract

Cosine similarity of contextual embeddings is used in many NLP tasks (e.g., QA, IR, MT) and metrics (e.g., BERTScore). Here, we uncover systematic ways in which word similarities estimated by cosine over BERT embeddings are understated and trace this effect to training data frequency. We find that relative to human judgements, cosine similarity underestimates the similarity of frequent words with other instances of the same word or other words across contexts, even after controlling for polysemy and other factors. We conjecture that this underestimation of similarity for high frequency words is due to differences in the representational geometry of high and low frequency words and provide a formal argument for the two-dimensional case.

BibTeX
@inproceedings{zhou-etal-2022-problems,
    title = "Problems with Cosine as a Measure of Embedding Similarity for High Frequency Words",
    author = "Zhou, Kaitlyn  and
      Ethayarajh, Kawin  and
      Card, Dallas  and
      Jurafsky, Dan",
    editor = "Muresan, Smaranda  and
      Nakov, Preslav  and
      Villavicencio, Aline",
    booktitle = "Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)",
    month = may,
    year = "2022",
    address = "Dublin, Ireland",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2022.acl-short.45/",
    doi = "10.18653/v1/2022.acl-short.45",
    pages = "401--423"
}
Problems with Cosine as a Measure of Embedding Similarity for High Frequency Words · ACL 2022