Introducing OpenAI Privacy Filter

OpenAI has released Privacy Filter, an open-weight model designed to detect and redact personally identifiable information (PII) with high accuracy and context awareness.
Today we’re releasing OpenAI Privacy Filter, an open-weight model for detecting and redacting personally identifiable information (PII) in text. This release is part of our broader effort to support a more resilient software ecosystem by providing developers practical infrastructure for building with AI safely, including tools and models that make strong privacy and security protections easier to implement from the start.
Privacy Filter is a small model with frontier personal data detection capability. It is designed for high-throughput privacy workflows, and is able to perform context-aware detection of PII in unstructured text. It can run locally, which means that PII can be masked or redacted without leaving your machine. It processes long inputs efficiently, making redaction decisions in a quick, single pass.
At OpenAI, we use a fine-tuned version of Privacy Filter in our own privacy-preserving workflows. We developed Privacy Filter because we believe that with the latest AI capabilities, we could raise the standard for privacy beyond what was already on the market. The version of Privacy Filter we are releasing today achieves state-of-the-art performance on the PII-Masking-300k benchmark, when corrected for annotation issues we identified during evaluation.
With this release, developers can run Privacy Filter in their own environments, fine tune it to their own use cases, and build stronger privacy protections into training, indexing, logging, and review pipelines.
Privacy protection in modern AI systems depends on more than pattern matching. Traditional PII detection tools often rely on deterministic rules for formats like phone numbers and email addresses. They can work well for narrow cases, but they often miss more subtle personal information and struggle with context.
Privacy Filter is built with deeper language and context awareness for more nuanced performance. By combining strong language understanding with a privacy-specific labeling system, it can detect a wider range of PII in unstructured text, including cases where the right decision depends on context. It can better distinguish between information that should be preserved because it is public, and information that should be masked or redacted because it relates to a private individual.
The result is a model that is strong enough to deliver frontier-level privacy filtering performance. At the same time, the model is small enough to be run locally–meaning data that has yet to be filtered can remain on device, with less risk of exposure, rather than needing to be sent to a server for de-identification.
Privacy Filter is a bidirectional token-classification model with span decoding. It begins from an autoregressive pretrained checkpoint and is then adapted into a token classifier over a fixed taxonomy of privacy labels. Instead of generating text token by token, it labels an input sequence in one pass and then decodes coherent spans with a constrained Viterbi procedure.
This architecture gives Privacy Filter a few useful properties for production use:
- Fast and efficient: all tokens are labeled in a single forward pass.
- Context aware: the language prior enables PII spans to be detected based on surrounding context.
- Long-context: the released model supports up to 128,000 tokens of context.
- Configurable: developers can tune operating points to trade off recall and precision depending on their workflow.
The released model has 1.5B total parameters with 50M active parameters. It predicts spans across eight categories: private_person, private_address, private_email, private_phone, private_url, private_date, account_number, and secret.
We developed Privacy Filter in several stages: building a privacy taxonomy, converting a pretrained language model into a bidirectional token classifier, and training on a mixture of public and synthetic data. On the PII-Masking-300k benchmark, Privacy Filter achieves an F1 score of 96%. Beyond benchmarks, it is designed for practical filtering in noisy, real-world text, including long documents and software-related secrets.
Privacy Filter is not an anonymization tool or a substitute for policy review. It is one component in a broader privacy-by-design system. Performance may vary across languages and domains, and like all models, it can make mistakes.
Source: OpenAI News














