Abstract
Standard word embeddings often struggle with polysemy and data sparsity for rare words. This paper introduces Glossary Guided Post-processing (GGP), a method that refines pre-trained word vectors by leveraging dictionary definitions (glosses). By utilizing a dual-track architecture with an attention mechanism, GGP effectively handles words with multiple meanings. Experimental results show that GGP improves upon GloVe embeddings by over 7% on word similarity tasks and outperforms existing post-processing techniques by 4.1% on average.
Introduction
The Distributional Hypothesis—the idea that words in similar contexts share meanings—underpins modern word embeddings like Word2Vec and GloVe. However, this approach faces three significant challenges:
- Data Sparsity: Rare words lack sufficient contextual data for accurate representation.
- Semantic Confusion: Models often fail to distinguish between synonyms and antonyms (e.g., "hot" and "cold") because they appear in identical contexts.
- Polysemy: Standard models collapse multiple meanings of a word (e.g., "bank") into a single vector, leading to semantic blurring.
While retraining models with external knowledge like WordNet is possible, it is computationally prohibitive. GGP offers a lightweight post-processing alternative that injects dictionary knowledge into existing vectors.
Methodology
The GGP framework consists of two parallel tracks optimized jointly to refine word representations.
The Sense Learner
The left track is a Sequence-to-Sequence (Seq2Seq) auto-encoder. It processes dictionary definitions (glosses) using a BiLSTM to generate "sense vectors." For polysemous words, the model generates a distinct vector for each definition provided in the dictionary.
The Fine-Tuner
The right track is a multi-layer feed-forward network that takes a pre-trained word vector (e.g., GloVe) as input and learns to adjust its position in the semantic space.
The Attention Bridge
The core innovation of GGP is the attention mechanism. Rather than treating all definitions equally, the model calculates attention weights to determine which dictionary senses are most relevant to the original word vector. This creates a composite sense vector that more accurately reflects the word's primary usage.
Optimization Objective
The model minimizes a joint loss function comprising three components:
- Reconstruction Loss: Ensures the auto-encoder can accurately recreate the original gloss.
- Preservation Loss: Ensures the fine-tuned vector does not deviate excessively from the high-quality pre-trained GloVe vector.
- Similarity Loss: Encourages the post-processed vector to align with the weighted combination of its dictionary definitions.
Experimental Results
The authors evaluated GGP using GloVe vectors (42B and 840B tokens) and two knowledge sources: WordNet and Opted (The Online Plain Text English Dictionary). Performance was measured across six word similarity benchmarks, including Simverb3500 (SV), Simlex999 (SL), and Rare Words (RW).
As shown in the results table, GGP consistently outperforms the base GloVe models and competing post-processing methods like ER-CNT and CPAE. Key findings include:
- Significant Improvement: GGP improved GloVe performance by over 7% across all datasets.
- Competitive Edge: GGP outperformed other state-of-the-art models by an average of 4.1%.
- Rare Word Robustness: Significant gains on the RW dataset demonstrate that dictionary definitions effectively compensate for low frequency in training corpora.
- Dictionary Impact: Models using the Opted dictionary generally performed better than those using WordNet, likely due to the more descriptive nature of Opted's definitions.
Discussion and Conclusion
GGP demonstrates that glossaries are a "complete" source of semantic information, providing functional context that relational databases lack. The use of an attention mechanism is critical for managing polysemy, allowing the model to rank meanings rather than squashing them into a single point. Furthermore, the authors found that using softmax for relative distance calculations outperformed simple Euclidean distance.
While GGP is highly effective, it remains dependent on the quality of the initial pre-trained vectors and the descriptive richness of the chosen dictionary. Future work may involve incorporating more complex semantic relationships, such as partial orders, to further refine the mapping of synonyms and antonyms.
Summary updated