Tokenization Falling Short: On Subword Robustness in Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chai, Yekun, Fang, Yewei, Peng, Qiwei, Li, Xuhong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916423105773568
author Chai, Yekun
Fang, Yewei
Peng, Qiwei
Li, Xuhong
author_facet Chai, Yekun
Fang, Yewei
Peng, Qiwei
Li, Xuhong
contents Language models typically tokenize raw text into sequences of subword identifiers from a predefined vocabulary, a process inherently sensitive to typographical errors, length variations, and largely oblivious to the internal structure of tokens--issues we term the curse of tokenization. In this study, we delve into these drawbacks and demonstrate that large language models (LLMs) remain susceptible to these problems. This study systematically investigates these challenges and their impact on LLMs through three critical research questions: (1) complex problem solving, (2) token structure probing, and (3) resilience to typographical variation. Our findings reveal that scaling model parameters can mitigate the issue of tokenization; however, LLMs still suffer from biases induced by typos and other text format variations. Our experiments show that subword regularization such as BPE-dropout can mitigate this issue. We release our evaluation code and data at https://github.com/FloatAI/TKEval.
format Preprint
id arxiv_https___arxiv_org_abs_2406_11687
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Tokenization Falling Short: On Subword Robustness in Large Language Models
Chai, Yekun
Fang, Yewei
Peng, Qiwei
Li, Xuhong
Computation and Language
Language models typically tokenize raw text into sequences of subword identifiers from a predefined vocabulary, a process inherently sensitive to typographical errors, length variations, and largely oblivious to the internal structure of tokens--issues we term the curse of tokenization. In this study, we delve into these drawbacks and demonstrate that large language models (LLMs) remain susceptible to these problems. This study systematically investigates these challenges and their impact on LLMs through three critical research questions: (1) complex problem solving, (2) token structure probing, and (3) resilience to typographical variation. Our findings reveal that scaling model parameters can mitigate the issue of tokenization; however, LLMs still suffer from biases induced by typos and other text format variations. Our experiments show that subword regularization such as BPE-dropout can mitigate this issue. We release our evaluation code and data at https://github.com/FloatAI/TKEval.
title Tokenization Falling Short: On Subword Robustness in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2406.11687