Egalitarian Language Representation in Language Models: It All Begins with Tokenizers

Menan Velayuthan, Kengatharaiyer Sarveswaran
9/17/2024
cs.CLcs.AI

No official code found. Best implementation: vmenan/tokenizers-coling2025 (0 stars, last commit 2025-01-21).

Abstract

Tokenizers act as a bridge between human language and the latent space of language models, influencing how language is represented in these models. Due to the immense popularity of English-Centric Large Language Models (LLMs), efforts are being made to adapt them for other languages. However, we demonstrate that, from a tokenization standpoint, not all tokenizers offer fair representation for complex script languages such as Tamil, Sinhala, and Hindi, primarily due to the choice of pre-tokenization methods. We go further to show that pre-tokenization plays a more critical role than the tokenization algorithm itself in achieving an egalitarian representation of these complex script languages. To address this, we introduce an improvement to the Byte Pair Encoding (BPE) algorithm by incorporating graphemes, which we term Grapheme Pair Encoding (GPE). Our experiments show that grapheme-based character extraction outperforms byte-level tokenizers for complex scripts. We validate this approach through experiments on Tamil, Sinhala, and Hindi.

View on arXivView PDF

Code Implementations(1)

This repo contain the datasets and other supplementary materials for "Egalitarian Language Representation in Language Models: It All Begins with Tokenizers"

02Python, Jupyter NotebookDec 15, 20241 years ago

Similar Papers

Cite this paper

@article{velayuthan2024egalitarian,
  title  = {Egalitarian Language Representation in Language Models: It All Begins with Tokenizers},
  author = {Menan Velayuthan and Kengatharaiyer Sarveswaran},
  year   = {2024},
  eprint = {2409.11501},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.11501v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.11501.svg)](https://codeofpaper.com/paper/2409.11501)

Discussion