[KongchangAI]
ConceptTokenization / 分词

Tokenization

The process of splitting raw text into a sequence of tokens. It is divided into three approaches: character-level, word-level, and subword-level. Tokenization is the first step in how embedding models and language models process text.

Timeline (last 90 days)

Oct 16

The tokenization strategy directly determines the granularity of vocabulary validation: too coarse a split will miss fabricated content, while too fine a split will misjudge fragments with no real meaning as semantic words and cause false positives; synonyms, morphological variations and cross-language mixing affect matching, and non-English scenarios require specially designed tokenization and morphological normalization schemes.

Unverified50%
Oct 15

The inference engine reuses shared prefixes via the KV cache, letting new tokens skip repeated prefill computation, but the tokenization step has no similar reuse shortcut, and the CPU frontend of the serving engine must reconvert the entire request into token IDs from the first character every time.

Unverified50%
Oct 15

After KV caching, attention optimization, quantization, and other stages have been repeatedly polished, the preprocessing step of tokenization may still be an important contributor to TTFT, especially in long-prompt and Agent multi-turn scenarios.

Unverified50%
Oct 12

Research from Georgia Tech found that in agent multi-turn conversation scenarios, the history must be re-tokenized on the CPU every turn, while the GPU's burden actually shrinks because it has cached the content it has already seen.

Unverified50%
Oct 12

The research found that, given sufficient CPU resources, the time from sending a request to receiving the first token (TTFT) was shortened by 1.47 to 7.11 times across the various configurations tested.

Unverified50%
Oct 12

In large-model inference pipelines, text must first be converted into tokens by the CPU before the GPU can start working, so the CPU cost of tokenization lies at the front of the GPU computation's critical path.

Unverified50%
Oct 12

Neither study can determine how much of the idle time is attributable to tokenization rather than output reassembly, parsing, or launching tasks on the chip.

Unverified50%
Oct 12

In a PyTorch blog post, an analysis by LightSeek Foundation advocates moving the tokenization work entirely out of the Python process.

Unverified50%
Oct 12

When Hugging Face released its new-generation tokenization library, it judged that tokenization has historically never been a bottleneck, but becomes a bottleneck when serving many requests simultaneously or repeatedly processing extremely long inputs.

Unverified50%
Oct 12

Tokenization is essentially table lookup and a small amount of string matching, with complexity approximately linear in sequence length, and unit cost far lower than self-attention or matrix multiplication in a Transformer.

Unverified50%

All Facts (10)

Unverified

The tokenization strategy directly determines the granularity of vocabulary validation: too coarse a split will miss fabricated content, while too fine a split will misjudge fragments with no real meaning as semantic words and cause false positives; synonyms, morphological variations and cross-language mixing affect matching, and non-English scenarios require specially designed tokenization and morphological normalization schemes.

50%
Unverified

The inference engine reuses shared prefixes via the KV cache, letting new tokens skip repeated prefill computation, but the tokenization step has no similar reuse shortcut, and the CPU frontend of the serving engine must reconvert the entire request into token IDs from the first character every time.

50%
Unverified

After KV caching, attention optimization, quantization, and other stages have been repeatedly polished, the preprocessing step of tokenization may still be an important contributor to TTFT, especially in long-prompt and Agent multi-turn scenarios.

50%
Unverified

Research from Georgia Tech found that in agent multi-turn conversation scenarios, the history must be re-tokenized on the CPU every turn, while the GPU's burden actually shrinks because it has cached the content it has already seen.

50%
Unverified

The research found that, given sufficient CPU resources, the time from sending a request to receiving the first token (TTFT) was shortened by 1.47 to 7.11 times across the various configurations tested.

50%
Unverified

In large-model inference pipelines, text must first be converted into tokens by the CPU before the GPU can start working, so the CPU cost of tokenization lies at the front of the GPU computation's critical path.

50%
Unverified

Neither study can determine how much of the idle time is attributable to tokenization rather than output reassembly, parsing, or launching tasks on the chip.

50%
Unverified

In a PyTorch blog post, an analysis by LightSeek Foundation advocates moving the tokenization work entirely out of the Python process.

50%
Unverified

When Hugging Face released its new-generation tokenization library, it judged that tokenization has historically never been a bottleneck, but becomes a bottleneck when serving many requests simultaneously or repeatedly processing extremely long inputs.

50%
Unverified

Tokenization is essentially table lookup and a small amount of string matching, with complexity approximately linear in sequence length, and unit cost far lower than self-attention or matrix multiplication in a Transformer.

50%

Source Articles