Introduction
In Natural Language Processing (NLP), preprocessing is frequently treated as a "dark art" rather than a rigorous science. One of the most destructive practices in this domain is the mishandling of diacritics—marks added to letters to alter sound or meaning, such as the Spanish ñ, the Hindi nuqta, or Hebrew vowels. This paper argues that stripping or inconsistently encoding these marks significantly degrades model performance and creates linguistic inequity.
The Problem: Inconsistent Encoding and Aggressive Stripping
The authors identify two primary failures in current workflows. First, Unicode often allows multiple ways to represent the same character. For instance, a character can be "precomposed" or formed by a base letter plus a combining mark. Without normalization, models treat these as distinct entities, even when they appear identical to the reader.
Second, developers often strip diacritics entirely to simplify vocabularies. This "cleanup" removes vital semantic and grammatical information. In Greek, for example, νόμος (law) and νομός (district) become indistinguishable when accents are removed, introducing "invisible" ambiguity that even state-of-the-art models cannot resolve.
Tokenization Bloat and Model Efficiency
When models are not properly trained on diacritized text, their tokenizers struggle. Analysis of popular Large Language Models (LLMs) like LLaMA and mBERT shows that diacritized text in Arabic and Hebrew can require two to four times as many tokens as stripped text. This bloat wastes the model's context window and disrupts logical word boundaries, making the model less efficient and more prone to error.
Performance Impact and Case Studies
The benefits of proper handling are measurable and essentially "free." By simply applying NFKC normalization to the Hindi Dependency Treebank, the authors observed a 2.25% relative error reduction in Labeled Attachment Score (LAS) for zero architectural cost.
Conversely, missing diacritics lead to catastrophic failures in downstream tasks. In Spanish-to-Hebrew translation experiments, the absence of an accent on the word burlándose ('mocking') caused the model to incorrectly switch the gender of the translation to masculine, despite a feminine subject. Furthermore, even powerful models like GPT-4 struggle with "automatic diacritization" (restoring missing marks), frequently making errors in placement when prompted to fix undiacritized text.
Conclusion
Preserving diacritics is not just a technical requirement for accuracy; it is a matter of linguistic equity. Stripping these marks is often a Western-centric simplification that builds systems that perform worse for billions of speakers of diacritic-heavy languages. The NLP community must adopt deterministic normalization (NFC/NFD) and resist the urge to strip marks during pre-training to ensure systems are both accurate and equitable.
Summary updated