Preprint
Article

This version is not peer-reviewed.

Post-Hoc Vocabulary Extension for Low-Resource Languages: Gains Beyond Fine-Tuning, a Pre-Tokenizer Limit, and Effects on Degenerate Generation

Submitted:

22 October 2026

Posted:

23 October 2026

You are already at the latest version

Abstract
Open-weight language models segment many low-resource languages into three to ten tokens per word, which raises inference cost and latency and leaves less of the context window for content. Extending a pretrained model’s vocabulary after training is a known remedy, but recent reports of it do not separate the effect of the new vocabulary from the effect of the additional training it requires. We study post-hoc extension of Qwen2.5-1.5B for six low-resource and under-served languages in four scripts: Urdu, Sindhi, Pashto, Amharic, Hindi and Tamil. Each extended model is compared with a model fine-tuned under the same budget without new vocabulary. For Hindi and Tamil, extension alone gives little: the inherited pre-tokenizer splits words at every vowel sign, and plain extension already reaches 95 to 99 percent of the compression it allows. A script-scoped repair of the pre-tokenizer, applied to the pretrained model, removes this limit. With 2,000 new tokens, and with the repair for Hindi and Tamil, sequences become 45 to 72 percent shorter and generating the same text is 1.75 to 3.64 times faster. At equal compute, the extended models have lower held-out bits per character than fine-tuning alone and translate into English better on FLORES-200, in all six languages. Extension also reduces degenerate repetition when the model writes these languages. A vocabulary-size sweep, a length-matched analysis, forced fragmentation of English output, and an ablation that freezes the new embeddings all point to fragmentation as one cause of this repetition. We release the toolkit, tokenizers and adapters.
Keywords: 
;  ;  ;  ;  ;  ;  ;  

1. Introduction

Byte-level BPE tokenizers (Radford et al. 2019,Sennrich et al. 2016) are trained mostly on high-resource text, and the languages that were scarce in that text pay for it at inference time. The same sentence costs several times more tokens in Sindhi, Pashto or Amharic than in English (Ahia et al. 2023,Petrov et al. 2023). Users of these languages pay more per request, wait longer for each response, and fit less material into a fixed context. For Sindhi, the cost relative to English has been measured at 2.87 to 4.98 times across five tokenizers (Ehsan 2026).
Training a new model with a better tokenizer is out of reach for most groups that work on these languages. Post-hoc vocabulary extension is the practical alternative: add target-language tokens to an existing model, initialize their embeddings, and adapt the model briefly (Cui et al. 2023,Yamaguchi et al. 2024,Yamaguchi et al. 2026). Recent work builds the new tokens by continuing the base tokenizer’s BPE merges (Benki et al. 2026,Purason et al. 2026,Smith et al. 2026), which keeps every existing token intact and gives each new token an exact decomposition into old ones.
Three questions remain open, and each matters most when resources are scarce.
Does extension help beyond the training it requires? An extended model must be trained, and training on target-language text helps by itself. Benki et al. (2026) state that without a matched control they cannot separate the two effects, and Smith et al. (2026) attribute part of their gain to the extra training. A group with one GPU needs to know whether the vocabulary is worth adding at all.
Regmi et al. (2026, Why does extension help some scripts and not others?) show that the GPT-2 word pattern, still used by many byte-level tokenizers, splits words in abugida scripts at every vowel sign, which caps the compression any merge-based tokenizer can reach. They demonstrate this with tokenizers and models trained from scratch. Whether a pretrained model, whose embeddings were learned on the broken segmentation, can be repaired after the fact has not been tested.
What happens to generation? Compression is usually reported together with benchmark accuracy. For low-resource languages a more basic failure is common: small models fall into repetition loops when they write these languages. Whether tokenization contributes to this has not been examined directly.
We address these questions with Qwen2.5-1.5B (Qwen Team 2024) and six languages: Urdu, Sindhi and Pashto in Perso-Arabic script, Amharic in Ge’ez script, and Hindi and Tamil, two abugidas. Every extended model is compared with a model fine-tuned with the same budget and no new vocabulary. All training ran on a single 16 GB GPU. Our findings are:
1.
At equal compute, and with the pre-tokenizer repaired where needed, extension improves on fine-tuning alone in all six languages, both in held-out bits per character (BPC) and in translation into English. With equal training data, the Urdu model matches the fine-tuned model in BPC and English retention using half the compute. The gain replicates across random seeds and grows from 2,000 to 8,000 new tokens.
2.
For Hindi and Tamil, plain extension reaches 95 to 99 percent of the compression its pre-tokenizer allows and gives little or no gain in quality. A script-scoped repair of the pre-tokenizer, applied to the pretrained model, raises compression from 44 to 61 percent (Hindi) and from 56 to 72 percent (Tamil) at the same vocabulary budget, and makes extension clearly better than fine-tuning alone.
3.
Extension reduces repetition loops when the model writes the target language. In Urdu the loop rate falls from 67 to 14 percent as the vocabulary grows. Between 44 and 83 percent of the reduction remains at matched output length, forcing English output into short tokens raises its loop rate from 0.5 to 76 percent, and freezing the new embeddings brings loops back.
4.
Translation scored under a fixed token cap understates extended models, because the same cap allows them more characters. Scoring at an equal character budget changes the sign of the Tamil result.
We also report results that did not support our initial hypotheses, including the absence of an item-level link between word fragmentation and looping, and an initialization method whose advantage before training mostly disappears after it.

3. Method

We implement the method as an open toolkit, HARF. Its parts follow prior work except where noted.

