Sensitive Data Discovery Tools

Open-source PII detection benchmark: Presidio, scrubadub and GLiNER on 500 labeled records

On 500 labeled synthetic finance records in English, German and French, GLiNER multi PII reached recall 0.89 at precision 0.55, against recall 0.39 for Presidio and 0.04 for scrubadub. Presidio and scrubadub ran with default settings; GLiNER ran at threshold 0.5 with 12 labels.

Last reviewed · Edition December 2026 · Markdown version

Key facts

  • On the same 500 records, Presidio scored 0 recall on 620 organization spans and 0.09 on 379 street address spans, because it has no organization recognizer and its location recognizer finds cities, not street addresses (Presidio supported entities).
  • GLiNER took 2.36 seconds a record on 2 vCPU (500 records); Presidio took 69.2 ms (1,600 records) and scrubadub 1.1 ms.
  • Presidio's patterns produced 568 false driver license matches on 8 English gold spans (precision 0.01), mostly numeric strings in finance text (benchmark data).
  • The data is the Apache-2.0 gretelai synthetic finance PII set, pinned to one revision.

What was measured

Three open-source detectors ran on one labeled dataset, scored by precision, recall and F1 per language and entity type. The detectors are Presidio (repository), scrubadub and GLiNER multi PII.

The dataset labels are mapped to 12 common types. Twelve labels are not scored: time, employee ID, SWIFT/BIC code, customer ID, BBAN, bank routing number, account PIN, card security code, latitude and longitude, API key, password and user name. Predictions that overlap them are dropped, not counted as false positives.

Precision against recall over all three languages, per detectorPresidio: precision 0.18, recall 0.40; scrubadub: precision 0.37, recall 0.04; GLiNER: precision 0.55, recall 0.8900.250.250.50.50.750.7511RecallPrecisionPresidioscrubadubGLiNER
Precision against recall over all three languages, per detector

Presidio scrubadub GLiNER Each panel: recall across, precision up, both 0 to 1.

0101Credit card0101Date0101Driver license0101Email address0101IBAN0101IP address0101Organization0101Passport number0101Person name0101Phone number0101Social Security number0101Street address
Precision and recall for each entity type, English records only.

Overall results

All three detectors are compared on the same 500 records (300 English, 100 German, 100 French), the sample GLiNER ran on. Every per-language and per-entity table and bullet below uses those 500. Presidio and scrubadub also ran on all 1,600 records (1,000 English, 300 German, 300 French); their 1,600-record scores are in the last table of this section.

Overall precision, recall and F1 on the same 500 records (all three detectors)
Detector Precision Recall F1
Presidio 0.18 0.39 0.25
scrubadub 0.33 0.04 0.06
GLiNER multi PII 0.55 0.89 0.68

Presidio and scrubadub were rescored on the first 300 English, 100 German and 100 French records of the sample by subset500.py; the per-language rows are in results_subset500 of the benchmark data.

F1 per detector and language, same 500 records for all three
DetectorEnglish (300 records)German (100 records)French (100 records)
Presidio0.2450.3210.214
scrubadub0.0640.0680.057
GLiNER0.6490.7490.714
Presidio and scrubadub on all 1,600 records
Detector Precision Recall F1
Presidio 0.18 0.40 0.25
scrubadub 0.37 0.04 0.07

Findings per entity

An en dash means the sample holds no spans of that type for that language. In the language table the number in brackets is the count of spans of that type in that language, and a count under 20 rests on too few to compare. Precision, recall and the true and false positive counts for every row, including all 1,600 records for Presidio and scrubadub, are in the benchmark CSV.

