From Characters to Tokens: Dynamic Grouping with Hierarchical BPE

Rares Dolga, Lucas Maystre, Tudor Berariu, David Barber


Abstract
Subword tokenization methods like Byte Pair Encoding (BPE) are widely used in large language models due to their balance of vocabulary compactness and representational power. However, they suffer from inefficiencies in representing rare words and require large embedding matrices. Character-level models address these issues but introduce performance bottlenecks, particularly in Transformer-based architectures. Recent hierarchical models attempt to merge the benefits of both paradigms by grouping characters into patches, but existing patching strategies either rely on whitespace—limiting applicability to certain languages—or require auxiliary models that introduce new dependencies. In this paper, we propose a dynamic character grouping method that leverages the structure of existing BPE tokenization without requiring additional models. By appending explicit end-of-patch markers to BPE tokens and introducing a second-level BPE compression stage to control patch granularity, our method offers efficient, flexible, and language-agnostic representations. Empirical results demonstrate that our approach matches or exceeds the performance of dynamic entropy- and whitespace-based patching strategies, while maintaining a compact vocabulary.
Anthology ID:
2025.findings-emnlp.595
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2025
Month:
November
Year:
2025
Address:
Suzhou, China
Editors:
Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, Violet Peng
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
11154–11162
Language:
URL:
https://preview.aclanthology.org/ingest-luhme/2025.findings-emnlp.595/
DOI:
10.18653/v1/2025.findings-emnlp.595
Bibkey:
Cite (ACL):
Rares Dolga, Lucas Maystre, Tudor Berariu, and David Barber. 2025. From Characters to Tokens: Dynamic Grouping with Hierarchical BPE. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 11154–11162, Suzhou, China. Association for Computational Linguistics.
Cite (Informal):
From Characters to Tokens: Dynamic Grouping with Hierarchical BPE (Dolga et al., Findings 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-luhme/2025.findings-emnlp.595.pdf
Checklist:
 2025.findings-emnlp.595.checklist.pdf