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

开源安全防护模型基准测试:全面评估

Benchmarking Open-Source Safety Guard Models: A Comprehensive Evaluation

Domyn

Reetu Raj Harsh, Bhaskarjit Sarmah, Stefano Pasquali

AI总结:

本研究对14个开源安全防护模型在8个NIST AI风险框架安全类别上进行全面评估,发现召回率是关键指标,且模型大小与安全检测性能不相关。

摘要:

随着大型语言模型(LLMs)越来越多地部署在安全关键型应用中,稳健的内容审核变得至关重要。我们对14个开源安全防护模型进行了全面评估,使用了包含79,331个样本的精选基准,涵盖8个NIST AI风险框架安全类别。我们的基准聚合了四个不同的数据集(HarmBench、StrongREJECT、RealToxicityPrompts和BeaverTails),并经过筛选,仅关注安全相关内容(暴力、仇恨言论、骚扰、色情内容、自杀/自残、亵渎、威胁和健康虚假信息)。我们发现召回率是安全应用的关键指标,因为遗漏有害内容比误报构成更大风险。我们的评估揭示了令人惊讶的结果:Qwen Guard(4B参数)实现了最高的召回率(83.97%),而较大的模型如Llama Guard(12B)和GPT-OSS Safeguard(20B)表现出保守行为,遗漏了高达75%的不安全内容。我们证明了模型大小与安全检测性能不相关,并且通用防护模型优于专用模型。这些发现为在生产部署中选择安全防护模型提供了实用指导。

英文摘要:

As Large Language Models (LLMs) are increasingly deployed in safety-critical applications, robust content moderation becomes essential. We present a comprehensive evaluation of 14 open-source safety guard models on a curated benchmark of 79,331 samples spanning 8 NIST AI Risk Framework safety categories. Our benchmark aggregates four diverse datasets (HarmBench, StrongREJECT, RealToxicityPrompts, and BeaverTails), filtered to focus exclusively on safety-relevant content (violence, hate speech, harassment, sexual content, suicide/self-harm, profanity, threats, and health misinformation). We find that recall is the critical metric for safety applications, as missing harmful content poses greater risk than false positives. Our evaluation reveals surprising results: Qwen Guard (4B parameters) achieves the highest recall (83.97%) while larger models like Llama Guard (12B) and GPT-OSS Safeguard (20B) exhibit conservative behavior, missing up to 75% of unsafe content. We demonstrate that model size does not correlate with safety detection performance and that general-purpose guard models outperform specialized ones. These findings provide practical guidance for selecting safety guard models in production deployments.

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

↑