evaluate 0 0 0

SamsungSDS-Research/Policy-on-the-Fly-Benchmark

published by @SamsungSDS-Research

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
639
Last 30 days
64
Likes
5
Size
391 KB
Created on HF
2026-04-29
Age
5 months ago

Description

⚠️ Content Warning: This dataset contains harmful content for AI filter evaluation, including biased expressions, crime-related scenarios, and jailbreak attempts.

PoFBench: Policy-on-the-Fly Benchmark

Overview

PoFBench (Policy-on-the-Fly Benchmark) is a test-only benchmark designed to measure the performance of policy-based custom filters in LLM-powered systems.

Existing AI safety benchmarks evaluate against fixed risk taxonomies predefined by experts. However… See the full description on the dataset page: https://huggingface.co/datasets/SamsungSDS-Research/Policy-on-the-Fly-Benchmark.

Tags

task_categories:text-classificationlanguage:kolanguage:enlicense:cc-by-nc-4.0size_categories:1K<n<10Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:uscontent-filteringai-safetyguardrailsevaluationbenchmarktest-onlycustom-filterpolicy-based-filteringllm-safety

README current version from Hugging Face


language:

  • ko
  • en
    license: cc-by-nc-4.0
    configs:
  • config_name: pofbench_ko
    data_files:
    • split: test
      path: pofbench_ko/pofbench_ko_test.parquet
  • config_name: pofbench_en
    data_files:
    • split: test
      path: pofbench_en/pofbench_en_test.parquet

task_categories:

  • text-classification
    tags:
  • content-filtering
  • ai-safety
  • guardrails
  • evaluation
  • benchmark
  • test-only
  • custom-filter
  • policy-based-filtering
  • llm-safety
    size_categories:
  • 1K<n<10K
    extra_gated_prompt: >-
    ⚠️ This dataset contains harmful content for AI safety research.
    By accessing, you agree to use it ONLY for safety research purposes.
    extra_gated_fields:
    Name: text
    Organization: text
    Research Purpose: text
    I agree to use this only for AI safety research: checkbox

⚠️ Content Warning: This dataset contains harmful content for AI filter evaluation, including biased expressions, crime-related scenarios, and jailbreak attempts.

PoFBench: Policy-on-the-Fly Benchmark

Overview

PoFBench (Policy-on-the-Fly Benchmark) is a test-only benchmark designed to measure the performance of policy-based custom filters in LLM-powered systems.

Existing AI safety benchmarks evaluate against fixed risk taxonomies predefined by experts. However, in real-world enterprise environments, the same text may need to be blocked or allowed depending on the specific policy applied.

PoFBench measures whether a model consistently changes its verdict when only the policy combination is changed for the same prompt.

  • 📊 1,080 instances — 540 Korean (original) + 540 English (translated)
  • 🏷️ 8 policy categories × 6 policy combinations
  • 🎯 Block 33% / Allow 67% label distribution
  • 📋 Test-only — No train/validation splits provided

📄 For research background and detailed methodology, please refer to our paper (available soon).

Target Systems

PoFBench can be used to evaluate the performance of policy-based filter (guardrail) systems operating in the following environments:

  • LLM input/output filtering systems
  • AI agent guardrails
  • Chatbot content filters
  • RAG system safety filters

Dataset Structure

Fields

Each row represents a single evaluation sample, consisting of a prompt, a policy, and the expected verdict for that combination.

Column Type Description
policy_name string Policy category name
policy_id string Policy identifier (e.g., expert_advice_0_1)
policy_num integer Combination case number (1–6)
prompt string User input prompt
policy string Full policy text (structured text containing Policy Name, Description, Block Condition, and Allow Condition)
label string Expected verdict (block or allow)
unaffected_policy_list string List of row numbers of the additional 99 policies that do not affect the original prompt‑policy label

