Training and Evaluating Improved Dependency-Based Word Embeddings

Chen Li, Jianxin Li, Yangqiu Song, Ziwei Lin

Introduction

Standard word embedding models, such as Word2Vec or GloVe, typically rely on a "bag-of-words" (BOW) or a local sliding window to define context. While effective, this approach suffers from two primary flaws. First, it treats all nearby words as equally important, ignoring the grammatical centrality of certain words to a target's meaning. Second, it struggles to capture long-distance relationships that are syntactically related but physically distant in a sentence.

This paper introduces a method to improve word embeddings by moving beyond simple sliding windows to selective, multi-order dependency relationships. By dynamically learning the importance of different grammatical connections during training, the authors produce embeddings that are more semantically accurate and robust across downstream NLP tasks.

Methodology: Multi-Order Dependency Contexts

The core innovation of this work is a Multi-Order Dependency-Based strategy integrated into modified versions of CBOW and Skip-Gram. Unlike previous dependency-based models that only considered direct neighbors in a parse tree (1st-order), this model considers "multi-hop" neighbors (2nd-order and beyond).

Dependency tree illustrating multi-order relationships in a sample sentence.

Adaptive Weighting and Optimization

Rather than using fixed weights for dependencies, the model treats dependency types (e.g., amod, nsubj) as parameters. During Stochastic Gradient Descent (SGD) training, the model automatically learns which dependencies are most valuable for predicting a word. The word vector is concatenated with a learned "dependency representation" vector, allowing the model to identify the most useful context in real-time. To handle large-scale corpora, the authors implemented dynamic context window sizes and a sub-sampling strategy for high-frequency dependencies to prevent them from dominating the learning process.

Key Insights and Results

Context Stability and Selectivity

A significant finding is that syntactic structure provides a cleaner signal than raw proximity. By filtering out neighbors that are not syntactically related, the embeddings become more stable. The multi-order approach captures fewer, but more significant, unique context words compared to N-gram or BOW methods. This selectivity leads to higher quality representations even with less data.

Growth of unique context words across different modeling strategies, showing the selectivity of multi-order dependencies.

Empirical Performance

The proposed $SG_{Deps}\&NS$ (Skip-Gram with Dependencies and Negative Sampling) model outperformed standard Skip-Gram and previous dependency models across almost all benchmarks:

  • Word Similarity: On the WS-353-SIM dataset, the model achieved a correlation of 0.7456, significantly higher than GloVe (0.5670).
  • Named Entity Recognition (NER): The model achieved an F1-score of 85.14, outperforming GloVe (83.64) and standard Skip-Gram (82.44).
  • Coreference Resolution: On the CoNLL-2012 dataset, the model reached an F1-score of 71.3, the highest among all tested embedding types.

Conclusion and Future Work

While the model demonstrates superior performance, it remains bounded by the quality of the initial dependency parser. Future work aims to explore whether these learned dependency parameters can be used to improve the performance of syntactic parsers themselves. Additionally, the authors seek to develop better visualization tools to interpret the explicit semantic meaning of individual vector dimensions.

Summary updated

BibTeX
@inproceedings{li2018training,
  author = {Chen Li and Jianxin Li and Yangqiu Song and Ziwei Lin},
  title = {{Training and Evaluating Improved Dependency-Based Word Embeddings}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12044},
}
Figure