Download README.md from PredictiveManish/pqc-bench: direct link, hf CLI and curl.
- Browser
- Download file 5.8 kB
-
https://huggingface.co/datasets/PredictiveManish/pqc-bench/resolve/main/README.md
- Command line
-
hf download hf://datasets/PredictiveManish/pqc-bench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/PredictiveManish/pqc-bench/resolve/main/README.md
license: cc-by-4.0
language:
- en
pretty_name: PQC-Eval
version: 1.0.0
tags:
- cryptography
- post-quantum
- benchmark
- evaluation
- security
- llm-evaluation
size_categories:
- n<1K
task_categories:
- question-answering
- text-generation
configs:
- config_name: default
data_files: tasks.jsonl
PQC-Eval
A benchmark for evaluating language models on post-quantum cryptography: the algorithms, the standards that govern them, and the engineering work around them.
This is an initial research benchmark, not a validated leaderboard. No model baselines are published with this release, there is no held-out split, and passing these tasks does not certify any implementation. It is released so the grading can be scrutinised.
- Repository: https://github.com/PredictiveManish/pqc-bench
- Write-up: https://predictivemanish.github.io/blog/pqc-eval-technical-report/
- Version: 1.0.0 (verified 2026-11-25)
Contents
57 tasks across 7 tiers, every one bound to at least one primary source.
| Tier | Tasks | What it asks | How it is graded |
|---|---|---|---|
| knowledge | 10 | Algorithm facts, parameter sets | Exact match |
| standards | 20 | NIST, CNSA 2.0, CERT-In, TEC, DST, BSI, ANSSI | Exact match |
| implementation | 9 | Write a FIPS 203 component | Executed against kyber-py |
| debugging | 6 | Find the defect in real PQC code | Executed, bug injected |
| judgment | 3 | IoT signature choice, TLS trade-offs | Weighted rubric |
| scenarios | 4 | India bank migration, SSH fleet, firmware signing | Weighted rubric + sources |
| engineering | 5 | Repo discovery, CBOM, patching, ML-KEM encapsulation | P/R/F1, fixture tests, KAT vectors |
By answer type: 30 multiple choice, 15 executable code, 5 repository-level, 7 rubric-scored.
74 source URLs across the provenance registry.
Files
| File | What it is |
|---|---|
tasks.jsonl |
All 57 tasks, one JSON object per line |
sources.jsonl |
Provenance registry: one row per (task, source URL) |
fixtures.zip |
The three fixture repositories used by the engineering tier |
CITATION.cff |
Citation metadata |
Fields
| Field | Meaning |
|---|---|
id |
Stable task identifier |
tier |
One of the seven tiers above |
type |
mcq, code, repo or rubric — determines the grader |
prompt |
The exact text sent to the model. Engineering-tier prompts already contain the fixture files inline, so fixtures.zip is for reproducing the workspace, not for answering |
choices |
Options, for mcq only |
answer |
Correct option letter, for mcq only |
gold |
Reference answer or reference implementation |
rubric |
Weighted criteria with match_any, optional not_match_any, and critical flags |
must_not |
Phrases that zero the task outright |
repo |
Fixture, mode, target file and grading command, for repo tasks |
checker |
Path to the executable grader, for code tasks |
sources |
Primary source URLs backing the task |
basis |
One line on what the task is grounded in |
held_out |
Always false in this release — every task is public |
What is verified
Four gates run on every push to the repository, on Python 3.11, 3.12 and 3.13:
- Provenance — every task resolves to at least one real source URL; the build fails otherwise.
- Ground truth — the zeta tables and compress/decompress formulas are cross-checked
against
kyber-py, and ML-KEM / ML-DSA round-trip at the byte sizes the standards specify. - Integrity — a gold answer must score 1.0, an empty answer 0.0, and every deliberately injected bug must be rejected.
- Plumbing — provider parsing, cache identity, scorer behaviour and a Python 3.11 syntax guard.
The engineering tier's ML-KEM task is graded against three fixed KAT vectors generated
from a reference implementation, and the patch task is graded by the fixture's own
unittest suite.
What is not done
- No published model baselines. Run them yourself; do not treat any number as a result.
- No held-out split. Every task is public, so contamination is possible and unmeasured.
- No human-calibrated scoring. The rubric tier is keyword coverage with a clause-scoped negation guard and criterion-level exclusions. It is a proxy for judgement, not a semantic evaluator.
- Over half the tasks are multiple choice (30 of 57), which measures recall more than engineering.
- Not a conformance suite. Round-trip consistency is not ACVP vector conformance.
- Not agentic. Repository tasks receive fixture files in the prompt; they do not get filesystem or terminal access.
- Facts verified 2026-11-25. Standards drift; the provenance registry exists to make re-verification cheap.
Contamination
A canary string is present in the _canary field of every row:
PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io
If you train on this dataset, record that you did. If you evaluate a model and want to know whether it saw these tasks, search its training data for that string.
Licence
- Dataset (
tasks.jsonl,sources.jsonl,fixtures.zip): CC-BY-4.0 - Harness and graders (in the GitHub repository): MIT
Task text paraphrases public standards; it does not reproduce standard documents.
Citation
@misc{tiwari2026pqceval,
title = {PQC-Eval: a source-grounded benchmark for post-quantum cryptography capability},
author = {Tiwari, Manish},
year = {2026},
note = {Version 1.0.0},
url = {https://github.com/PredictiveManish/pqc-bench}
}
Scope
Independent research artefact. Not a certification, not a compliance attestation, and not endorsed by NIST, CERT-In, TEC, the DST or any government body.