Enhancing Unsupervised Generative Dependency Parser with Contextual Information

Wenjuan Han, Yong Jiang, Kewei Tu

Introduction

Unsupervised dependency parsing aims to induce grammatical structures from raw text without human-annotated "gold" trees. Traditional approaches, such as the Dependency Model with Valence (DMV), typically rely on generative probabilistic models. However, these models are often constrained by a "context-free" independence assumption, where the probability of a dependency link depends solely on local information (head, child, direction, and valence). This limitation ignores crucial global sentence-level information that could resolve structural ambiguities.

This paper introduces D-NDMV (Discriminative Neural Dependency Model with Valence), a novel unsupervised parser that incorporates global context using a neural encoder-decoder framework. By conditioning grammar rule probabilities on a continuous latent representation of the entire sentence, D-NDMV significantly improves parsing accuracy across diverse datasets.

Methodology

The D-NDMV architecture bridges generative and discriminative approaches by utilizing an autoencoder-style structure.

Model Architecture

The model consists of two primary components:

  1. The Encoder: A Long Short-Term Memory (LSTM) network processes the input sequence $\mathbf{w}$ to generate a fixed-length vector $s$. This vector serves as a "global flavor" summary of the sentence's syntactic and semantic context.
  2. The Decoder: A conditional neural DMV. Unlike standard DMV, which uses fixed probability tables, D-NDMV employs a neural network to compute rule probabilities conditioned on the global vector $s$.
Architecture of the D-NDMV model, illustrating the integration of the LSTM sentence representation into the neural dependency parser.

Deterministic and Variational Variants

The authors explore two ways to handle the global representation $s$:

  • Deterministic Variant (DV): The sentence is mapped directly to a fixed vector $s = f(\mathbf{w})$.
  • Variational Variant (VV): The global representation is treated as a latent variable sampled from a distribution $p(s)$, similar to a Variational Autoencoder (VAE). This allows the model to account for uncertainty in the sentence's global context.
Graphical models for the deterministic (left) and variational (right) D-NDMV variants.

Experimental Setup

The model was evaluated on 17 treebanks to ensure cross-linguistic robustness:

  • English Penn Treebank (WSJ): The standard benchmark for English parsing.
  • Universal Dependency (UD) Treebanks: Eight languages including French, German, and Spanish.
  • PASCAL Challenge on Grammar Induction: Eight additional languages such as Arabic, Czech, and Swedish.

Results and Discussion

D-NDMV achieved state-of-the-art results in unsupervised parsing. On the English WSJ10 dataset, the deterministic variant reached 75.6% Directed Dependency Accuracy (DDA), a significant improvement over the original DMV (58.3%) and prior neural DMV implementations (72.5%). Across the UD datasets, the variational variant achieved an average DDA of 60.1%, outperforming recent competitive baselines like LC-DMV.

Key Insights

  • Global Context Utility: Injecting a global summary into local decision-making effectively breaks the context-free assumption, allowing the parser to resolve ambiguities that local-only models cannot.
  • Syntactic Style Capture: Analysis of the latent embeddings $s$ revealed that the model naturally clusters sentences by syntactic "style" or genre, adjusting rule probabilities accordingly.
  • Embedding Dimension: Performance is sensitive to the dimension of $s$. A small dimension (e.g., 10) was found to be optimal, preventing the model from "degenerating" by memorizing specific sentences rather than learning general syntax.

Conclusion and Future Work

D-NDMV demonstrates that incorporating global context is a universal benefit for unsupervised grammar induction. While the model is sensitive to hyperparameters and still benefits from heuristic initialization, it represents a significant step toward more expressive unsupervised parsers. Future work may explore extending this framework to fully lexicalized models and investigating more robust initialization strategies.

Summary updated

BibTeX
@inproceedings{han2019enhancing,
  author = {Wenjuan Han and Yong Jiang and Kewei Tu},
  title = {{Enhancing Unsupervised Generative Dependency Parser with Contextual Information}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1526},
}
Figure