A Comparison of Different Tokenization Methods for the Georgian Language

Beso Mikaberidze, Temo Saghinadze, Guram Mikaberidze, Raphael Kalandadze, Konstantine Pkhakadze, Josef van Genabith, Simon Ostermann, Lonneke van der Plas, Philipp MüllerIcnlsp 2024

Introduction

Tokenization is a fundamental step in Natural Language Processing (NLP), yet its impact on morphologically complex, low-resource languages like Georgian remains under-explored. Georgian, a Kartvelian language with a unique script and highly agglutinative structure, presents significant challenges for standard tokenization methods. This paper evaluates various subword tokenization strategies to determine the optimal approach for Georgian NLP tasks.

The Challenge of Georgian Morphology

Georgian is characterized by complex verbal morphology where a single word can incorporate multiple prefixes and suffixes to convey information that would require a full sentence in English. This "vocabulary explosion" makes word-level tokenization impractical. While subword tokenization is the standard solution, the choice of algorithm and vocabulary size is critical for capturing the language's unique structural nuances.

Experimental Setup

The researchers compared three classes of tokenizers: subword tokenizers (WordPiece, BPE, and SentencePiece/Unigram), a token-free byte-level approach (ByT5), and a multilingual baseline (mBERT). Models were trained using a scaled-down BERT architecture (42M parameters) on a 1-million-word Georgian corpus. Downstream evaluation was performed on four tasks: Named Entity Recognition (NER), Part-of-Speech (POS) tagging, Toxicity Detection, and Sentiment Analysis.

Experimental parameters and dataset sizes for the evaluated downstream tasks.

Results and the "Toxicity Paradox"

The evaluation revealed a striking divergence in performance trends across tasks. For NER, POS tagging, and Sentiment Analysis, performance generally improved as vocabulary size increased (represented by vocabulary parameters in the figures). In contrast, Toxicity Detection exhibited a "Toxicity Paradox," where smaller vocabularies yielded better results.

F1 scores across four downstream tasks as a function of vocabulary parameters and tokenization method. Note the inverse trend in Toxicity Detection compared to other tasks.

The authors hypothesize that toxic language often employs rare or modified word forms. Finer granularity (smaller vocabularies) allows the model to identify the underlying toxic morphemes that might otherwise be subsumed into larger, less frequent subword units in a larger vocabulary. This approach set a new state-of-the-art for Georgian toxicity detection, achieving an accuracy of 0.959.

Key Findings

  • Native Pre-training Beats Multilingualism: Tokenizers trained specifically on Georgian text consistently outperformed the general-purpose mBERT tokenizer on almost every task, even with a relatively small pre-training corpus.
  • ByT5's Georgian Struggle: The byte-level ByT5 model performed significantly worse than subword methods. In UTF-8 encoding, each Georgian character requires 3 bytes, making input sequences three times longer and likely overwhelming the model's attention mechanism.
  • Top Performers: SentencePiece (Unigram) with a 64k vocabulary achieved the highest accuracy in Sentiment Analysis, while WordPiece and BPE led in POS tagging and NER, respectively.

Conclusion

For most Georgian NLP tasks, subword tokenizers with larger vocabularies are recommended. However, tasks sensitive to rare or modified morphemes, such as toxicity detection, benefit from higher granularity. Future research will extend this research to other Kartvelian languages like Mingrelian, Svan, and Laz.

Summary updated

BibTeX
@inproceedings{mikaberidze2024comparison,
  author = {Beso Mikaberidze and Temo Saghinadze and Guram Mikaberidze and Raphael Kalandadze and Konstantine Pkhakadze and Josef van Genabith and Simon Ostermann and Lonneke van der Plas and Philipp Müller},
  title = {{A Comparison of Different Tokenization Methods for the Georgian Language}},
  booktitle = {Icnlsp},
  year = {2024},
}
Figure