NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Word-Node2Vec: Improving Word Embedding with Document-Level Non-Local Word Co-occurrences

Procheta Sen, Debasis Ganguly, Gareth J. F. JonesNAACL 2019

Introduction

Standard word embedding models, such as Word2Vec (SGNS) and GloVe, are fundamentally "nearsighted." They operate under the distributional hypothesis, learning relationships between words based on their appearance within a narrow sliding window (typically 5-10 words). While effective at capturing local syntactic patterns, these models often overlook document-level "non-local" co-occurrences. For instance, words like "river" and "bank" may appear frequently in the same document but rarely within the same five-word window.

Word-Node2Vec addresses this limitation by employing a graph-based framework that integrates both local syntactic context and global document-level information. By representing the vocabulary as a graph and leveraging non-local co-occurrences, the model creates richer semantic representations that outperform traditional models across similarity, analogy, and categorization tasks.

Methodology

The Word-Node2Vec framework transitions word embedding from a linear sequence problem to a graph-based optimization problem through four key steps:

  1. Graph Construction: A weighted graph is built where each unique word in the vocabulary is a node.
  2. Hybrid Edge Weights: The weight of an edge between two word-nodes is defined as the product of local co-occurrence probability ($P_k$) and non-local co-occurrence probability ($P_\alpha$). To manage noise in document-level data, $P_\alpha$ is smoothed using the Jelinek-Mercer technique, balancing raw frequency with the "informativeness" of the word pair.
  3. Stratified Sampling: To avoid the noise inherent in standard random walks for text, the authors use a stratified sampling strategy. This method prioritizes direct neighbors (1-hop) over indirect ones (2-hop) using a decay parameter ($\beta$), limiting the context to a controlled 2-hop neighborhood.
  4. Optimization: The model is initialized with standard Word2Vec vectors and optimized using a skip-gram objective over the graph structure, forcing semantically related words (whether locally or document-wide) to be proximal in the embedding space.

Experimental Setup

The model was trained on a substantial corpus to ensure robust representations. The primary training set was the DBPedia-2014 corpus, which provides a diverse range of topics and document structures.

Table 1: Statistics of the DBPedia-2014 training corpus.

Evaluation was conducted across three major categories:

  • Word Similarity: Evaluated on MEN and WSIM-353.
  • Word Analogy: Evaluated on Google Analogy, MSR Analogy, and SemEval-2012.
  • Concept Categorization: Evaluated on AP, BLESS, and ESSL2b.

Key Results and Analysis

Word-Node2Vec consistently outperformed state-of-the-art baselines, including SGNS, GloVe, and FastText. On the MEN similarity dataset, Word-Node2Vec achieved a Spearman’s $\rho$ of 0.7491, significantly higher than GloVe (0.7066). In analogy tasks (MSR), it reached an accuracy of 0.2890, compared to 0.2777 for SGNS.

Hyperparameter Sensitivity

The performance of Word-Node2Vec is sensitive to the smoothing parameter $\alpha$ and the sampling decay $\beta$. Analysis shows that intermediate values for both parameters yield the best results, confirming that a balance between local and global context is essential.

Figure 1: Sensitivity analysis of hyperparameters α (smoothing) and β (sampling decay) on Spearman's ρ and P@1 metrics.

Qualitatively, the model shows improved semantic relevance. For the target word "album," Word-Node2Vec identifies neighbors like "released" and "song," whereas standard SGNS often captures more technical or metadata-related terms like "selftitled."

Conclusion

Word-Node2Vec demonstrates that document-level information is most effective when integrated directly into the learning process via a graph structure, rather than through post-hoc vector combinations. By bridging the gap between local syntax and global context, the model provides a superior foundation for static word embeddings. Future work may extend this graph-based formalism to learn document-level vectors for enhanced information retrieval.

Summary updated

BibTeX
@inproceedings{sen2019word,
  author = {Procheta Sen and Debasis Ganguly and Gareth J. F. Jones},
  title = {{Word-Node2Vec: Improving Word Embedding with Document-Level Non-Local Word Co-occurrences}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1109},
}
Figure