When Every Token Counts: Optimal Segmentation for Low-Resource Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Raj, Bharath, Suri, Garvit, Dewangan, Vikrant, Sonavane, Raghav
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909598495014912
author Raj, Bharath
Suri, Garvit
Dewangan, Vikrant
Sonavane, Raghav
author_facet Raj, Bharath
Suri, Garvit
Dewangan, Vikrant
Sonavane, Raghav
contents Traditional greedy tokenization methods have been a critical step in Natural Language Processing (NLP), influencing how text is converted into tokens and directly impacting model performance. While subword tokenizers like Byte-Pair Encoding (BPE) are widely used, questions remain about their optimality across model scales and languages. In this work, we demonstrate through extensive experiments that an optimal BPE configuration significantly reduces token count compared to greedy segmentation, yielding improvements in token-saving percentages and performance benefits, particularly for smaller models. We evaluate tokenization performance across various intrinsic and extrinsic tasks, including generation and classification. Our findings suggest that compression-optimized tokenization strategies could provide substantial advantages for multilingual and low-resource language applications, highlighting a promising direction for further research and inclusive NLP.
format Preprint
id arxiv_https___arxiv_org_abs_2412_06926
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle When Every Token Counts: Optimal Segmentation for Low-Resource Language Models
Raj, Bharath
Suri, Garvit
Dewangan, Vikrant
Sonavane, Raghav
Computation and Language
Artificial Intelligence
Machine Learning
Traditional greedy tokenization methods have been a critical step in Natural Language Processing (NLP), influencing how text is converted into tokens and directly impacting model performance. While subword tokenizers like Byte-Pair Encoding (BPE) are widely used, questions remain about their optimality across model scales and languages. In this work, we demonstrate through extensive experiments that an optimal BPE configuration significantly reduces token count compared to greedy segmentation, yielding improvements in token-saving percentages and performance benefits, particularly for smaller models. We evaluate tokenization performance across various intrinsic and extrinsic tasks, including generation and classification. Our findings suggest that compression-optimized tokenization strategies could provide substantial advantages for multilingual and low-resource language applications, highlighting a promising direction for further research and inclusive NLP.
title When Every Token Counts: Optimal Segmentation for Low-Resource Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2412.06926