3.1. Continued BPE with a Script Guarantee

The training corpus is pre-tokenized with the base model’s own pipeline, and each pre-token is segmented with the base BPE model. We then continue BPE on these segmentations: at each step the most frequent adjacent pair is merged and appended to the merge list (Purason et al. 2026). Because appended merges have lower priority than all base merges, the extended tokenizer produces the base segmentation and then applies the new merges, which is exactly what the training simulation computes. Each merge adds one token, so vocabulary budgets are exact, and the first 2,000 merges of the 8,000-merge list are the 2,000-token tokenizer.
Appending merges keeps base merges in priority, but it does not by itself guarantee that text in other languages is segmented as before (Goyal and Ray 2026). We add a filter. For the target script we compute the set of UTF-8 byte prefixes that occur only in characters of that script, using only 64-code-point blocks that lie entirely inside the script’s range. A merge is accepted only if its result contains one of these prefixes. A new merge can then fire only on text that contains the target script, so any text without that script is tokenized exactly as by the base tokenizer. Every extension is checked against English, code and text in five other scripts, and against lossless round trips on target-language text.

3.2. Script-Scoped Pre-Tokenizer Repair

Qwen2.5 pre-tokenizes with a GPT-2-style regular expression whose word class is \p{L}+. Vowel signs in Devanagari and Tamil are combining marks (Unicode categories Mn and Mc), not letters, so each word is split at each sign. A four-word Tamil sentence becomes 14 pre-tokens. Merges cannot cross pre-token boundaries, so these splits survive any vocabulary extension.
We repair the pattern for one script at a time. The combining marks of the target script are added to the letter class and removed from the two classes that match punctuation. Text that contains none of these marks is pre-tokenized exactly as before. The base vocabulary and merges are unchanged, so the repair alone only changes where the base merges can apply. Continued BPE is then run on the repaired pre-tokenization. The pretrained model sees target-language text segmented in a way it never saw in pretraining; whether adaptation can absorb this shift is one of our questions.

3.3. Initialization and Adaptation

Each new token has a binary merge tree that ends in base tokens. We initialize its embedding either as the mean of its base constituents (Hewitt 2021) or with a merge-tree projection: a ridge regression from the concatenated embeddings of a merge’s two parts to the embedding of their merge, fitted on the base model’s own merges and applied in merge order. The regularization strength is chosen by BPC on 200 validation sentences. Qwen2.5-1.5B ties input and output embeddings, so one initialization sets both.
Adaptation trains LoRA adapters (Hu et al. 2022) on all attention and feed-forward projections together with a separate table of corrections for the new embedding rows. The original embedding matrix stays frozen, so existing token embeddings cannot change; we verify this after training. Training only the new rows rather than the whole matrix also saves several gigabytes of optimizer state, which made training possible on a 16 GB GPU.

4. Experimental Setup

Languages and data.
Table 1 lists the six languages. Training text comes from FineWeb-2 (Penedo et al. 2025) and Wikipedia, up to 200,000 and 100,000 documents per language respectively. Text is normalized to NFC; tatweel, bidirectional control characters, URLs and markup are removed, and no language-specific letter normalization is applied. Documents are split into train, validation and test sets at the document level. Validation and test sets contain 2,000 sentences each, and test sentences that also occur in training are removed. FLORES-200 (Goyal et al. 2022,NLLB Team 2022) is used for translation and for the cross-lingual tokenizer analysis.
Model and conditions.
All experiments use Qwen2.5-1.5B (base). For each language we compare three conditions. Base is the unmodified model. FT is LoRA fine-tuning on the target-language training text with the original tokenizer. HARF adds 2,000 tokens and is trained with the same number of steps and the same number of tokens per step as FT. For Hindi and Tamil we run HARF with and without the pre-tokenizer repair. Urdu and Sindhi use 1,500 steps; the other four languages use 750 steps, so comparisons are made within languages. Urdu is our main language for ablations: 4,000 and 8,000 new tokens, a second random seed, mean versus projection initialization, models trained for 750 steps (which see as much Urdu text as FT does in 1,500 steps, because extended tokens hold more text), and a model whose new embedding rows are frozen. Hyperparameters are in Appendix Section 12.
Metrics.
Compression is the reduction in total tokens on the test set relative to the base tokenizer. Language modelling quality is measured as bits per character (BPC) on the 2,000 test sentences: the total negative log-likelihood divided by the number of characters, which is comparable across tokenizers, unlike token-level perplexity. Translation uses FLORES-200 devtest in both directions with three fixed in-context examples from the dev split, greedy decoding, a 256-token cap and stopping at the first line break, scored with chrF++ (Popović 2017) in sacreBLEU (Post 2018). Because a fixed token cap gives extended tokenizers a larger character budget (Section 7.2), we truncate all outputs of a direction to the longest output the base model could produce under its cap and score at this equal character budget. Greedy decoding generates left to right, so truncation is equivalent to generating with a character cap. A translation loops if at least half of its word 4-grams are repeats. Latency is the time to emit the same reference text by forced decoding with a key-value cache at batch size 1, median over three repeats on 200 test sentences. English retention is BPC on the 1,012 English FLORES-200 devtest sentences.
Statistics.
BPC is compared per sentence with a paired Wilcoxon signed-rank test (Wilcoxon 1945), with Holm correction across the comparisons of a language (Holm 1979), and 95 percent bootstrap intervals for the mean difference. chrF++ is compared with a paired bootstrap (1,000 resamples). Unless noted, all differences we call significant have p < 10 − 5 .
Human evaluation.
Native speakers of each language rated blinded pairs of English-to-target translations from FT and HARF for fluency and adequacy on a five-point scale and gave a preference; the order of outputs was randomized per item. The Urdu and Sindhi items were rated by several native speakers each. None of the raters is an author of this paper. We collected 100 Urdu and 50 Sindhi items.

