SemGloVe: Semantic Co-Occurrences for GloVe from BERT

Publisher:
IEEE-INST ELECTRICAL ELECTRONICS ENGINEERS INC
Publication Type:
Journal Article
Citation:
IEEE/ACM Transactions on Audio Speech and Language Processing, 2022, 30, pp. 2696-2704
Issue Date:
2022-01-01
Filename Description Size
SemGloVe_Semantic_Co-Occurrences_for_GloVe_From_BERT.pdfPublished version1.01 MB
Adobe PDF
Full metadata record
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 limited 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 external tasks show that SemGloVe can outperform GloVe.
Please use this identifier to cite or link to this item: