Universal Dependency Parsing from Scratch

Peng Qi, Timothy Dozat, Yuhao Zhang, Christopher D. Manning

Abstract

Dependency parsing is a critical task in natural language processing, yet most research assumes pre-tokenized and pre-tagged input. In real-world applications, systems must process raw, unformatted text. This paper introduces a complete neural pipeline designed for the CoNLL 2018 Shared Task on Universal Dependency (UD) parsing. By incorporating novel architectural components—including a gated tokenizer, a biaffine tagger for cross-tag consistency, and a location-aware parser—the system achieves state-of-the-art performance, particularly excelling in low-resource language environments.

The Challenge of Raw Text Parsing

Traditional dependency parsers often operate on "clean" datasets where sentence boundaries, tokens, and parts of speech are already defined. However, errors in these early pipeline stages—such as incorrect word splitting or misidentified verbs—cascade through the system, significantly degrading the final parse quality. This research addresses the need for a robust, end-to-end system capable of handling tokenization, sentence segmentation, multi-word token expansion, POS tagging, lemmatization, and dependency parsing across a diverse array of languages.

Methodology

The proposed modular neural pipeline optimizes each stage for both individual accuracy and downstream compatibility.

Gated Tokenizer

The tokenizer utilizes a combination of BiLSTMs and 1-D Convolutional Neural Networks (CNNs). A key innovation is the gating mechanism, which prevents information leakage across token boundaries, enhancing robustness against noisy text.

Architecture of the Gated Tokenizer.

Biaffine Tagger and Hybrid Lemmatizer

To ensure consistency across different tag types (e.g., Universal POS vs. Language-specific POS), the authors implemented a biaffine classifier. This approach forces the model to predict mutually consistent tags for each word. For lemmatization, the system employs a hybrid strategy: a dictionary for common words and a sequence-to-sequence (seq2seq) model for rare ones, augmented by an "edit classifier" to determine if complex neural editing is necessary.

Location-Aware Parser

While standard parsers rely on implicit neural learning of word relationships, this system explicitly models linearization (head direction) and distance. By using a Cauchy distribution to penalize unlikely long-distance connections, the parser incorporates geometric "hints" that aid in resolving grammatical ambiguities.

Key Insights

  • Structural Consistency: Conditioning XPOS and UFeats on UPOS predictions via biaffine attention significantly reduced "impossible" tag combinations.
  • Geometric Modeling: Explicit distance and direction terms in the scoring function provided a measurable boost, suggesting that spatial awareness is a valuable architectural prior.
  • Handling the Long Tail: The lemmatizer's edit classifier proved vital for low-resource languages, preventing the seq2seq model from "hallucinating" incorrect forms for rare words.

Key Results

The system was evaluated on the CoNLL 2018 UD Shared Task data, comprising 82 treebanks across 57 languages. Following a post-submission bug fix (referred to as "Stanford+"), the system demonstrated exceptional performance.

Performance comparison on Small, Low-Resource, and PUD treebanks.

As shown in the table above, the Stanford+ system significantly outperformed reference models in challenging scenarios. On low-resource treebanks, it achieved a Labeled Attachment Score (LAS) of 63.20, compared to the reference's 27.89. Globally, the corrected system would have ranked 2nd in LAS and 1st in MLAS (Morphology-aware LAS).

Limitations and Future Directions

Despite its success, the system remains a pipeline, meaning it is still susceptible to error cascades from early stages like tokenization. Future work may explore joint training of all tasks to mitigate this. Additionally, the authors noted that integrating context-sensitive embeddings (such as BERT or ELMo) could further enhance accuracy. Finally, the computational cost of training separate models for over 80 treebanks remains a significant engineering challenge.

Summary updated

BibTeX
@inproceedings{qi2018universal,
  author = {Peng Qi and Timothy Dozat and Yuhao Zhang and Christopher D. Manning},
  title = {{Universal Dependency Parsing from Scratch}},
  booktitle = {CoNLL Shared Task},
  year = {2018},
  doi = {10.18653/v1/k18-2016},
}
Figure