Parsing Universal Dependencies without training

Héctor Martínez Alonso, Zeljko Agic, Barbara Plank, Anders Søgaard · DOI

Abstract

Dependency parsing is a critical task in natural language processing, typically requiring large-scale labeled datasets or sophisticated cross-lingual transfer mechanisms. This paper introduces UDP, the first training-free, rule-based parser specifically engineered for the Universal Dependencies (UD) framework. By integrating universal linguistic constraints with a Personalized PageRank algorithm, UDP achieves performance competitive with state-of-the-art cross-lingual transfer systems while demonstrating significantly greater robustness to domain shifts.

Introduction

The prevailing paradigm in dependency parsing relies on supervised learning from massive treebanks. However, these data-driven models often fail when applied to out-of-domain text—such as moving from news reports to legal documents—and frequently overlook the hard linguistic constraints defined by the target formalism. For resource-poor languages, the lack of training data necessitates "transfer" methods, which are often complex and computationally expensive.

UDP addresses these challenges by utilizing the inherent structural principles of the UD project to map grammatical relationships without any training data. This "rule-based renaissance" prioritizes linguistic logic over statistical patterns to create a more stable and language-independent parsing solution.

Methodology

The architecture of the Universal Dependency Parser (UDP) rests on two primary pillars: graph-based centrality and a two-step decoding process.

Personalized PageRank for Root Identification

To identify the main predicate or "root" of a sentence, UDP treats the sentence as a graph where content words (nouns, verbs, adjectives) serve as nodes. Potential head-dependent relationships form the edges. A Personalized PageRank (PR) algorithm is employed to determine node relevance. By using a "teleport probability" biased toward the first verb or content word, the algorithm effectively identifies the sentence's grammatical center.

Two-Step Decoding Strategy

The parsing process is executed in two distinct phases to enforce UD-specific constraints:

  1. Content Word Attachment: Content words are linked to one another based on their PageRank scores and a set of universal, UD-compliant rules (e.g., a noun may depend on a verb).
  2. Function Word Attachment: Function words (such as determiners and adpositions) are attached as leaf nodes to content words. This ensures adherence to the core UD principle that function words should not act as heads.
The UDP algorithm pseudocode showing the two-step attachment process.

This language-independent system even estimates language-specific features, such as adposition direction (preposition vs. postposition), dynamically by analyzing word pattern frequencies in the input text.

Example of a dependency structure produced by UDP, illustrating the two-step decoding with solid lines for content words and dotted lines for function words.

Experimental Evaluation

UDP was evaluated across 32 languages using the Universal Dependencies v1.2 dataset. To assess robustness, the authors utilized domain-specific splits for languages including English, Italian, and Bulgarian, covering genres from legal documents to literature.

Key Results

  • Competitive Accuracy: UDP achieved an average Unlabeled Attachment Score (UAS) of 57.5%. While slightly lower than the 63.9% of state-of-the-art multi-source delexicalized (MSD) transfer systems, it is remarkably high for a zero-training approach. Notably, UDP outperformed the MSD system on Hindi.
  • Superior Robustness: UDP exhibited much lower performance variance across different domains (standard deviation of 1.8–3.1) compared to transfer systems (4.2–4.5).
  • Efficiency: The system provides a baseline for free that would typically require 100 to 300 gold-annotated sentences for a supervised parser to match.

Discussion and Limitations

The success of UDP demonstrates that linguistic formalism itself can serve as a powerful feature. By strictly adhering to the "content-as-head" rule, UDP avoids common errors found in unsupervised statistical parsers.

However, the "no-training" approach faces challenges with complex structures. Punctuation and conjunctions show low attachment accuracy (21%) due to their structural complexity. Furthermore, the current rule set does not support relative clauses (where a noun might head a verb) or specific multi-word expressions. Future work aims to incorporate edge labeling and use PageRank to score edges directly, potentially improving the handling of these intricate grammatical patterns.

Conclusion

UDP represents a significant step forward for low-resource NLP. By prioritizing linguistic principles over data-driven patterns, it offers a robust, efficient, and language-independent solution for dependency parsing without the need for labeled training data.

Summary updated

BibTeX
@inproceedings{alonso2017parsing,
  author = {Héctor Martínez Alonso and Zeljko Agic and Barbara Plank and Anders Søgaard},
  title = {{Parsing Universal Dependencies without training}},
  booktitle = {EACL},
  year = {2017},
  doi = {10.18653/v1/e17-1022},
}
Figure