mlsanityData to 14 Oct 2026

SafePyramid: A Hierarchical Benchmark for In-context Policy Guardrailing

arXiv 2606.29887 ↗First posted 29 Jun 2026cs.AIcited by 1

On the map: LLM safety and security → Safety alignment, refusal and guardrails

Abstract (arXiv)

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.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 30 of its 43 references that are in the map. First posted on arXiv 29 Jun 2026.

Builds on

30 of 43 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Qwen3Guard Technical Report16 Oct
  2. 2025DynaGuard: A Dynamic Guardian Model With User-Defined Policies2 Sep
  3. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs26 Jun
  4. 2024Safeguarding Large Language Models: A Survey3 Jun
  5. 2024OR-Bench: An Over-Refusal Benchmark for Large Language Models31 May

Other references · 25

  1. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  2. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
  3. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  4. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
  5. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  6. 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,040
  7. 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 536
  8. 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
  9. 2021BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generationcited by 412
  10. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 336
  11. 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
  12. 2023SafetyBench: Evaluating the Safety of Large Language Modelscited by 199
13 more
  1. 2023Do-Not-Answer: A Dataset for Evaluating Safeguards in LLMscited by 184
  2. 2024AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Expertscited by 136
  3. 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 117
  4. 2023COLLIE: Systematic Construction of Constrained Text Generation Taskscited by 70
  5. 2024ShieldLM: Empowering LLMs as Aligned, Customizable and Explainable Safety Detectorscited by 51
  6. 2026CL-bench: A Benchmark for Context Learningcited by 47
  7. 2024SysBench: Can Large Language Models Follow System Messages?cited by 28
  8. 2025ShieldGemma 2: Robust and Tractable Image Content Moderationcited by 28
  9. 2024Logic-of-Thought: Injecting Logic into Contexts for Full Reasoning in Large Language Modelscited by 23
  10. 2025GSPR: Aligning LLM Safeguards as Generalizable Safety Policy Reasonerscited by 13
  11. 2026CL-bench Life: Can Language Models Learn from Real-Life Context?cited by 9
  12. 2026FlexGuard: Continuous Risk Scoring for Strictness-Adaptive LLM Content Moderationcited by 7
  13. 2026RedBench: A Universal Dataset for Comprehensive Red Teaming of Large Language Modelscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Triaging Threats to Specialized Guardrails
  2. 2026PL-Guard: Probabilistic Logic Reasoning for LLM Guardrails
  3. 2026ConsisGuard: Aligning Safety Deliberation with Policy Enforcement in LLM Guardrails
  4. 2025Learning Efficient Guardrails for Compliance
  5. 2026LPG: Balancing Efficiency and Policy Reasoning in Latent Policy Guardrails
  6. 2026BARRED: Synthetic Training of Custom Policy Guardrails via Asymmetric Debate
  7. 2025Protect: Towards Robust Guardrailing Stack for Trustworthy Enterprise LLM Systems
  8. 2025Poly-Guard: Massive Multi-Domain Safety Policy-Grounded Guardrail Dataset