arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.19375cs.LGcs.AI
收藏

选择性引导:通过判别层选择实现的范数保持控制

Selective Steering: Norm-Preserving Control Through Discriminative Layer Selection

VNU University of Science(越南国家科学大学);Knovel Engineering Lab(Knovel工程实验室)

Quy-Anh Dang, Chris Ngo

AI总结:

选择性引导通过判别层选择和范数保持旋转,实现对LLM行为的可控稳定修改。

摘要:

尽管在对齐方面取得了显著进展,大型语言模型(LLMs)仍然容易受到对抗性攻击,这些攻击会引发有害行为。激活引导技术提供了一种有前途的推理时间干预方法,但现有方法存在关键限制:激活添加需要仔细调整系数,并且对层特定的范数变化敏感,而方向性消除只提供二进制控制。最近的角引导工作通过在二维子空间中引入旋转实现了连续控制,但其实际实现违反了范数保持,导致分布偏移和生成崩溃,特别是在参数低于7B的模型中。我们提出了选择性引导,通过两个关键创新解决了这些限制:(1)一个数学上严谨的范数保持旋转公式,保持激活分布的完整性,以及(2)判别层选择,仅在特征表示表现出相反符号类对齐的地方应用引导。在九个模型上的实验表明,选择性引导在攻击成功率方面比先前方法高5.5倍,同时保持零困惑度违规,并在标准基准上实现约100%的能力保留。我们的方法提供了一个原理上正确、高效的可控和稳定的LLM行为修改框架。代码:https://github.com/knoveleng/steering

英文摘要:

Despite significant progress in alignment, large language models (LLMs) remain vulnerable to adversarial attacks that elicit harmful behaviors. Activation steering techniques offer a promising inference-time intervention approach, but existing methods suffer from critical limitations: activation addition requires careful coefficient tuning and is sensitive to layer-specific norm variations, while directional ablation provides only binary control. Recent work on Angular Steering introduces continuous control via rotation in a 2D subspace, but its practical implementation violates norm preservation, causing distribution shift and generation collapse, particularly in models below 7B parameters. We propose Selective Steering, which addresses these limitations through two key innovations: (1) a mathematically rigorous norm-preserving rotation formulation that maintains activation distribution integrity, and (2) discriminative layer selection that applies steering only where feature representations exhibit opposite-signed class alignment. Experiments across nine models demonstrate that Selective Steering achieves 5.5x higher attack success rates than prior methods while maintaining zero perplexity violations and approximately 100\% capability retention on standard benchmarks. Our approach provides a principled, efficient framework for controllable and stable LLM behavior modification. Code: https://github.com/knoveleng/steering

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

↑