Utilizing Subword Entities in Character-Level Sequence-to-Sequence Lemmatization Models

Nasser Zalmout, Nizar Habash

Introduction

Lemmatization—the process of mapping an inflected word to its dictionary base form—is a fundamental task in Natural Language Processing (NLP). It is particularly challenging for morphologically rich languages (MRLs) like Arabic due to three primary factors: high sparsity (one lemma can produce hundreds of forms), orthographic ambiguity (lack of diacritics), and a complex templatic structure that interweaves root consonants with patterns. Traditional approaches often rely on expensive, hand-coded morphological analyzers. This paper explores how character-level sequence-to-sequence (seq2seq) models can be significantly improved using data-driven subword entities that do not require such costly resources.

Methodology

The authors build upon a context-aware, character-level seq2seq architecture. They investigate two main strategies for integrating subword information:

  1. Encoder Conditioning: Subword embedding vectors are concatenated to each input character embedding. The researchers tested several types of subwords, including generic FastText n-gram embeddings, heuristic-based "greedy" roots and stems, and unsupervised Morfessor units.
  2. Multitask Learning: The model is trained to simultaneously predict the lemma and auxiliary morphological features (stems, roots, or patterns) at the decoder stage.

To evaluate these methods, the models were tested on Modern Standard Arabic (MSA) and Egyptian Arabic (EGY), utilizing large-scale pretraining on the Gigaword and BOLT corpora to generate high-quality embeddings.

Results and Performance

A key finding of the study is that "linguistically shallow" features, specifically FastText n-gram embeddings, consistently outperform more complex, linguistically-informed features like heuristic roots and patterns. This suggests that statistical patterns captured by n-grams serve as a robust proxy for complex morphology.

Table 1: Performance comparison of various lemmatization models on MSA and EGY datasets.

As shown in Table 1, the best-performing model (utilizing FastText) achieved 95.4% accuracy for MSA and 83.3% for EGY. Compared to a strong seq2seq baseline, this represents a 22% relative error reduction for MSA and a 13% reduction for EGY. Notably, this data-driven system outperformed baselines that had access to manually-constructed morphological dictionaries.

Generalization to Unseen Data

The proposed model excels in "zero-shot" scenarios where neither the word nor the lemma appeared in the training set. By leveraging subword information and local context (two words before and after), the model effectively "guesses" the correct lemma for novel vocabulary.

Table 2: Model performance on seen versus unseen words and lemmas across dialects.

Table 2 illustrates this capability, showing that the "Best model" significantly improves accuracy on unseen words by nearly 6% absolute over the baseline for MSA. This generalization is critical for handling the high lexical variety found in MRLs.

Conclusion and Future Work

This research demonstrates that character-level seq2seq lemmatization can be substantially enhanced by incorporating subword information, with generic n-gram embeddings proving surprisingly superior to heuristic linguistic features. While the model benefits from large unlabeled corpora for pretraining, it removes the dependency on expensive morphological analyzers. Future work may involve testing this architecture on other morphologically rich languages, such as Hebrew or Turkish, and exploring more sophisticated methods for combining different subword types.

Summary updated

BibTeX
@inproceedings{zalmout2020utilizing,
  author = {Nasser Zalmout and Nizar Habash},
  title = {{Utilizing Subword Entities in Character-Level Sequence-to-Sequence Lemmatization Models}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.412},
}
Figure