A Deeper Look into Dependency-Based Word Embeddings

Sean MacAvaney, Amir ZeldesStudent Research Workshop @ NAACL 2018

Abstract

Traditional word embeddings often struggle to distinguish between topical relatedness and functional similarity. This study explores the use of dependency-based contexts, comparing the English-specific Stanford Dependencies (SD) with the cross-lingual Universal Dependencies (UD). By evaluating various levels of graph enhancement, the research finds that enhanced dependency structures—particularly Universal Dependencies—markedly improve the representation of functional similarity, especially for verbs, while linear contexts remain superior for downstream tasks like Named Entity Recognition.

Introduction

Most popular word embedding models, such as Word2Vec, rely on a "linear context" where a word's meaning is derived from its immediate neighbors. While effective for capturing broad semantic associations, this approach often conflates topical relatedness (e.g., doctor and hospital) with functional similarity (e.g., doctor and surgeon).

Building on the work of Levy and Goldberg (2014), this paper investigates whether newer, cross-lingual Universal Dependencies (UD) offer advantages over the traditional Stanford Dependencies (SD). Furthermore, it examines whether "enhancing" these dependency graphs—by adding edges for shared subjects or conjunctions—provides a richer signal for learning fine-grained semantics.

Methodology

The authors compared two major dependency annotation schemes across five levels of "enhancement," ranging from unlabeled structures to complex graphs with propagated subjects.

Overview of experimental contexts: Linear vs. Dependency-based models.

The levels of enhancement tested include:

  • Unlabeled: Structural graph information without relationship names.
  • Simplified: Grouping specific labels into broad categories (e.g., "mod" for all modifiers).
  • Basic: The standard output of a dependency parser.
  • Enhanced & Enhanced++: Adding extra edges to capture complex relationships, such as subject propagation across controlled verbs.

The models were trained using the word2vecf framework on a 4.3-billion-token English Wikipedia corpus and compared against standard linear baselines (CBOW and Skip-Gram).

Mapping of dependency labels for Simplified and Basic schemes across Stanford and Universal systems.

Evaluation and Key Results

The models were evaluated on similarity ranking (WordSim-353, SimLex-999) and downstream tasks (Question Classification, NER).

Functional Similarity and Verb Performance

A key finding was the significant advantage of Enhanced Universal Dependencies for verb similarity. Enhanced UD reached a correlation of 0.350 for verbs, nearly doubling the performance of the Skip-Gram + Subword baseline (0.166). This suggests that explicit links between verbs and distant arguments provide a much cleaner semantic signal than local linear windows.

Comparative Performance

  • Similarity: On the WordSim-353 similarity subset, Enhanced UD achieved an AUC of 0.823, significantly higher than the best linear baseline (CBOW, k=5) at 0.701.
  • Ranking: Basic Stanford Dependencies achieved the highest overall Spearman correlation on SimLex-999 (0.402), compared to 0.309 for the linear CBOW baseline.
  • Downstream Tasks: Interestingly, linear contexts (especially fastText with subword info) still outperformed dependency models in Named Entity Recognition (NER), suggesting that local character patterns are more critical for entity identification than deep syntax.

Discussion and Insights

The study highlights that while grammatical labels provide a significant boost for most word classes, they are less critical for adjectives, where the mere presence of a modification relationship is the primary signal.

The choice between Universal and Stanford dependencies depends on the task: UD excels at capturing pure similarity, while SD is slightly better for overall functional ranking in English. However, the reliance on dependency parsers remains a bottleneck; parser errors in complex sentences directly degrade embedding quality.

Conclusion

Dependency-based embeddings, particularly those using enhanced Universal Dependencies, offer a powerful tool for capturing functional similarity. Future research may focus on hybrid models that combine the topical strengths of linear windows with the structural precision of dependency graphs, as well as extending these findings to non-English languages where the benefits of Universal Dependencies may be even more pronounced.

Summary updated

BibTeX
@inproceedings{macavaney2018deeper,
  author = {Sean MacAvaney and Amir Zeldes},
  title = {{A Deeper Look into Dependency-Based Word Embeddings}},
  booktitle = {Student Research Workshop @ NAACL},
  year = {2018},
  doi = {10.18653/v1/n18-4006},
}
Figure