Abstract
Modern Transformer-based language models like BERT have shifted the paradigm from static, type-level word embeddings to dynamic, token-level representations. This paper investigates whether these contextualized models still implicitly capture traditional "type-level" lexical concepts. Through a systematic evaluation across six languages and five tasks, we demonstrate that high-quality static embeddings can be recovered from BERT, often outperforming traditional methods like fastText. The most effective extraction strategy involves averaging subword representations from multiple contexts across the model's lower layers.
Introduction
In traditional NLP, words were represented by static vectors (e.g., Word2Vec, fastText) that captured abstract concepts regardless of context. Modern models like BERT provide contextualized representations where a word's vector depends on its sentence. While BERT excels at capturing syntax and contextual semantics, it remains unclear if it retains a robust notion of context-free lexical concepts. This study explores where this knowledge resides within the network and how to best extract it for use in classical pipelines.
Methodology: Extracting Static Knowledge
The authors propose a systematic pipeline to extract static "type-level" representations from BERT, testing 24 different configurations across six typologically diverse languages (English, German, Russian, Finnish, Chinese, Turkish).
The extraction process involves four primary dimensions:
- Source Language Model: Comparing monolingual BERT models against the multilingual mBERT.
- Contextualization: Evaluating words in isolation (ISO) versus averaging representations across multiple real-world sentence contexts (Average-Over-Context, AOC).
- Special Tokens: Testing the impact of including or excluding
[CLS]and[SEP]tokens during subword averaging. - Layer Selection: Analyzing performance when extracting from single layers versus averaging across various layer subsets (e.g., $L \le 6$).
Experimental Setup
The extracted embeddings were evaluated on five diverse lexico-semantic benchmarks:
- Lexical Semantic Similarity (LSIM): Multi-SimLex.
- Word Analogy (WA): Bigger Analogy Test Set (BATS).
- Bilingual Lexicon Induction (BLI): Standard train/test dictionaries.
- Cross-Lingual Information Retrieval (CLIR): CLEF 2003 benchmark.
- Lexical Relation Prediction (RELP): WordNet-based relations.
Key Insights and Results
The Dominance of Lower Layers
A consistent finding across all tasks is that context-free, type-level knowledge is concentrated in the lower layers of the Transformer (typically layers 1–5). As information progresses through the network, representations become increasingly specialized to their specific sentence context, losing their general lexical properties. For instance, in LSIM tasks, averaging the bottom 6 layers yielded significantly higher scores than averaging the top 6.
The Benefit of Contextual Averaging
Averaging a word's representation across multiple sentences (AOC) significantly outperforms feeding the word in isolation (ISO). Interestingly, a relatively small number of contexts (10 to 100) is sufficient to stabilize the representation and capture an accurate type-level concept.
Monolingual vs. Multilingual Models
Monolingual BERT models consistently outperformed mBERT in capturing lexical depth. This suggests a "curse of multilinguality," where broad language coverage comes at the expense of deep, language-specific lexical knowledge. However, Centered Kernel Alignment (CKA) analysis revealed that even independent monolingual models develop structurally similar (isomorphic) representation spaces for translated words.
Comparison with fastText
The optimal BERT extraction configuration—Monolingual LM, AOC-100, excluding special tokens, and averaging over lower layers—surpassed standard fastText embeddings on monolingual tasks like LSIM, WA, and RELP. However, fastText maintained an edge in cross-lingual mapping tasks (BLI and CLIR), suggesting that standard linear mapping techniques may not be optimal for BERT-derived vectors.
Conclusion
This research confirms that pretrained language models like BERT implicitly learn high-quality static lexical representations. By using the right extraction strategy—focusing on lower layers and averaging over a modest amount of context—researchers can derive static embeddings that rival or exceed traditional methods. Future work will investigate more sophisticated extraction techniques and the impact of context domain on embedding quality.
Summary updated