5. Results

5.1. Compression and Speed

With 2,000 new tokens the test set needs 49.1 percent fewer tokens in Urdu, 47.5 in Sindhi, 44.7 in Pashto and 61.7 in Amharic (Table 2). Urdu tokens per word fall from 3.04 to 1.55 and Amharic from 6.48 to 2.48. On FLORES, these tokenizers use 69 to 77 percent of their pre-tokenization ceiling at 2,000 tokens, and the Urdu tokenizer uses 90 percent at 8,000. Generating the same text by forced decoding is 1.75 to 2.61 times faster. Tokenizer time is about 0.1 milliseconds per sentence for all tokenizers.

5.2. Gains over Fine-Tuning Alone

Table 3 gives the paired differences between HARF and FT. Fine-tuning alone already helps a great deal: it lowers BPC by 14 to 49 percent relative to the base model. The question is whether the new vocabulary adds to this, and for the four languages whose pre-tokenizer is not limiting it does. BPC falls by a further 0.095 to 0.251 bits per character, translation into English improves by 5.4 to 9.1 chrF++ points, and translation into Urdu, Sindhi and Pashto improves by 2.5 to 9.9 points. The exception is translation into Amharic, where every system scores below 4 chrF++. The 1.5B model does not write usable Amharic in any condition, and we do not read the small difference between two failing systems as evidence either way.
Equal data, seeds and vocabulary size.
Because extended tokens hold more text, HARF sees about twice as much Urdu text as FT in the same number of steps. Table 4 separates the two. A HARF model trained for 750 steps sees the same text as FT and matches its corpus BPC (1.818 against 1.818); the per-sentence mean difference is +0.009 and is not significant after correction ( p = 0.32 ). It does so with half the training compute and a LoRA update 29 percent smaller in Frobenius norm, and its English BPC is identical to that of FT. A second seed reproduces the 1,500-step result within 0.004 BPC. Adding 4,000 and 8,000 tokens improves every metric further, with no plateau at 8,000.

5.3. Human Judgments

Native-speaker judgments agree with the automatic metrics (Table 5). Where a preference was given, raters preferred HARF in 51 of 63 Urdu items (81 percent) and 30 of 32 Sindhi items (94 percent), and HARF translations received higher fluency and adequacy in both languages. Absolute scores are low for both systems, around 2 on a five-point scale; a 1.5B base model translating from three examples is not a usable translation system, and these judgments compare two weak systems.

6. The Pre-Tokenizer Limit

Table 1 shows the ceiling that the inherited pre-tokenizer places on any merge-based extension. For the three Perso-Arabic languages and Amharic, pre-tokens are close to words (1.12 to 1.18 per word) and the ceiling is 62 to 82 percent. Hindi and Tamil have 2.54 and 4.34 pre-tokens per word, and their ceilings are 47 and 57 percent. The same pattern holds for the other abugidas we measured: Bengali, Telugu, Malayalam, Sinhala and Thai (Appendix Section 14).
Plain extension runs into this limit. On FLORES, the 2,000-token Hindi and Tamil tokenizers reach 97 and 99 percent of their ceilings. On the training data, growing the plain Hindi vocabulary from 2,000 to 8,000 tokens adds only 1.2 points of compression, while the repaired Hindi tokenizer keeps improving with the same budget. Quality follows compression. Plain Hindi extension is slightly worse than FT in BPC and in translation into English, and plain Tamil extension gives small gains.
The repair adds Devanagari or Tamil vowel signs to the letter class and nothing else, and every extension is verified to leave English, code and five other scripts unchanged. The pretrained model then sees its target language segmented in a new way. After 750 steps of adaptation, the repaired models are clearly better than both FT and plain extension (Table 3): BPC improves by 0.047 (Hindi) and 0.141 (Tamil) over FT, translation into Hindi improves by 5.6 chrF++ points and translation from Tamil by 5.7. The repair also gives the largest speedup in our study, 3.64 times for Tamil. In both languages the repaired model is also better than plain extension on every metric in Table 3.

7. Effects on Generation

7.1. Looping Falls with Fragmentation

