arXiv:2606.29887cs.AI2026-06

构建多层级安全评估基准,测试大模型理解应用特定规则的能力。

SafePyramid: A Hierarchical Benchmark for In-context Policy Guardrailing

论文配图:SafePyramid: A Hierarchical Benchmark for In-context Policy Guardrailing
图 1 · 摘自论文原文
  • 设计三级难度评估体系,从单规则理解到新政策框架适应
  • 覆盖10个领域3000条应用规则,仅54%的最优模型在复杂任务中正确识别违规
  • 适合关注大模型安全控制、政策可解释性的研究者与工程师

在真实应用中,安全防护需依据特定业务安全策略识别用户与模型的不安全交互,而非依赖预定义风险分类。本文研究上下文内策略防护场景,提出SafePyramid——一个包含1000条多轮对话、10个领域和3000条应用特定策略的安全评估基准,共含61,699条自然语言规则。评估分为三级:L0评估单规则理解,L1评估规则依赖推理,L2评估对全新策略框架的适应能力。通过多阶段严格流程构建与验证基准。在该基准上评估10个前沿大模型和5个可配置策略防护系统,结果显示:即使最优模型GPT-5.5,仅在L0、L1、L2任务中分别正确识别54.0%、35.3%、12.9%的全部违规规则。结果凸显当前防护机制的严重不足,亟需更强的上下文内策略执行与适应能力。

原文摘要 · Abstract (English)

In real-world applications, guardrails are often expected to identify unsafe user-model interactions according to application-specific safety policies, rather than relying on predefined risk taxonomies. In this work, we study this setting under the paradigm of in-context policy guardrailing, where guardrails predict safety violations based on policy specifications provided in context. To systematically evaluate this capability, we introduce SafePyramid, a safety benchmark comprising 1,000 multi-turn conversations across 10 domains and 3,000 corresponding application-specific policies, which together contain 61,699 distinct natural-language rules. SafePyramid organizes the evaluation into three difficulty levels: L0 evaluates individual-rule understanding, L1 evaluates reasoning over rule dependencies, and L2 evaluates adaptation of full novel policy frameworks defined in context. To ensure benchmark quality, we employ a rigorous multi-stage pipeline to construct and validate the benchmark. Using SafePyramid, we evaluate 10 frontier LLMs and 5 policy-configurable guardrails and find that in-context policy guardrailing remains highly challenging: even the best-performing model, GPT-5.5, exactly identifies the full set of violated rules in only 54.0%, 35.3%, and 12.9% cases on L0, L1, and L2, respectively. These results highlight the limitations of current guardrails and call for stronger in-context policy guardrails that can reliably execute policies, resolve rule dependencies, and adapt to novel policy frameworks.

安全评估大模型防护策略理解

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