大型语言模型通过一个形状为|V| x d_model的可学习嵌入表路由每个输入,在前沿规模下消耗数亿到数十亿的可训练参数。我们引入Kronecker嵌入,一种确定性的字节级字符-位置分解,用固定编码器和单个可学习投影替换该表,与标准BPE分词器兼容,在前沿规模下消除91-94%的输入侧可训练参数。我们提供五项贡献。第一,跨六个LM(135M-671B参数)的模型探针显示,训练后的输入嵌入将探针词的印刷变体聚类程度远高于形态学相关词;Kronecker在嵌入层避免了这种聚类。第二,在FineWeb-Edu上对nanoGPT GPT-2 124M进行2.5B词元的三种子受控比较显示,Kronecker达到比BPE绑定基线低2.5±0.2%的验证损失(差距0.083±0.007 nats,约9%更低的困惑度),达到BPE收敛损失所需的步数减少约1.43倍。第三,在110个干净/拼写错误对上的拼写鲁棒性探针显示,Kronecker在55.5%的对上保持top-1预测,而BPE为47.3%(+8.2个百分点),并将KL降低7.6%,在11个类别中赢得或平局10个;生成探针显示Kronecker在生成中回显字节新颖字符串和拼写错误,而BPE则遗忘它们。第四,BPE嵌入范数在训练期间漂移,而Kronecker投影范数保持在1.0附近,与稳定的表示目标一致。第五,一种即时运行时变体从4.5 MB的字节缓冲区重建嵌入,而不是从词汇量为131,072的2.15 GB表中重建,步长时间开销为0.01-0.24%。字节级局部性存在权衡:字节相似但语义距离远的对(compute/commute, nation/notion)聚类在一起,将消歧转移到早期注意力层。
英文摘要:
Large language models route every input through a learned embedding table of shape |V| x d_model, consuming hundreds of millions to billions of trainable parameters at frontier scale. We introduce Kronecker Embeddings, a deterministic byte-level character-position factorization that replaces this table with a fixed encoder and a single learned projection, compatible with standard BPE tokenizers, eliminating 91--94% of input-side trainable parameters at frontier scale. We provide five contributions. First, a cross-model probe across six LMs (135M-671B parameters) shows trained input embeddings cluster typographic variants of the probe word far more than morphological relatives; Kronecker escapes this clustering at the embedding layer. Second, a controlled three-seed comparison on nanoGPT GPT-2 124M over 2.5B tokens of FineWeb-Edu shows Kronecker reaching 2.5 +- 0.2% lower validation loss than the BPE-tied baseline (gap 0.083 +- 0.007 nats, ~9% lower perplexity), needing ~1.43x fewer steps to reach BPE's converged loss. Third, a spelling-robustness probe over 110 clean/typo pairs shows Kronecker preserves the top-1 prediction on 55.5% of pairs vs. 47.3% for BPE (+8.2 pp) and lowers KL by 7.6%, winning or tying in 10 of 11 categories; a generation probe shows Kronecker echoes byte-novel strings and typos through generation where BPE forgets them. Fourth, BPE embedding norm drifts during training while Kronecker projection norm stays near 1.0, consistent with a stable representational target. Fifth, an on-the-fly runtime variant reconstructs embeddings from a 4.5 MB byte buffer rather than a 2.15 GB table at vocabulary 131,072, with 0.01--0.24% step-time overhead. Byte-level locality has a tradeoff: byte-similar but semantically distant pairs (compute/commute, nation/notion) cluster together, shifting disambiguation to early attention layers.
Byte Latent Transformer: Patches Scale Better Than Tokens
FAIR at Meta(Meta FAIR研究院);Paul G. Allen School of Computer Science & Engineering, University of Washington(华盛顿大学保罗·G·艾伦计算机科学与工程学院);University of Chicago(芝加哥大学)
Scaffold-BPE: Enhancing Byte Pair Encoding for Large Language Models with Simple and Effective Scaffold Token Removal
Beihang University(北京航空航天大学);Tsinghua University(清华大学);BNRist(北京信息科学与技术国家研究中心);Chinese Academy of Sciences(中国科学院);Beijing Institute Of Technology(北京理工大学)
Byte-token Enhanced Language Models for Temporal Point Processes Analysis
Independent Researcher(独立研究者);Southeast University(东南大学);Center for Applied Statistics and School of Statistics, Renmin University of China(应用统计中心和中国人民大学统计学院)
From Pixels to Tokens: Byte-Pair Encoding on Quantized Visual Modalities
School of Computer Science, Peking University(北京大学计算机学院);The Chinese University of Hong Kong(香港中文大学);University of California, San Diego(加利福尼亚大学圣迭戈分校);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)
Wine is Not v i n. -- On the Compatibility of Tokenizations Across Languages
LMU Munich(慕尼黑大学)
词汇表的大小是大型预训练语言模型的核心设计选择,考虑到性能和内存需求。通常,使用诸如字节对编码和WordPiece的子字标记化算法。在这项工作中,我们调查的多语言静态和上下文嵌入空间的标记化的兼容性,并提出了一个措施,反映了跨语言的标记化的兼容性。我们的目标是防止不兼容的标记,例如,英语中的“wine”(词级)与法语中的“v i n”(字符级),这使得很难学习良好的多语言语义表示。我们表明,我们的兼容性措施允许系统设计人员创建跨语言的词汇表是兼容的-一个迫切需要,到目前为止,一直被忽视的多语言模型。
Stop Taking Tokenizers for Granted: They Are Core Design Decisions in Large Language Models
Princess Nourah Bint Abdulrahman University(普里丝琴·努拉·本·阿卜杜勒拉赫曼大学);Saudi Data & AI Authority (SDAIA)(沙特数据与人工智能管理局);University of Alberta(阿尔伯塔大学);Dialpad(Dialpad公司);York University(约克大学);Qatar Computing Research Institute(卡塔尔计算研究所);Amazon AGI(亚马逊人工智能研究所)
Department of Computer Science and Technology, University of Cambridge, U.K.(计算机科学与技术系,剑桥大学,英国);ALTA Institute, University of Cambridge, U.K.(ALTA研究所,剑桥大学,英国)