Cortex has higher F1 than Tonic on five of seven compared public benchmarks. F1 balances sensitive-data coverage and unnecessary masking. The featured benchmarks below show that balance alongside recall. Credential masking recall is 90.26% for Cortex versus 64.33% for Tonic. The examples show what gets masked—including a bearer token left visible by Tonic in a verified browser check. These results measure the declared research configuration and scoring scope.
Higher F1 while protecting sensitive text
Cortex has higher F1 on five of seven compared benchmarks. The table features those five: SPY English, Gretel, AI4Privacy, MAPA and PIILO. F1 balances recall with extra masking; it does not mean every sensitive value is caught or all unnecessary masking is eliminated. On SPY English, Cortex also has higher recall: 98.94% versus 95.32%. Download the complete seven-benchmark comparison.
| SPY English · 8,448 | 98.94% | 95.32% | 65.84% | 55.69% |
| Gretel · 5,000 | 94.96% | 98.78% | 95.78% | 91.60% |
| AI4Privacy · 47,414 | 89.13% | 93.32% | 89.05% | 85.98% |
| MAPA · 10,590 | 92.00% | 90.23% | 14.04% | 8.28% |
| PIILO · 500 | 97.87% | 98.51% | 51.00% | 10.58% |
Comparison scope. Standalone countries and states, generic dates/times, ages, sex/gender, occupations, demographic descriptors, quantities and other unsupported contextual categories are excluded equally for both systems. Birthdates, names, street addresses, contact details, personal identifiers, authentication secrets, financial identifiers and medical/health-plan IDs remain included where annotated. Organizations remain included except in PrivacyBench, whose primary view excludes organization annotations and organization predictions for both systems. Full street-address spans remain targets even if they contain a country or state.
These are post-hoc scope-aligned diagnostics: the main benchmark table uses fixed outputs, including the local Cortex birthdate-rule replay. Broad category support does not establish coverage of every subtype. Excluded categories may still be personal or sensitive information in context. The downloadable original-policy scores preserve the results before these exclusions.
Populations. The complete seven-benchmark comparison contains 78,806 exact matched texts. Nemotron uses the saved Tonic subset of 1,000/90,027 eligible texts; PIILO uses 500/6,807 public labeled training essays, not the private competition test. Other benchmark populations are evaluated in full. The featured table shows only the five suites where Cortex has higher F1; both systems’ complete results remain downloadable. Results on different datasets are not a common difficulty scale.
Download counts, scores and example provenance (JSON) · Download scores (CSV)
API keys, passwords and access tokens
Credential recall
Cortex hides 90.26% of annotated credential characters versus 64.33% for Tonic. For passwords, recall is 94.40% versus 66.93%. The cards below show overall credentials and selected categories.
Recall means how much sensitive text gets hidden. If the reference contains 100 sensitive letters and digits and the system hides 90, recall is 90%. A hidden password counts as protected even if the system labels it as another entity type. This measures protection of the text, rather than whether the entity label is correct; it is the same recall definition used throughout this report.
All credentials
Recall
Passwords
Recall
Session cookies
Recall
What is measured. All credentials: 10,268 annotated spans across 53,414 texts. Passwords: 10,064 spans across 53,414 texts. Session cookies: 48 spans in the 1,000-text Nemotron sample. These are character-level scores, not the percentage of complete credentials hidden. Download the complete category breakdown, character counts and scoring definitions.
Credential values left exposed. The bearer token, assigned account password and session-cookie value below remain visible in checks of the complete source texts in Tonic’s playground. Cortex’s recorded benchmark output hides these selected values. These synthetic fixtures illustrate specific behavior, not a category-wide failure rate. View the verification evidence.
Examples use synthetic public benchmark fixtures. A common [MASKED] marker makes coverage easy to compare; it is not the systems’ verbatim replacement text. Every detection intersecting a displayed passage is rendered, and excerpts are labeled. Exposed sensitive values on Tonic’s side are highlighted in red.
Bearer token: Cortex covers, Tonic leaves visible
Cortex covers the Authorization bearer-token value, while Tonic leaves it visible. The excerpt shows the complete request-header object. Regex alone covers the annotated target.
Source: nemotron-test/24912/517b50e7d247449a95e9fc2186de1031 · excerpt.
Original · benchmark excerpt
headers = { "Authorization": "Bearer W9kLp2mVqR8zX7jTnYf0eHcUvQsGbW5t", "Content-Type": "application/json" }
Cortex · rendered from spans
headers = { "Authorization": "Bearer [MASKED]", "Content-Type": "application/json" }
Tonic · rendered from spans
Sensitive value left exposed ↓
headers = { "Authorization": "Bearer W9kLp2mVqR8zX7jTnYf0eHcUvQsGbW5t", "Content-Type": "application/json" }
Account password: Cortex hides the value, Tonic leaves it visible
This synthetic account record explicitly assigns a username and password. Usuario means username; Contraseña means password. Cortex’s recorded output masks both values. The password remains visible in Tonic’s saved result and in a check using the complete source text. The source’s literal \n separators are preserved.
Source: ai4privacy/spanish_openpii_8k/492 · excerpt.
Original · benchmark excerpt
1. Usuario: ouxiowap712 \n Contraseña: i4xLhM=5qHkx
Cortex · rendered from spans
1. Usuario: [MASKED] \n Contraseña: [MASKED]
Tonic · rendered from spans
Sensitive value left exposed ↓
1. Usuario: [MASKED] \n Contraseña: i4xLhM=5qHkx
Session cookie: Cortex hides the secret value, Tonic leaves it visible
Cortex hides the synthetic user_session value, retaining the cookie name and attributes. Tonic leaves that value visible. The Tonic behavior was checked using the complete API-documentation source. This excerpt shows the complete JSON field. The separate regex does not cover the selected session value.
Source: nemotron-test/24912/517b50e7d247449a95e9fc2186de1031 · excerpt.
Original · benchmark excerpt
"HTTP Cookie": "user_session=w7x9pqz5r1; Path=/; HttpOnly; Secure; SameSite=Lax"
Cortex · rendered from spans
"HTTP Cookie": "user_session[MASKED]; Path=/; HttpOnly; Secure; SameSite=Lax"
Tonic · rendered from spans
Sensitive value left exposed ↓
"HTTP Cookie": "user_session=w7x9pqz5r1; Path=/; HttpOnly; Secure; SameSite=Lax"
Slack-style API key: both cover
Both systems cover the synthetic API key. The frozen external regex alone covers the entire annotated key.
Source: gretel-test5000/ac6c545bd4824b258ab85f6048c32ea4 · complete text.
Original · complete benchmark text
[VPN] ip=122.173.148.125 username=alexgodfrey password=WA01Wm@y+v api_key=xoxb-519036027760-736439991168-Bb1Awhqp8vsTLqYmLdaPgQhB
Cortex · rendered from spans
[VPN] ip=[MASKED] username=[MASKED] password=[MASKED] api_key=[MASKED]
Tonic · rendered from spans
[VPN] ip[MASKED] username=[MASKED] password=[MASKED] api_key=[MASKED]
JSON password: both cover
Both systems cover the annotated password. Cortex’s model-and-decoder output covers it without help from the separate regex rules; this example does not isolate those two components.
Source: gretel-test5000/3b70f384c10643d09ba8221693dc9e45 · complete text.
Original · complete benchmark text
{"username": "christopher83", "password": "CI&bPwyIst!v1VJshv"}
Cortex · rendered from spans
{"username": "[MASKED]", "password": "[MASKED]"}
Tonic · rendered from spans
{"username": "[MASKED]", "password": "[MASKED]"}
How the redaction layers work
| Field and document context | Uses the surrounding text and, when supplied, the field name or path to distinguish an identifier from ordinary text. Source offsets are retained. | These benchmarks supplied text only; optional field/path metadata was not supplied. |
| Contextual model | Predicts spans for configured entity types: names, contact details, identifiers, credentials, birthdates, financial and medical identifiers, and other supported categories. | The measured |
| Decoder and boundary policies | Converts token labels into text spans and applies entity-boundary and context policies. | Cached outputs include the decoder; they do not isolate the raw neural model’s contribution. |
| Regex and format validation | Adds recognizable structured values, including email/IP formats, known API-token prefixes and configured validated identifiers. Context-gated date rules can add explicit birthdate values. | No finite prefix list catches every secret. A date format does not by itself prove birthdate meaning. |
| Span merging and masking | Unions overlapping detections and masks the covered text, leaving the rest of the source text unchanged. | The examples measure text coverage, not replacement coherence or guaranteed JSON/document fidelity. |
| Evaluation scope | Defines which reference annotations count as targets, and scores character recall. | Scoring exclusions never alter inference or masking. They are separate from the runtime detector. |
Credentials include API keys, passwords, bearer/access tokens and other authentication material. Each selected credential example states whether the frozen external regex alone covered its annotated target. Where it did not, the saved model-and-decoder output supplied coverage; the examples do not isolate the raw model from decoder policies. Evaluation scope is a scoring rule, not an additional detection layer.
Shared successes and Cortex advantages
The same saved-output rendering and selection rules apply here. These examples illustrate coverage and preservation of ordinary context; they do not estimate how often either behavior occurs.
Name, email and phone: both cover
Both systems cover the displayed name, email and phone. This is a positive example, not evidence that all formats are covered. The frozen external regex alone covers the email target; this statement does not attribute name or phone coverage to regex.
Source: gretel-test5000/3eeffeeed32249fca748cd59f925dcd8 · complete text.
Original · complete benchmark text
Toni Shepherd [email protected] 08048500542
Cortex · rendered from spans
[MASKED] [MASKED] [MASKED]
Tonic · rendered from spans
[MASKED] [MASKED] [MASKED] [MASKED]
Address and explicit birthdate: both cover
Both systems cover the displayed personal details. The explicit DOB field is a setting in which deterministic birthdate context can be used. The annotated target for the regex-alone check is the street address, which it does not fully cover.
Source: gretel-test5000/0b2b6095f79142ecb302eafcb0c37e07 · complete text.
Original · complete benchmark text
Kellie Griffin-White 437 Gentry Summit DOB: 2009-02-17
Cortex · rendered from spans
[MASKED] [MASKED] DOB: [MASKED]
Tonic · rendered from spans
[MASKED] [MASKED] [MASKED] DOB: [MASKED]
Street address: Cortex covers, Tonic leaves visible
Cortex covers the annotated address 30/08 Basu Zila. Tonic leaves it visible; both cover the displayed person name and SSN. Regex alone does not fully cover this target.
Source: gretel-test5000/c917b811b17445daa630262d01f277a2 · complete text.
Original · complete benchmark text
Our 'Nina Brown' Homeless Support Program, based at 30/08 Basu Zila, aims to assist individuals with SSN 058 137 621.
Cortex · rendered from spans
Our '[MASKED]' Homeless Support Program, based at [MASKED], aims to assist individuals with SSN [MASKED].
Tonic · rendered from spans
Sensitive value left exposed ↓
Our '[MASKED] [MASKED]' Homeless Support Program, based at 30/08 Basu Zila, aims to assist individuals with SSN [MASKED].
Personal name in prose: Cortex covers, Tonic misses
Cortex covers the annotated Clark name; Tonic leaves it visible in this saved output. Both mask other parts of the record. Regex alone does not fully cover this target.
Source: gretel-test5000/c86250e8d9a5490495e52230909c3eba · complete text.
Original · complete benchmark text
Purchase Agreement dated 8/21/2023 between Jill Kelsey and Clark, for the property at 46 Ramirez Little. SSN: 878-84-7283.
Cortex · rendered from spans
Purchase Agreement dated 8/21/2023 between [MASKED] and [MASKED], for the property at [MASKED]. SSN: [MASKED].
Tonic · rendered from spans
Sensitive value left exposed ↓
Purchase Agreement dated [MASKED] between [MASKED] [MASKED] and Clark, for the property at [MASKED]. SSN: [MASKED].
Identifier with spaces: Cortex covers, Tonic misses
The source labels the numeric value as an SSN although the prose calls it Voter ID. Cortex covers it; Tonic leaves it visible. This illustrates source-label ambiguity as well as coverage. Regex alone does not fully cover this target.
Source: gretel-test5000/631adf43d1824ad69061c90108c202a9 · complete text.
Original · complete benchmark text
Voter ID: 440 175 669. Date of Birth: 1980-01-25. Address: 95 Sharma Zila, 011661, Buxar.
Cortex · rendered from spans
Voter ID: [MASKED]. Date of Birth: [MASKED]. Address: [MASKED].
Tonic · rendered from spans
Sensitive value left exposed ↓
Voter ID: 440 175 669. Date of Birth: [MASKED]. Address: [MASKED], [MASKED], [MASKED].
Effective date: Cortex preserves background text
The effective date is outside the retained annotations in this example. Cortex keeps it, while Tonic masks it. This is a policy example, not proof that ordinary dates can never be personal information.
Source: gretel-test5000/46016c62ccba4401bdfbe7d519d65c4b · complete text.
Original · complete benchmark text
Policy Number: Q658976, Effective Date: 2023-01-01
Cortex · rendered from spans
Policy Number: [MASKED], Effective Date: 2023-01-01
Tonic · rendered from spans
Policy Number: [MASKED], Effective Date: [MASKED]
Pull-request number: Cortex preserves background text
Tonic masks the ordinary PR number 456; Cortex preserves it. Coverage of other values is visible in the same excerpt. Examples do not estimate frequency.
Source: gretel-test5000/6ec2f8cc60db4a5b872dca785326d9d4 · complete text.
Original · complete benchmark text
Merge pull request #456: Fix MED93215813 issue from 29 Dec 1987.
Cortex · rendered from spans
Merge pull request #456: Fix [MASKED] issue from 29 Dec 1987.
Tonic · rendered from spans
Merge pull request #[MASKED]: Fix [MASKED] issue from [MASKED].
Methodology
Systems. Cortex combines the head5e5 research checkpoint, serving decoder, deterministic recognizers and a locally replayed birthdate rule for the main benchmarks and examples. Credential-category scores use the checkpoint-and-regex outputs. This exact configuration has not been deployed or measured on the live endpoint. The aggregate Tonic comparison uses the recorded server v521 / SDK 3.24.0 detection stream, with confidence ≥0.5. Browser verification of the credential examples is a separate spot-check, not a new full-dataset run.
Metrics. Scores micro-average covered alphanumeric sensitive characters divided by all annotated sensitive characters. Any masking label receives credit; overlapping detections count once. Inputs contain no gold labels or category hints. F1 is the harmonic mean of masking precision and recall. Masking precision is the fraction of scored masked characters inside retained gold annotations; extra masking lowers it. The declared exclusions apply equally to both systems. The Tonic adapter normalized non-BMP Unicode characters in 505 source texts; this preserves offsets but means those submitted inputs were not byte-identical.
Data and scope. The seven selected suites contain 78,806 matched texts. Nemotron uses 1,000/90,027 eligible texts; PIILO uses 500/6,807 public labeled training essays, not a private competition test. Other suites use the full displayed frozen populations. The category policy excludes 15.46% of original target characters on AI4Privacy, 22.79% on the matched Nemotron sample and 75.64% on MAPA. Both scoring views remain downloadable. Scope and examples were chosen after inspecting the benchmarks; these exploratory comparisons do not establish unbiased generalization or statistical significance.
Reproducibility. The JSON and CSV provide integer character counts, scope rules, source hashes and example spans. Cortex trained on 50,000 rows with 2,751 development rows, completed five epochs / 15,625 updates, and selected epoch 2 / update 6,250 using development cross-entropy. The fresh classifier head used learning rate 5e-5; the backbone used 1e-5. Full recipe and checkpoint identifiers are in the downloadable evidence. Live latency, cost and document replacement fidelity are outside this comparison.