luoojason's picture
Add files using upload-large-folder tool
f039255 verified
|
Raw
History Blame Contribute Delete
46 kB
# **Decoupling the Benefits of Subword Tokenization for Language Model Training via Byte-level Simulation**
**Th´eo Gigant** Nous Research `theo@nousresearch.com`
**Jeffrey Quesnelle** Nous Research
**Bowen Peng** Nous Research
```
bloc@nousresearch.comemozilla@nousresearch.com
```
## **Abstract**
Subword tokenization is an essential part of modern large language models (LLMs), yet its specific contributions to training efficiency and model performance remain poorly understood. In this work, we decouple the effects of subword tokenization by isolating them within a controlled byte-level pretraining pipeline. We formulate and test hypotheses across various dimensions, including sample throughput, vocabulary scaling, and the linguistic prior of subword boundaries. By simulating these effects in a byte-level setting, we refine our understanding of why subword models outperform raw byte models and offer insights to improve the pretraining of future byte-level and subword models. Specifically, our experiments highlight the critical role of increased training throughput and the integration of subword boundaries as either explicit priors or inductive biases.
## **1 Introduction**
Tokenization is an essential step of the Natural Language Processing pipeline, segmenting text into atomic units to be processed by language models. Although state-of-the-art Large Language Models (LLMs) rely almost exclusively on subword algorithms like BPE or Unigram [31, 18], there is no consensus on which specific properties of subword models enable this performance advantage [11, 30].
Subword tokenization simultaneously dictates the allocation of compute to parts of the input sequence and the scaling of the model’s vocabulary parameters by balancing vocabulary size, sequence length, and information density per token through the granularity of the tokens, or _fertility_ of the tokenizer. Empirical evidence suggests that a larger vocabulary results on average in better downstream performances [33, 15] in part because it reduces the Kolmogorov complexity of tokenized sequences [4]. Subword tokens are also often viewed as a proxy for linguistic “information units” [2].
Despite their prevalence, recent literature has highlighted significant issues stemming from subword tokenizers, including “character-blindness” [5, 7], language-dependent performance disparities [29], inadequacies with prefix forms [20], tokenization ambiguity [18, 26], and weaknesses linked to under-trained tokens [19].
Character, or byte-level language models [6, 23] have been proposed as an alternative to subword language models, in part to address these issues. Sometimes wrongly described as _tokenizer-free_ , these models usually rely on characters as defined by the Unicode standard [35], or bytes resulting from the UTF-8 [36] encoding of text. While solving some of the aforementioned subword-related problems, these byte-level language models consistently struggle to match the training efficiency and downstream performance of their subword-based counterparts. This performance gap between bytelevel and subword models is typically attributed to some “benefits” of subword tokenization, which are typically analyzed in aggregate. To the best of our knowledge, there have been no successful attempts to isolate and quantify their decoupled contributions. For example, a larger vocabulary not
Preprint.
only increases embedding capacity, but also reduces sequence length, thereby increasing the effective sample throughput during training. Furthermore, subword boundaries may provide a structural prior that aligns with human semantics, aiding generalization in ways that raw bytes do not.
In this paper, we suggest hypotheses as to what effects subword tokenization methods have on training dynamics, and we conduct a set of experiments to try to isolate and quantify them by artificially reproducing these effects for training byte-level language models.
## **2 Preliminaries**
## **2.1 Subword tokenization**
Byte-Pair Encoding (BPE) [31] is a bottom-up subword tokenization method based on the BPE grammar-based compression algorithm [10]. It is the _de facto_ standard tokenization method used with LLMs. It comes as the default tokenization method in the most popular LLM training frameworks [32, 21, 1, 8], due to highly optimized implementations[1] . Its dominance can also be attributed to the legacy of open-source LLMs that had a great impact on industry and academia, such as GPT2 [27], LLaMA [34] and Mistral [17].
A popular alternative is unigram tokenization [18], a top-down subword tokenization method based on a unigram language model, which creates tokens that align better with morphology [2] and allows subword regularization [18]. This method is more rarely encountered in practice, due to the more costly and difficult implementation.
## **2.2 Byte-level language models**
Contrary to LLMs using static subword tokenization, byte-level LLMs have a more fine-grained access to single bytes of the input. These models usually involve a method to compress or downsample the byte sequences to align the FLOPs-per-input-byte cost with subword models. These include, for instance, static downsampling with strided convolutions [6], or dynamic downsampling using lightweight local encoders [24, 16, 23].
In contrast with these works, in this work we do not use downsampling in the architecture and process UTF-8-tokenized sequences with a standard architecture for subword-tokenized sequences, namely the LLaMA-3 architecture [14].
## **3 Related Works**
Previous works have studied the effects of subword tokenization for language model training. Gall´e [11] and Zouhar et al. [38] empirically showed that a BPE tokenizer with a higher compression ratio results in higher downstream performance on machine translation tasks. Chung and Kim [4] quantified the complexity of tokenized text via an estimate of the Kolmogorov complexity, showing that increasing the vocabulary size of a BPE tokenizer increases performance as a consequence of a reduction in the complexity of tokenized sequences. Schmidt et al. [30] developed a tokenization scheme that compresses sequences more than BPE, while resulting in worse downstream performance, challenging the idea that the effectiveness of BPE comes only from its compression effect.
In this paper, we formulate and test hypotheses covering various aspects of subword tokenization, including computational efficiency, structural inductive biases and changes to the optimization objective.
## **4 Hypotheses**
We formalize the potential drivers of the subword-byte performance gap into the following testable hypotheses, categorized by their effects on model training and representation.
> 1Such as `https://github.com/huggingface/tokenizers` or `https://github.com/openai/tiktoken`
2
## **4.1 Computational and Scaling Efficiency**
The advantages most commonly attributed to tokenization relate to sequence compression. By reducing sequence lengths and expanding the vocabulary, tokenization fundamentally alters the structural dimensionality of the model’s input and the marginal computational cost per bit of processed data.
## **Hypothesis 1**
Increasing subword vocabulary size improves performance by scaling model capacity (via the embedding layer) at a marginal increase in FLOPs.
Token embeddings are usually implemented as look-up tables, accessed in constant time. As noted by Tao et al. [33], large vocabularies improve model performance, and most of the computational overhead of adding vocabulary parameters is related to the output layer.
## **Hypothesis 2**
At an isoFLOP budget, subword models process significantly more raw information (in bits) per gradient step than byte-level models, leading to superior sample throughput and better downstream performance.
## **4.2 Structural Inductive Biases**
Subword tokenization injects “human-centric” structure into the sequence before the model ever sees it. We hypothesize that this acts as a powerful prior and could be leveraged as an inductive bias to improve training.
## **Hypothesis 3**
Subword end boundaries provide a non-causal prior that simplifies the modeling task by leaking future bytes.
Unlike UTF-8 tokenization, which is strictly causal, subword tokenizers require a “look-ahead” to determine optimal boundaries [23]. This effectively provides the model with a “hint” about the future byte distribution, creating an inherently easier prediction task.
## **Hypothesis 4**
Subword boundaries act as inductive biases that align the model with semantically meaningful units.
## **Hypothesis 5**
Subword distances act as inductive biases that align the model’s attention mechanism and positional encodings with semantically meaningful units.
In subword LLMs, positional encodings represent distances between subwords; in byte-level models, they usually represent character distances, which may lack direct semantic utility.
## **4.3 Optimization Objective**
Finally, we consider how the choice of tokenization shifts the nature of the prediction task itself.
## **Hypothesis 6**
Minimizing cross-entropy per subword is a more effective proxy for language modeling than minimizing cross-entropy per byte.
3
## **Hypothesis 7**
Subword prediction functions as a form of variable-length multi-token prediction, which has been shown to improve representation learning compared to single-token prediction.
Predicting a single subword is equivalent to predicting a byte _n_ -gram at once. This aligns with recent findings that multi-token prediction heads can improve downstream performance [13].
## **5 Methodology**
We propose experiments intended to replicate one by one the effects induced by subword tokenization linked to the hypotheses we suggested. These effects are added to a 1.7B parameters byte-level language model pretraining pipeline, which will be compared to a baseline byte-level language model.
In the following experiments, most hyperparameters remain unchanged. All changes made on the input and output, or on the architecture of the model, are designed to introduce negligible computational overhead. We are using a standard LLaMA-3 architecture [14] trained with the TorchTitan framework [21]. Models are trained on the fineweb-edu dataset [25] tokenized into UTF-8 bytes. Sequences are also tokenized with the LLaMA-3 BPE tokenizer to provide byte-level subword boundaries. All comparisons between models are done using the same bits-per-byte cross-entropy loss, computed on a separate validation subset of fineweb-edu. Hyperparameters are detailed in the Appendix A.
## **5.1 Scaling vocabulary parameters**
To test Hypothesis 1, we introduce multi-head _n_ -gram embedding tables to simulate the larger input vocabulary of a subword LLM. This method is similar to recent _n_ -gram embedding methods [15, 22, 3], but we introduce them only in the input layer. Our implementation is derived from the _engram_ demo implementation[2] .
Hyperparameters are chosen to introduce around 70M additional parameters to the byte-level LLM, matching the embedding table of a subword LLM using the same architecture with a vocabulary of 35k tokens.
**==> picture [278 x 195] intentionally omitted <==**
**----- Start of picture text -----**<br>
8 . 0<br>7 . 5<br>7 . 0<br>6 . 5<br>Model A - baseline<br>6 . 0 Model B - scaled vocabulary parameters<br>Training Steps<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000<br>Validation Loss (bits-per-byte)<br>**----- End of picture text -----**<br>
Figure 1: Validation loss when scaling input embedding parameters
Figure 1 highlights the small increase in performance associated with scaling input embedding parameters. While these results suggest that Hypothesis 1 does not explain the significant performance
> 2 `https://raw.githubusercontent.com/deepseek-ai/Engram/refs/heads/main/engram_demo_v1.py`
4
gap between subword and byte-level language models, scaling vocabulary-like parameters remains a promising direction to improve language models, as exemplified in recent literature [28, 15, 3, 22].
## **5.2 Artificially increasing the training sample throughput**
Subword tokenization results on average in around 4 times fewer tokens compared to UTF-8 tokenization[3] . At isoFLOPs, the sample throughput during training is 4 times higher using the same architecture. To simulate this behavior, we compress the sequences by a factor of 4 to train a bytelevel LLM at the same isoFLOPs sample throughput as a subword LLM.
Given a sequence of length 4 _· L_ , we segment it into contiguous chunks of 4 bytes, resulting in a sequence of shape ( _L,_ 4). In the input layer, the model sums the embeddings of the 4 contiguous bytes in each chunk. In all hidden layers, the behavior is unchanged, and the model is effectively processing a sequence of _L_ latent tokens, containing information from 4 _· L_ input tokens. The model output has a shape ( _L, V_ ) with _V_ the size of the vocabulary. The loss is computed as the cross-entropy between this prediction and the first byte of the next chunk, _i.e._ next-byte prediction.
After 50k steps using this method to artificially increase sample throughput by 4 times, we continue pretraining this model with the baseline regime, using sequences of length _L_ . During the first 50k steps, the baseline model _A_ sees on average 4 times less samples compared to model _B_ , but the same number of tokens, effectively simulating the larger sample throughput of subword language models. After 50k steps, both models are trained under the same conditions.
**==> picture [278 x 195] intentionally omitted <==**
**----- Start of picture text -----**<br>
100<br>Return to normal regime<br>8 . 0<br>7 . 5<br>7 . 0<br>6 . 5<br>Model A - baseline<br>6 . 0 Model B - increased sample throughput<br>Training Steps<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000<br>Validation Loss (bits-per-byte)<br>**----- End of picture text -----**<br>
Figure 2: Validation loss when scaling sample throughput by 4 times for 50k steps
Figure 2 illustrates a significant gain resulting from the increase in sample throughput, even if performed for only 50k steps. Rapidly after falling back to the normal regime, model _B_ crosses the performance of the baseline model _A_ , and soon stabilizes at the same slope. This experiment strongly supports Hypothesis 2.
## **5.3 Giving subword boundaries as a prior**
Subword tokenization segments the input text into contiguous chunks based on frequencies of _n_ - grams in the training corpus. This process requires access to the full sequence and thus leaks future information into past tokens [23]. A subword LLM is optimized for next-token prediction given a correctly segmented input. On the other hand, byte-level LLMs are usually strictly causal. We posit that having access to the subword segmentation boundaries makes the prediction task easier. For example, by design of pre-tokenization, whitespace characters are always following an end-of-
> 3We measure an average of 4 _._ 75 bytes-per-token on 50 _,_ 000 samples from fineweb-edu tokenized with the LLaMA-3 tokenizer.
5
subword boundary. On the other hand, the start-of-subword boundaries do not leak future bytes information, but can provide the model with structural prior.
In the following experiment, models _B_ and _C_ have access to a binary sequence of start-of-subword and end-of-subword boundaries, respectively, whose embeddings are added to the input byte embeddings.
**==> picture [360 x 204] intentionally omitted <==**
**----- Start of picture text -----**<br>
8 . 0 100<br>7 . 5<br>8 . 0<br>7 . 0 7 . 5 Return to normal regime<br>7 . 0<br>6 . 5<br>6 . 5<br>6 . 0<br>Model A - baseline 6 . 0 Model A - baseline<br>Model B - subword start prior Model B - subword start inductive bias<br>Model C - subword end prior Model C - subword end inductive bias<br>5 . 5 5 . 5<br>Training Steps Training Steps<br>(a) Subword boundaries as a prior (b) Subword boundaries as an inductive bias for<br>50k steps<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000100000 0 10000 20000 30000 40000 50000 60000 70000 80000 90000100000<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>**----- End of picture text -----**<br>
Figure 3: Validation loss when providing the start or end of subword boundaries
Figure 3a shows the significant performance boost resulting from the access to the subword segmentation boundaries, supporting Hypothesis 3. Specifically, end-of-subword boundaries offer a larger advantage compared to start-of-subword boundaries, as they leak future information. Startof-subword boundaries also improve the performance of the model, suggesting that the statistical prior they provide is a useful inductive bias for the model. In order to test that hypothesis, we train the models with access to the subword boundaries only at training-time, and remove the boundary information at validation-time. After 50k steps, we also remove the access to the subword boundaries for training and resume pretraining following the baseline regime.
While subword end boundaries are more useful as a prior than subword start boundaries ( _c.f._ Figure 3a), they do not provide a useful inductive bias in this setting as evidenced by Figure 3b, probably because the model is relying too much on this prior. On the other hand, subword start boundaries do not leak future information, and provide a prior that improves the model performance in this setting. These observations support Hypotheses 3 and 4.
## **5.4 Giving subword distances as a prior**
Similarly, Gelberg et al. [12] showed that RoPE positional encoding acts as a prior that can be removed later during training. In subword LLMs, the positional encoding is using subword distances, when byte-level LLMs use byte distances. To simulate the position prior of the subword positions in the latter, we replace the byte position encoding with subword position encoding in model _B_ . Subsequent bytes that are part of the same subword use the same repeated position. This setting does not leak future byte information, as it is effectively using the subword start boundaries information.
We perform another experiment in which this prior is given only during training and removed after 50k steps, returning to the baseline training regime afterwards.
Figures 4a and 4b suggest that subword distances can be a useful prior, but do not constitute a strong inductive bias in this setting. Considering the previous section, we conclude that subword boundaries constitute stronger prior, and inductive biases, than subword distances, highlighting the lesser relative significance of Hypothesis 5 compared to the previous Hypotheses.
6
**==> picture [360 x 205] intentionally omitted <==**
**----- Start of picture text -----**<br>
8 . 0 100<br>7 . 5<br>8 . 0<br>7 . 0 7 . 5 Return to normal regime<br>7 . 0<br>6 . 5<br>6 . 5<br>6 . 0 Model A - baseline Model A - baseline<br>Model B - subword distances prior 6 . 0 Model B - subword distances inductive bias<br>Training Steps Training Steps<br>(a) Subword distances as a prior (b) Subword distances as an inductive bias for 50k<br>steps for training only<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000100000 0 10000 20000 30000 40000 50000 60000 70000 80000 90000100000<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>**----- End of picture text -----**<br>
Figure 4: Validation loss when using subword distances in the positional embedding
## **5.5 Optimizing cross-entropy per subword**
The cross-entropy loss for predicting a sequence of subwords ( _tm_ ) _m≤M_ with a model _θ_ is defined as
**==> picture [246 x 27] intentionally omitted <==**
With the same sequence, but tokenized as UTF-8 bytes ( _bn_ ) _n≤N_ , the default cross-entropy becomes
**==> picture [228 x 28] intentionally omitted <==**
However, by decomposing a subword _t_ into the _k_ bytes it contains ( _bi_ ) _i≤k_ , we have _Pθ_ ( _t_ ) = Π _i≤k_ ( _Pθ_ ( _bi|_ ( _bj_ ) _j<i_ ))
Thus,
**==> picture [320 x 28] intentionally omitted <==**
Instead of optimizing for the best cross-entropy per subword, the baseline target for byte-level LLM optimizes for cross-entropy per byte, scaling the loss by a dynamic factor _[M] N[<]_[ 1][.][In order to see if] this difference has any consequence on training, we use the cross-entropy per subword as a target to train a byte-level LLM and compare to the baseline.
Figure 5 shows very little improvement compared to baseline, suggesting that Hypothesis 6 has minimal effects at this scale.
## **5.6 Optimizing next subword prediction**
Instead of predicting one byte at a time, a subword LLM predicts a subword, usually containing multiple bytes. Arguably, this is analogous to multi-token prediction [13], which was shown to improve pretraining of LLMs, especially for models with more than 1 billion parameters.
We train byte-level model _B_ using a subword output vocabulary, optimizing for the cross-entropy computed using the next subwords, predicted from the end-of-subword bytes. After 50k steps, we return to the baseline pretraining regime.
Figure 6 illustrates that the next subword prediction task is a worse objective to train a language model at this scale compared to next byte prediction, rejecting Hypothesis 7.
7
**==> picture [278 x 196] intentionally omitted <==**
**----- Start of picture text -----**<br>
8 . 0<br>7 . 5<br>7 . 0<br>6 . 5<br>6 . 0 Model A - baseline<br>Model B - cross-entropy per subword<br>Training Steps<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000<br>Validation Loss (bits-per-byte)<br>**----- End of picture text -----**<br>
Figure 5: Validation loss when optimizing for cross-entropy per subword
**==> picture [278 x 195] intentionally omitted <==**
**----- Start of picture text -----**<br>
100<br>Return to normal regime<br>8 . 0<br>7 . 5<br>7 . 0<br>6 . 5<br>Model A - baseline<br>6 . 0 Model B - next subword prediction<br>Training Steps<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000<br>Validation Loss (bits-per-byte)<br>**----- End of picture text -----**<br>
Figure 6: Validation loss when optimizing for next subword prediction for 50k steps
## **5.7 Summary**
The experiments we conducted suggest that the superior performance of subword language models compared to byte-level language models involve multiple effects at different magnitudes. Specifically, the effects related to Hypotheses 2, 3 and 4 are the most noticeable at this scale. By replicating these effects in isolation, we observe a significant improvement for pretraining byte-level language models. Interestingly, these hypotheses are related to different aspects of subword tokenization. The increased sample throughput (Hypothesis 2) is a direct consequence of the compression capabilities of subword tokenization. This is usually the biggest drawback that hinders the competitiveness of byte-level language models, such that state-of-the-art byte-level language models come with methods to compress the byte sequences and thus increase sample throughput closer to the subword counterpart [6, 24, 16, 23]. On the other hand, prior knowledge of subword boundaries (Hypotheses 3 and 4) has strong connections to subwords being good approximations of English semantic units. As exemplified by Schmidt et al. [30], the compression aspect cannot completely explain the efficiency of subword LLMs. Subwords created with Unigram, and BPE to a lesser extent, align well with morphological reference segmentations [2], explaining why we empirically observed that they provide a useful inductive bias during byte-level language model pretraining.
8
Our tests to replicate the effects linked to Hypotheses 1, 5, 6 and 7 either perform worse or do not show a significant change compared to the baseline, suggesting that these effects are not perceptible at this scale. However, their significance could be different at different scales. For instance, we observed a larger gap for experiments linked with Hypothesis 1 for smaller models (68M parameters experiments are included in Appendix B).
## **5.8 Conclusion**
In this paper, we proposed hypotheses regarding the effects that subword tokenization is having on language modeling. Through experiments simulating these effects in a pipeline for pretraining bytelevel language models, we try to isolate these effects and quantify the improvement they provide. In particular, we highlight the importance of increasing the training sample throughput, and giving the subword boundaries as a prior or as inductive biases.
We believe that a better understanding of these effects will prove useful to both improve subword tokenization and byte-level language model pretraining. For example, Minixhofer et al. [23] recently proposed a method to continue the pretraining of a subword LLM as a byte-level LLM, effectively taking advantage of the beneficial effects of subword tokenization during the first stage of bytelevel language model pretraining. Zheng et al. [37] trained LLMs with inputs mixing raw unicode with sequences compressed using subword tokenization, neural compression or gzip, showing better isoFLOPs byte-level performance at scales exceeding 4B parameters, compared with baseline byte-level pretraining. A better understanding of these effects in isolation could allow researchers to improve on some of them, for instance by using different tokenization schemes for different purposes, or even scale some of these effects, similarly to the recent works studying new scaling directions for vocabulary-like parameters decoupled from the model’s vocabulary [15, 22, 3].
## **5.9 Limitations and Future Work**
While our controlled simulations provide valuable insights into the decoupled benefits of subword tokenization, this study has several limitations that present opportunities for future research.
To maintain computational feasibility while exploring a wide range of hypotheses, several of our key experimental interventions, such as artificially increasing sample throughput, injecting subword boundary priors, enforcing subword distance priors and optimizing for the next subword prediction objective, were introduced for only the first 50k training steps before reverting to the baseline bytelevel training regime. While this setting was sufficient to observe significant shifts in validation loss and training dynamics in some settings, the behavior of these priors could be different at different model scales and intervention duration. It remains an open question whether the performance gains, or the lack of them, observed in models exposed to these training interventions compound, plateau, or diminish when maintained throughout a complete, full-scale pretraining run.
A core methodological choice in this work was to replicate the effects induced by subword tokenization one by one. By artificially isolating these variables, we successfully quantified their individual contributions to the subword-byte performance gap. However, this decoupled approach does not account for the complex interplay between these mechanisms. For instance, it is highly likely that the benefits of an increased training sample throughput and the structural inductive biases of subword boundaries interact during standard subword language model training. Future work should investigate these compounding effects to determine whether these isolated variables act additively, synergistically, or redundantly when combined into a single byte-level architecture.
Our experiments were conducted on a 1 _._ 7B parameter language model trained exclusively on the English-centric fineweb-edu dataset tokenized into UTF-8 bytes. As noted in our discussion, the significance of certain hypotheses may shift at larger, or smaller, parameter scales. Furthermore, because English subwords naturally align well with morphological segmentations, the strength of the inductive biases provided by subword boundaries might differ substantially when modeling languages with different morphological structures [9]. Expanding this byte-level simulation framework to highly multilingual datasets and larger model scales remains a promising direction for future research.
Finally, our work revolved around the perspective of reducing the gap between subword models and byte models, however, some of the insights could be leveraged to improve subword models further.
9
## **References**
- [1] Axolotl maintainers and contributors. _Axolotl: Open Source LLM Post-Training_ . 2023. URL: `https://github.com/axolotl-ai-cloud/axolotl` .
- [2] Kaj Bostrom and Greg Durrett. “Byte Pair Encoding is Suboptimal for Language Model Pretraining”. In: _Findings of the Association for Computational Linguistics: EMNLP 2020_ . Findings 2020. Ed. by Trevor Cohn, Yulan He, and Yang Liu. Online: Association for Computational Linguistics, Nov. 2020, pp. 4617–4624. DOI: `10.18653/v1/2020.findingsemnlp.414` . URL: `https://aclanthology.org/2020.findings-emnlp.414/` (visited on 01/22/2026).
- [3] Xin Cheng et al. _Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models_ . Jan. 12, 2026. DOI: `10 . 48550 / arXiv. 2601 . 07372` . arXiv: `2601 . 07372[cs]` . URL: `http://arxiv.org/abs/2601.07372` (visited on 01/22/2026).
- [4] Woojin Chung and Jeonghoon Kim. _Exploiting Vocabulary Frequency Imbalance in Language Model Pre-training_ . Nov. 28, 2025. DOI: `10.48550/arXiv.2508.15390` . arXiv: `2508.15390[cs]` . URL: `http://arxiv.org/abs/2508.15390` (visited on 01/22/2026).
- [5] Cristiano Ciaccio, Marta Sartor, Alessio Miaschi, and Felice Dell’Orletta. “Beyond the Spelling Miracle: Investigating Substring Awareness in Character-Blind Language Models”. In: _Findings of the Association for Computational Linguistics: ACL 2025_ . Findings 2025. Ed. by Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar. Vienna, Austria: Association for Computational Linguistics, July 2025, pp. 11361–11372. ISBN: 979-8-89176-256-5. DOI: `10.18653/v1/2025.findings-acl.593` . URL: `https: //aclanthology.org/2025.findings-acl.593/` (visited on 01/22/2026).
- [6] Jonathan H. Clark, Dan Garrette, Iulia Turc, and John Wieting. “Canine: Pre-training an Efficient Tokenization-Free Encoder for Language Representation”. In: _Transactions of the Association for Computational Linguistics_ 10 (Jan. 31, 2022), pp. 73–91. ISSN: 2307-387X. DOI: `10.1162/tacl_a_00448` . URL: `https://doi.org/10.1162/tacl_a_00448` (visited on 01/22/2026).
- [7] Adrian Cosma, Stefan Ruseti, Emilian Radoi, and Mihai Dascalu. _The Strawberry Problem: Emergence of Character-level Understanding in Tokenized Language Models_ . Sept. 15, 2025. DOI: `10.48550/arXiv.2505.14172` . arXiv: `2505.14172[cs]` . URL: `http://arxiv. org/abs/2505.14172` (visited on 01/22/2026).
- [8] Michael Han Daniel Han and Unsloth team. _Unsloth_ . 2023. URL: `https://github.com/ unslothai/unsloth` .
- [9] D´avid Drˇz´ık and Jozef Kapusta. “The importance of morphology-aware subword tokenization for NLP tasks in Slovak language modeling”. In: _Expert Systems with Applications_ 312 (May 25, 2026), p. 131492. ISSN: 0957-4174. DOI: `10.1016/j.eswa.2026.131492` . URL: `https://www.sciencedirect.com/science/article/pii/S0957417426004057` (visited on 04/02/2026).
- [10] Philip Gage. “A new algorithm for data compression”. In: _C Users J._ 12.2 (Feb. 1, 1994), pp. 23–38. ISSN: 0898-9788.
- [11] Matthias Gall´e. “Investigating the Effectiveness of BPE: The Power of Shorter Sequences”. In: _Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP)_ . EMNLP-IJCNLP 2019. Ed. by Kentaro Inui, Jing Jiang, Vincent Ng, and Xiaojun Wan. Hong Kong, China: Association for Computational Linguistics, Nov. 2019, pp. 1375– 1381. DOI: `10.18653/v1/D19-1141` . URL: `https://aclanthology.org/D19-1141/` (visited on 01/22/2026).
- [12] Yoav Gelberg, Koshi Eguchi, Takuya Akiba, and Edoardo Cetin. _Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings_ . Dec. 13, 2025. DOI: `10.48550/ arXiv.2512.12167` . arXiv: `2512.12167[cs]` . URL: `http://arxiv.org/abs/2512. 12167` (visited on 01/29/2026).
- [13] Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozi`ere, David Lopez-Paz, and Gabriel Synnaeve. “Better & faster large language models via multi-token prediction”. In: _Proceedings of the 41st International Conference on Machine Learning_ . Vol. 235. ICML’24. Vienna, Austria: JMLR.org, July 21, 2024, pp. 15706–15734. (Visited on 01/22/2026).
10
- [14] Aaron Grattafiori et al. _The Llama 3 Herd of Models_ . Nov. 23, 2024. DOI: `10.48550/arXiv. 2407.21783` . arXiv: `2407.21783[cs]` . URL: `http://arxiv.org/abs/2407.21783` (visited on 04/01/2026).
- [15] Hongzhi Huang, Defa Zhu, Banggu Wu, Yutao Zeng, Ya Wang, Qiyang Min, and Zhou Xun. “Over-Tokenized Transformer: Vocabulary is Generally Worth Scaling”. In: Forty-second International Conference on Machine Learning. June 18, 2025. URL: `https://openreview. net/forum?id=gbeZKej40m` (visited on 01/22/2026).
- [16] Sukjun Hwang, Brandon Wang, and Albert Gu. _Dynamic Chunking for End-to-End Hierarchical Sequence Modeling_ . July 15, 2025. DOI: `10.48550/arXiv.2507.07955` . arXiv: `2507.07955[cs]` . URL: `http://arxiv.org/abs/2507.07955` (visited on 02/03/2026).
- [17] Albert Q. Jiang et al. _Mistral 7B_ . Oct. 10, 2023. DOI: `10.48550/arXiv.2310.06825` . arXiv: `2310.06825[cs]` . URL: `http://arxiv.org/abs/2310.06825` (visited on 04/01/2026).
- [18] Taku Kudo. “Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidates”. In: _Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)_ . ACL 2018. Ed. by Iryna Gurevych and Yusuke Miyao. Melbourne, Australia: Association for Computational Linguistics, July 2018, pp. 66–75. DOI: `10.18653/v1/P18-1007` . URL: `https://aclanthology. org/P18-1007/` (visited on 01/22/2026).
- [19] Sander Land and Max Bartolo. “Fishing for Magikarp: Automatically Detecting Undertrained Tokens in Large Language Models”. In: _Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing_ . EMNLP 2024. Ed. by Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen. Miami, Florida, USA: Association for Computational Linguistics, Nov. 2024, pp. 11631–11646. DOI: `10.18653/v1/2024.emnlp-main.649` . URL: `https://aclanthology.org/2024.emnlp-main.649/` (visited on 01/22/2026).
- [20] Paul Lerner and Franc¸ois Yvon. “Unlike “Likely”, “Unlike” is Unlikely: BPE-based Segmentation hurts Morphological Derivations in LLMs”. In: _Proceedings of the 31st International Conference on Computational Linguistics_ . COLING 2025. Ed. by Owen Rambow, Leo Wanner, Marianna Apidianaki, Hend Al-Khalifa, Barbara Di Eugenio, and Steven Schockaert. Abu Dhabi, UAE: Association for Computational Linguistics, Jan. 2025, pp. 5181–5190. URL: `https://aclanthology.org/2025.coling-main.348/` (visited on 01/22/2026).
- [21] Wanchao Liang et al. _TorchTitan: One-stop PyTorch native solution for production ready LLM pre-training_ . June 7, 2025. DOI: `10.48550/arXiv.2410.06511` . arXiv: `2410.06511[cs]` . URL: `http://arxiv.org/abs/2410.06511` (visited on 04/01/2026).
- [22] Hong Liu et al. _Scaling Embeddings Outperforms Scaling Experts in Language Models_ . Jan. 29, 2026. DOI: `10.48550/arXiv.2601.21204` . arXiv: `2601.21204[cs]` . URL: `http: //arxiv.org/abs/2601.21204` (visited on 02/02/2026).
- [23] Benjamin Minixhofer, Tyler Murray, Tomasz Limisiewicz, Anna Korhonen, Luke Zettlemoyer, Noah A. Smith, Edoardo M. Ponti, Luca Soldaini, and Valentin Hofmann. _Bolmo: Byteifying the Next Generation of Language Models_ . Dec. 17, 2025. DOI: `10.48550/arXiv. 2512.15586` . arXiv: `2512.15586[cs]` . URL: `http://arxiv.org/abs/2512.15586` (visited on 01/22/2026).
- [24] Artidoro Pagnoni et al. “Byte Latent Transformer: Patches Scale Better Than Tokens”. In: _Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)_ . ACL 2025. Ed. by Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar. Vienna, Austria: Association for Computational Linguistics, July 2025, pp. 9238–9258. ISBN: 979-8-89176-251-0. DOI: `10 . 18653 / v1 / 2025.acl- long.453` . URL: `https://aclanthology.org/2025.acl- long.453/` (visited on 02/03/2026).
- [25] Guilherme Penedo, Hynek Kydl´ıˇcek, Loubna Ben Allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. “The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale”. In: The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track. Nov. 13, 2024. URL: `https: //openreview.net/forum?id=n6SCkn2QaG#discussion` (visited on 04/01/2026).
- [26] Ivan Provilkov, Dmitrii Emelianenko, and Elena Voita. “BPE-Dropout: Simple and Effective Subword Regularization”. In: _Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics_ . ACL 2020. Ed. by Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel Tetreault. Online: Association for Computational Linguistics, July 2020, pp. 1882–
11
1892. DOI: `10.18653/v1/2020.acl-main.170` . URL: `https://aclanthology.org/ 2020.acl-main.170/` (visited on 01/22/2026).
- [27] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. “Language models are unsupervised multitask learners”. In: _OpenAI blog_ 1.8 (2019), p. 9.
- [28] Aurko Roy et al. _N-Grammer: Augmenting Transformers with latent n-grams_ . July 13, 2022. DOI: `10.48550/arXiv.2207.06366` . arXiv: `2207.06366[cs]` . URL: `http://arxiv. org/abs/2207.06366` (visited on 01/22/2026).
- [29] Phillip Rust, Jonas Pfeiffer, Ivan Vuli´c, Sebastian Ruder, and Iryna Gurevych. “How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language Models”. In: _Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)_ . ACL-IJCNLP 2021. Ed. by Chengqing Zong, Fei Xia, Wenjie Li, and Roberto Navigli. Online: Association for Computational Linguistics, Aug. 2021, pp. 3118–3135. DOI: `10.18653/v1/2021.acl-long.243` . URL: `https://aclanthology.org/2021.acllong.243/` (visited on 01/22/2026).
- [30] Craig W Schmidt, Varshini Reddy, Haoran Zhang, Alec Alameddine, Omri Uzan, Yuval Pinter, and Chris Tanner. “Tokenization Is More Than Compression”. In: _Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing_ . EMNLP 2024. Ed. by Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen. Miami, Florida, USA: Association for Computational Linguistics, Nov. 2024, pp. 678–702. DOI: `10.18653/v1/2024.emnlpmain . 40` . URL: `https : / / aclanthology . org / 2024 . emnlp - main . 40/` (visited on 01/22/2026).
- [31] Rico Sennrich, Barry Haddow, and Alexandra Birch. “Neural Machine Translation of Rare Words with Subword Units”. In: _Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)_ . ACL 2016. Ed. by Katrin Erk and Noah A. Smith. Berlin, Germany: Association for Computational Linguistics, Aug. 2016, pp. 1715–1725. DOI: `10.18653/v1/P16-1162` . URL: `https://aclanthology.org/P161162/` (visited on 01/22/2026).
- [32] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. _Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism_ . Mar. 13, 2020. DOI: `10.48550/arXiv.1909.08053` . arXiv: `1909. 08053[cs]` . URL: `http://arxiv.org/abs/1909.08053` (visited on 04/01/2026).
- [33] Chaofan Tao, Qian Liu, Longxu Dou, Niklas Muennighoff, Zhongwei Wan, Ping Luo, Min Lin, and Ngai Wong. “Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabularies”. In: The Thirty-eighth Annual Conference on Neural Information Processing Systems. Nov. 6, 2024. URL: `https:// openreview.net/forum? id=sKCKPr8cRL` (visited on 01/22/2026).
- [34] Hugo Touvron et al. _LLaMA: Open and Efficient Foundation Language Models_ . Feb. 27, 2023. DOI: `10.48550/arXiv.2302.13971` . arXiv: `2302.13971[cs]` . URL: `http://arxiv. org/abs/2302.13971` (visited on 04/01/2026).
- [35] Unicode Consortium. _The Unicode Standard: Worldwide Character Encoding_ . Reading, Massachusetts: Addison Wesley, Oct. 1991. ISBN: 0-201-56788-1.
- [36] Franc¸ois Yergeau. _UTF-8, a transformation format of ISO 10646_ . Request for Comments RFC 3629. Num Pages: 14. Internet Engineering Task Force, Nov. 2003. DOI: `10.17487/ RFC3629` . URL: `https://datatracker.ietf.org/doc/rfc3629` (visited on 04/01/2026).
- [37] Lin Zheng, Xinyu Li, Qian Liu, Xiachong Feng, and Lingpeng Kong. _Proxy Compression for Language Modeling_ . Feb. 4, 2026. DOI: `10.48550/arXiv.2602.04289` . arXiv: `2602. 04289[cs]` . URL: `http://arxiv.org/abs/2602.04289` (visited on 02/11/2026).
- [38] Vil´em Zouhar, Clara Meister, Juan Gastaldi, Li Du, Tim Vieira, Mrinmaya Sachan, and Ryan Cotterell. “A Formal Perspective on Byte-Pair Encoding”. In: _Findings of the Association for Computational Linguistics: ACL 2023_ . Findings 2023. Ed. by Anna Rogers, Jordan BoydGraber, and Naoaki Okazaki. Toronto, Canada: Association for Computational Linguistics, July 2023, pp. 598–614. DOI: `10.18653/v1/2023.findings- acl.38` . URL: `https: //aclanthology.org/2023.findings-acl.38/` (visited on 01/22/2026).
12
## **A Hyperparameters**
Table 1: Training hyperparameters
|Hyperparameter|Value|
|---|---|
|Architecture<br># parameters<br>Dimension<br># layers<br># heads<br># KV heads<br>Optimizer<br>_β_1_, β_2<br>Weight decay<br>Global batch size<br>Sequence length<br>Positional encoding<br>Learning rate scheduler<br>Learning rate (peak)<br>Training steps<br>LR warmup<br>LR decay|LLaMA-3 [14]<br>1_,_747_,_060_,_736<br>2_,_048<br>32<br>32<br>8<br>AdamW<br>0_._9,0_._95<br>0.1<br>128<br>8_,_192<br>RoPE<br>Warmup-Stable Cosine Decay<br>3_∗_10_−_4<br>100_,_000steps<br>2_,_000steps<br>10_,_000steps|
Table 2: Multihead _n_ -gram embedding hyperparameters
|Hyperparameter|Value|
|---|---|
|# extra parameters<br>Maximum order_n_of_n_-grams<br>Base_n_-gram vocabulary size at each order<br>Token vocabulary size<br>Embedding dimension<br># heads|71_,_065_,_088<br>3<br>15_,_000<br>512<br>2048<br>8|
## **B Smaller-scale experiments**
13
**==> picture [360 x 605] intentionally omitted <==**
**----- Start of picture text -----**<br>
10.0 Model A - baseline 100 Back to normal regime Model A - baseline<br>Model B - scaled vocabulary parameters Model B - increased sample throughput<br>9.5<br>10.0<br>9.0<br>9.5<br>8.5 9.0<br>8.5<br>8.0<br>8.0<br>7.5<br>7.5<br>7.0 7.0<br>Training Steps Training Steps<br>(a) Scaling input embedding parameters (b) Scaling sample throughput by 4 times for 20k<br>steps<br>10.0 Model A - baseline 100 Back to normal regime Model A - baseline<br>Model B - subword start boundaries prior Model B - subword start boundaries inductive bias<br>9.5 Model C - subword end boundaries prior Model C - subword end boundaries inductive bias<br>9.0 10.0<br>8.5 9.5<br>9.0<br>8.0<br>8.5<br>7.5<br>8.0<br>7.0 7.5<br>6.5 7.0<br>Training Steps Training Steps<br>(c) Subword boundaries as a prior (d) Subword boundaries as an inductive bias for<br>20k steps<br>10.0 Model A - baseline 100 Back to normal regime Model A - baseline<br>Model B - subword distances prior Model B - subword distances inductive bias<br>9.5<br>10.0<br>9.0<br>9.5<br>8.5 9.0<br>8.5<br>8.0<br>8.0<br>7.5<br>7.5<br>7.0 7.0<br>Training Steps Training Steps<br>(e) Subword distances as a prior (f) Subword distances as an inductive bias for 20k<br>steps for training only<br>10.0 Model A - baseline 100 Back to normal regime Model A - baseline<br>Model B - cross-entropy per subword Model B - next subword prediction<br>9.5<br>10.0<br>9.0<br>9.5<br>8.5 9.0<br>8.5<br>8.0<br>8.0<br>7.5<br>7.5<br>7.0 7.0<br>Training Steps Training Steps<br>(g) Optimizing for cross-entropy per subword (h) Optimizing for next subword prediction for<br>20k steps<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000 0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000 0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000 0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000<br>0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000 0 10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 120000 130000 140000 150000<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>Validation Loss (bits-per-byte)<br>**----- End of picture text -----**<br>
Figure 7: Validation loss for different experiments with a 68M parameters model
14