350M 参数对照实验:字节块 Transformer 与 8k BPE 分词器的公平比较
Byte Patches versus BPE at Matched Data: A Matched-Twin Comparison at 350M Parameters
想搞懂到底要不要放弃分词器的人该看看这篇。作者用同参数、同数据、同种子训了两个 350M 模型硬碰硬,结论比之前各说各话的实验可信得多。做字节级模型或 tokenizer 研究的工程师直接受益,里面列的评测陷阱能帮你避开不少坑。
arXiv 论文在完全相同的原始字节、文档顺序和优化器配置下,对比了 350M 参数、100 亿训练字节的 MEGABYTE 风格字节块模型(local64,64 字节滑动解码)与字节级 8k 词表 BPE 分词器(BPE-8k)。在相同字节跨度的评测中,BPE-8k 在 bits per byte 上领先,整体、文本、代码、数学四类的相对差距分别为 -5.2%、-4.9%、-9.3% 和 -6.1%(配对 bootstrap 显著性检验)。
下游任务的结果出现分化:经过同等微调后,CharBench 上 local64 以 53.7% 对 40.0% 占优;fact200 上 BPE-8k 以 16.5% 对 7.0% 领先;PIQA 和 ARC-Easy 的长度归一化指标在 Holm 校正(alpha=0.05)后也偏向 BPE-8k,其余任务为平局。论文还指出三类会翻转结论的评测陷阱:超出 BPE 训练上下文的长度外推、把 bits per token 误报为 bits per byte、以及字节分母口径不一致。
与以往在固定 token 预算下只换子词分词器的研究不同,这项工作固定原始字节、顺序和优化器配方,直接回答固定分块的字节模型能否完全取代分词器。局限包括只有单一模型规模、单一随机种子、8k 词表在实验前固定,以及两个孪生模型之间存在已知的嵌入初始化差异。
Byte Patches versus BPE at Matched Data: A Matched-Twin Comparison at 350M Parameters
We compare a MEGABYTE-style byte-patch Transformer with a 64-byte sliding local decoder (local64) to a matched byte-level 8k BPE decoder (BPE-8k) under identical raw bytes, document order, and approximately matched bytes per optimizer step: 350M parameters and 10 billion training bytes. Under matched-span document sliding (identical scored byte ranges), BPE-8k leads with relative gaps of -5.2%, -4.9%, -9.3% and -6.1% in bits per byte (overall, text, code, math; paired bootstrap). Downstream, CharBench equal fine-tuning favors local64 (53.7% vs 40.0%), fact200 favors BPE-8k (16.5% vs 7.0%), and PIQA (raw and length-normalized) and ARC-Easy length-normalized favor BPE-8k after Holm correction at alpha = 0.05; remaining tasks are ties. Evaluation pitfalls that changed conclusions include context-length extrapolation past the BPE training context, bits per token reported as bits per byte, and inconsistent byte denominators. Unlike controlled tokenizer studies that vary the subword tokenizer under a fixed token budget, or FLOP-controlled byte-model scaling studies, we hold the raw bytes, their order and the optimizer recipe fixed and ask whether a fixed-patch byte model can replace the tokenizer at all. Limits: one size, one seed, one 8k vocabulary fixed before the runs, and a known difference in embedding initialization between the twins.
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:BPE、MEGABYTE、tokenizer、推理模型,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Asadullah Maliyawala, Andrej Lisal),经 AITOP 多维评分管线结构化提炼。