arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.18782cs.CRcs.AIcs.CLcs.LG
收藏

MANATEE:基于扩散的轻量级推理时间安全防御方法用于大语言模型

MANATEE: Inference-Time Lightweight Diffusion Based Safety Defense for LLMs

Chun Yan Ryan Kan, Tommy Tran, Vedant Yadav, Ava Cai, Kevin Zhu, Ruizhe Li, Maheep Chaudhary

AI总结:

MANATEE通过在推理时利用扩散技术,在不修改模型架构的情况下,有效防御大语言模型的对抗性劫持攻击,显著降低攻击成功率。

摘要:

防御大语言模型(LLMs)对抗性劫持攻击仍是一个开放性挑战。现有防御方法依赖于二元分类器,当对抗性输入超出学习的决策边界时会失效,且重复微调计算成本高且可能降低模型能力。我们提出MANATEE,一种在推理时使用的防御方法,通过在良性表示流形上进行密度估计。MANATEE学习良性隐藏状态的得分函数,并利用扩散将异常表示投影到安全区域——无需有害训练数据和无需架构修改。在Mistral-7B-Instruct、Llama-3.1-8B-Instruct和Gemma-2-9B-it上的实验表明,MANATEE在某些数据集上将攻击成功率降低至100%,同时在良性输入上保持模型效用。

英文摘要:

Defending LLMs against adversarial jailbreak attacks remains an open challenge. Existing defenses rely on binary classifiers that fail when adversarial input falls outside the learned decision boundary, and repeated fine-tuning is computationally expensive while potentially degrading model capabilities. We propose MANATEE, an inference-time defense that uses density estimation over a benign representation manifold. MANATEE learns the score function of benign hidden states and uses diffusion to project anomalous representations toward safe regions--requiring no harmful training data and no architectural modifications. Experiments across Mistral-7B-Instruct, Llama-3.1-8B-Instruct, and Gemma-2-9B-it demonstrate that MANATEE reduce Attack Success Rate by up to 100\% on certain datasets, while preserving model utility on benign inputs.

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

↑