On the Role of Morphological Information for Contextual Lemmatization

Olia Toporkov, Rodrigo Agerri

TL;DR

Contrary to long-standing NLP wisdom, providing explicit, fine-grained morphological features (like case, gender, and number) is not necessary to build state-of-the-art contextual lemmatizers. Modern Transformer-based models like XLM-RoBERTa implicitly capture enough linguistic nuance to outperform traditional morphology-heavy systems, especially when applied to "out-of-domain" text.

What Problem Does This Paper Address?

Lemmatization—the process of reducing an inflected word (e.g., "running") to its base form ("run")—is a cornerstone of Natural Language Processing. For "morphologically rich" languages like Basque or Turkish, a single root can have hundreds of variations.

The standard approach has been to feed models detailed morphological tags to help them "understand" the transformation. However, the authors identify a major gap: most research only tests models on the same type of data they were trained on (in-domain). In the real world, lemmatizers are almost always used on new, unseen types of text (out-of-domain). This paper asks: Does all that extra morphological information actually help in the real world, or does it just make models more brittle?

Methods

The researchers conducted a massive empirical study across six languages with varying levels of complexity: Basque, Turkish, Russian, Czech, Spanish, and English.

They compared three main types of systems:

  1. Statistical Lemmatizers: Using tools like IXA pipes that rely on explicit features.
  2. Morphology-Aware Neural Models: Systems like Morpheus that jointly learn to tag and lemmatize.
  3. "Morphology-Blind" Neural Models: Fine-tuning modern Pre-trained Language Models (PLMs) like mBERT and XLM-RoBERTa.

Crucially, they treated lemmatization as a sequence labeling task. Instead of predicting the lemma directly, the models predict a Shortest Edit Script (SES)—a set of instructions (e.g., "delete last 2 chars, add 'ing'") to transform the word. They tested these models with varying levels of "help," ranging from no tags at all to full UniMorph fine-grained labels.

Datasets

The study utilized the Universal Dependencies (UD) and UniMorph datasets.

  • In-domain: Standard treebanks for each language (e.g., EWT for English, BDT for Basque).
  • Out-of-domain: Different corpora to test robustness (e.g., using Wikipedia-trained models to lemmatize literary reviews or social media posts).
  • Languages: A spectrum from highly agglutinative (Basque, Turkish) to fusional (Russian, Czech, Spanish) to weakly inflected (English).

Key Insights and Ideas

  • Transformers are "Hidden" Grammarians: Modern contextual word representations (like those in XLM-RoBERTa) implicitly encode morphological information. Adding explicit tags provides almost no statistical gain for neural models.
  • The "Less is More" Robustness: For out-of-domain settings, models using simple Universal POS (UPOS) tags—or no tags at all—often performed better than those burdened with complex morphological features.
  • The Metric Trap: The authors argue that Word Accuracy is a deceptive metric. It gives "free points" for punctuation and easy words (like "the"). They propose Sentence Accuracy as a much harsher, but more realistic, way to discriminate between high-performing models.
  • Annotation Inconsistency: A fascinating finding was that "errors" in out-of-domain Spanish tests were actually due to inconsistent human labeling (e.g., one dataset lemmatizing "Madrid" as lowercase "madrid" while the other kept it capitalized), highlighting the fragility of gold-standard benchmarks.

Key Results

  • XLM-RoBERTa-large emerged as the clear winner. Fine-tuning it with only SES labels (and no explicit morphology) achieved state-of-the-art or near-SOTA results across almost all languages.
  • Neural beats Statistical: Neural models without any morphological signal consistently beat statistical models that were given "gold-standard" morphological tags.
  • The Out-of-Domain Cliff: Every model saw a significant performance drop when moving out-of-domain. For highly inflected languages like Turkish, accuracy dropped by over 10 points, proving that lemmatization is far from a "solved" task.

Limitations and Future Work

The authors acknowledge that while PLMs are powerful, they still struggle with low-frequency transformations and out-of-vocabulary words. If a specific SES (edit script) only appears a few times in the training data, the model is unlikely to learn it correctly.

Future work suggests moving beyond simple word accuracy to develop more nuanced evaluation metrics. There is also a call for better "silver-standard" data cleaning to resolve the annotation inconsistencies that currently plague cross-domain evaluation. Finally, the authors suggest exploring whether even larger models or different fine-tuning strategies can bridge the massive gap in out-of-domain performance for agglutinative languages.

Summary updated

BibTeX
@article{toporkov2024role,
  author = {Olia Toporkov and Rodrigo Agerri},
  title = {{On the Role of Morphological Information for Contextual Lemmatization}},
  journal = {Comput. Linguistics},
  year = {2024},
  doi = {10.1162/coli\_a\_00497},
}
Figure