解除触发器:通过尾风险内在几何平滑实现的插件式防御方法用于后门LLM
Defusing the Trigger: Tail-Risk-Informed Attention Rebalancing for LLM Backdoor Mitigation
AI总结:
本文提出TIGS方法,通过在推理时进行内容感知的尾风险筛查和内在几何平滑,有效抑制后门攻击,同时保持推理稳定性和语义一致性,适用于多种架构的LLM。
摘要:
防御大型语言模型中的后门攻击仍是一个关键的实践挑战。现有防御方法虽然能缓解这些威胁,但通常会导致高准备成本或通过离线净化降低实用性,或通过复杂的在线干预引入严重延迟。为克服这一二元对立,我们提出了尾风险内在几何平滑(TIGS),一种无需参数更新、外部干净数据或辅助生成的插件式推理时间防御方法。TIGS利用观察到的成功后门触发器在语义内容区域内一致导致局部注意力崩溃的特性。完全在原生前向传递过程中运行,TIGS首先通过样本内部信号识别可疑的注意力头和行。然后应用内在几何平滑:弱的内容域修正保持语义锚定,而更强的全行收缩破坏触发器主导的路由。最后,受控的全行写回重建注意力矩阵以确保推理稳定性。广泛的评估显示,TIGS显著抑制了攻击成功率,同时严格保持干净推理和开放语义一致性。关键的是,这种有利的安全-实用性-延迟平衡在多种架构中持续存在,包括密集型、推理导向和稀疏混合专家模型。通过在边际延迟开销下结构上破坏对抗性路由,TIGS建立了针对最新LLM的高实用性和可部署的防御标准。
英文摘要:
Backdoored large language models (LLMs) exhibit attacker-specified behavior at inference time while retaining normal performance on benign inputs. Existing mitigations often require parameter updates and trusted clean data, or rely on auxiliary generation and repeated model execution, complicating deployment. Across diverse backdoor mechanisms, successful activations exhibit stronger tail concentration in attention over semantic-content tokens than benign inputs and unsuccessful trigger activations. This pattern provides a sample-internal control signal to selectively regulate suspicious attention dynamics. We propose TIARA, a tail-risk-informed attention rebalancing approach for inference-time LLM backdoor mitigation. TIARA filters structural attention sinks, aggregates sparse high-concentration events across rows and heads, and converts the risk signal into selective content-domain power smoothing and adaptive attention-mass reallocation. A constrained reconstruction writes valid attention distributions back before value aggregation. TIARA requires no parameter updates, auxiliary generation, additional target-model passes, or deployment-time clean reference sets. We evaluate TIARA across four backdoor paradigms on dense, reasoning-oriented, and sparse mixture-of-experts LLMs. Across three model families, TIARA reduces average macro ASR to 11.5%, outperforming the strongest no-update inference-time baseline by 7.2 percentage points while limiting clean-task degradation to at most 3.8 percentage points. Under standardized profiling, TIARA adds 12.9% end-to-end latency over a matched eager-attention baseline; the current unfused path is 23.3% slower than fused SDPA. Overall, TIARA establishes sample-conditional attention rebalancing as a practical inference-time control layer for mitigating attention-concentrated LLM backdoors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。