SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.19054 · NeurIPS · 2025

POLY-GUARD: Multi-Domain, Policy-Grounded, AI Security Guardrail Benchmark

Jiawei Zhang, Bo Li, Yu Sun, Chejian Xu, Mintong Kang, Csu, Zhaorun Chen, Uchicago, Chengquan Guo, Minzhou Pan, Ivan Revilla

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.19054.json · badge: /api/ran/2506.19054.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AI-secure/PolyGuard canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
FunctionStatusWhere it lives
generate_sections Ran
ran; our contract draft was wrong, not the code
AI-secure/PolyGuard/finance/extract_generate.py
pointer only (licence: NONE) · get_code("16b068c62ef92959")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AI-secure/PolyGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_all_file_paths Ran
ran; our contract draft was wrong, not the code
AI-secure/PolyGuard/education/policy_based_data_gen_edu.py
pointer only (licence: NONE) · get_code("598f80ffe96dad5f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AI-secure/PolyGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_gpt_response Ran
ran; our contract draft was wrong, not the code
AI-secure/PolyGuard/finance/attack.py
pointer only (licence: NONE) · get_code("8d3fc56a70951831")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AI-secure/PolyGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
AI-secure/PolyGuard/code/evaluate.py
pointer only (licence: NONE) · get_code("a0c7393409fd0be9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AI-secure/PolyGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

adv_refine Not yet run
unverified (harvested, no recorded run)
AI-secure/PolyGuard/finance/attack.py
pointer only (licence: NONE) · get_code("e6f6bceb9a20dfa3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AI-secure/PolyGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

guardrail_attack Not yet run
unverified (harvested, no recorded run)
AI-secure/PolyGuard/finance/attack.py
pointer only (licence: NONE) · get_code("641651bf0ca746da")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AI-secure/PolyGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_json 7 other papers
2 dated earlier, 5 later
2411.10954 (2024-11)
Dialectal Toxicity Detection: Evaluating LLM-as-a-Judge Consistency Across Language Varieties
2504.04907 (2025-04)
Video-Bench: Human-Aligned Video Generation Benchmark
2507.22171 (2025-07)
Enhancing Jailbreak Attacks on LLMs via Persona Prompts
and 4 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

As large language models (LLMs) become widespread across diverse applications, concerns about the security and safety of LLM interactions have intensified. Numerous guardrail models and benchmarks have been developed to ensure LLM content safety. However, existing guardrail benchmarks are often built upon ad hoc risk taxonomies that lack a principled grounding in standardized safety policies, limiting their alignment with real-world operational requirements. Moreover, they tend to overlook domain-specific risks, while the same risk category can carry different implications across different domains. To bridge these gaps, we introduce POLY-GUARD, the first massive multi-domain safety policy-grounded guardrail dataset. POLY-GUARD offers: (1) broad domain coverage across eight safetycritical domains, such as finance, law, and codeGen; (2) policy-grounded risk construction based on authentic, domain-specific safety guidelines; (3) diverse interaction formats, encompassing declarative statements, questions, instructions, and multi-turn conversations; (4) advanced benign data curation via detoxification prompting to challenge over-refusal behaviors; and (5) attack-enhanced instances that simulate adversarial inputs designed to bypass guardrails. Based on POLY-GUARD, we benchmark 19 advanced guardrail models and uncover a series of findings, such as: (1) All models achieve varied F1 scores, with many demonstrating high variance across risk categories, highlighting their limited domain coverage and insufficient handling of domain-specific safety concerns; (2) As models evolve, their coverage of safety risks broadens, but performance on common risk categories may decrease; (3) All models remain vulnerable to optimized adversarial attacks. The policy-grounded POLY-GUARD establishes the first principled and comprehensive guardrail benchmark. We believe that POLY-GUARD and the unique insights derived from our evaluations will advance the development of policy-aligned and resilient guardrail systems. Data & Dataset Card: huggingface.co/datasets/AI-Secure/PolyGuard Code Repository: github.com/AI-secure/PolyGuard * Lead authors. 39th Conference on Neural Information Processing Systems (NeurIPS 2025) Track on Datasets and Benchmarks.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.19054")
get_code_for_paper("2506.19054")
have("2506.19054")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.19054.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.19054.svg)](https://syntology.ai/paper/2506.19054)

Connect an agent — have() is free.