Word Representations, Tree Models and Syntactic Functions

Simon Suster, Gertjan van Noord, Ivan TitovarXiv 2015

Abstract

Word representations induced from models with discrete latent variables (e.g., HMMs) have been shown to be beneficial in many NLP applications. In this work, we exploit labeled syntactic dependency trees and formalize the induction problem as unsupervised learning of tree-structured hidden Markov models. Syntactic functions are used as additional observed variables in the model, influencing both transition and emission components. Such syntactic information can potentially lead to capturing more fine-grain and functional distinctions between words, which, in turn, may be desirable in many NLP applications. We evaluate the word representations on two tasks—named entity recognition and semantic frame identification. We observe improvements from exploiting syntactic function information in both cases, with results rivaling those of state-of-the-art representation learning methods. Additionally, we revisit the relationship between sequential and unlabeled-tree models and find that the advantage of the latter is not self-evident.

Introduction

Traditional word representation models, such as standard sequential HMMs or neural models like Skip-Gram, typically rely on the distributional hypothesis using linear context—words are defined by their immediate neighbors. While recent advancements have explored using syntactic dependency trees to define context, these models often utilize unlabeled trees. By ignoring the specific nature of syntactic relationships (e.g., distinguishing a subject from an object), these models fail to capture critical semantic nuances.

This paper addresses this gap by explicitly incorporating syntactic labels into the representation learning process. By treating syntactic functions as observed variables within a tree-structured HMM, the model can distinguish between different semantic roles, leading to more precise word representations.

Methodology

The authors frame representation learning as unsupervised learning of a tree-structured Hidden Markov Model (HMM), adapting an "Input-Output HMM" architecture to work on dependency trees.

The tree-structured HMM architecture incorporating syntactic functions ($r$) as observed variables.

In this architecture, the model consists of three primary variables:

  • $w$: The observed word.
  • $c$: The hidden semantic class (latent state).
  • $r$: The observed syntactic function (e.g., nominal modifier, direct object).

Because the syntactic function is observed, it modulates both the transition probabilities (moving from a parent's hidden state to a child's hidden state) and the emission probabilities. The model can generate context-sensitive vectors (POST-TOKEN) for specific sentences to handle polysemy, or static, context-insensitive dictionaries (POST-TYPE) by averaging vectors across a corpus. Interestingly, the authors found that static representations often performed better in downstream tasks, likely due to a regularizing effect that increases robustness against parsing errors.

Experimental Setup

The model was trained on large-scale parsed corpora for two languages:

  • English: 43 million words from the Bllip corpus, parsed using the MST dependency parser.
  • Dutch: 2.5 million sentences from the SoNaR corpus, parsed with the Alpino parser.

Evaluation was conducted on Named Entity Recognition (NER) (CoNLL-2003, CoNLL-2002, and MUC-7) and Semantic Frame Identification (FrameNet 1.5).

Results and Discussion

A key finding of this research is that unlabeled trees are not a "silver bullet"; simply replacing a sequential model with an unlabeled tree model does not consistently improve performance. The advantage of tree structures is only fully realized when syntactic labels are included.

Performance comparison across English and Dutch NER tasks.

As shown in the results table, the syntax-aware model (SYNFUNC-HMM) achieved state-of-the-art performance for Dutch NER with an F1 score of 76.85, significantly outperforming Skip-Gram (73.57). This suggests that syntax-aware models are particularly valuable for languages with flexible word order, like Dutch, where linear sequence models struggle. In English, SYNFUNC-HMM (79.76 F1) performed competitively with Skip-Gram (79.88 F1), though the basic sequential HMM remained the top performer for that specific dataset (80.17 F1).

In semantic frame identification, the syntax-aware HMM outperformed other HMM variants (82.95% exact match) and was highly competitive with Skip-Gram (83.19%).

Conclusion

This work demonstrates that incorporating syntactic functions into latent variable models significantly improves the quality of induced word representations, especially for tasks requiring functional or semantic role distinctions. While the method depends on the accuracy of an external parser and involves higher computational costs for inference, the performance gains—particularly in flexible-word-order languages—justify the approach. Future research could explore integrating these context-type distinctions into modern neural frameworks.

Summary updated

BibTeX
@misc{suster2015word,
  author = {Simon Suster and Gertjan van Noord and Ivan Titov},
  title = {{Word Representations, Tree Models and Syntactic Functions}},
  year = {2015},
  eprint = {1508.07709},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.07709},
}
Figure