An Evaluation of Neural Machine Translation Models on Historical Spelling Normalization

Gongbo Tang, Fabienne Cap, Eva Pettersson, Joakim Nivre

Abstract

In this paper, we apply different NMT models to the problem of historical spelling normalization for five languages: English, German, Hungarian, Icelandic, and Swedish. The NMT models are at different levels, have different attention mechanisms, and different neural network architectures. Our results show that NMT models are much better than SMT models in terms of character error rate. The vanilla RNNs are competitive to GRUs/LSTMs in historical spelling normalization. Transformer models perform better only when provided with more training data. We also find that subword-level models with a small subword vocabulary are better than character-level models for low-resource languages. In addition, we propose a hybrid method which further improves the performance of historical spelling normalization.

Introduction

Historical documents often lack standardized spelling, presenting a significant hurdle for modern Natural Language Processing (NLP) tools. A single word might appear in multiple variants within the same text, many of which are absent from modern dictionaries. Historical Spelling Normalization (HSN) aims to map these variants (e.g., "citee") to their modern equivalents ("city"). While traditionally addressed using Statistical Machine Translation (SMT) or rule-based systems, these methods often struggle with the data sparsity inherent in historical corpora. This study evaluates the efficacy of various Neural Machine Translation (NMT) architectures in bridging this gap.

Methodology

The researchers framed spelling normalization as a sequence-to-sequence task, translating individual tokens at either the character or subword level. Eight distinct NMT configurations were tested, varying in architecture (RNN, GRU, LSTM, Transformer), attention mechanisms (none, soft, multi-head), and granularity.

Summary of NMT model configurations evaluated in the study.

The evaluation spanned five languages with diverse characteristics: English (1386–1698), German (1659–1780), Hungarian (1440–1541), Icelandic (1150–2008), and Swedish (1527–1812). These datasets varied in size and the proportion of words that remain unchanged in modern forms (ranging from 17.1% in Hungarian to 84.4% in German).

To further optimize performance, a hybrid approach was proposed: words previously seen in the training data are modernized via direct lookup, while unseen words are processed by the NMT model.

Results and Discussion

The experimental results demonstrate that NMT models generally outperform SMT baselines, particularly in reducing the Character Error Rate (CER).

Performance comparison (Accuracy and CER) of various models across five languages.

Key Findings

  • Architecture Performance: Surprisingly, vanilla RNNs proved competitive with more complex GRU and LSTM architectures. This is attributed to the short sequence lengths of individual words (averaging 4–6 characters), which mitigates the vanishing gradient problem typically associated with standard RNNs in sentence-level translation.
  • The Transformer's Data Requirements: While the Transformer architecture is the current standard for large-scale NLP, it only surpassed other models on the largest datasets (English and Hungarian). In lower-resource scenarios, simpler RNN-based models often yielded better results.
  • Granularity and Low-Resource Languages: For languages with limited training data, subword-level models using Byte Pair Encoding (BPE) with a small vocabulary (approx. 100 units) outperformed character-level models. This allows the model to learn meaningful morphological units like prefixes and suffixes.
  • The "Copy" Challenge: NMT models occasionally "over-normalize" words that are already in their modern form. The proposed hybrid method (dictionary lookup combined with NMT) effectively addresses this by prioritizing known mappings.

Conclusion

While NMT offers a powerful solution for historical spelling normalization, data sparsity remains a primary constraint. Future research directions include incorporating phonetic information to account for historical pronunciation-based spelling and utilizing contextual normalization to disambiguate words based on their surrounding sentence structure. Additionally, exploring "hard" attention mechanisms that enforce monotonic alignment may further improve efficiency for this specific task.

Summary updated

Abstract

In this paper, we apply different NMT models to the problem of historical spelling normalization for five languages: English, German, Hungarian, Icelandic, and Swedish. The NMT models are at different levels, have different attention mechanisms, and different neural network architectures. Our results show that NMT models are much better than SMT models in terms of character error rate. The vanilla RNNs are competitive to GRUs/LSTMs in historical spelling normalization. Transformer models perform better only when provided with more training data. We also find that subword-level models with a small subword vocabulary are better than character-level models for low-resource languages. In addition, we propose a hybrid method which further improves the performance of historical spelling normalization.
BibTeX
@inproceedings{tang2018evaluation,
  author = {Gongbo Tang and Fabienne Cap and Eva Pettersson and Joakim Nivre},
  title = {{An Evaluation of Neural Machine Translation Models on Historical Spelling Normalization}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=VqlsN6rtQfU},
}
Figure