ModelsReviewed · openai

OpenAI Privacy Filter

OpenAI Privacy Filter is an AI model that finds and masks personal information such as names, email addresses, phone numbers, addresses and secrets in text, for developers and data teams who need to clean data on their own machines; it can miss sensitive information and does not guarantee anonymization. It detects eight privacy categories through token classification, supports local deployment through Transformers and Transformers.js, and offers adjustable detection tradeoffs.

Researched 14 Nov 2026

In short.

OpenAI Privacy Filter is a locally runnable model for teams removing personal information from text, but its fixed privacy policy and detection errors require evaluation on their own data. The card reports 1.5 billion total parameters, 50 million active parameters and a 128,000-token context window. Runtime calibration adjusts detection breadth; changing the privacy policy requires fine-tuning. Hardware requirements, numerical performance and correct decoder integration are not established by the supplied examples. No code or model was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete README at revision 7ffa9a043d54d1be65afb281eddf0ffbe629385b, captured as selected-page.txt with SHA-256 48318ff48819858192dbb59f106dd709c3017e447bcc540807df66840a03a695. It includes the inline Apache 2.0 declaration and all risk notices. Linked pages, the separate LICENSE file, implementation files and model weights are excluded. No code or model was executed; hardware suitability, decoder integration, accuracy, throughput and end-to-end masking behavior remain untested.

The overview

identity

The card identifies OpenAI as the developer, funder and organization sharing openai/privacy-filter. The model assigns privacy labels to spans of input text for detection and masking workflows.

