激活引导用于不牺牲连贯性的对齐开放式生成
Activation Steering for Aligned Open-ended Generation without Sacrificing Coherence
AI总结:
本文提出激活引导方法,通过在生成过程中持续修正偏差激活,提升大模型的对齐性能,实验表明StTP和StMP在保持连贯性的同时更有效维护通用能力。
摘要:
在LLM中对齐更加脆弱:对齐偏差可能由对抗性提示、良性微调、涌现偏差和目标误泛化触发。最近证据表明,某些偏差行为在激活空间中以线性结构编码,可通过引导进行处理,而安全对齐主要控制前几个输出标记,后续生成未受保护。这些发现促使激活引导作为轻量级运行时防御,持续修正生成过程中的偏差激活。我们评估了三种方法:Steer-With-Fixed-Coeff (SwFC),应用均匀加性引导,以及两种新的投影感知方法,Steer-to-Target-Projection (StTP) 和 Steer-to-Mirror-Projection (StMP),利用逻辑回归决策边界选择性干预激活低于分布阈值的标记。使用恶意系统提示作为对齐偏差的受控代理,我们评估了两种威胁模型(不诚实和忽视)和两种架构(Llama-3.3-70B-Instruct,Qwen3-32B)。所有方法显著恢复目标特征(诚实和同情),同时保持连贯性。StTP和StMP更好地维持通用能力(MMLU,MT-Bench,AlpacaEval)并减少多轮对话中的重复。
英文摘要:
Alignment in LLMs is more brittle than commonly assumed: misalignment can be induced by adversarial prompts, benign fine-tuning, emergent misalignment, and goal misgeneralization. Recent evidence suggests that some misalignment behaviors are encoded as linear structure in activation space, making it tractable via activation steering, which could be used as a lightweight runtime defense. We implement three methods: Steer-With-Fixed-Coefficient (SwFC), which applies uniform additive steering, and two novel projection-aware methods, Steer-to-Target-Projection (StTP) and Steer-to-Mirror-Projection (StMP), that use a logistic regression decision boundary to selectively intervene only on tokens whose activations fall below the threshold. We evaluate these methods on two threat models, dishonesty and dismissiveness, using malicious system prompts as a controlled proxy for misalignment. We conduct our experiments on two architectures (Llama-3.3-70B-Instruct and Qwen3.6-27B). All methods substantially recover alignment. StTP and StMP preserve general capabilities (MMLU, MT-Bench, AlpacaEval) better than uniform steering. Finally, we show that our honesty steering generalizes to out-of-distribution scenarios: a single honesty direction extracted from the aligned model significantly raises scores on the MASK benchmark, suppresses deception in multi-agent settings (Among Us), doubles the hidden-behavior discovery rate on AuditBench, and restores honesty in an emergently misaligned model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。