F1 per entity type, all three languages, same 500 records for every detector
Entity typeSpansPresidioscrubadubGLiNER
Credit card150.3330.3330.581
Date1860.2330.0000.396
Driver license130.0170.0000.813
Email address450.4170.4040.510
IBAN180.8390.0000.800
IP address120.7740.0000.357
Organization6200.0000.0000.745
Passport number220.2670.0000.864
Person name6480.5290.0000.673
Phone number710.3970.4300.835
Social Security number130.3050.0000.480
Street address3790.0490.0000.822
F1 per entity type and language (Presidio / scrubadub / GLiNER), same 500 records
Entity typeEnglish (300 records)German (100 records)French (100 records)
Credit card0.50 / 0.50 / 0.67 (9)–0.00 / 0.00 / 0.50 (6)
Date0.21 / 0.00 / 0.38 (121)0.39 / 0.00 / 0.46 (32)0.29 / 0.00 / 0.41 (33)
Driver license0.02 / 0.00 / 0.84 (8)0.00 / 0.00 / 0.80 (2)0.00 / 0.00 / 0.75 (3)
Email address0.42 / 0.40 / 0.51 (31)0.69 / 0.69 / 0.69 (11)0.18 / 0.17 / 0.29 (3)
IBAN0.94 / 0.00 / 0.67 (9)0.40 / 0.00 / 0.86 (4)0.89 / 0.00 / 1.00 (5)
IP address0.88 / 0.00 / 0.40 (7)–1.00 / 0.00 / 0.36 (5)
Organization0.00 / 0.00 / 0.70 (379)0.00 / 0.00 / 0.84 (130)0.00 / 0.00 / 0.80 (111)
Passport number0.29 / 0.00 / 0.81 (14)0.00 / 0.00 / 1.00 (4)0.00 / 0.00 / 0.89 (4)
Person name0.58 / 0.00 / 0.64 (400)0.53 / 0.00 / 0.77 (98)0.40 / 0.00 / 0.73 (150)
Phone number0.44 / 0.36 / 0.82 (49)0.32 / 0.32 / 0.82 (9)0.35 / 0.77 / 0.93 (13)
Social Security number0.32 / 0.00 / 0.60 (11)0.00 / 0.00 / 0.00 (1)0.00 / 0.00 / 0.00 (1)
Street address0.01 / 0.00 / 0.82 (243)0.17 / 0.00 / 0.80 (61)0.05 / 0.00 / 0.85 (75)
  • Presidio's precision was 1.00 on IBAN and 0.63 on IP addresses (same 500 records, all languages; benchmark data). It flags many extra dates and passport numbers (precision 0.14 and 0.17), because its patterns match numeric strings in finance text that the dataset does not label as those types.
  • scrubadub matched only email, phone and credit card numbers. Its name detector needs optional extras that this run did not install, and its SSN filth type matched nothing, so PERSON and SSN recall is 0 by configuration.
  • GLiNER's recall on organizations (0.94) and phone numbers (1.00) was above its overall 0.89; address (0.87) and passport (0.86) were slightly below it. Dates (precision 0.26) and email addresses (precision 0.37) came with many extra spans.

Confusion cases

All six are Presidio results on English records.

Where Presidio went wrong: examples from the synthetic records
Text (synthetic)ExpectedFoundNote
…Apt. 694+CITY+STATE+ZIP' NAD+SU+5055551::9+5055551+2345 Elm…none (no mapped gold span)DRIVER_LICENSE: 5055551false positive
…PAYMENT ADVICE :DFI_Account: 987654321 :DFI_Identification: 234567890 :Amount:…none (no mapped gold span)SSN: 987654321false positive
…Engineer Employment Status: Full-time Years with Current Employer: 5 years Monthly…none (no mapped gold span)DATE: Yearsfalse positive
…management, and carbon emissions. Édith Christelle Schneider has demonstrated a strong commitment…PERSON: Édith Christelle Schneiderno matching spanmissed
…States" "5","Facebook Inc","Technology"…ORG: Facebook Incno matching spanmissed
…regards, [Your Name] IT Support Team Acme Corp. Bank Routing Number: 928890510 Street…ORG: Acme Corp.no matching spanmissed

Why the numbers look the way they do

  • Presidio's evaluation page says vanilla Presidio is not very accurate and that a tuned configuration raised its F score by about 30 percent, as measured by the project.
  • Gold labels cover only the dataset's own types. A real name or date the authors did not annotate counts as a false positive, so precision is understated for every detector.
  • For German and French, Presidio used its language-agnostic recognizers plus spaCy models. The US-specific recognizers (SSN, passport, driver license) do not target German or French formats. Presidio's supported entities page lists German recognizers such as DE_PASSPORT and DE_TAX_ID; this run did not load them, so the German and French passport, Social Security number and driver license rows were scored with the US-oriented recognizers only.
  • GLiNER ran on 500 records because of CPU time. The run gave it 12 labels (listed in the detectors table), each mapped to one scored type, at threshold 0.5, with untuned label wording. It reads at most 384 words per call, and the run passed whole records without splitting them. By GLiNER's own word splitter, 102 of the 500 records have more than 384 words (count_truncation.py writes the count to truncation.json). Labeled spans after the cut count as misses, so GLiNER's recall is a lower bound.
  • A span counts if it has the same type and overlaps the gold span by at least half of the longer span. Exact-match scoring would give equal or lower scores.
  • Scores are micro-averaged across entity types, including types a detector does not support, so scrubadub's overall recall counts its zero on names and addresses.

