语言模型需要可训练输入嵌入表吗?1.7B级规模下的固定最小词元编码

·

研究论文 · 2026/10/07

本文研究可训练输入嵌入表是否为语言模型能力的必要条件。作者在相同分词器、上下文骨干、非绑定输出头架构和训练配方下,从头训练了三个仅解码器语言模型,每个模型目标预算为1000亿预测token。输入接口分别为:学习到的嵌入表、规范的16位token-ID编码,以及GF(2)上的一个固定可逆重编码。固定编码直接重复至模型宽度,无需额外可训练输入投影。两个固定编码模型均获得了显著能力:规范编码在HellaSwag上达到52.40%归一化准确率,PIQA上70.51%,LAMBADA上42.75%。学习输入对照组在包括HellaSwag和LAMBADA在内的多项评估上表现更好,因此这些结果证明的是可行性而非性能持平。固定接口移除了1.007亿可训练参数,得到17.11亿参数模型,但参数减少并非核心结果。这些单次运行实验区分了架构必要性与经验实用性:观察到的能力并不需要独立可训练的token特定输入向量。固定身份接口也为研究不可变输入下游的表示学习提供了受控环境,但并未确定特定能力的位置。

该研究挑战了语言模型必须使用可训练输入嵌入表的默认假设,通过受控实验证明固定token编码也能获得显著能力,为理解架构必要性与经验实用性提供了新视角,并可能启发更高效或更可控的模型设计。

A trainable input embedding table assigns each vocabulary item an independently adjustable vector. We investigate whether this token-specific parameterization is required for substantial language-modeling capability, or whether a shared Transformer can learn from fixed token identities. We compare three decoder-only language models trained from scratch with the same tokenizer, contextual backbone, untied output-head architecture, and training recipe, with a target budget of 100 billion prediction tokens per model. Their input interfaces are a learned table, canonical 16-bit token-ID codes, and one fixed invertible recoding over GF(2). The fixed codes are repeated to model width without an additional trainable input projection. Both fixed-code models acquire substantial capabilities: canonical codes achieve 52.40\% HellaSwag normalized accuracy, 70.51\% PIQA accuracy, and 42.75\% LAMBADA accuracy. The learned-input control performs better on several evaluations, including HellaSwag and LAMBADA, so these results establish viability rather than performance parity. The fixed interfaces remove 100.7 million trainable parameters, yielding 1.711B-parameter models, but parameter reduction is not the central result. These single-run experiments distinguish architectural necessity from empirical utility: independently trainable token-specific input vectors are not required for the observed capabilities. A fixed identity interface also provides a controlled setting for studying representation learning downstream of an immutable input, without establishing where particular capabilities are localized.

阅读原文

参与讨论