When the base model writes these languages it often falls into repetition loops: 85 percent of its English-to-Urdu and almost all of its English-to-Sindhi translations loop (Table 2). Fine-tuning alone reduces this only partly. Extension reduces it much more for every language where it also reduces effective fragmentation: in Sindhi from 88 percent under FT to 37 percent, in Amharic from 92 to 67, and in Pashto from 97 to 76. For Hindi and Tamil the pattern follows the pre-tokenizer: plain extension does not reduce looping, and the repaired model does in Hindi (57 to 41 percent) and slightly in Tamil (75 to 73).
Four analyses in Urdu, where we have the most conditions, connect looping to fragmentation (Table 6).
Vocabulary size.
With the same data and training, the loop rate falls from 66.9 percent (FT) to 34.4, 20.8 and 14.4 percent as the vocabulary grows from 0 to 2,000, 4,000 and 8,000 new tokens, and tokens per word fall from 3.04 to 1.55, 1.41 and 1.30.
Matched length.
Extended models need fewer steps to write the same text, and longer outputs loop more for every system. Shorter sequences therefore explain part of the reduction. We group sentences by the number of tokens each system’s own tokenizer needs to write the reference and reweight HARF’s loop rate to FT’s length distribution. HARF still loops much less at equal length: 44 percent of the 2,000-token reduction and 83 percent of the 8,000-token reduction remain after matching length. In Sindhi the share is 70 percent and in Pashto 56 percent. Extension therefore reduces looping both by shortening sequences and by lowering the loop rate at a given length.
Forced fragmentation.
In the other direction, we restrict the base model to tokens of at most k characters when it writes English (Urdu-to-English, 200 FLORES sentences). With at most 3 characters per token, English output has 3.68 tokens per word, close to Urdu under the base tokenizer, and its loop rate rises from 0.5 to 76 percent. This test has a confound: the model rarely saw English spelled in such short pieces during pretraining, while it did see fragmented Urdu. We therefore treat it as supporting evidence.
Frozen embeddings.
If the new embedding rows stay at their initialization and only LoRA is trained, the model loops in 79 percent of translations, more than FT, and is worse than FT on every metric (Table 4).
A negative result.
We first expected that sentences whose words fragment more would loop more. Across all six languages and all systems, the Spearman correlation between a reference sentence’s base-tokenizer fertility and the repetition in its translation is between − 0.07 and 0.09 . Looping depends on the system’s tokenizer and on output length, not on how hard an individual sentence is to tokenize.

7.2. Token Caps Understate Extended Models

Translation outputs are usually capped at a fixed number of tokens. When a model fails to stop, it runs to the cap, and the same cap allows an extended model more characters: 256 base tokens hold about 256 Tamil characters, while 256 repaired-Tamil tokens hold about 840. chrF++ penalizes long outputs, so looping extended models are penalized more than looping base models. Under the token cap, repaired Tamil scored 2.2 chrF++ points below FT when translating into Tamil. At an equal character budget it scores 2.2 points above. The Urdu gain grows from 4.7 to 6.1 points under the same correction, and the Sindhi gain from 7.7 to 9.9. Translation into English is unaffected because no system reaches the cap in that direction. HARF outputs also run into the cap without stopping less often than FT outputs in every language except plain Hindi (79 against 66 percent). This agrees with Goyal and Ray (2026), who find that fixed output caps shift multilingual reasoning comparisons.

8. Analysis

The new embeddings must be trained.
Freezing the new rows (Table 4) does more than remove a gain. The model becomes worse than FT in BPC (2.204 against 1.818) and in both translation directions, its LoRA update is 25 percent larger than that of normal HARF, and its English BPC rises by 3.9 percent instead of 1.0. With frozen rows the shared weights must compensate for embeddings that do not fit, and English suffers. Smith et al. (2026) report the opposite ablation, training the copied rows, which harmed generation; together the two results suggest training new rows and keeping old rows fixed.
Initialization matters before training, little after.
Without any training, the Urdu model with 2,000 new tokens reaches BPC 5.23 with random embeddings, 3.70 with mean initialization and 3.54 with merge-tree projection. A direct regression from parts to merged embeddings, without the residual form and with regularization chosen by cosine similarity, collapses: its predicted rows have a mean pairwise cosine of 0.83 against 0.12 for real embeddings, and BPC reaches 6.62. Selecting the regularization by cosine or by nearest-neighbour retrieval chose settings that were worse in BPC than the setting chosen directly by validation BPC. After 1,500 training steps the projection is better than mean initialization by only 0.006 BPC, and mean initialization is better by 0.7 chrF++ when translating into Urdu (Table 4). In this regime the choice of initialization is a second-order effect.
English retention.
Every adapted model keeps English BPC within 2 percent of the base model except FT for Sindhi (4.1 percent) and the frozen-rows ablation (3.9 percent). Differences between HARF and FT are below 1 percent in every language and go in both directions: HARF retains English better in Urdu and Sindhi and slightly worse in Pashto and for repaired Hindi. Extension does not harm English, and we do not claim that it protects it. A larger LoRA update does not predict worse retention: HARF’s update is slightly larger than FT’s in both Urdu and Sindhi.

9. Discussion

For groups that work on low-resource languages with modest hardware, the results suggest a simple procedure. Measure the pre-tokenization ceiling first; it takes minutes on a laptop and shows whether extension can pay off. If the script uses combining vowel signs and the base pattern treats words as letters only, repair the pre-tokenizer before extending. Train the new embedding rows, keep the old rows fixed, and compare against fine-tuning with the original tokenizer under the same budget. Score generation at an equal character budget.
The gains we measure are not explained by additional training. At equal compute, extension improves on fine-tuning; at equal data it matches fine-tuning with half the compute. For the scripts where plain extension fails, the failure has a mechanical cause that can be fixed in a pretrained model. And the benefit of a better tokenization shows up as much in whether the model can stop writing as in how well it predicts text.

10. Limitations

We study one model, Qwen2.5-1.5B, and we did not test whether the results hold for larger models or other model families. Translation quality is low in absolute terms for every system, and our conclusions concern differences between systems rather than usable translation. Most conditions were trained once; only the main Urdu condition has a second seed, and FT was not repeated with a second seed. Four languages were trained for 750 steps, so their gains are not directly comparable with those for Urdu and Sindhi. Human judgments cover only Urdu and Sindhi and come from a small number of raters. Training data are web-crawled and may be narrow in domain, especially for Sindhi. The guarantee that other text is unchanged covers text without the target script; Persian and Arabic text share the Perso-Arabic block with Urdu, Sindhi and Pashto and is affected by those extensions. The forced-fragmentation test is confounded by the model’s unfamiliarity with fragmented English. Writing Amharic fails for every system, so we cannot tell whether extension helps generation in Amharic.

