研究:LLM 线性探针可跨模型迁移,对齐更好不等于迁移更好
Train Once, Transfer Where? Better Alignment Does Not Mean Better Probe Transfer
换模型就得重训安全探针很烦,这篇论文给出了省事的方案:600 句无标注文本做一次旋转对齐,AUROC 能保住九成五以上。有趣的是更复杂的探针反而迁移更差,搭监控管线的工程师值得看实验细节。
arXiv 论文测试了在一个 LLM 上训练的线性探针能否免标注迁移到另一个模型,覆盖 Qwen、Gemma、Llama 3.1、OLMo 3 四个家族共六个模型、30 个有向模型对。方法是用 600 句 SQuAD 文本做 Orthogonal Procrustes 旋转对齐激活空间,在 hh-rlhf、XSTest、MATH-500 等输入属性任务上保留了 95%-99% 的原生 AUROC,且不增加任何 VRAM。实验发现差异均值(mean-shift)探针在全部四个机制类任务上迁移效果最好,零超参数即可匹敌或超过源模型上的 L2 逻辑回归。与直觉相反, whitened rotation 在 N=600 时反而损害迁移,Ridge、Kernel Ridge 和 MLP 虽然在拟合指标(R²、余弦相似度)上优于 Scaled Procrustes,但直到 N=20000 迁移表现都更差。多源探针平均可再弥补 38%-46% 的剩余差距;配合域内 XSTest 校准,可在 82% 不安全召回率下将误报率压到 4.8%。
对实际部署者而言,这意味着安全监测探针(监测真实性和提示注入)不必随每次换模型而重新训练标注。迁移的短板同样明确:在行为类谄媚检测上迁移会退化(部分源于标签分歧),4K 长度间接注入和自适应规避场景下也不可靠。结论对构建跨模型监控管线的团队有直接参考价值:优先选简单探针加 Procrustes 旋转,而不是更复杂的拟合更强的探针。
Train Once, Transfer Where? Better Alignment Does Not Mean Better Probe Transfer
Linear probes on large language model activations are cheap monitors for safety, truthfulness, and prompt injection, but normally require retraining when models change. We ask whether a read-only probe trained on one model can transfer to another from unlabeled text. Across six models from four families (Qwen, Gemma, Llama 3.1, OLMo 3; 30 directed pairs), probes mapped via a 600-sentence SQuAD Orthogonal Procrustes rotation retain 95%-99% of matched native above-chance AUROC on input-property tasks (hh-rlhf, XSTest, MATH-500) and fold into a single dot product with zero extra VRAM. Transfer degrades on behavioral sycophancy (where counter-bias drops reflect label disagreement), 4K indirect injection, and adaptive evasion. Two findings stand out. First, a zero-hyperparameter mean-shift (difference-of-means) probe transferred best on all four mechanism tasks and matched or beat source-CV L2-logistic regression. Second, better alignment does not mean better transfer: whitened rotations hurt transfer at $N = 600$, and Ridge, Kernel Ridge, and MLPs beat even Scaled Procrustes in $R^2$ and cosine yet trail in transfer at every $N$ up to 20,000. Multi-source averaging closes 38%-46% of remaining non-ceiling gaps without target labels, and held-out in-domain XSTest calibration yields 4.8% false alarms at 82% unsafe recall.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include linear probes, LLM, model security, SQuAD.
Source attribution: curated from arXiv cs.LG (@Engin Deniz Alpman, Hüseyin Oktay Altun).