arXiv:2603.15953cs.CLcs.AI2026-03

提出可动态处理文本的分词新架构,让大模型摆脱固定词表束缚。

A Family of LLMs Liberated from Static Vocabularies

  • 用字节级编码+自回归架构,实现无需固定词表的文本处理
  • 700亿参数模型在英德语任务中超越原版Llama 3.1,压缩效率更高
  • 支持跨语言适应,适合需要灵活分词的多语言场景

当前大语言模型依赖固定词表分词,存在词汇量大、难适应新领域或语言的问题。本文提出基于层级自回归变压器(HAT)架构的一系列模型,最大达700亿参数。该架构通过编码器将字节聚合为词嵌入,输入主干模型,再经解码器转换回字节。我们成功将预训练的Llama 3.1 8B和70B模型改造为字节级模型:Llama-3.1-8B-TFree-HAT与Llama-3.1-70B-TFree-HAT,其中编码器与解码器从零训练,主干模型则保留原嵌入层与输出头之外的部分,改用于处理词嵌入。另提供一个完全从零训练的70亿参数模型(Llama-TFree-HAT-Pretrained),训练数据达近4万亿词。实验表明,该架构在减少序列位置数的同时提升对词内差异(如拼写变化)的鲁棒性。在英德语的预训练、微调及直接偏好优化后,多数基准表现优于原始Llama 3.1。模型与200个预训练检查点已开源于Hugging Face。

原文摘要 · Abstract (English)

Tokenization is a central component of natural language processing in current large language models (LLMs), enabling models to convert raw text into processable units. Although learned tokenizers are widely adopted, they exhibit notable limitations, including their large, fixed vocabulary sizes and poor adaptability to new domains or languages. We present a family of models with up to 70 billion parameters based on the hierarchical autoregressive transformer (HAT) architecture. In HAT, an encoder transformer aggregates bytes into word embeddings and then feeds them to the backbone, a classical autoregressive transformer. The outputs of the backbone are then cross-attended by the decoder and converted back into bytes. We show that we can reuse available pre-trained models by converting the Llama 3.1 8B and 70B models into the HAT architecture: Llama-3.1-8B-TFree-HAT and Llama-3.1-70B-TFree-HAT are byte-level models whose encoder and decoder are trained from scratch, but where we adapt the pre-trained Llama backbone, i.e., the transformer blocks with the embedding matrix and head removed, to handle word embeddings instead of the original tokens. We also provide a 7B HAT model, Llama-TFree-HAT-Pretrained, trained entirely from scratch on nearly 4 trillion words. The HAT architecture improves text compression by reducing the number of required sequence positions and enhances robustness to intra-word variations, e.g., spelling differences. Through pre-training, as well as subsequent supervised fine-tuning and direct preference optimization in English and German, we show strong proficiency in both languages, improving on the original Llama 3.1 in most benchmarks. We release our models (including 200 pre-training checkpoints) on Hugging Face.

大模型分词改进自回归字节级

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。