11. Conclusion

Post-hoc vocabulary extension gives low-resource languages shorter sequences and faster generation, and in our experiments it also improves on fine-tuning alone when compute is held equal. Where it fails, as for Hindi and Tamil, the cause is the inherited pre-tokenizer, which a script-scoped repair fixes even in a pretrained model. Fragmentation also contributes to the repetition loops that small models produce in these languages, and reducing it reduces the loops. We release the HARF toolkit, the extended tokenizers, the trained adapters and all evaluation outputs.

12. Hyperparameters

LoRA rank 16, alpha 32, dropout 0.05, applied to the query, key, value, output, gate, up and down projections. Learning rate 2 × 10 − 4 for LoRA and 5 × 10 − 4 for the new embedding rows, AdamW with β = ( 0.9 , 0.95 ) and no weight decay, 50 warmup steps and cosine decay. Sequence length 512 tokens; 16 sequences per step (4 sequences, 4 accumulation steps). Training texts are packed into blocks separated by the end-of-text token. Master weights in float32 with float16 autocast and gradient scaling, and gradient checkpointing. One 1,500-step run took 3.4 to 4.5 hours on a single 16 GB NVIDIA T4. BPC uses sentences of up to 2,048 tokens, scored after a fixed start token. Continued BPE uses a minimum pair frequency of 5 and at most 500,000 distinct pre-tokens. The projection’s ridge strength is selected from { 0.01 , 0.1 , 1 , 10 , 100 , 1000 , 10000 , ∞ } by BPC on 200 validation sentences; ∞ corresponds to mean-of-parts initialization.

13. Confidence Intervals

Table 7 lists the 95 percent bootstrap intervals for the differences in Table 3.

14. Pre-Tokenization Ceiling for Fifteen Languages

Table 8 gives the ceiling for the languages of Table 1 and nine others, measured on FLORES-200 devtest with the Qwen2.5 tokenizer.

