arXiv:2502.09175cs.CRcs.AI2025-02

用输出审查替代输入过滤,有效抵御80%以上攻击

FLAME: Flexible LLM-Assisted Moderation Engine

  • 不再只查用户提问,转而检查模型回答内容
  • 对GPT-4o-mini等模型攻击成功率降9倍,仅需低计算开销
  • 可灵活调整安全规则,适合需要强监管的场景

大型语言模型(LLM)快速发展带来了用户与模型交互内容治理的新挑战。尽管模型能力强大,仍易受‘越狱’攻击,突破安全限制。现有主要依赖输入提示过滤的审核系统已显不足,如最佳候选策略(Best-of-N, BoN)对主流大模型的攻击成功率超过80%。本文提出灵活的LLM辅助审核引擎(FLAME):将重点从输入过滤转向输出审核。不同于传统电路切断方法分析用户查询,FLAME评估模型生成的响应,具备三大优势:(1) 训练与推理阶段计算效率高;(2) 对BoN越狱攻击有更强抵抗力;(3) 可通过自定义主题过滤灵活设定和更新安全标准。实验表明,FLAME显著优于现有系统:在GPT-4o-mini和DeepSeek-v3上将攻击成功率降低约9倍,同时保持低计算开销。我们在多种大模型上进行了全面评估,并分析了其对前沿越狱技术的防御能力。该工作推动了更鲁棒、可适应的大模型内容审核系统发展。

原文摘要 · Abstract (English)

The rapid advancement of Large Language Models (LLMs) has introduced significant challenges in moderating user-model interactions. While LLMs demonstrate remarkable capabilities, they remain vulnerable to adversarial attacks, particularly ``jailbreaking'' techniques that bypass content safety measures. Current content moderation systems, which primarily rely on input prompt filtering, have proven insufficient, with techniques like Best-of-N (BoN) jailbreaking achieving success rates of 80% or more against popular LLMs. In this paper, we introduce Flexible LLM-Assisted Moderation Engine (FLAME): a new approach that shifts the focus from input filtering to output moderation. Unlike traditional circuit-breaking methods that analyze user queries, FLAME evaluates model responses, offering several key advantages: (1) computational efficiency in both training and inference, (2) enhanced resistance to BoN jailbreaking attacks, and (3) flexibility in defining and updating safety criteria through customizable topic filtering. Our experiments demonstrate that FLAME significantly outperforms current moderation systems. For example, FLAME reduces attack success rate in GPT-4o-mini and DeepSeek-v3 by a factor of ~9, while maintaining low computational overhead. We provide comprehensive evaluation on various LLMs and analyze the engine's efficiency against the state-of-the-art jailbreaking. This work contributes to the development of more robust and adaptable content moderation systems for LLMs.

内容审核越狱防御LLM安全输出检测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。