Abstract
With the aim of limiting the local context in word presentations, this paper presents a method for word representation that is based on nonlinear global context. First, the word senses can be disambiguated using the disambiguation page of Wikipedia, which can improve the effectiveness of the representation. Secondly, considering the linear local-context problem of the traditional word representation, we apply the dependency and coreference relation analysis to treat the global context of corpus, after which we obtain the word vector based on the nonlinear global context. Finally, we perform the experiments using the English Wikipedia. In the qualitative analysis, this method can find a related word that is closer to the current meaning of the word, and it is better than the Word2Vec method in the word-sense disambiguation. From the quantitative perspective, by comparing the experimental results in the WordSim-353 test data set, the experimental results show that the proposed method has a higher performance than the other methods in the Spearman correlation coefficient.
Introduction
Traditional word embedding models, such as Word2Vec (Skip-gram or CBOW), primarily rely on a local linear context. These models utilize a fixed-size sliding window to define a word's meaning based on its immediate neighbors. However, this approach suffers from three major limitations: it ignores grammatical structures that link distant words (linearity), it fails to connect information across different sentences (locality), and it often conflates multiple meanings of the same word into a single vector (polysemy).
This paper proposes a novel approach that moves beyond the sliding window by capturing the "nonlinear" syntactic structure of language and the "global" context of entire documents.
Methodology
The proposed framework consists of two primary stages: Word Sense Disambiguation (WSD) and Nonlinear Global Context Selection.
1. Word Sense Disambiguation (WSD)
To address polysemy, the model utilizes Wikipedia's disambiguation pages. By comparing document keywords with Wikipedia descriptions, the model tags words with specific senses (e.g., distinguishing "Apple" as a fruit versus a technology company). This preprocessing step ensures that the neural network learns distinct, high-quality representations for different concepts.
2. Nonlinear Global Context Selection
Instead of a simple sequence of neighbors, the model selects context words based on two advanced NLP techniques:
- Dependency Parsing: Identifies functional relationships (e.g., subject-verb-object), allowing the model to link words that are syntactically related but physically distant in the text.
- Coreference Resolution: Identifies when different words (like pronouns) refer to the same entity across sentence boundaries, enabling the extraction of "global" context from the entire document.
3. Model Architecture
The final word vectors are trained using a neural network architecture that integrates these diverse context sources. The model features an input layer that accepts both local syntactic contexts (from dependency parsing) and global document-level contexts (from coreference resolution), which are then combined in a projection layer to produce the final embedding.
Key Results
The model was trained on a May 2014 dump of English Wikipedia and evaluated against standard benchmarks:
- Quantitative Performance: On the WordSim-353 dataset, the proposed method achieved a Spearman correlation of 69.6, significantly outperforming standard Word2Vec (64.9) and previous dependency-only models (65.3).
- Analogy Accuracy: In word analogy tasks, the model showed substantial improvements. For instance, in the "Capital-Common-Countries" category, accuracy reached 59.61%, compared to the 44.86% baseline.
- Qualitative Analysis: The model successfully separated meanings for polysemous words. When queried for words similar to "Apple," the model returned fruit-related terms (cherry, pear) or company-related terms (Microsoft, Oracle) based on the specific sense tag, whereas traditional models produced a mixed, less accurate list.
Conclusion
By replacing the traditional linear sliding window with a nonlinear global context derived from dependency parsing and coreference resolution, this method significantly improves the semantic richness of word embeddings. While computationally more intensive than simple window-based models, the integration of Wikipedia-based disambiguation and structural linguistic analysis provides a more accurate and nuanced representation of human language.
Summary updated