PIIMark v1
A benchmark for PII redaction in text: does a tool mask the personal data, and does it leave harmless text alone?
114,081 synthetic items in 34 languages plus code and config snippets, with character-level gold spans and
16,635 harmless look-alikes (order numbers, documentation keys, invalid IDs, dates, server IPs, pets and fictional
names) that should come back unchanged.
Built by the OpenAnonymizer authors. It follows our labelling policy, which is a real limitation; that is why the
method, the scorer and the known weak spots are published with it. Results for 16 tools, ours included, are below and on
the OpenAnonymizer results page.
Contents
| Split | Items | Use |
|---|---|---|
dev |
33,506 | Tuning, thresholds, error analysis |
test |
80,575 | Reporting only. No template is in both splits |
- 97,446 items with personal data and 16,635 harmless items; 281,803 gold spans from 21,116 sentence templates.
- 15 categories:
NAME,CONTACT(emails, profile links),PHONE,ADDRESS,ID,DOCNUM,COMPANY_ID,CARD,IBAN,DOB,IP,DEVICE,SECRET(keys in 218 provider formats),QUASI(age, gender, job, city) andSPECIAL(health, religion, politics and other GDPR Art. 9 data). - Registers from chat, email, SMS and forms to logs, JSON, CSV, SQL, call transcripts, contracts and clinical notes.
score.py: the scorer, frozen with the data (standard library only).FROZEN.json: SHA-256 of the data, the
scorer and the build inputs at freeze time (2026-11-29).
How it was built
Language-model writers wrote the templates in each language; they were not translated from one another. Every value
is synthetic and generated by code: IDs with real checksums and invalid twins that fail them, valid phone numbers per
country, secrets in 218 provider formats, and 15 kinds of noise. No real people.
Fields
| Field | Meaning |
|---|---|
id |
Item id (cb1-<lang>-<n>) |
text |
The text to redact |
lang |
Language code; code and zxx are code and config snippets |
split |
dev or test |
slice |
What the item tests, e.g. labelled_valid, bare_invalid, name_person, doc_pii, date_harmless |
scheme, group, variant |
The value's scheme (e.g. sa_nid), its group and how it is written |
register |
Kind of text (chat, email, log, json, contract, ...) |
frame_kind, frame_id, writer |
The template it came from and an anonymised writer code |
expect_mask |
true if the item holds personal data, false for a harmless item |
gold |
Gold spans: start, end (Python code points, end exclusive), category, type, match, required |
value_span, compact, twin |
The main value, its compact form, and the id of its valid/invalid twin |
Scoring
python score.py data/test.jsonl spans.json [--by slice,category,lang] [--exclude NAME,QUASI,SPECIAL]
spans.json maps item ids to predicted [start, end, type] spans. Scoring is type-agnostic: a tool is scored on
what it masks, not on its labels.
- A gold span with
match: covercounts as found only when everyrequiredcharacter is masked. Masking half an
IBAN still leaks the other half.QUASIandSPECIALspans usematch: overlap. - Recall (structured): share of gold spans found, excluding
NAME,QUASIandSPECIAL
(--exclude NAME,QUASI,SPECIAL). This is the headline number. - All categories: the same with every category.
- False positives: share of harmless items where the tool masked anything at all.
Results on the test split
All 80,575 test items, every tool with its default settings and all its entity types on, on every language.
Time is the median per item on one server CPU, the same machine and harness for every timed tool.
| Tool | Recall (structured) | False positives | All categories | Median time |
|---|---|---|---|---|
| OpenAnonymizer · Full | 91.8% | 13.0% | 71.5% | 5.8 ms |
| OpenAnonymizer · Fast | 90.6% | 8.6% | 58.0% | 0.10 ms |
| privaite | 77.8% | 67.2% | 59.4% | 18.1 ms |
| OpenAI Privacy Filter | 75.4% | 56.6% | 55.3% | 773 ms |
| GLiNER-PII (knowledgator) | 69.5% | 91.9% | 73.9% | — |
| Presidio | 65.5% | 89.8% | 61.6% | 9.2 ms |
| GLiNER2 (privacy, multilingual) | 59.4% | 69.4% | 65.2% | 103 ms |
| piiranha | 54.5% | 41.3% | 37.4% | 63.2 ms |
| GLiNER multi-PII | 53.0% | 47.1% | 59.9% | 75.4 ms |
| LLM Guard | 53.0% | 80.1% | 52.2% | — |
| philter | 51.7% | 79.3% | 54.7% | 33.0 ms |
| Phileas | 51.5% | 68.6% | 30.7% | 0.40 ms |
| NVIDIA GLiNER-PII | 51.0% | 55.5% | 55.8% | 298 ms |
| ai4privacy (OpenPII model) | 36.5% | 74.2% | 18.5% | 42.5 ms |
| DataFog | 30.9% | 26.5% | 14.3% | — |
| scrubadub | 30.4% | 37.7% | 40.5% | — |
— = not timed on the same setup. OpenAnonymizer's thresholds were tuned on dev only, and no PIIMark text was used
to train its model.
Limits
- Templates are written by language models, and some situations repeat across languages.
- Documents are mostly 120 to 250 words. Secrets are a small category.
- Some values do not fit their context (for example a gender cue against the name).
- Passport and licence formats come partly from secondary sources, and postcodes partly from memory.
- Some harmless traps are debatable, such as documented example keys and IBANs, or test IDs that pass checksums.
- Tools that tag every organisation or place pay for it in false positives here; that follows our labelling policy.
If you find an item you think is labelled wrong, open a discussion on this page.
Licence
CC BY-NC 4.0: free to use, share and adapt for non-commercial
purposes with attribution. Please do not train on the test split.
Citation
@misc{piimark2026,
title = {PIIMark v1: a multilingual benchmark for PII redaction},
author = {{OpenAnonymizer authors}},
year = {2026},
url = {https://huggingface.co/datasets/openanonymizer/piimark}
}