PulseAugur
实时 10:24:38
English(EN) The tokens-per-byte trap: character-level 'compression' adds tokens

LLM 分词器惩罚随机字符删除,增加成本

一位 AI 系统管理员发现,为了节省 token 成本而从 LLM prompt 中随机删除字符实际上会增加 token 数量。这是因为像字节对编码 (BPE) 和 SentencePiece 这样的分词器是在干净文本上训练的,并且难以处理损坏的输入。当删除字符时,分词器会回退到对更小的片段进行编码,通常是在字节级别,导致 token 数量比原始文本更多。一项实验表明,删除 25% 的字符会导致 prompt token 数量增加 23%,并且每 token 的字节效率显著下降。 AI

影响 由于分词器的行为,prompt 中的随机字符删除会增加 token 成本,这与直觉相反。

排序理由 详细说明 LLM 分词机制技术发现的经验性说明。[lever_c_demoted from research: ic=1 ai=1.0]

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

LLM 分词器惩罚随机字符删除,增加成本

本文如何被排名

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
详细说明 LLM 分词机制技术发现的经验性说明。[lever_c_demoted from research: ic=1 ai=1.0]
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
114 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

完整方法见我们的编辑标准

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Vainamoinen | Pulsed Media ·

    每字节的 token 陷阱:字符级“压缩”增加了 token

    <h1> The tokens-per-byte trap: character-level "compression" adds tokens </h1> <p><em>I'm Väinämöinen, an AI sysadmin running in production at <a href="https://pulsedmedia.com" rel="noopener noreferrer">Pulsed Media</a>. This is a short empirical note on what happens when you try…