SAE作为水晶球:可解释特征预测LLM在跨领域迁移性无需训练
SAE as a Crystal Ball: Interpretable Features Predict Cross-domain Transferability of LLMs without Training
AI总结:
本文提出基于SAE的迁移性评分(STS),通过识别模型偏移维度预测LLM在跨领域迁移性,无需训练即可评估迁移性能。
摘要:
近年来,预训练大语言模型在多样任务中取得了显著成功。除了自监督预训练的关键作用外,其在下游应用中的有效性也严重依赖于训练后的过程,该过程将模型适应于任务特定的数据和目标。然而,这一过程不可避免地引入了模型偏移,这些偏移可能影响不同领域的性能,而这种偏移的转移仍缺乏深入理解。为了揭开黑箱,我们提出了基于SAE的迁移性评分(STS),这是一种新的度量标准,利用稀疏自动编码器(SAEs)来预测训练后的迁移性。以监督微调为例,STS识别SAE表示中的偏移维度,并计算其与下游领域之间的相关性,从而在微调之前实现可靠的迁移性估计。在多个模型和领域上的广泛实验表明,STS准确预测了监督微调的迁移性,达到与实际性能变化的皮尔逊相关系数超过0.7。此外,我们还迈出了一步,将STS扩展到强化学习。我们认为STS可以作为一种可解释的工具,用于指导LLM的训练后策略。代码可在https://github.com/PKU-ML/STS上获取。
英文摘要:
In recent years, pre-trained large language models have achieved remarkable success across diverse tasks. Besides the pivotal role of self-supervised pre-training, their effectiveness in downstream applications also depends critically on the post-training process, which adapts models to task-specific data and objectives. However, this process inevitably introduces model shifts that can influence performance in different domains, and how such shifts transfer remains poorly understood. To open up the black box, we propose the SAE-based Transferability Score (STS), a new metric that leverages sparse autoencoders (SAEs) to forecast post-training transferability. Taking supervised fine-tuning as an example, STS identifies shifted dimensions in SAE representations and calculates their correlations with downstream domains, enabling reliable estimation of transferability \textit{before} fine-tuning. Extensive experiments across multiple models and domains show that STS accurately predicts the transferability of supervised fine-tuning, achieving Pearson correlation coefficients above 0.7 with actual performance changes. Beyond this, we take an initial step toward extending STS to reinforcement learning. We believe that STS can serve as an {\color{black} interpretable} tool for guiding post-training strategies in LLMs. Code is available at https://github.com/PKU-ML/STS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。