arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24583cs.LGcs.CLstat.ML
收藏

正确测量对齐引起的激活偏移:一种模板控制的双重差分协议

Measuring Alignment-Induced Activation Shifts Correctly: A Template-Controlled Difference-in-Differences Protocol

The Open University of Japan(日本开放大学)

Yuki Nakamura

AI总结:

针对对齐前后模型内部激活比较中存在的聊天模板混淆问题,提出模板控制的双重差分协议,有效分离对齐偏移与格式效应,恢复拒绝方向并提升余弦对齐度。

摘要:

比较模型在安全对齐前后的内部激活是探究安全训练改变了什么的一种自然方式:在安全相关输入上形成配对的(对齐后减对齐前)激活矩阵,并读取其有效秩或主方向。我们表明,形成该矩阵的直观方式存在混淆。对齐后的模型在基础模型从未见过的聊天模板下进行评估,因此朴素差异将对齐偏移与聊天格式混为一谈。我们引入修改矩阵的四变量分解(朴素、模板控制、对齐内和双重差分,DiD),以分离这两种效应。仅模板控制即可消除 Llama-3.1-8B、Gemma-2-9B 和 Qwen-2.5-7B 上测量有效秩的 2.0-3.9 倍膨胀;DiD 对比才是恢复 Arditi 等人(2024)的拒绝方向的关键,将其余弦对齐度从 0.18-0.39 提升至 0.50-0.86。跨三个系列的投影消融实验证实,恢复的子空间在行为上是活跃的,且奇异值顺序并非因果顺序。我们在受控测试平台上验证了该协议,并将其提炼为对齐激活差异研究的测量建议。

英文摘要:

Comparing a model's internal activations before and after alignment is a natural way to ask what safety training changes: one forms the matrix of paired aligned-minus-base activations on safety-relevant inputs and reads off its effective rank or top direction. We show the obvious way to form this matrix is confounded. The aligned model is evaluated under a chat template the base model never saw, so the naive difference conflates the alignment shift with chat formatting. We introduce a four-variant decomposition of the modification matrix (naive, template-controlled, within-aligned, and difference-in-differences, DiD) that separates the two effects. Template control alone removes a 2.0-3.9x inflation of the measured effective rank across Llama-3.1-8B, Gemma-2-9B, and Qwen-2.5-7B; the DiD contrast is what recovers the refusal direction of Arditi et al. (2024), lifting its cosine alignment from 0.18-0.39 to 0.50-0.86. Projection-ablation across the three families confirms the recovered subspace is behaviorally active and that singular-value order is not causal order. We validate the protocol on a controlled testbed and distill it into measurement recommendations for activation-difference studies of alignment.

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

↑