特征感知的恶意输出检测与缓解
Feature-Aware Malicious Output Detection and Mitigation
AI总结:
针对LLMs难以识别恶意内容、防御越狱攻击能力有限的问题,提出特征感知的有害响应拒绝方法FMM,通过解码阶段检测恶意特征、激活修补调整拒绝机制,在多种模型和攻击场景中有效且保持标准生成能力。
摘要:
大型语言模型(LLMs)的快速发展为各领域带来显著益处,但也引入了重大风险。尽管经过强化学习微调,LLMs仍缺乏识别恶意内容的能力,限制了其对越狱攻击的防御。为解决这些安全问题,我们提出一种特征感知的有害响应拒绝方法(FMM),该方法检测模型特征空间内的恶意特征并自适应调整模型的拒绝机制。通过使用简单的判别器,我们在解码阶段检测潜在的恶意特征。当检测到指示有毒标记的特征时,FMM重新生成当前标记;通过激活修补,在后续标记生成过程中加入额外的拒绝向量,引导模型生成拒绝响应。实验结果表明,我们的方法在多种语言模型和不同攻击技术中均有效,同时关键是保持了模型的标准生成能力。
英文摘要:
The rapid advancement of large language models (LLMs) has brought significant benefits to various domains while introducing substantial risks. Despite being fine-tuned through reinforcement learning, LLMs lack the capability to discern malicious content, limiting their defense against jailbreak. To address these safety concerns, we propose a feature-aware method for harmful response rejection (FMM), which detects the presence of malicious features within the model's feature space and adaptively adjusts the model's rejection mechanism. By employing a simple discriminator, we detect potential malicious traits during the decoding phase. Upon detecting features indicative of toxic tokens, FMM regenerates the current token. By employing activation patching, an additional rejection vector is incorporated during the subsequent token generation, steering the model towards a refusal response. Experimental results demonstrate the effectiveness of our approach across multiple language models and diverse attack techniques, while crucially maintaining the models' standard generation capabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。