arXiv:2609.06690cs.CLSep 2026

Manuscript Offprint

arXiv:2609.06690

A Grapheme-Aware Indic Tokenizer for Tamil: Large-Scale Training and Intrinsic Evaluation

Hari Krishnan K, Sudarsun Santhiappan

Abstract

Tokenization forms the foundation of modern Natural Language Processing (NLP) systems by transforming raw text into discrete units that neural language models can process. The effectiveness of this process directly influences vocabulary efficiency, sequence length, computational cost, and downstream model performance. Although multilingual tokenizers such as Byte Pair Encoding (BPE), WordPiece, and SentencePiece have performed well across numerous languages, they often segment morphologically rich Indic languages inefficiently. Tamil, in particular, poses unique challenges because its grapheme-based writing system can represent a single visible character with multiple Unicode code points. Conventional Unicode-level tokenizers often fragment these grapheme clusters into multiple subword units, increasing sequence lengths and reducing vocabulary efficiency.

In this work, we present a grapheme-aware Indic tokenizer for Tamil that preserves complete grapheme clusters through a reversible Unicode mapping strategy prior to WordPiece vocabulary learning. By operating on grapheme-level representations instead of individual Unicode code points, the tokenizer produces linguistically meaningful token boundaries while remaining fully compatible with transformer-based language models. The tokenizer is trained on a large-scale Tamil corpus and evaluated using a comprehensive intrinsic evaluation framework that measures compression efficiency, token fragmentation, information density, and vocabulary utilization.

Experimental evaluation compares the proposed tokenizer against five widely used multilingual tokenizers: GPT-2, mBERT, mT5, mBART, and NLLB. The proposed tokenizer achieves the strongest performance among the evaluated tokenizers on fragmentation- and sequence-efficiency-oriented intrinsic metrics, while matching the highest observed compression ratio. These results demonstrate the effectiveness of grapheme-aware preprocessing for Tamil tokenization.

Keywords Tamil NLP · Grapheme-aware Tokenization · WordPiece · Indic Languages · Intrinsic Evaluation

1 Introduction

Tokenization is one of the most fundamental stages of modern Natural Language Processing (NLP) pipelines. Every transformer-based language model first converts raw text into discrete tokens before learning contextual representations. Consequently, tokenization quality directly influences sequence length, vocabulary efficiency, computational requirements, and ultimately the effectiveness of downstream language models.

Modern multilingual language models predominantly employ subword tokenization algorithms such as Byte Pair Encoding (BPE), WordPiece, or SentencePiece. These approaches successfully balance vocabulary size with the ability to represent unseen words and have become the standard choice for models including

A Preprint

GPT, mBERT, mT5, mBART, and NLLB. However, because multilingual vocabularies are jointly learned across hundreds of languages, vocabulary capacity must be shared among scripts exhibiting vastly different linguistic and morphological characteristics. This often results in suboptimal segmentation for low-resource and morphologically rich languages, including many Indic languages.

Tamil presents additional challenges due to its writing system. Unlike Latin-based scripts, Tamil text is naturally organised around grapheme clusters rather than individual Unicode code points. A single visible Tamil character may be composed of multiple Unicode code points representing consonants, vowels, and combining marks. Conventional tokenizers typically operate directly on Unicode sequences without explicitly preserving grapheme boundaries, frequently splitting complete grapheme clusters into multiple subword fragments. Such fragmentation increases token sequence lengths, reduces compression efficiency, and may adversely affect representation learning in downstream models.

Language-specific tokenization strategies provide an opportunity to address these limitations by incorporating script-level linguistic information during vocabulary construction. Grapheme-aware tokenization preserves complete grapheme clusters before subword learning, allowing vocabulary construction to operate on linguistically meaningful units while maintaining compatibility with existing transformer architectures. Such approaches are particularly attractive for Indic languages, where grapheme integrity closely reflects the underlying orthographic structure.

Evaluating tokenizer quality remains equally important. Most prior work measures tokenizer performance indirectly through downstream NLP tasks, making it difficult to isolate tokenizer behavior from model architecture and training procedures. Intrinsic evaluation offers a complementary perspective by directly quantifying tokenizer characteristics such as compression efficiency, fragmentation, sequence length, information density, and vocabulary utilization without requiring expensive model training.

In this work, we investigate a grapheme-aware Indic tokenizer for Tamil and evaluate its effectiveness using a comprehensive intrinsic evaluation framework. We train the tokenizer on a large-scale Tamil corpus and systematically compare it against widely used multilingual tokenizers. We employ multiple intrinsic metrics to analyze compression behavior, fragmentation characteristics, vocabulary efficiency, and token sequence quality independently of downstream language models.

The primary contributions of this work are summarised below.

  • We present a grapheme-aware WordPiece tokenizer for Tamil that preserves complete grapheme clusters through reversible Unicode mapping.
  • We train the tokenizer on a large-scale Tamil corpus and investigate the impact of vocabulary scaling on tokenizer quality.
  • We establish a comprehensive intrinsic evaluation framework comprising compression, fragmentation, and vocabulary-based metrics for systematic tokenizer comparison.
  • We compare the proposed tokenizer with widely used multilingual tokenizers including GPT-2, mBERT, mT5, mBART, and NLLB.
  • Experimental results demonstrate that grapheme-aware tokenization substantially reduces fragmentation while maintaining competitive compression efficiency and vocabulary utilisation.