The policy column is a structured text composed of four sections:

  • Policy Name — Name of the policy
  • Description — Description of the topic this policy monitors
  • Block Condition — Specific blocking criteria. Only content matching these conditions should be blocked
  • Allow Condition — Exception criteria (exemption). Only content matching these conditions should be allowed. Set to "None" if not applicable

Policy Categories

The dataset covers 8 risk categories that can arise during LLM usage. Each category reflects a security policy domain commonly operated in enterprise environments.

# Category Description Count (per language)
1 Internal Information Leakage of internal documents, financial data, technical specs, credentials 66
2 Agent Abuse Misuse of AI agent capabilities 60
3 Negative Product Mention Distorted opinions, defamation, external conflicts 60
4 Non-work Activity Reduced productivity, resource waste 60
5 Bias Compromised neutrality, organizational conflicts 60
6 Professional Advice Legal, medical, financial risks from non-expert advice 114
7 Harmful Content Unethical or crime-related requests 60
8 Jailbreak Attempts to bypass safety measures 60
Total 540

Combination Cases

This is the core design of PoFBench. For each prompt, 6 evaluation samples are generated by varying the positive/negative combinations of block and allow conditions. This allows distinguishing whether a model actually interprets the policy content or merely judges based on the prompt alone.

Case block_condition allow_condition Label
1 positive — block
2 negative — allow
3 positive positive allow
4 positive negative block
5 negative positive allow
6 negative negative allow
  • positive_block — A policy whose block condition matches the prompt
  • negative_block — A policy whose block condition does not match the prompt
  • positive_allow — A policy whose allow condition matches the prompt → block exemption
  • negative_allow — A policy whose allow condition does not match the prompt

Multi-Policy Evaluation

PoFBench supports multi-policy configuration, offering up to 100 policies per prompt. This design evaluates a model's ability to:

  • Assess relevance between a prompt and both related and unrelated policies
  • Handle long-context reasoning when presented with up to 100 policies simultaneously

Each data entry contains the original prompt with its corresponding block and allow conditions, along with an unaffected_policy_list column that holds 99 additional policies which do not affect the original prompt-policy label.

To preserve label consistency, users may select the original prompt + policy and freely choose how many policies to include from the unaffected_policy_list column.

⚠️ Among the 540 entries per language, 5 entries were found to be heavily influenced by other policies and therefore do not fit the multi-policy scenario. Their unaffected_policy_list column contains an empty list ([]).


Content Safety

PoFBench intentionally includes harmful content for the purpose of AI filter evaluation. The table below shows the presence and severity of harmful content by category.

Category Harmful Content Severity
Internal Information ✅ Not included —
Agent Abuse ✅ Not included —
Non-work Activity ✅ Not included —
Professional Advice ⚠️ Sensitive medical, financial, legal inquiries Low
Negative Product Mention ⚠️ Defamatory expressions Low
Bias ⚠️ Biased expressions related to religion, race, sexual minorities Medium
Harmful Content 🔴 Criminal methods, voice phishing, sex education (1 instance) High
Jailbreak 🔴 Safety bypass attempt prompts High

The following types of content are NOT included in this dataset: child sexual abuse material (CSAM), self-harm/suicide, weapons/drug manufacturing instructions, content targeting real individuals, personally identifiable information (PII)


Usage

from datasets import load_dataset

# English
dataset_en = load_dataset("SamsungSDS-Research/Policy-on-the-Fly-Benchmark", "pofbench_en", split="test")

# Korean
dataset_ko = load_dataset("SamsungSDS-Research/Policy-on-the-Fly-Benchmark", "pofbench_ko", split="test")


# Multi-Policy Evaluation
# Convert the 'policy' column of df into a list that can be indexed
df = dataset_ko.to_pandas()   
all_policies = df['policy'].tolist()

# Map the indices in 'unaffected_policy_list' to the actual policy strings
df['unaffected_policy_list_text'] = df['unaffected_policy_list'].apply(
    lambda idx_list: [all_policies[i] for i in idx_list]
)

Data Creation

