REACT:思维链轨迹的表征早期分析与控制
REACT: Representational Early Analysis and Control of Chain-of-Thought Trajectories
REACT 是一种条件激活干预方法,从成对的安全与不安全轨迹中学习安全方向,在早期 CoT 隐藏状态上施加一次编辑,模型权重保持冻结。在 DeepSeek-R1-Distill-Llama-8B 上,该方法将 StrongREJECT-273 中完全安全的 CoT-答案输出比例从 29.06% 提升至 82.05%,良性拒答与有用性接近基线。
arXiv:2610.32113v2 Announce Type: replace Abstract: Chain-of-thought (CoT) generation offers an opportunity to intervene before a reasoning model completes its answer. How does the safety effect of a single activation edit vary across early reasoning states, and what factors govern that variation? We study this question with REACT, a conditional activation intervention that learns a safety direction from paired safe and unsafe trajectories and applies it once to an early CoT hidden state. The model weights remain frozen, and all subsequent tokens are generated without further edits. To study timing, we train directions separately at each of the first five CoT positions and evaluate ungated edits with full post-edit regeneration. Across three DeepSeek-R1 distilled models, site-specific edits concentrate safety gains in the opening CoT tokens. Norm-matched controls on DeepSeek-R1-Distill-Llama-8B (8B) disentangle two factors behind this curve: holding an effective direction and edit budget fixed still yields much larger early ($t_1$-$t_5$) than later ($t_6$-$t_8$) gains, whereas the near-zero site-specific $t_3$ gain reflects higher optimisation variance despite rising risk-probe AUROC. Forced prefixes shift the high-gain region with the opening context, and a four-arm intervention shows that ~98% of the net gain at $t_2$ propagates through the changed next token. On the same 8B model, REACT raises the rate of fully safe CoT-answer outputs on StrongREJECT-273 from 29.06% to 82.05%, while keeping benign refusal and usefulness near baseline. An anonymized implementation is available at https://anonymous.4open.science/r/REACT_official2-333B.
来源:arXiv (AI + Vision + Imaging) · arxiv.org