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

CANS:面向大语言模型的能力保留型神经元调控

CANS: Capability-Preserving Neuron Steering for Large Language Models

State Key Laboratory of Multimedia Information Processing, Peking University(北京大学多媒体信息处理国家重点实验室);School of Computer Science, Peking University(北京大学计算机学院);YiXin-AILab, YIXIN(星芯人工智能实验室(YiXin-AILab))

Yucheng Wu, Chengyi Xie, Chenpeng Wang, Liangming Pan

AI总结:

本文提出 CANS 框架,通过引入两个代理的闭式解实现大语言模型的轻量神经元调控,在安全等控制任务中效果相当或更优,同时更好保留通用能力,为跨领域行为控制提供实用方案。

摘要:

激活调控可实现大语言模型目标行为的无训练动态控制,但现有方法会损害通用能力且需特定领域干预设计。本文提出能力保留型神经元调控(CANS)这一统一框架,平衡目标行为控制与能力保留。为使目标行为提升和通用能力保留可处理,引入两个代理:模型生成响应中目标 token 的对数概率,以及通用输入上的输出分布 KL 散度。结合两个代理的局部近似得到闭式解,实现轻量调控,无需迭代模型训练或额外推理时间计算。所得神经元级缩放系数可实现有效调控,同时限制通用能力损失。共享的数据构建与干预程序支持跨领域适配,使用带目标行为过滤和目标跨度标注的采样响应。在 Qwen 和 Llama 模型的安全、毒性及幻觉控制任务中,CANS 实现相当或更优的调控效果,同时相比 SFT、CAA 及神经元级基线,更好保留 MMLU、BBH 和 IFEval 性能。在 Qwen3-4B 上,CANS 将 HarmBench 攻击成功率从 15.50% 降至 1.75%,平均能力仅下降 1.11 个点。这些结果表明 CANS 是跨领域行为控制的实用方法。

英文摘要:

Activation steering offers training-free and dynamic control of target behaviors in large language models, but existing methods can impair general capabilities and require domain-specific intervention designs. We introduce Capability-Preserving Neuron Steering (CANS), a unified framework that balances target-behavior control with capability preservation. To make target-behavior improvement and general-capability preservation tractable, we introduce two proxies: log-probabilities of target tokens in model generated responses, and output-distribution KL divergence on general-purpose inputs. Combining the local approximation of the two proxies yields a closed-form solution, enabling lightweight steering without iterative model training or additional inference-time computation. The resulting neuron-wise scaling coefficients achieve effective steering while limiting general-capability loss. A shared data-construction and intervention procedure supports adaptation across domains using sampled responses with target-behavior filtering and target-span annotations. Across safety, toxicity, and hallucination control on Qwen and Llama models, CANS achieves comparable or better steering while better preserving MMLU, BBH, and IFEval performance than SFT, CAA, and neuron-level baselines. On Qwen3-4B, CANS reduces HarmBench attack success from $15.50\%$ to $1.75\%$ with a $1.11$-point decrease in average capability. These results support CANS as a practical approach to behavioral control across domains.

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

↑