PoFBench was created by experts from the SDS AI division between October and December 2025. No external user data was collected or crawled, and all scenarios are fictional with no personally identifiable information (PII) included.
Prompts were directly authored in various formats including general questions, agent calls, and RAG usage patterns. Policies were generated using Qwen3-235B(Apache 2.0) and subsequently verified through human review. To ensure data quality, three models (GPT-4.0, Gemma3-27B, Qwen3-235B) were used for cross-validation, with policies adjusted until at least 2 out of 3 models agreed on the label. Human reviewers then refined the prompts and policies in detail. English data was translated from Korean using gemma3-27B, followed by human review.
This dataset does not involve external human subjects research and is exempt from IRB review. All creators participated voluntarily, and session time limits were applied when authoring harmful content.
For detailed information on the data creation pipeline and validation process, please refer to our paper.


Intended Use & Limitations

Intended Use

PoFBench is designed for evaluating the performance of AI custom filters and guardrail systems. It can be used for policy-based content filtering research, pre/post filter verification in LLM, agent, chatbot, and RAG systems, and analyzing filter performance variance across policy changes.

Limitations

  • As English data are translated from Korean, slight differences in linguistic and cultural nuance may exist
  • The 8 categories do not fully cover all possible enterprise security policies

Restrictions

By accessing this dataset, you agree:

  • No Commercial Use – You may not use the dataset for any commercial purpose.
  • No Harmful Use – You may not use the dataset to intentionally generate, promote, or distribute harmful, offensive, or unsafe content.
  • Research Only – Usage is restricted to non-commercial research and educational purposes.
  • No Redistribution – You may not redistribute the dataset in whole or in part without permission.
  • Compliance – You must comply with all applicable laws and regulations regarding data usage.

Disclaimer

  • The dataset contains harmful and offensive language.
  • The dataset is provided "as is", without warranties or guarantees.
  • The authors and hosting platforms (e.g., Hugging Face) are not responsible for any misuse or damages resulting from the use of this dataset.

License

PoFBench is released under the CC-BY-NC-4.0 license. Due to the inclusion of harmful content, it is provided via Gated Access and can be downloaded after agreeing to the research-only use terms.


Citation

@misc{pofbench2026,
      title={Policy-on-the-Fly: A Principled Benchmark for Policy-Conditioned Compliance in AI Systems}, 
      author={JoonHo Lee and Hyeonmin Cho and HyunJae Lee and Juree Seok and Jaewoong Yun and JunKyu Lee and Seungki Hong},
      year={2026},
      eprint={TBD},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={TBD}, 
}

README history 13 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-05-06Update README.mdbca29dd11 KB
    Loading...
  2. 2026-05-06Update README.md2c1be6411 KB
    Loading...
  3. 2026-05-06Update README.mddff75c311 KB
    Loading...
  4. 2026-05-06Update README.mdef0b39b10.9 KB
    Loading...
  5. 2026-05-06Update README.md9feaf9d10.8 KB
    Loading...
  6. 2026-05-06Update README.md7201a5510.8 KB
    Loading...
  7. 2026-05-06Upload 2 files266c96a10.1 KB
    Loading...
  8. 2026-05-06Delete pofbench6d4cee010.1 KB
    Loading...
  9. 2026-05-06Upload 2 filesb7adab010.1 KB
    Loading...
  10. 2026-04-29Update README.md463abbd10.1 KB
    Loading...
  11. 2026-04-29Update README.mdcd3796110.3 KB
    Loading...
  12. 2026-04-29Update README.md462483e10.3 KB
    Loading...
  13. 2026-04-29initial commitfae58bc33 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-05-07[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Metadata

License
cc-by-nc-4.0

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("SamsungSDS-Research/Policy-on-the-Fly-Benchmark")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="SamsungSDS-Research/Policy-on-the-Fly-Benchmark", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/SamsungSDS-Research/Policy-on-the-Fly-Benchmark
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration