SafePyramid: A Hierarchical Benchmark for In-context Policy Guardrailing
JZJiacheng ZhangHHHaoyu HeSen ZhangShen WangXiaolei XuYSYuhao SunMeng ShenFeng Liu
JZJiacheng Zhang
HHHaoyu He
Sen Zhang
Shen Wang
Xiaolei Xu
YSYuhao Sun
Meng Shen
Feng Liu
+8
SafePyramid is a benchmark for in-context policy guardrailing, where models predict safety violations from application-specific policies given in the prompt. It contains 1,000 conversations across 10 domains paired with 3,000 policies (61,699 rules) and tests three difficulty levels: rule understanding (L0), reasoning over rule dependencies (L1), and adapting to novel policy frameworks (L2). Evaluation of 10 frontier LLMs shows that even the best (GPT-5.5) achieves only 54.0%, 35.3%, and 12.9% exact rule identification at L0, L1, and L2, respectively, highlighting the challenge.

arXiv ·
· June 29, 2026