An Effective Neural Network Model for Graph-based Dependency Parsing

Wenzhe Pei, Tao Ge, Baobao Chang

Presented at ACL 2015, this research represents a pivotal moment in the transition of Natural Language Processing (NLP) from manual feature engineering to deep learning. The paper introduces a neural network architecture designed to make graph-based dependency parsing—the task of determining the grammatical structure of a sentence—more efficient and accurate by automating the discovery of complex feature interactions.

The Challenge of Manual Feature Engineering

Dependency parsing is the backbone of many NLP applications, helping computers understand "who did what to whom" in a sentence. Historically, "graph-based" parsers were the gold standard because they could score entire tree structures. However, they relied on millions of manually designed, sparse features (e.g., "Is the head word a verb AND the modifier a noun AND is the distance between them 3?").

This approach led to several significant problems:

  1. Overfitting: With millions of features, models often memorized training data rather than learning general rules.
  2. The Curse of Dimensionality: Incorporating "high-order" information, such as looking at a word's siblings or grandparents, caused the feature space to explode, making models slow and memory-intensive.
  3. Domain Expertise: Designing these features required years of linguistic expertise and was prone to human error or omission.

A Neural Architecture for Dependency Scoring

The authors propose a Neural Network (NN) model to score subgraphs—arcs or groups of arcs—within a dependency tree. Unlike traditional models, this architecture learns from a small set of "atomic" features.

First-order and second-order dependency structures.

Innovative Components

  • Atomic Features & Embeddings: Instead of complex combinations, the model only takes basic "atomic" features as input: word unigrams and POS-tag unigrams. These are converted into dense, continuous vectors (embeddings).
  • The tanh-cube Activation Function: This is the paper's core innovation. Standard neural networks use functions like tanh or ReLU. The authors propose $g(l) = \tanh(l^3 + l)$. The cubic term ($l^3$) allows the network to automatically simulate the multiplication of input features, effectively "discovering" the high-order feature combinations that humans previously had to write by hand.
  • Phrase Embeddings: To capture broader context, the model uses "phrase-level" information. It divides the context of a word pair into three parts—prefix, infix, and suffix—and averages the word embeddings in those regions. This gives the parser a "panorama" view of the sentence without the sparsity issues of traditional n-grams.
Generation of phrase-level embeddings using prefix, infix, and suffix context.
  • Direction-Specific Transformation: The model uses different weight matrices depending on whether the dependency arc points to the left or the right, allowing it to learn direction-specific linguistic patterns.

Key Results and Insights

The model was evaluated on the English Penn Treebank (PTB), using word2vec pre-trained on the Gigaword corpus for initialization. The authors compared their model against MSTParser, a classic and highly optimized graph-based parser.

  • Accuracy: Their "2-order-phrase" model achieved an Unlabeled Attachment Score (UAS) of 93.29% on the PTB test set, significantly outperforming the conventional MSTParser (92.30%) and rivaling more complex third-order models.
  • Speed: The "1-order-atomic" version of their model was nearly 3x faster than the conventional first-order MSTParser (55 vs 20 sentences per second), proving that neural models can be both more accurate and more efficient.
  • Activation Matters: The authors demonstrate that tanh-cube converges faster and achieves higher accuracy than standard tanh or a simple cubic function, as the tanh component keeps values bounded and stable during training.

Conclusion and Future Directions

This work demonstrates that a non-linear activation function can replace labor-intensive manual feature conjunctions. By using dense embeddings, the model incorporates rich context that would be computationally prohibitive in traditional linear models.

While the scoring is neural, the decoding (the search for the best tree) still utilizes traditional algorithms like Eisner’s. Future work may explore more integrated neural decoding and the application of this "atomic feature" approach to morphologically richer languages where word structure is more complex.

Summary updated

BibTeX
@inproceedings{pei2015effective,
  author = {Wenzhe Pei and Tao Ge and Baobao Chang},
  title = {{An Effective Neural Network Model for Graph-based Dependency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-1031},
}
Figure