Umeå University's logo

umu.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Constructing a BPE tokenization DFA
Umeå University, Faculty of Science and Technology, Department of Computing Science.ORCID iD: 0000-0002-3692-6994
Umeå University, Faculty of Science and Technology, Department of Computing Science.
Department of Computer Science, Stellenbosch University, Stellenbosch, South Africa; National Institute for Theoretical and Computational Sciences, Stellenbosch, South Africa.
2026 (English)In: Theoretical Computer Science, ISSN 0304-3975, E-ISSN 1879-2294, Vol. 1083, article id 116131Article in journal (Refereed) Published
Abstract [en]

Many natural language processing systems operate over tokenizations of text to address the open-vocabulary problem. In this paper, we give and analyze an algorithm for the efficient construction of deterministic finite automata (DFA) designed to operate directly on tokenizations produced by the popular byte pair encoding (BPE) technique. This makes it possible to apply many existing techniques and algorithms to the tokenized case, such as pattern matching, equivalence checking of tokenization dictionaries, and composing tokenized languages in various ways. The construction preserves some key properties of the automaton, and we use this to establish asymptotic bounds on the state complexity of the automata that result. Finally, we demonstrate how to construct an input-deterministic (subsequential) string-to-string transducer which precisely describes the relationship between strings and their correct tokenizations.

Place, publisher, year, edition, pages
Elsevier, 2026. Vol. 1083, article id 116131
Keywords [en]
Automata theory, Byte pair encoding, Tokenization
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:umu:diva-257600DOI: 10.1016/j.tcs.2026.116131ISI: 001815056100001Scopus ID: 2-s2.0-105043575844OAI: oai:DiVA.org:umu-257600DiVA, id: diva2:2092282
Funder
Wallenberg AI, Autonomous Systems and Software Program (WASP)Available from: 2026-08-14 Created: 2026-08-14 Last updated: 2026-08-14Bibliographically approved

Open Access in DiVA

fulltext(2530 kB)22 downloads
File information
File name FULLTEXT01.pdfFile size 2530 kBChecksum SHA-512
f4d17cb40cc455b04158e71078697726f2e8b1a565b172cacf78d72eab2b771cf8752b55e5fa634106f65d5f40b3b8d6526f6565fbf4c28e5d1bceb0d95de58d
Type fulltextMimetype application/pdf

Other links

Publisher's full textScopus

Authority records

Berglund, MartinMartens, Willeke

Search in DiVA

By author/editor
Berglund, MartinMartens, Willeke
By organisation
Department of Computing Science
In the same journal
Theoretical Computer Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 22 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

doi
urn-nbn

Altmetric score

doi
urn-nbn
Total: 1411 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf