Joint Diacritization, Lemmatization, Normalization, and Fine-Grained Morphological Tagging

Nasser Zalmout, Nizar Habash

Introduction

Arabic presents a unique challenge for natural language processing due to its morphological richness and high degree of orthographic ambiguity. Most written Arabic omits short vowels (diacritics), meaning a single string of characters can represent multiple distinct words depending on the context. Furthermore, the language is morphologically complex, where a single word can encapsulate information about person, number, gender, and case through a system of prefixes, suffixes, and internal changes.

The Modeling Granularity Problem

Traditional Arabic NLP systems often treat morphological tagging (word-level) and lexical generation (character-level) as separate tasks. Word-level models are excellent at capturing sentence-wide context for tasks like Part-of-Speech (POS) tagging, while character-level models are necessary for generating lemmas or diacritized forms. The core challenge addressed by researchers at NYU Abu Dhabi is bridging this granularity gap within a single, unified neural architecture.

Proposed Architecture

The authors propose a hybrid sequence-to-sequence (seq2seq) model that balances these competing requirements. The system consists of three main components:

  1. The Tagger: A word-level Bi-LSTM that predicts non-lexicalized features such as POS, gender, and number using multitask learning.
  2. The Shared Encoder: This component processes a sliding window of characters around a target word, providing the localized view necessary for generation tasks.
  3. The Decoders: Two separate decoders—one for lemmatization (Lex Decoder) and one for diacritization (Diac Decoder)—share the same encoder.
The joint architecture showing the Lex and Diac decoders conditioned on the predicted tags with a stop-gradient mechanism.

A critical innovation in this architecture is the conditioning mechanism. The decoders are informed by the predicted tags from the word-level tagger. By knowing the grammatical context (e.g., that a word is a feminine plural noun), the generator can more accurately determine the correct vowels or dictionary form. To ensure training stability, a stop-gradient mechanism is employed, preventing the complex loss from the generation tasks from interfering with the simpler, foundational tagging task.

Evaluation and Results

The model was evaluated on Modern Standard Arabic (MSA) using the Penn Arabic Treebank and on Egyptian Arabic (EGY) using the ARZ dataset. For Egyptian Arabic, the model also handled orthographic normalization (CODA) as a character-level generation task.

Performance comparison on Modern Standard Arabic (MSA) across various metrics, showing the superiority of joint modeling.

The results demonstrate significant improvements over existing state-of-the-art systems like MADAMIRA. In MSA, the joint model achieved a 20% relative error reduction compared to previous LSTM-based models. In Egyptian Arabic, it achieved an 11% relative error reduction. Notably, the model performed robustly even without an external morphological analyzer, highlighting its ability to handle out-of-vocabulary words through its character-level flexibility.

Discussion and Future Work

While the joint model represents a significant step forward, some challenges remain. The system can occasionally produce linguistically inconsistent outputs, such as a verb lemma paired with a noun POS tag. Future work may involve incorporating constraints to enforce 100% linguistic consistency. Additionally, the computational overhead of multiple decoders remains a consideration for real-time applications. Despite these limitations, the success in both MSA and Egyptian Arabic underscores the power of joint modeling for morphologically rich languages.

Summary updated

BibTeX
@inproceedings{zalmout2020joint,
  author = {Nasser Zalmout and Nizar Habash},
  title = {{Joint Diacritization, Lemmatization, Normalization, and Fine-Grained Morphological Tagging}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.736},
}
Figure