~/talk

An Efficient Algorithm for Streaming BPE Tokenization

Talkat PLDI 2026 · 2026-06-15..06-19· [machine-learning]
links:none on file
links:none on file
name:Yudi Yang
links:none on file
slides:none on file

Claims a linear-time, low‑memory streaming algorithm for BPE tokenization that reads input in blocks sized by a rule‑set dependent delay and emits safe prefixes. Implements a finite‑state‑transducer approach, computes per‑batch delays to avoid building the full product transducer, and reports for a 200,000‑rule set a delay estimate < 3,000 so memory stays on the order of kilobytes (streaming algorithm uses kilobytes). Benchmarks show the FST tool outperforms Hugging Face and DP and scales with input length.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42What is tokenization and BPE
  3. 3:15BPE rule sets
  4. 4:45Standard BPE procedure
  5. 6:52Existing BPE algorithms
  6. 7:59BPE transducers challenges
  7. 11:15Delay for streaming BPE
  8. 13:23Computing delay with rule batches
  9. 14:49Tokenizer comparison
  10. 16:15Proposed algorithm summary
  11. 17:40Q&A: Serial composition and priority
  12. 18:22Q&A: Delay vs token length
  13. 19:46Q&A: Streaming and parallelization
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.