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

使用模型拼接在语言模型间转移线性特征

Transferring Linear Features Across Language Models With Model Stitching

Brown University(布朗大学);ETH Zürich(苏黎世联邦理工学院)

Alan Chen, Jack Merullo, Alessandro Stolfo, Ellie Pavlick

AI总结:

本文提出利用语言模型残差流间的仿射映射来转移线性特征,发现大小模型表征空间相似,将小模型训练的SAE转移至大模型可降低50%训练成本,并揭示了不同类型特征在转移中的异同。

摘要:

在这项工作中,我们证明了语言模型残差流之间的仿射映射是一种在模型间有效转移表征特征的廉价方法。我们应用该技术在不同大小的模型之间转移 Sparse Autoencoders (SAEs) 的权重,以比较它们的表征。我们发现小模型和大模型学习到了相似的表征空间,这促使我们在较小的模型上训练像 SAEs 这样昂贵的组件,并将其转移到大模型上,从而节省 FLOPs。特别是,使用从小模型转移到大模型的 SAE 作为初始化,在较大模型上训练 SAEs 时可使训练成本降低 50%。接下来,我们展示了转移的探针和引导向量能够有效恢复真实性能。最后,我们深入探讨了特征级别的可转移性,发现语义和结构特征的转移方式明显不同,而特定类别的功能特征则能被忠实地映射。总体而言,我们的研究结果阐明了小模型和大模型线性表征空间的异同,并展示了一种提高 SAEs 训练效率的方法。

英文摘要:

In this work, we demonstrate that affine mappings between residual streams of language models is a cheap way to effectively transfer represented features between models. We apply this technique to transfer the weights of Sparse Autoencoders (SAEs) between models of different sizes to compare their representations. We find that small and large models learn similar representation spaces, which motivates training expensive components like SAEs on a smaller model and transferring to a larger model at a FLOPs savings. In particular, using a small-to-large transferred SAE as initialization can lead to 50% cheaper training runs when training SAEs on larger models. Next, we show that transferred probes and steering vectors can effectively recover ground truth performance. Finally, we dive deeper into feature-level transferability, finding that semantic and structural features transfer noticeably differently while specific classes of functional features have their roles faithfully mapped. Overall, our findings illustrate similarities and differences in the linear representation spaces of small and large models and demonstrate a method for improving the training efficiency of SAEs.

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

↑