斯坦福论文指出,没有任何指标能在所有意义上做到与分词器无关,比较分词器时不应依赖单一分数,还需检查模型是否答对。研究用未训练模型和同配方不同分词器的已发布模型测试,发现未学习模型在不同分词器下 BPB 仍不同,英文文本在约 24K 词表时 BPB 最优但准确率仍为随机水平;不同分词器训练的模型上,BPB 与任务分数相关性仅在 +0.02 到 −0.30 之间。
New Stanford paper finds that no metric can be tokenizer-agnostic in every sense, so anyone comparing tokenizers should not trust a single score and should also check whether the model answers correctly.
To compare models with different tokenizers, researchers usually report bits-per-byte, or BPB, which divides the loss by bytes instead of tokens. Many papers call it tokenizer-agnostic.
They scored untrained models that guess uniformly, plus released models that share one recipe but use different tokenizers. They also rechecked a published claim that another supposedly tokenizer-neutral metric agrees with BPB.
Models that learned nothing still got different BPB by tokenizer, with English text scoring best near a 24K vocabulary, while accuracy stayed at chance. On models trained with different tokenizers, correlations between BPB and task scores ran only from +0.02 to −0.30.
When comparing tokenizers, don't treat lower BPB as proof of a better model, and check task accuracy on the same text before picking a vocabulary.
来源:Rohan Paul · x.com