Abstract
Contextualized embeddings such as BERT can serve as strong input representations to NLP tasks, outperforming their static embeddings counterparts such as skip-gram, CBOW and GloVe. However, such embeddings are dynamic, calculated according to a sentence-level context, which limits their use in lexical semantics tasks. We address this issue by making use of dynamic embeddings as word representations in training static embeddings, thereby leveraging their strong representation power for disambiguating context information. Results show that this method leads to improvements over traditional static embeddings on a range of lexical semantics tasks, obtaining the best reported results on seven datasets.
Introduction
The advent of BERT and other Transformer-based models marked a paradigm shift in Natural Language Processing (NLP). These "dynamic" embeddings revolutionized downstream tasks like question answering and sentiment analysis. However, for fundamental lexical semantics tasks—such as word similarity or analogy—traditional "static" embeddings like Word2Vec and GloVe have remained surprisingly resilient. This research explores a hybrid approach: leveraging the contextual power of BERT to train superior static word vectors.
The Static vs. Dynamic Dilemma
There is a fundamental trade-off in word representation:
- Static Embeddings (e.g., Skip-gram, GloVe): Assign a single fixed vector to each word. While efficient for word-level tasks, they struggle with polysemy (e.g., "bank" as a financial institution vs. a riverbank) because they collapse multiple meanings into one point.
- Dynamic Embeddings (e.g., BERT): These generate vectors based on the surrounding sentence. While highly accurate, they require a full context to function, making them difficult to apply to standalone lexical tasks.
The authors propose a method to bridge this gap, using BERT's deep contextual knowledge to build "smarter" static embeddings that implicitly handle disambiguation during the training phase.
Methodology: The Hybrid Architecture
The core innovation lies in redesigning the training objective of the classic Skip-gram model. Instead of a simple lookup table, the model uses BERT-generated representations for the "center word" during training.
Key Components:
- BERT-Based Center Word: During training, the model "sees" the center word through the lens of its entire sentence via BERT. This allows the resulting static vector to benefit from contextual disambiguation.
- Attention Aggregation: Unlike standard skip-gram which treats all neighbors equally, the authors introduced an attention mechanism. This allows the model to weigh context words by relevance, focusing on informative terms while ignoring noise or "stop words."
- Linear Projection: To maintain compatibility with standard 300D embedding spaces, a linear layer projects the 768D BERT outputs down to a lower dimension.
Evaluation and Results
The model was trained on a 1.1 billion token Wikipedia corpus and evaluated across eight major benchmarks, including WordSim-353, SimLex-999, and the Google Analogy dataset.
The proposed BERT + Static model achieved state-of-the-art (SOTA) results on 7 out of 8 datasets. Notably, it saw a 6.5% improvement on WordSim-353 and a 4.2% gain on the Google Analogy task over previous baselines.
Qualitatively, the model demonstrates superior semantic clustering. For the word "while," traditional models often return frequent but unrelated words like "preparing." In contrast, this hybrid model identifies semantically related conjunctions such as "whilst," "whereas," and "although."
Conclusion
By integrating BERT into the skip-gram framework, this research demonstrates that contextualized knowledge can significantly enhance static word representations. The resulting embeddings capture long-range dependencies and handle polysemy more effectively than traditional window-based models. Future work may explore generating multiple "sense embeddings" for ambiguous words and incorporating explicit syntactic structures to further refine word relationships.
Summary updated