English

SemGloVe: Semantic Co-occurrences for GloVe from BERT

Computation and Language 2021-11-25 v2 Artificial Intelligence

Abstract

GloVe learns word embeddings by leveraging statistical information from word co-occurrence matrices. However, word pairs in the matrices are extracted from a predefined local context window, which might lead to limited word pairs and potentially semantic irrelevant word pairs. In this paper, we propose SemGloVe, which distills semantic co-occurrences from BERT into static GloVe word embeddings. Particularly, we propose two models to extract co-occurrence statistics based on either the masked language model or the multi-head attention weights of BERT. Our methods can extract word pairs without limiting by the local window assumption and can define the co-occurrence weights by directly considering the semantic distance between word pairs. Experiments on several word similarity datasets and four external tasks show that SemGloVe can outperform GloVe.

Keywords

Cite

@article{arxiv.2012.15197,
  title  = {SemGloVe: Semantic Co-occurrences for GloVe from BERT},
  author = {Leilei Gan and Zhiyang Teng and Yue Zhang and Linchao Zhu and Fei Wu and Yi Yang},
  journal= {arXiv preprint arXiv:2012.15197},
  year   = {2021}
}

Comments

10 pages, 3 figures, 5 tables

R2 v1 2026-06-23T21:36:11.218Z