arrow
Return

Constructing Compact BPE Token DFAs

delete2026-01-01
delete0
PRE
AI
M
Martin Berglund
A
Anna Jönsson
W
Willeke Martens *
B
Brink van der Merwe *
DOI:10.1007/978-3-032-02602-6_3delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Byte pair encoding (BPE) tokenization is a popular technique for subdividing text into relevant subwords and is frequently used in large language model systems. Since the tokenization procedure is deterministic and produces regular languages, it is beneficial to characterize it in terms of finite automata to allow for further automata-aided processing, such as pattern matching. In this paper, we demonstrate how to build such automata efficiently in practice, applying a series of optimization techniques to represent them compactly.
Keywords:
COMPRESSION

Journal

I
IMPLEMENTATION AND APPLICATION OF AUTOMATA, CIAA 2025
IF:
0
Papers:
22
Citations:
0

Organization

U
umea university
Scholars:
1.1K
Papers: 499
Citations: 0
S
stellenbosch university
Scholars:
1.4W
Papers: 1.2W
Citations: 17