--- license: cc-by-4.0 language: - en pretty_name: "Principle-Bench: A Four-Axis Benchmark for LLM-as-Judge in Principle-Based Regulation" size_categories: - 1K.jsonl` | 168 (100 / 30 / 28 / 10) | The scenarios. One shared column set across the four splits. | | `predictions` | `data/predictions.jsonl` | 2,331 | One row per run, scenario and assessed principle. 1,155 completed scenario-runs times 2 principles, plus 21 failed scenario-runs kept as one row each. | | `judge_traces` | `data/judge_traces/*.jsonl` | 1,301 | Every raw LLM judge call: 899 from `gpt-oss:120b-cloud`, 402 from `kimi-k2.6:cloud`. Three shards, each under 8 MB. | | `metrics` | `data/metrics.jsonl` | 54 | `runs/primary_metrics.csv`, typed: accuracy with CI, precision, recall, F1, AUC, Brier, ECE raw and calibrated, false-compliance rate. Per principle, method, split. | | `judge_agreement` | `data/judge_agreement.jsonl` | 8 | `runs/judge_agreement.csv`: kappa and raw agreement between the two judges, per split and principle. | | `per_cluster_auc` | `data/per_cluster_auc.jsonl` | 216 | `runs/per_cluster_auc.csv`: AUC per evidence cluster, method, split. | | `runs` | `data/runs.jsonl` | 28 | One row per run file: method, judge, split, wall time, failure count, cascade deferral stats. | | `seeds` | `data/seeds.jsonl` | 22 | The author-prepared summaries of public FCA material that `original` scenarios were generated from. | ### Column notes - **`benchmark`**. The four source files have different fields. They are unioned into 15 columns. A field a split does not have is null: `adversarial` has no `channel`, `product`, `audience`. `generation_payload`, `paraphrase_payload` and `exemplars_inserted` are JSON strings. Some split files have a column that is null on every row, so the card YAML declares all 15 as `string` under `dataset_info`. Without that, the loader types those columns as null and fails to cast the other splits. `labels.jsonl` is not a separate config. The build checks it row by row against the scenarios (id, split, principle, verdict) and it matches all 168. - **`predictions`**. Each run scores *both* principles on every scenario. `scenario_principle_id` is the principle the scenario is labelled for. `is_target_principle` marks the row where they match. `correct` is filled only there, so accuracy is `mean(correct)` over `is_target_principle == true`. `judge` is `judge2` for runs with a `_judge2` suffix and `judge1` otherwise. It only means something for `llm-judge`. `cluster_assessments` is a JSON string. - **`judge_traces`**. `prompt`, `response_parsed` and `response_raw` are JSON strings. `scenario_id` and `split` are recovered by matching the `PROMOTION_TEXT` in the prompt to the benchmark. All 1,301 match exactly one scenario. The trace files do not record which run made them, so a `judge1` trace can come from either `llm-judge` or `cascade`. One `kimi-k2.6` trace returned an off-schema object with no `escalate` field. Its `escalate` is null. - **`metrics`** and **`per_cluster_auc`** keep the source `split` value (for example `adversarial_judge2`) and add `judge` and `split_base`. - **NaN.** The run JSONs hold NaN for similarity fields the LLM judge does not produce. `data/` writes these as null so every line is strict JSON. `raw/runs/` keeps the NaN as released. ### raw/ `raw/benchmark/`, `raw/runs/` and `raw/paper/` are exact copies of the release directories, minus PDFs, plus `raw/LICENSE-DATA`. No config points at them. They hold the two pre-registered rubrics (`raw/benchmark/rubric/`), `labels.jsonl`, the fitted Platt calibrators (`raw/runs/calibrators/`), the attribution faithfulness results (`raw/runs/faithfulness_*.json`), every trace file, and the camera-ready LaTeX source. The PDFs (paper and figures) are left out because the Hub rejects binary files on this upload path. Read the paper on arXiv (https://arxiv.org/abs/2608.14329) or get the PDFs from the GitHub repo. No file in the package exceeds 8 MB. ## Known gaps - **21 scenario-runs failed.** They are LLM judge JSON parse errors and Ollama read timeouts. They are rows in `predictions` with `failed: true` and the message in `error`. They are excluded from `metrics`. By run: llm-judge original 3, adversarial 4, boundary 2. Second judge original 2, paraphrase 2, adversarial 2. Cascade original 4, paraphrase 1, boundary 1. This is why some `n` values sit below the split size. - **`metrics` has no `original_judge2` row**, although that run is included. You can compute it from `predictions`: Consumer Duty 0.6667 (n=48), COBS 0.98 (n=50). - **The `original` rows in `metrics` cover all 100 original scenarios.** The paper describes a 20-scenario dev subset used to fit calibrators and the cascade band. These files do not record which 20. - **The harness is reference only.** The eval code in the GitHub repo imports `scrat-core`, the CECA engine, which lives in a repository that is not public. You can inspect the harness. You cannot re-run it end to end without the engine and an Ollama setup. Every analysis in the paper can be redone from the data here. - **Author-only labels, one corpus family.** Scenarios were labelled by one author. The corpus generator and the first judge are the same model family. The second judge is there to test that overlap. ## Provenance All scenarios are synthetic. `original` and `paraphrase` scenarios were generated by `gpt-oss:120b` through Ollama Cloud (the model is recorded in each row's payload), from author-prepared summaries of public FCA material, with a ban on verbatim exemplar phrases. No scenario contains verbatim FCA enforcement text. The judges were `gpt-oss:120b` and `kimi-k2.6`, also through Ollama Cloud. The two per-principle rubrics were committed and tagged `v0-rubric-prereg` before any scenario was authored or labelled. That tag lives in the non-public `Skelf-Research/scrat` repository. The rubric text is reproduced in `raw/benchmark/rubric/`. ## Reproduce To rebuild this package from a checkout: ```sh python3 build_hf.py /path/to/principle-bench . ``` Running it twice gives byte-identical output. ## License - Data (`benchmark/`, `runs/`), the paper text, and this card: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). See `raw/LICENSE-DATA`. - Code in the GitHub repo (`code/`, `scripts/`) and `build_hf.py`: MIT OR Apache-2.0. - Scenarios and traces were generated with open-weight models (gpt-oss, Kimi-K2.6). Their model terms apply to those outputs. ## Citation ```bibtex @inproceedings{sarkar2026principlebench, title = {A Four-Axis Trustworthiness Benchmark for LLM-as-Judge in Principle-Based Regulation}, author = {Sarkar, Dipankar}, booktitle = {2nd Workshop on Secure and Trustworthy Large Language Models (SeT-LLM @ KDD 2026)}, year = {2026}, note = {Non-archival}, eprint = {2608.14329}, archivePrefix = {arXiv}, url = {https://arxiv.org/abs/2608.14329} } ``` ## Links - Paper: https://arxiv.org/abs/2608.14329 - Code, paper source, and full artifact: https://github.com/sarkar-dipankar/principle-bench