Metraipolis › archive › dc_a5b4b56890e2

Delta Tokenizer: Reference-Identical Tokenization of Session Deltas and Segment-Parallelism for Long Prompts on Multicore CPUs — arXiv:2610.19801

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.19801
License (as archived)
CC0-1.0
Archived
2026-10-15T14:09:02.424Z
SHA-256 of the archived text
91dbd310ea9bc570426b3bb35f1ed2013a4e57a5f3cf21c48303c6eafb7dc636
Stable URL of this page
https://metraipolis.com/documento/dc_a5b4b56890e2

How to cite

Delta Tokenizer: Reference-Identical Tokenization of Session Deltas and Segment-Parallelism for Long Prompts on Multicore CPUs — arXiv:2610.19801 — arXiv (en), https://arxiv.org/abs/2610.19801 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a5b4b56890e2 (Metraipolis archive dc_a5b4b56890e2, sha256 91dbd310ea9bc570426b3bb35f1ed2013a4e57a5f3cf21c48303c6eafb7dc636)
BibTeX
@misc{dca5b4b56890e2,
  title = {Delta Tokenizer: Reference-Identical Tokenization of Session Deltas and Segment-Parallelism for Long Prompts on Multicore CPUs — arXiv:2610.19801},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.19801},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a5b4b56890e2; sha256 91dbd310ea9bc570426b3bb35f1ed2013a4e57a5f3cf21c48303c6eafb7dc636},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.19801. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

An agent that drives an LLM sends the model the same conversation again and again, and each turn adds only a little text at the end. Inference engines reuse the KV cache of the shared prefix, so only the new tokens pass through the model. However, tokenization has no such shortcut. The CPU front end of the serving engine converts every request back into token IDs from its first character, which lengthens the time to first token (TTFT) and consumes CPU on every turn. We present Delta Tokenizer, a CPU tokenization front end that tokenizes only the delta between a request and the previous request of the same session. It retains the earlier token sequence, encodes again only the appended text and the short tail whose tokens the append could affect, and joins the two only at a position the tokenizer's splitting rules themselves cannot move, which keeps the result exact. For long requests with no state to reuse, it cuts the text where practical tokenizers already keep neighboring pieces independent, encodes the pieces on several cores at once, and concatenates the outputs into the reference encoding, exactly. A shared CPU pool schedules these chunks together with the short incremental updates, so an update runs between two chunks rather than behind an entire long job. The incremental path shortens the tokenization of a session turn by roughly 40x relative to the Hugging Face reference tokenizer, and on 16 cores the chunk-parallel path encodes a four-million-character request 8.2x faster than a serial encode and 1.6-2.1x faster than LoPT. Inside SGLang, Delta Tokenizer reduces the median TTFT through the chat interface by 59% at 100K tokens and brings the P99 TTFT of agent sessions down 9.5x under load and 23x when long requests tie up the front end. Every output we checked matches the reference, among them 41.8 billion documents encoded by its fast encoder.

Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.PF, nuovi lavori del giorno).
Categorie arXiv: Computation and Language (cs.CL) ; Distributed, Parallel, and Cluster Computing (cs.DC); Performance (cs.PF).
Pagina del lavoro: https://arxiv.org/abs/2610.19801 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T13:51:05.341Z dalla pagina https://arxiv.org/list/cs.PF/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).