Strip the names before the cloud sees them: 7 German PII redaction AIs fact-checked

This week made it clear that prompts stored by AI providers really do leak. If you want to redact personal data on your own machine before uploading anything, several open models now support German. We put their benchmarks side by side. Every model wins its own test, and independent checks find gaps in all of them.

Analysis Nov 26, 2026 10 min read Original analysis by our editors
Illustrative image, AI-generated

What this is about

When you send a lease, an email thread or a doctor's letter to ChatGPT, Claude or a cheap API reseller, you hand over every name, address and account number in it. The obvious fix is to have a small AI model on your own machine find and redact the personal data first. For German text, there's now a whole range of open tools that do this. We wanted to know which ones are any good, and how far you can trust the numbers vendors advertise.

The short answer: every model wins its home game. Almost all the scores come from synthetic test data the vendor generated itself. And wherever someone measures independently, there are gaps you need to know about.

Why this is urgent right now

Over the past few days, a theoretical risk turned into a documented one. Security researcher HD Moore of Dragos sent almost two million bait prompts to AI services. Attackers were inside the systems of at least three hosts, and resellers logged requests despite promising "zero data retention". OpenRouter then removed three providers and stripped 125 endpoints of their privacy badge. At Together AI, an AI coding agent published an access key that let stored customer prompts leak. According to an AI Weekly report citing Reuters, MiniMax has now also been named as the provider whose systems opened the secret links in the prompts in more than half of the test requests. MiniMax says there's no indication that any content reached third parties.

The takeaway for you: what never reaches the cloud can't leak from it.

The contenders at a glance

Tool Size License German-specific IDs Notable
OpenAI Privacy Filter 1.5B (50M active) Apache 2.0 no (8 categories) "secret" category for passwords/API keys, 128,000-token context
Tarn German PII (base/large/gliner) 125M / 335M / 0.3B Apache 2.0 yes: tax ID, tax number, social security, health insurance, ID card, passport, driver's license, license plate, LANR, BSNR 19 categories in Presidio format, browser demo
nobody-pii-de 0.3B (GLiNER) Apache 2.0 via rules: IBAN, tax IDs, license plates model itself only detects person, address, date of birth, organization
OpenMed PII German 33M to 568M (33 variants) Apache 2.0 partly (54 types, incl. IBAN) very fine-grained categories
GLiNER-PII (urchade, knowledgator) n/a Apache 2.0 categories of your choice ("zero-shot") flexible, but less accurate
Presidio rule-based + spaCy open source 9 German recognizers (incl. DE_TAX_ID, DE_KFZ, DE_HANDELSREGISTER) framework you plug models into
Pangeanic unknown Space: "other" unknown PDF demo via Pangeanic API

GLiNER is a model family you can tell what to look for with a keyword, such as "person" or "tax number", without retraining it. That's exactly what "zero-shot" means. Presidio was originally built by Microsoft and is a toolkit: it combines search patterns and checksum validation with a language model and can plug in other models as recognizers.

Every model wins its home game

Model Own test Vendor-reported score Test data
Tarn large syntriq/german-pii-benchmark, 687 documents strict F1 0.992 synthetic, same number generators as in training
nobody-pii-de ai4privacy-400k, German subset F1 0.795 synthetic
OpenMed Small (33M) AI4Privacy, German subset micro-F1 0.834 synthetic, same source as training
OpenMed SuperClinical-Large AI4Privacy, German subset micro-F1 0.976 as above
OpenAI Privacy Filter PII-Masking-300k (corrected) F1 0.974 synthetic, mostly English

The F1 score combines how much a model finds (recall) with how often it's right (precision). For redaction, recall matters most, because every missed name is a leak.

The widely quoted 0.462 for OpenAI's filter on the Tarn benchmark is misleading. "Strict F1" requires the exact category, and OpenAI's model only knows 5 of Tarn's 19 categories. Syntriq itself calls "masked recall" the fairest comparison: it only counts whether a personal value was covered at all. Here OpenAI's filter scores 0.887, GLiNER 0.892 and Tarn 0.999. Applied to the benchmark's 8,035 labeled spans, that means Tarn leaves about 8 values exposed, OpenAI's filter about 900, and Presidio with its German recognizers alone (masked recall 0.348) more than 5,000. Syntriq admits that the numeric values in the test come from the same generators as the training data. Real documents will likely score worse.

For nobody-pii-de, the Model Card is upfront about the weak spot: addresses have a recall of 0.687 and a precision of 0.481. Roughly one in three addresses slips through, and token leakage sits at 15.6 percent. Dates of birth, on the other hand, get redacted too eagerly (precision 0.305), which also hits ordinary dates. The authors also say themselves that every model leads on its "home generator": on a third-party dataset, rival model Piiranha beats nobody with an F1 of 0.840 to 0.795.

What independent measurements show