References

  1. Ahia, Orevaoghene, Sachin Kumar, Hila Gonen, Jungo Kasai, David R. Mortensen, Noah A. Smith, and Yulia Tsvetkov. 2023. Do all languages cost the same? tokenization in the era of commercial language models. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing; pp. 9904–9923. [Google Scholar]
  2. Ahuja, Kabir, Harshita Diddee, Rishav Hada, Millicent Ochieng, Krithika Ramesh, Prachi Jain, Akshay Nambi, Tanuja Ganu, Sameer Segal, Maxamed Axmed, Kalika Bali, and Sunayana Sitaram. 2023. MEGA: Multilingual evaluation of generative AI. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. [Google Scholar]
  3. Ali, Mubashir. 2026. Sindhi-TinyLlama tokenizer. Available online: https://huggingface.co/jamalimubashirali/sindhi-tinyllama-tokenizer.
  4. Benki, Avinash, Prasanjith Pasunuti, Sutanshu Saksena Raj, Parijat Chatterjee, Nayanjit Sarkar, and Daksh Maan. 2026. In-place Indic tokenizer expansion and continual pretraining of Nemotron-3-Nano-30B-A3B. arXiv arXiv:2610.15373. [Google Scholar]
  5. Cui, Yiming, Ziqing Yang, and Xin Yao. 2023. Efficient and effective text encoding for Chinese LLaMA and Alpaca. arXiv arXiv:2304.08177. [Google Scholar]
  6. Dagan, Gautier, Gabriel Synnaeve, and Baptiste Rozière. 2024. Getting the most out of your tokenizer for pre-training and domain adaptation. Proceedings of the 41st International Conference on Machine Learning; pp. 9784–9805. [Google Scholar]
  7. Dobler, Konstantin, and Gerard de Melo. 2023. FOCUS: Effective embedding initialization for monolingual specialization of multilingual models. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing; pp. 13440–13454. [Google Scholar]
  8. Ehsan, Uzma. 2026. The Sindhi token tax: Orthographic penalty and tokenization inequity between English and Sindhi in large language models. Journal of Social Research Development. [Google Scholar] [CrossRef]
  9. Goyal, Ankit, and Jaideep Ray. 2026. Mind the cap: Output-budget regimes change the measured multilingual reasoning gap. arXiv arXiv:2608.04160. [Google Scholar]
  10. Goyal, Naman, Cynthia Gao, Vishrav Chaudhary, Peng-Jen Chen, Guillaume Wenzek, Da Ju, Sanjana Krishnan, Marc’Aurelio Ranzato, Francisco Guzmán, and Angela Fan. 2022. The FLORES-101 evaluation benchmark for low-resource and multilingual machine translation. Transactions of the Association for Computational Linguistics 10, 522–538. [Google Scholar] [CrossRef]
  11. Gu, Shuhao, Mengdi Zhao, Bowen Zhang, Liangdong Wang, Jijie Li, and Guang Liu. 2024. ReTok: Replacing tokenizer to enhance representation efficiency in large language model. arXiv arXiv:2410.04335. [Google Scholar]
  12. Hewitt, John. 2021. Initializing new word embeddings for pretrained language models. Available online: https://www.cs.columbia.edu/~johnhew//vocab-expansion.html.
  13. Holm, Sture. 1979. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics 6, 2: 65–70. [Google Scholar]
  14. Holtzman, Ari, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. 2020. The curious case of neural text degeneration. International Conference on Learning Representations. [Google Scholar]
  15. Hu, Edward J., Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. International Conference on Learning Representations. [Google Scholar]
  16. Kim, Seungduk, Seungtaek Choi, and Myeongho Jeong. 2024. Efficient and effective vocabulary expansion towards multilingual large language models. arXiv arXiv:2402.14714. [Google Scholar]
  17. Lundin, Jessica M., Ada Zhang, Nihal Karim, Hamza Louzan, Victor Wei, David Adelani, and Cody Carroll. 2026. The token tax: Systematic bias in multilingual tokenization. Proceedings of the AfricaNLP Workshop. [Google Scholar]
  18. Minixhofer, Benjamin, Fabian Paischer, and Navid Rekabsaz. 2022. WECHSEL: Effective initialization of subword embeddings for cross-lingual transfer of monolingual language models. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; pp. 3992–4006. [Google Scholar]
  19. Minixhofer, Benjamin, Edoardo M. Ponti, and Ivan Vulić. 2024. Zero-shot tokenizer transfer. In Advances in Neural Information Processing Systems. vol. 37. [Google Scholar]
  20. Mundra, Nandini, Aditya Nanda Kishore Khandavally, Raj Dabre, Ratish Puduppully, Anoop Kunchukuttan, and Mitesh M. Khapra. 2024. An empirical comparison of vocabulary expansion and initialization approaches for language models. Proceedings of the 28th Conference on Computational Natural Language Learning; pp. 84–104. [Google Scholar]
  21. Nawaz, Ali, Muqadas Fareed, Soonh Sadaf, and Attaullah Sahito. 2026. Sindhi tokenizer: A corpus-driven SentencePiece unigram tokenizer for Sindhi, benchmarked against 14 existing tokenizers. Available online: https://github.com/alinawazcode/sindhi-tokenizer.
  22. NLLB Team. 2022. No language left behind: Scaling human-centered machine translation. arXiv arXiv:2207.04672. [Google Scholar]
  23. Penedo, Guilherme, Hynek Kydlíček, Vinko Sabolčec, Bettina Messmer, Negar Foroutan, Amir Hossein Kargaran, Colin Raffel, Martin Jaggi, Leandro Von Werra, and Thomas Wolf. 2025. FineWeb2: One pipeline to scale them all: Adapting pre-training data processing to every language. arXiv arXiv:2506.20920. [Google Scholar]
  24. Petrov, Aleksandar, Emanuele La Malfa, Philip H. S. Torr, and Adel Bibi. 2023. Language model tokenizers introduce unfairness between languages. In Advances in Neural Information Processing Systems. vol. 36. [Google Scholar]
  25. Popović, Maja. 2017. chrF++: Words helping character n-grams. Proceedings of the Second Conference on Machine Translation; pp. 612–618. [Google Scholar]
  26. Post, Matt. 2018. A call for clarity in reporting BLEU scores. Proceedings of the Third Conference on Machine Translation: Research Papers; pp. 186–191. [Google Scholar]
  27. Purason, Taido, Pavel Chizhov, Ivan P. Yamshchikov, and Mark Fishel. 2026. Teaching old tokenizers new words: Efficient tokenizer adaptation for pre-trained models. Findings of the Association for Computational Linguistics: EACL 2026, 6492–6516. [Google Scholar] [CrossRef]
  28. Qwen Team. 2024. Qwen2.5 technical report. arXiv arXiv:2412.15115. [Google Scholar]
  29. Radford, Alec, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. Technical report. OpenAI. [Google Scholar]
  30. Regmi, Sajal, Siddhartha Pudasaini, and Chetan Phakami Pun. 2026. Vowel signs are not letters: A pre-tokenization ceiling on multilingual tokenizer fertility. arXiv arXiv:2608.26449. [Google Scholar]
  31. Rust, Phillip, Jonas Pfeiffer, Ivan Vulić, Sebastian Ruder, and Iryna Gurevych. 2021. How good is your tokenizer? on the monolingual performance of multilingual language models. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing Volume 1: 3118–3135. [Google Scholar] [CrossRef]
  32. Sennrich, Rico, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics Volume 1: 1715–1725. [Google Scholar]
  33. Smith, Jimmy T. H., Tarek Dakhran, Alberto Cabrera, Simon S. Lee, Paul Pak, Aditya Tadimeti, Tim Seyde, Maxime Labonne, Alexander Amini, and Mathias Lechner. 2026. In-place tokenizer expansion for pre-trained LLMs. arXiv arXiv:2607.15232. [Google Scholar]
  34. Welleck, Sean, Ilia Kulikov, Stephen Roller, Emily Dinan, Kyunghyun Cho, and Jason Weston. 2020. Neural text generation with unlikelihood training. International Conference on Learning Representations. [Google Scholar]
  35. Wilcoxon, Frank. 1945. Individual comparisons by ranking methods. Biometrics Bulletin 1, 6: 80–83. [Google Scholar] [CrossRef]
  36. Yamaguchi, Atsuki, Aline Villavicencio, and Nikolaos Aletras. 2024. An empirical study on cross-lingual vocabulary adaptation for efficient language model inference. Findings of the Association for Computational Linguistics: EMNLP 2024, 6760–6785. [Google Scholar] [CrossRef]
  37. Yamaguchi, Atsuki, Aline Villavicencio, and Nikolaos Aletras. 2026. How can we effectively expand the vocabulary of LLMs with 0.01GB of target language text? Computational Linguistics 52, 1: 295–330. [Google Scholar] [CrossRef]
