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

尽管存在方向旋转,线性探针仍可从基础语言模型迁移至蒸馏后的语言模型

Linear Probes Transfer from Base to Distilled Language Models despite Rotation

Marios Tsatsos

AI总结:

本文研究线性探针在基础语言模型经蒸馏、指令微调后的复用效果,发现虽存在17°至35°的方向旋转,探针仍可复用,且在XSTest、OR-Bench上AUC变化极小。

摘要:

线性探针是读取语言模型内部激活值的分类器,被广泛用于检测有害请求。其训练与运行成本低廉,训练过该探针的审计人员希望在模型被后续版本替换时复用它,而非为每个新版本重新训练。本文测试了探针的复用效果:针对四个基础模型(Qwen2.5-Math-7B、Llama-3.1-8B、Qwen2.5-14B、Qwen2.5-32B),我们使用XSTest提示集在基础模型上训练一个探针,将其原封不动地应用于该基础模型的两个后续版本:DeepSeek-R1蒸馏推理模型及开发者的指令微调聊天模型。研究发现,后续版本将区分安全与不安全提示的方向旋转了17°至35°,但迁移后的探针在XSTest上的AUC仅变化-0.011至+0.027,在未用于训练的独立OR-Bench评估上仅变化-0.015至+0.053;在安全提示刻意包含警示性词汇的XSTest上,探针的AUC仅读取提示文本的分类器高出0.15至0.20,在OR-Bench上该差距缩小至0.03至0.20,且探针标记了29%至42%看似有害实则良性的提示,说明其读取的部分内容是危害的表象而非危害本身。因此,在这些模型家族中,训练自基础模型的探针可在蒸馏和指令微调后复用,其读取的内容超出文本线索的程度取决于测试集。

英文摘要:

Linear probes, classifiers that read a language model's internal activations, are widely used to detect harmful requests. They are cheap to train and run, and an auditor who has trained one would like to reuse it when the model is replaced by a successor rather than retrain it for every release. We test how well probes can be reused. For four base models (Qwen2.5-Math-7B, Llama-3.1-8B, Qwen2.5-14B, Qwen2.5-32B) we train a probe on the base model with the XSTest prompt set and apply it, unchanged, to two successors of that base: the DeepSeek-R1 distilled reasoning model and the developer's instruction-tuned chat model. We find that the successors rotate the direction separating unsafe from safe prompts by 17$^\circ$ to 35$^\circ$, yet on XSTest the transferred probe's AUC changes by only $-0.011$ to $+0.027$, and on an independent OR-Bench evaluation, never used for training, by $-0.015$ to $+0.053$. On XSTest, whose safe prompts deliberately contain alarming words, the probes beat a classifier that sees only the prompt text by 0.15 to 0.20 AUC. On the OR-Bench prompts that margin shrinks to 0.03 to 0.20, and the probes flag 29\% to 42\% of prompts that sound harmful but are benign, so part of what they read is the appearance of harm rather than harm itself. A probe trained on a base model can thus be reused, in these families, after distillation and after instruction tuning; how much it reads beyond textual cues depends on the test set.

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

↑