学习读出:语言模型预训练中的去嵌入动态

·

研究论文 · 2026/10/17

语言模型何时获得能力?发展研究通常通过追踪模型何时开始产生正确token来回答。但预测经过unembedding矩阵(读出),该矩阵在预训练期间仍在学习。我们表明,模型的隐藏状态可以在其读出表达任务信息之前编码任务信息,因此从输出读取的时间线混淆了模型编码的内容与读出表达的内容。为了直接追踪读出,我们引入参数轨迹交叉编码,为每个检查点的每个token的读出行拟合一个稀疏字典。与激活上的交叉编码器不同,它只需要检查点权重。我们用它定位Pythia预训练早期0.4-1.1%的狭窄窗口,其中读出重组,WordNet词类别可从其行解码。此时,隐藏状态上的线性探针已经解码了模型输出尚未显示的任务信息。为了测试这种差距是否取决于读出学习的速度,我们从零开始预训练仅读出学习率不同的小模型。我们发现提高它使读出更早发展,差距更快闭合,对最终损失影响很小。总之,这些结果表明,在训练早期,许多发展转变被定日期,行为日期可能反映读出学会表达任务信息的时间,而非模型学会它的时间。

该研究挑战了通过输出行为判断语言模型能力获得时间的传统方法,揭示了读出矩阵学习动态导致的测量偏差,对理解模型发展时间线有重要启示。

When does a language model acquire a capability? Developmental studies usually answer this by tracking when models start producing the correct token. But that prediction passes through the unembedding matrix, or readout, which is itself still being learned during pretraining. We show that a model's hidden states can encode task information before its own readout expresses it, so timelines read from outputs conflate what the model encodes with what its readout expresses. To track the readout directly, we introduce parameter-trajectory crosscoding, which fits one sparse dictionary to every token's readout row at every checkpoint. Unlike crosscoders on activations, it needs only checkpoint weights. We use it to locate a narrow early window, 0.4-1.1% of the way through Pythia's pretraining, in which the readout reorganizes and WordNet word categories become decodable from its rows. By then, linear probes on the hidden states already decode task information that the model's own outputs do not yet show. To test whether such gaps depend on how fast the readout learns, we pretrain small models from scratch that differ only in the readout's learning rate. We find that raising it makes the readout develop earlier and the gap close sooner, with little effect on final loss. Together, these results imply that early in training, where many developmental transitions are dated, a behavioral date can reflect when the readout learns to express task information and not when the model learns it.

阅读原文

参与讨论