The source is the model README at revision 7ffa9a043d54d1be65afb281eddf0ffbe629385b: [https://huggingface.co/openai/privacy-filter/raw/7ffa9a043d54d1be65afb281eddf0ffbe629385b/README.md].

assessment

This is a plausible component for teams building local text-sanitization systems that can accommodate its eight privacy categories. Its documented controls address the tradeoff between missing sensitive spans and removing useful context.

The card positions the model for high-throughput processing but supplies no numerical throughput, memory, accuracy or comparative benchmark results. Practical suitability remains unknown until measured on the intended data and hardware.

users

The intended users are developers and data teams sanitizing text, particularly organizations that need on-premises inference or want to adapt detection to a specific domain.

Adoption requires someone who can integrate predictions into a masking process and evaluate detection quality. The card calls for additional caution and human review paths in medical, legal, financial, human resources, education and government workflows.

capabilities

The eight categories are account_number, private_address, private_email, private_person, private_phone, private_url, private_date and secret. The model predicts token labels that can be assembled into spans for masking.

The card reports a 128,000-token context window, browser and laptop operation, fine-tuning support, and runtime controls for precision, recall and span length. These are documented capabilities without measured results in the supplied text. The examples demonstrate detection; they do not implement a complete redacted-text workflow.

Using it

requirements

The Python examples use Transformers, with PyTorch in the direct model example. The JavaScript example uses @huggingface/transformers and requests WebGPU with q4 quantization.

Minimum RAM, GPU memory, storage, supported browser versions and dependency versions are unspecified. The reported 50 million active parameters should not be treated as the complete model size: the card reports 1.5 billion parameters in total. Memory requirements at the maximum context length are unknown.

mechanism

An autoregressively pretrained checkpoint is converted into a bidirectional token classifier and trained with supervised classification loss. It labels the input in one forward pass. The architecture has eight transformer blocks, a residual width of 640, grouped-query attention with 14 query heads and two key/value heads, and 128 experts with four selected per token.

Each privacy category has beginning, inside, ending and single-token boundary labels, plus one background label. This produces 33 logits per token, with batched output shape [B, T, 33]. A constrained Viterbi decoder scores complete label sequences and enforces valid span boundaries. Six transition-bias parameters adjust behavior such as entering, continuing and closing spans.

The card specifies a banded attention window of 257 tokens including the current token. This is distinct from the 128,000-token input capacity; accepting a long document does not establish full attention between every pair of tokens.

setup

The simplest documented Python entry point is transformers.pipeline with task token-classification and model openai/privacy-filter. A lower-level example loads AutoTokenizer and AutoModelForTokenClassification with device_map set to auto. The JavaScript example creates a token-classification pipeline with device webgpu and dtype q4, then requests simple aggregation.

The lower-level Python example selects each token's highest-scoring class using argmax. That operation does not implement the constrained Viterbi decoding described elsewhere in the card. The supplied examples do not explain how to enable that decoder or select the advertised operating presets. They also do not pin model or dependency revisions.

example

The supplied JavaScript example processes a sentence containing Harry Potter and harry.potter@hogwarts.edu. Its illustrated output assigns private_person to the name and private_email to the address.

A masking integration could replace those detected spans with chosen placeholders, but that replacement step is absent from the example. The displayed scores describe these illustrated predictions; they do not establish accuracy on other text. The example was not executed.

Assessment & evidence

limitations

The model is a redaction aid, with no anonymization or compliance guarantee. Its trained privacy policy cannot be redefined dynamically at runtime; changing that policy requires fine-tuning. It primarily targets English, and performance may decline on other languages, non-Latin scripts, underrepresented naming conventions and unfamiliar domains. No multilingual scores appear in the supplied text.

Documented failures include missed uncommon names and identifiers, excessive masking of public entities or ordinary words, and fragmented or shifted boundaries in noisy or long text. Novel or syntactically split secrets may be missed, while benign hashes, placeholders and synthetic credentials may be flagged. Both missed information and excessive masking can be costly in sensitive workflows.

reasoning

Two separate choices determine fit: whether the trained privacy definitions match the intended policy, and how aggressively matching spans should be detected. Decoder calibration addresses detection breadth; the card says policy changes require fine-tuning.

This distinction matters because the training policy often preserves context that is not strongly linked to a person. Broader masking may reduce missed information while removing useful context. Local deployment supports keeping inference within an organization's environment, but detection errors still require evaluation and additional privacy measures.

alternatives

The card discusses iterative autoregressive approaches and classifiers based on masked-language-model pretraining as comparison approaches. Its claimed distinction is one-pass labeling after conversion from autoregressive pretraining.

No named competing privacy tools, head-to-head measurements or migration costs are supplied. The evidence does not establish which approach would be faster, more accurate or cheaper for a particular workload.

evidence

The evidence consists of the complete pinned README, including its usage examples, architecture description, license declaration and risk notices. It provides the model author's descriptions and illustrated output, without independent runtime observations.

The linked GitHub repository, hosted demonstration, separate PDF model card and LICENSE file were excluded. Their implementation details, evaluation results and contents cannot be inferred from their links. In particular, the supplied text does not establish which inference paths apply constrained decoding.

Access & freshness

costs

The card provides no prices, infrastructure estimates or measured compute consumption. The cost of local inference, integration, evaluation and optional fine-tuning is unknown. Its license declaration does not establish a total operating cost, and no hosted API pricing is supplied.

rights

The README metadata declares apache-2.0, and the card describes Apache 2.0 licensing as suitable for experimentation, customization and commercial deployment.

The linked LICENSE file is outside the supplied evidence. Its full text, accompanying notices and any file-specific distribution requirements have not been assessed. The available evidence establishes the card's license declaration rather than a complete inventory of licensed artifacts.

freshness

The README was captured on 2026-11-14 at 12:26:56.534 UTC from revision 7ffa9a043d54d1be65afb281eddf0ffbe629385b. That identifies the documentation snapshot; the text does not establish a model release date or software version.

Current model weights, dependency compatibility and linked service availability are unknown. The unpinned model identifiers in the examples do not establish that a later download would reproduce artifacts associated with this documentation snapshot.

actions

Before adoption, compare the eight categories and their intended boundaries with the information that must be removed. Evaluate representative text against human-labeled references, including relevant languages, regional names, mixed formatting and credential patterns. Measure missed spans, excessive masking and boundary errors.

Verify how the chosen inference path applies constrained decoding and exposes operating settings. Measure memory and throughput at realistic document lengths on the intended hardware, record exact model and dependency revisions, and verify the resulting masked text. Use fine-tuning when the trained policy differs from the required policy, with human review paths for high-sensitivity cases.

Evidence for this report

selected-page.txtselected · checked 2026-11-14