Table 1. Languages studied. Tokenizer statistics are measured on FLORES-200 devtest. The ceiling is the largest compression (percent fewer tokens) any merge-based extension can reach under the base pre-tokenizer, 1 − pre - tokens / tokens ; “repaired” is the same bound after the script-scoped repair. For Hindi and Tamil, “achieved” is given without / with the repair.
Table 1. Languages studied. Tokenizer statistics are measured on FLORES-200 devtest. The ceiling is the largest compression (percent fewer tokens) any merge-based extension can reach under the base pre-tokenizer, 1 − pre - tokens / tokens ; “repaired” is the same bound after the script-scoped repair. For Hindi and Tamil, “achieved” is given without / with the repair.
Train Base Qwen2.5 Compression ceiling HARF 2k
Language Code Script Family words tok/word pre-tok/word original repaired achieved
Urdu ur Perso-Arabic Indo-Aryan 137.2M 3.14 1.13 64.1 64.5 49.3
Sindhi sd Perso-Arabic Indo-Aryan 122.9M 3.10 1.15 62.8 63.4 47.5
Pashto ps Perso-Arabic Iranian 109.7M 2.93 1.12 61.6 61.6 42.8
Amharic am Ge’ez Semitic 85.3M 6.45 1.18 81.6 81.6 61.1
Hindi hi Devanagari Indo-Aryan 124.7M 4.76 2.54 46.7 76.0 45.5 / 61.7
Tamil ta Tamil Dravidian 91.1M 10.06 4.34 56.9 87.8 56.2 / 73.2
Table 2. Main results on the test sets. “Fewer tokens” is percent relative to the base tokenizer; speed is the time to emit the same text relative to Base. chrF++ is scored at an equal character budget on FLORES-200 devtest. Loops: percent of English-to-target translations with at least half of their word 4-grams repeated. English Δ BPC: percent change in English BPC relative to Base. Bold marks HARF results better than FT with p < 10 − 5 (BPC, Holm-corrected Wilcoxon) or a 95 percent bootstrap interval excluding zero (chrF++). Urdu and Sindhi are trained for 1,500 steps, the others for 750.
Table 2. Main results on the test sets. “Fewer tokens” is percent relative to the base tokenizer; speed is the time to emit the same text relative to Base. chrF++ is scored at an equal character budget on FLORES-200 devtest. Loops: percent of English-to-target translations with at least half of their word 4-grams repeated. English Δ BPC: percent change in English BPC relative to Base. Bold marks HARF results better than FT with p < 10 − 5 (BPC, Holm-corrected Wilcoxon) or a 95 percent bootstrap interval excluding zero (chrF++). Urdu and Sindhi are trained for 1,500 steps, the others for 750.
chrF++ English
Language System tok/word Fewer tokens Speed BPC into lang. into Eng. Loops Δ BPC
Urdu Base 3.04 n/a 1.00× 2.589 8.90 29.73 84.6 n/a
FT 3.04 n/a 1.00× 1.818 13.15 27.84 66.9 +1.50
HARF 2k 1.55 49.1 1.95× 1.709 19.28 34.96 34.4 +0.98
HARF 8k 1.30 57.4 2.45× 1.643 24.15 39.19 14.4 +1.25
Sindhi Base 3.00 n/a 1.00× 3.983 3.65 19.63 99.6 n/a
FT 3.00 n/a 1.02× 2.033 7.53 24.11 88.1 +4.09
HARF 2k 1.58 47.5 1.84× 1.902 17.45 33.24 37.3 +1.88
Pashto Base 2.84 n/a 1.00× 3.216 5.42 22.56 89.3 n/a
FT 2.84 n/a 0.97× 2.086 8.21 24.07 96.8 +0.90
HARF 2k 1.57 44.7 1.75× 1.934 10.72 30.41 75.7 +1.52
Amharic Base 6.48 n/a 1.00× 4.640 1.85 16.03 95.5 n/a
FT 6.48 n/a 0.99× 3.005 3.43 14.28 91.8 +0.63
HARF 2k 2.48 61.7 2.61× 2.746 2.66 19.66 66.9 +0.34
Hindi Base 4.60 n/a 1.00× 2.208 15.68 36.62 45.4 n/a
FT 4.60 n/a 1.01× 1.893 13.58 32.97 56.9 −0.75
HARF 2k 2.56 44.4 1.85× 1.903 14.24 31.74 80.9 −0.62
   + repair 1.81 60.7 2.56× 1.836 19.15 34.85 40.8 −0.32
Tamil Base 9.75 n/a 1.00× 2.463 12.04 18.67 65.7 n/a
FT 9.75 n/a 1.02× 1.914 12.52 17.80 75.0 +0.50
HARF 2k 4.34 55.5 2.31× 1.832 13.43 19.38 84.8 +0.27
   + repair 2.73 72.0 3.64× 1.765 14.75 23.47 73.0 +0.76
