arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.27401cs.CLcs.LG
收藏

扰动探测:对齐语言模型中FFN行为电路的双次提示诊断

Perturbation Probing: A Two-Pass-per-Prompt Diagnostic for FFN Behavioral Circuits in Aligned LLMs

Palo Alto Networks(帕洛阿尔托网络公司)

Hongliang Liu, Tung-Ling Li, Yuhao Wu

AI总结:

通过双次提示传递和无反向传播的扰动探测,识别LLM中两种行为电路结构,揭示RLHF组织的行为机制及模板层编辑工具。

摘要:

扰动探测通过每个提示进行两次前向传递和无反向传播,随后对约150次干预进行一次扫荡,以生成任务特定的因果假设。在八个行为电路、13个模型和四个架构家族中,识别出两种电路结构。对立电路出现在RLHF压制预训练倾向时。在安全拒绝中,约50个神经元控制拒绝模板,删除它们会改变80%的响应格式,同时产生几乎零有害合规性。路由电路出现在通过注意力分布的预训练行为中。对于语言选择,残差流方向注入在3个测试模型中将英语输出切换为中文,满足三种观察条件。相同的干预在其他16个模型和数学、代码和事实电路中失效,定义了方向引导的限制。FFN到跳过信号比区分了这两种结构并预测了适当的干预。电路拓扑因架构而异,从Qwen的集中FFN瓶颈到Gemma的归一化屏蔽电路。在Qwen3.5-2B中,删除20个神经元可消除多轮奉承屈服,而放大10个相关神经元可将事实修正率从52%提高到88%。这些结果表明,扰动探测为RLHF组织的行为提供了机理洞察,并为精确模板层编辑提供了实用工具。

英文摘要:

Perturbation probing generates task-specific causal hypotheses for FFN neurons in large language models using two forward passes per prompt and no backpropagation, followed by a one-time intervention sweep of about 150 passes amortized across all identified neurons. Across eight behavioral circuits, 13 models, and four architecture families, we identify two circuit structures that organize LLM behavior. Opposition circuits appear when RLHF suppresses a pre-training tendency. In safety refusal, about 50 neurons, or 0.014 percent of all neurons, control the refusal template; ablating them changes 80 percent of response formats on 520 AdvBench prompts while producing near-zero harmful compliance, 3 of 520 cases, all with disclaimers. Routing circuits appear for pre-training behaviors distributed through attention. For language selection, residual-stream direction injection switches English to Chinese output on 99.1 percent of 580 benchmark prompts in the 3 of 19 tested models that satisfy three observed conditions: bilingual training, FFN-to-skip signal ratio between 0.3 and 1.1, and linear representability. The same intervention fails on the other 16 models and on math, code, and factual circuits, defining the limits of directional steering. The FFN-to-skip signal ratio, computed from the same two forward passes, distinguishes the two structures and predicts the appropriate intervention. Circuit topology varies by architecture, from Qwen's concentrated FFN bottleneck to Gemma's normalization-shielded circuit. In Qwen3.5-2B, ablating 20 neurons eliminates multi-turn sycophantic capitulation, while amplifying 10 related neurons improves factual correction from 52 percent to 88 percent on 200 TruthfulQA prompts. These results show that perturbation probing offers mechanistic insight into RLHF-organized behavior and a practical toolkit for precision template-layer editing.

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

↑