arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.11426cs.AI
收藏

对监督微调的机制性研究

A Mechanistic Investigation of Supervised Fine Tuning

Independent Researcher(独立研究者)

Ruhaan Chopra

AI总结:

本文通过稀疏自编码器揭示监督微调导致的表示分歧,发现任务和层特定的语义特征变化及安全对齐的层间更新模式。

摘要:

在监督微调(SFT)前后,大型语言模型的隐藏激活之间的余弦相似性仍保持很高。这看似表明SFT对模型激活几何结构影响不大。然而,通过用在基础模型上预训练的稀疏自编码器(SAE)投影两种激活集,发现底层稀疏潜在表示显著 diverge。我们引入一种新的调查流程,利用这些预训练的SAE作为高分辨率诊断工具,以机制性研究此表示分歧的驱动因素。通过我们的分析流程,我们发现任务特定和层特定的精确语义特征在监督微调过程中系统性地被改变。我们还识别出特定于安全对齐的层间更新模式。所有与本工作相关的代码、实验脚本和分析文件均已公开在:https://github.com/ruhzi/sae-investigation。

英文摘要:

The cosine similarity between a large language model's hidden activations before and after Supervised Fine-Tuning (SFT) remains very high. This, at first glance, suggests that SFT leaves the model's activation geometry largely undisturbed. However, projecting both sets of activations through a Sparse Autoencoder (SAE) pretrained on the base model reveals that the underlying sparse latents diverge significantly. We introduce a novel investigative pipeline which utilizes these pretrained SAEs as a high-resolution diagnostic tool to mechanistically investigate the drivers of this representational divergence. Through our analytical pipeline, we discover task-specific and layer-specific distributions of the precise semantic features that are systematically altered during supervised fine-tuning. We additionally identify a layer-wise update profile specific to safety alignment. All code, experimental scripts, and analysis files associated with this work are publicly available at: https://github.com/ruhzi/sae-investigation.

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

↑