arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.21025cs.CLcs.AIcs.LG
收藏

学习读出:语言模型预训练中的解耦动态

Learning to Read Out: Unembedding Dynamics in Language Model Pretraining

University of Cambridge(剑桥大学);Flower Labs;Isomorphic Labs

Matteo He, William F. Shen, Alex Iacob, Andrej Jovanovic, Xinchi Qiu, Nicholas D. Lane

AI总结:

该研究针对语言模型预训练中能力获取时间线混淆问题,提出参数轨迹交叉编码方法,发现Pythia预训练0.4%-1.1%阶段读出模块重组,且读出模块学习率影响差距闭合速度。

摘要:

语言模型何时获得某项能力?发展研究通常通过追踪模型何时开始生成正确 token 来回答这一问题。但该预测过程会经过解耦矩阵(或称读出模块),而读出模块本身在预训练期间仍在学习。我们发现,模型的隐藏状态可在其自身读出模块表达任务信息之前就对任务信息进行编码,因此从输出中读取的时间线会混淆模型编码的内容与其读出模块表达的内容。为直接追踪读出模块,我们引入了参数轨迹交叉编码(parameter-trajectory crosscoding),该方法会为每个检查点中每个 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