Independent numbers are rare. The key findings:

  • German doctors' letters: For his model german-clinical-deid, Lukas Kunhardt tested 41 letters from the GraSCCo corpus, real doctors' letters with identifiers replaced by hand. His best model left at least one name, number or street in 1 to 3 of the 41 letters. On synthetic German notes it was 11 to 12 percent, while other models came in at 23 to 79 percent. OpenAI's filter left something behind in 90.3 percent of notes across seven languages. There's no German-only figure for it.
  • Evaluation paper on OpenAI's filter: Rohith Uppala tested the model on 32 benchmarks. On German customer service texts (Kiji), it reaches F1 0.601, Presidio 0.367. For German person names in the general MultiCoNER benchmark, it manages only 0.318. A fine-tuned XLM-RoBERTa model overtakes the filter with just 100 labeled German examples (0.828). Precision mostly sits between 0.31 and 0.54, so the filter redacts far too much.
  • REDACT benchmark: German is one of the 25 languages, but the paper doesn't publish per-language scores. Overall, Presidio scores 0.195, GLiNER 0.320 and OpenAI's filter 0.512 (partial micro-F1). Claude Sonnet 4.6 hits 0.636. So the cloud models come out on top, and those are exactly the ones you don't want to send your data to.
  • October 2026 pseudonymization study: Vladimir Beskorovainyi compared tools on 1,000 Russian and 1,000 British English documents each. Even the best left a value fully intact in 58 to 61 percent of documents. OpenAI's filter came in at 81 percent (English) and 97 percent (Russian), Presidio at 61 and 87 percent. German isn't part of the study, and the author tested his own engine himself.

The typically German pitfalls

We weren't able to run our originally planned in-house test with synthetic German documents for this article, so there are no measurements of our own here. The Model Cards do show where to expect problems, though:

  • Genitive names like "Müllers Kündigung" (Müller's termination): We didn't find reliable error rates. Privacy company Private AI points to a 2017 study that found missed names were eight times more likely to be morphologically complex, meaning inflected or compound forms.
  • Addresses: They're the biggest weakness in several models. That's clear from OpenAI's filter's recall of 0.49 according to Uppala, and roughly 69 percent for nobody.
  • IBAN, tax ID: Checksums make these values easy to catch with rules. Tarn, Presidio and the nobody pipeline validate them specifically. OpenAI's filter lumps account numbers together as "account number".
  • Case numbers, invoice numbers, company names: Tarn explicitly doesn't flag them. Its schema doesn't treat them as personal data, even though a case number can uniquely identify a case.
  • API keys and passwords: This is exactly what the attackers were hunting for in the Dragos experiment. Only OpenAI's filter has a dedicated category for it ("secret").

If you want to test this yourself, type a few sentences with these pitfalls into the Tarn browser demo. According to the GitHub README, no text leaves your device.

Pangeanic: free, but not local

Spanish language technology company Pangeanic is promoting a "free model" for anonymizing PDFs on Reddit. We read the source code of their Hugging Face demo. It doesn't load a model. Instead, it sends the PDF to api.pangeanic.com. The demo accepts no more than three pages, and images aren't anonymized. The code doesn't name the model, languages or categories. That defeats the goal of keeping your data in your own hands. Pangeanic's older MAPA models, on the other hand, are free to download, including mapa-de-legal (Apache 2.0, level-1 F1 0.80). It was trained on machine-translated legal texts, though, and needs its own toolkit code.

Detection isn't anonymization

Every vendor says it in their own Model Card: detection isn't anonymization in the legal sense. Here's where the law stands:

  • Under Art. 4(5) GDPR, pseudonymized data is data that can no longer be attributed to a person without additional information. According to the European Data Protection Board's guidelines from January 2025, it remains personal data, even if someone else holds the additional information.
  • In September 2025, the CJEU (C-413/23 P) confirmed a relative view. For a recipient who can't re-identify the data, it can be anonymous. The sender, however, remains bound by its obligations, for example to inform the people concerned.
  • In its 2024 AI guidance, Germany's Data Protection Conference (DSK) gives the example of a prompt that only refers to "Person X". Even that can be pseudonymous, and therefore personal data, if the person can be identified through other information.

In practice, this means reversible placeholders like "PERSON_1" that get swapped back in after the response are pseudonymization, and data protection obligations still apply. Hardly any model catches contextual details such as job, diagnosis or place of residence. Both nobody and researchers at the University of Erlangen point this out. Developers on Hacker News also report that in German, neutral placeholders break grammatical references such as gender, which makes the AI's answers worse.

Our verdict

Our assessment, explicitly without our own measurements:

  • German official letters, contracts, payslips: Tarn base or large is currently the best-fitting open tool, because it covers German ID numbers with checksums and runs on a CPU or in the browser. The 0.99 score is a home-game number, so expect gaps in real documents.
  • Code, log files, configs: OpenAI's filter makes sense thanks to its "secret" category, ideally combined with a German model for names.
  • Doctors' letters: Specialized clinical models like german-clinical-deid have the only reasonably realistic German numbers. OpenMed offers lots of sizes, but only scores from synthetic data.
  • For everyone: Combine rules (Presidio) with a model, spot-check the results yourself, and don't send truly sensitive material to the cloud in the first place.

Redaction lowers the risk significantly, but it doesn't eliminate it. Every independent measurement shows a remainder of documents where something slips through. If you need GDPR-level certainty, there's no way around human review or a locally hosted language model.

Sources

#privacy#pii#gdpr#open-source#comparison#anonymization

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.