Setup and versions

Datasets used and their licenses
DatasetLicenseRecords usedLanguagesSample rule
gretelai/synthetic_pii_finance_multilingual (test split, English/German/French files), revision 7b844d1Apache-2.01,600 (1,000 en, 300 de, 300 fr)en, de, frSeeded random sample per language (seed 20261204); GLiNER on the first 300 en, 100 de and 100 fr.
ai4privacy/pii-masking-300k (NOT USED)Academic and non-commercial use only; derivatives need written permission. Not used.0noneNot used
Detectors and exact versions
DetectorVersionConfigurationLicense
Presidio Analyzerpresidio-analyzer 2.2.366; spaCy 3.8.18; en_core_web_lg 3.8.0, de_core_news_md 3.8.0, fr_core_news_md 3.8.0default predefined recognizers for en/de/fr, score threshold 0 (presidio-analyzer default; run.py passes none), language passed per recordMIT
scrubadub2.0.1default Scrubber() detectors; the run mapped the email, phone, name, credit_card and ssn filth types to scored types, and only email, phone and credit_card matched anythingMIT
GLiNER multi PII (urchade/gliner_multi_pii-v1)gliner 0.2.30, torch 2.15.0+cpu, transformers 5.22.2; model revision 1fcf13e85f4eef5394e1fcd406cf2ca9ea82351dthreshold 0.5, 12 zero-shot labels (person, organization, email, phone number, address, credit card number, iban, social security number, date, ip address, passport number, driver license number); CPU, 2 vCPUApache-2.0
piiranha (iiiorg/piiranha-v1-detect-personal-information)not runExcluded: non-commercial, no-derivatives licenseCC-BY-NC-ND-4.0
Run time on 2 vCPU
Detector Records Seconds Per record
Presidio 1,600 110.7 69.2 ms
scrubadub 1,600 1.8 1.1 ms
GLiNER multi PII 500 1,179.0 2.36 s

Repeat the run

The scripts are published at /downloads/benchmark-code/: download.py, run.py, subset500.py, count_truncation.py and assemble.py. From that folder:

python3 -m venv /tmp/benchvenv
/tmp/benchvenv/bin/pip install presidio-analyzer==2.2.366 scrubadub==2.0.1 gliner==0.2.30 spacy==3.8.18 transformers==5.22.2 torch==2.15.0 pandas==3.1.2 pyarrow==26.0.1 tiktoken==0.14.0 sentencepiece==0.2.3 protobuf==7.36.2 --extra-index-url https://download.pytorch.org/whl/cpu
for m in en_core_web_lg de_core_news_md fr_core_news_md; do /tmp/benchvenv/bin/python -I -m spacy download $m-3.8.0 --direct; done
/tmp/benchvenv/bin/python -I download.py /tmp/bench-data
export HF_HOME=/dev/shm/hf   # only if disk is small; the model is about 1.2 GB
/tmp/benchvenv/bin/python -I run.py /tmp/bench-data raw_results.json   # about 25 min on 2 vCPU
/tmp/benchvenv/bin/python -I subset500.py /tmp/bench-data subset500_raw.json
/tmp/benchvenv/bin/python -I count_truncation.py /tmp/bench-data truncation.json
/tmp/benchvenv/bin/python -I assemble.py raw_results.json benchmark.json subset500_raw.json truncation.json

The run used Python 3.14.4. Run each script by path with -I, which keeps the downloaded data directory out of Python's import path.

Limits

  • The data is one synthetic finance set generated by a language model; no real or non-finance data was scored.
  • A separate scorer re-ran Presidio and scrubadub on all 1,600 records; the true positive, false positive and false negative totals for all three languages matched. GLiNER was not re-run.
  • Rows with fewer than 20 spans (credit card, driver license, IBAN, IP and SSN across all languages, and many per-language rows for other types) change sharply when a few records are added or removed.
  • Run times are from one shared 2 vCPU runner and vary with load.

Cite this

Sensitive Data Discovery Tools, "Open-source PII detection benchmark, December 2026," https://sensitivedatadiscoverytools.com/benchmark/, run December 4, 2026. Data under CC BY 4.0.

Downloads

Changelog

  • December 4, 2026: first edition.

Sources

  1. Presidio supported entities
  2. Presidio documentation, evaluation
  3. presidio-research
  4. Presidio repository
  5. scrubadub repository
  6. gretelai/synthetic_pii_finance_multilingual dataset card
  7. ai4privacy/pii-masking-300k license
  8. piiranha model card
  9. GLiNER multi PII model card