Table 3. HARF minus FT. BPC differences are means over test sentences; all have Holm-corrected Wilcoxon p < 10 − 9 . chrF++ differences are at an equal character budget; all 95 percent bootstrap intervals exclude zero. Intervals are listed in Appendix Section 13.
Table 3. HARF minus FT. BPC differences are means over test sentences; all have Holm-corrected Wilcoxon p < 10 − 9 . chrF++ differences are at an equal character budget; all 95 percent bootstrap intervals exclude zero. Intervals are listed in Appendix Section 13.
Δ BPC Δ chrF++
(per sentence) into lang. into Eng.
Urdu 2k −0.095 +6.1 +7.1
Urdu 8k −0.152 +11.0 +11.4
Sindhi −0.104 +9.9 +9.1
Pashto −0.144 +2.5 +6.3
Amharic −0.251 −0.8 +5.4
Hindi plain +0.031 +0.7 −1.2
Hindi repaired −0.047 +5.6 +1.9
Tamil plain −0.065 +0.9 +1.6
Tamil repaired −0.141 +2.2 +5.7
Table 4. Urdu controls and ablations. chrF++ at an equal character budget. ∥ Δ W ∥ is the Frobenius norm of the LoRA update summed over modules. “Equal data” sees the same Urdu text as FT.
Table 4. Urdu controls and ablations. chrF++ at an equal character budget. ∥ Δ W ∥ is the Frobenius norm of the LoRA update summed over modules. “Equal data” sees the same Urdu text as FT.
System Steps BPC chrFur chrFen ∥ Δ W ∥
FT 1500 1.818 13.15 27.84 33.9
HARF 2k 1500 1.709 19.28 34.96 37.0
   seed 2 1500 1.705 n/a n/a 37.0
   mean init 1500 1.716 19.94 34.89 36.5
   equal data 750 1.818 n/a n/a 24.1
   frozen rows 1500 2.204 7.03 23.57 46.1
HARF 4k 1500 1.674 22.52 37.88 36.4
HARF 8k 1500 1.643 24.15 39.19 35.8
Table 5. Blinded human evaluation of English-to-target translations. All differences are significant (sign test for preference, Wilcoxon for ratings, p < 10 − 4 ).
Table 5. Blinded human evaluation of English-to-target translations. All differences are significant (sign test for preference, Wilcoxon for ratings, p < 10 − 4 ).
Urdu ( n = 100 ) Sindhi ( n = 50 )
FT HARF FT HARF
Preferred 12 51 2 30
Tie 37 18
Fluency 1.59 2.22 1.10 1.94
Adequacy 1.28 2.06 1.10 1.82
Table 6. Looping and fragmentation. Loops: percent of translations with at least half of their word 4-grams repeated. Per-step share: fraction of the reduction relative to FT that remains after reweighting to FT’s output-length distribution. Under single-character tokens the output degenerates into fragments that the 4-gram measure catches less often; its chrF++ is 0.70 against 30.90 without the limit.
Table 6. Looping and fragmentation. Loops: percent of translations with at least half of their word 4-grams repeated. Per-step share: fraction of the reduction relative to FT that remains after reweighting to FT’s output-length distribution. Under single-character tokens the output degenerates into fragments that the 4-gram measure catches less often; its chrF++ is 0.70 against 30.90 without the limit.
Condition tok/word Loops Per-step share
Vocabulary size (Urdu)
FT 3.04 66.9 n/a
HARF 2k 1.55 34.4 44%
HARF 4k 1.41 20.8 49%
HARF 8k 1.30 14.4 83%
Forced fragmentation (English output)
no limit 1.23 0.5 n/a
≤ 3 chars 3.68 76.0 n/a
≤ 2 chars 5.31 75.5 n/a
≤ 1 char 6.01 59.5 n/a
Table 7. 95 percent bootstrap intervals for HARF minus FT.
Table 7. 95 percent bootstrap intervals for HARF minus FT.
Δ BPC Δ chrFlang Δ chrFen
Urdu 2k [−0.101, −0.088] [5.45, 6.83] [6.29, 7.90]
Urdu 8k [−0.160, −0.143] [10.29, 11.71] [10.45, 12.19]
Sindhi [−0.112, −0.096] [9.29, 10.58] [8.19, 10.04]
Pashto [−0.151, −0.137] [2.18, 2.88] [5.43, 7.24]
Amharic [−0.262, −0.241] [−0.97, −0.56] [4.72, 6.04]
Hindi plain [0.023, 0.039] [0.09, 1.20] [−2.18, −0.32]
Hindi rep. [−0.054, −0.039] [4.94, 6.20] [1.09, 2.75]
Tamil plain [−0.072, −0.057] [0.50, 1.32] [0.90, 2.25]
Tamil rep. [−0.149, −0.133] [1.75, 2.68] [5.00, 6.42]
Table 8. Compression ceiling under the base pre-tokenizer and after the script-scoped repair. Thai is written without spaces between words, so its per-word figures count whitespace-separated units.
Table 8. Compression ceiling under the base pre-tokenizer and after the script-scoped repair. Thai is written without spaces between words, so its per-word figures count whitespace-separated units.
tok/ pre-tok/ Ceiling (%)
Language word word original repaired
English 1.26 1.18 6.4 n/a
Arabic 2.29 1.23 46.3 48.9
Hindi 4.76 2.54 46.7 76.0
Russian 2.47 1.23 50.2 n/a
Thai 16.37 7.40 54.8 91.3
Bengali 7.12 3.19 55.1 83.4
Tamil 10.06 4.34 56.9 87.8
Persian 3.03 1.23 59.5 59.6
Pashto 2.93 1.12 61.6 61.6
Sindhi 3.10 1.15 62.8 63.4
Urdu 3.14 1.13 64.1 64.5
Telugu 11.41 3.94 65.5 88.9
Malayalam 13.37 4.60 65.6 90.4
Sinhala 9.17 2.96 67.7 86.5
Amharic 6.45 1.18 81.6 81.6
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.