Abstract: Standard word embedding models like Word2Vec and GloVe rely on local context windows, often failing to capture broader document-level semantic relationships. This paper presents Category Enhanced Word Embedding (CeWE) and its globally supervised extension, GCeWE. These models integrate document category information into the training process, using categories as "semantic anchors" to align word vectors with global topics. Our experiments on a massive Wikipedia-based corpus demonstrate that CeWE and GCeWE significantly outperform traditional models in word similarity, analogy, and downstream classification tasks, particularly for rare words and semantic reasoning.
1. Introduction
The "distributional hypothesis"—the idea that words appearing in similar contexts share similar meanings—has revolutionized natural language processing through models like CBOW and Skip-gram. However, these models typically operate within a narrow local window (e.g., 5-10 words). This local focus ignores the global topical context of the document. For example, the words "Mars" and "Jupiter" might not appear in the same sentence but frequently occur in documents categorized under "Astronomy." By incorporating these category labels, we can learn more robust embeddings that capture both local syntax and global semantics.
2. Methodology
The authors propose two primary architectures to address the limitations of local-only context.
2.1 Category Enhanced Word Embedding (CeWE)
CeWE modifies the Continuous Bag-of-Words (CBOW) framework by introducing category information at the input layer. In standard CBOW, the model predicts a middle word $w_t$ based on the average of its surrounding context vectors. CeWE extends this by adding a category vector $c$ to the input. This vector represents the average of the document's category embeddings, effectively providing a topical bias to the word prediction task.
2.2 Globally Supervised CeWE (GCeWE)
GCeWE introduces a secondary global objective: using the words within a document to predict the document's categories. To optimize this, the authors implement two key strategies:
- TF-IDF Filtering: To reduce noise, only "topical" words—those with TF-IDF values exceeding the document average—are used for category prediction.
- Adaptive Negative Sampling: A non-uniform sampling strategy is used to select informative negative category examples, accelerating convergence and improving discriminative power.
3. Experimental Setup
The models were trained on a 2014 Wikipedia dump consisting of 2.27 million documents and 0.87 billion tokens, filtered for the top 100,000 categories. Evaluation spanned three main areas:
- Word Similarity: Tested on five standard datasets (WS353, SCWS, MC, RG, RW).
- Word Analogy: Evaluated using the Google analogy dataset, split into semantic and syntactic components.
- Downstream Tasks: Sentiment analysis on IMDB and text classification on 20NewsGroup.
4. Results and Discussion
The inclusion of category information consistently improved performance across all benchmarks.
4.1 Word Similarity
As shown in the table below, CeWE outperformed both CBOW and GloVe across all similarity datasets. The improvement was most pronounced in the Rare Words (RW) dataset, where CeWE achieved a score of 46.21 compared to CBOW's 41.47. This suggests that global category information is particularly beneficial for words that appear infrequently in local contexts.
4.2 Analogy and Downstream Performance
GCeWE demonstrated superior performance in word analogy tasks, reaching a total accuracy of 70.46%. In downstream text classification (20NewsGroup), GCeWE achieved 78.04% accuracy, surpassing specialized topical models like TWE-1 (76.43%) and LDA (72.20%). These results confirm that the learned embeddings are not only semantically richer but also highly effective for document-level tasks.
5. Conclusion
By treating categories as semantic anchors, CeWE and GCeWE successfully bridge the gap between local context and global topics. While the current approach depends on labeled data, the success of these models highlights the importance of document-level information in representation learning. Future research will focus on automated category denoising and the integration of these concepts into modern Transformer architectures.
Summary updated