arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.26045cs.LGcs.AIcs.CLcs.NE
收藏

H-Node攻击与防御在大语言模型中

H-Node Attack and Defense in Large Language Models

Eric Yocam, Varghese Vaidyan, Yong Wang

AI总结:

本文提出H-Node对抗噪声消除框架,通过识别并防御Transformer大语言模型中的幻觉表示,利用逻辑回归探针定位幻觉节点,通过白盒对抗攻击增强这些维度,并采用自适应防御抑制幻觉节点,提升模型鲁棒性。

摘要:

我们提出了H-Node对抗噪声消除(H-Node ANC),一个机制框架,用于在Transformer大语言模型(LLMs)的单个隐藏状态维度层面识别、利用和防御幻觉表示。一个在最后令牌隐藏状态上训练的逻辑回归探针将幻觉信号定位到一小组高方差维度——称为幻觉节点(H-Nodes)——探针AUC在四个架构上达到0.90。一个白盒对抗攻击通过实时前向钩子在推理时间放大这些维度,实现3.02倍的选择性,防御者可见性低于10%。自适应ANC防御通过置信度加权消除抑制H-Node过量输入,使基础激活漂移减少33-42%。动态迭代扩展通过连续传递中重新排序消除目标恢复单次传递基线8%的鲁棒性。所有贡献都在OPT-125M、Phi-3-mini-4k-instruct、LLaMA-3-8B-Instruct和Mistral-7B-Instruct-v0.3(125M-8B参数)上验证。困惑度影响是手术的(<5%),MMLU退化最多3%,确认防御不损害一般推理能力。

英文摘要:

We present H-Node Adversarial Noise Cancellation (H-Node ANC), a mechanistic framework that identifies, exploits, and defends hallucination representations in transformer-based large language models (LLMs) at the level of individual hidden-state dimensions. A logistic regression probe trained on last-token hidden states localizes hallucination signal to a small set of high-variance dimensions -- termed Hallucination Nodes (H-Nodes) -- with probe AUC reaching 0.90 across four architectures. A white-box adversarial attack amplifies these dimensions at inference time via a real-time forward hook, achieving a selectivity of 3.02x with less than 10% visibility to the defender. Adaptive ANC defense suppresses H-Node excess in-pass using confidence-weighted cancellation, reducing grounded activation drift by 33-42% over static cancellation. A dynamic iterative extension that re-ranks cancellation targets across successive passes recovers up to 0.69 robustness from a single-pass baseline of 8%. All contributions are validated on OPT-125M, Phi-3-mini-4k-instruct, LLaMA-3-8B-Instruct, and Mistral-7B-Instruct-v0.3 (125M-8B parameters). Perplexity impact is surgical (<5%) and MMLU degradation is at most 3%, confirming that the defense does not impair general reasoning capability.

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

↑