Manuscript Offprint
arXiv:2610.33839EdgeDeID: A 0.6B Clinical De-identifier Trained Without Real Patient Data
Abstract
De-identifying clinical notes with a hosted language model discloses the information the step is meant to protect. We present EDGEDEID, a 0.6B-parameter decoder-only de-identifier that runs locally and is trained without real patient text: three LLM teachers write synthetic notes, a single labeler re-annotates them into one convention, and the model learns to emit a typed XML schema of the identifiers it finds. On a 100-note synthetic in-domain benchmark with manually verified annotations it reaches 0.994 micro-F1 and leaves no missed identifier in 99% of notes, against 0.857 and 12% for the strongest of eight off-the-shelf systems. Quantized, it runs on CPU in 615 MB. Of three additions to supervised training, only a verifier adapter helps: it separates complete from incomplete outputs of other systems at 0.94 AUROC, whereas reinforcement learning with a recall-weighted reward and a rule-based post-processing layer leave in-domain results unchanged. On MIMIC ICU nursing notes F1 falls to 0.48. The errors follow two properties our synthetic notes lack, telegraphic style and low identifier density, and three hand-written in-context examples recover 0.08 F1 without annotated target data.
1 Introduction
The HIPAA Safe Harbor standard defines de-identification by enumeration: a record counts as de-identified once eighteen categories of identifier have been removed (U.S. Department of Health and Human Services, 2012). Several have no counterpart in the personally identifiable information (PII) taxonomies used for business text: every element of a date except the year, ages over 89, geographic units smaller than a state, medical record and health plan numbers, and device identifiers. These are routine in clinical narrative, and a general-purpose PII filter has no reason to flag them. Commercial privacy filters are described by their developers as data-minimization components, not de-identification systems (de Bourcy et al., 2026), and in our evaluation the strongest of them leaves at least one identifier in 88% of our benchmark notes, mostly in categories its schema has no label for.
Frontier language models de-identify clinical text well (Liu et al., 2023), but using one means sending unredacted records to a third party, which is the disclosure de-identification exists to prevent, or first negotiating a business associate agreement. A model small enough to run where the data lives avoids both, but it makes more mistakes, and its two kinds of mistake differ in cost. Over-redaction reduces the utility of a note, whereas a missed identifier is a disclosure that cannot be undone, and even strong de-identifiers leave some notes re-identifiable (Morris et al., 2025). Recall therefore matters more than precision. We ask how far such a model can go without real training data and without scaling up. Our contributions are:
• EDGEDEID, a 0.6B generative de-identifier trained on multi-teacher synthetic notes relabeled into one convention, without any real PHI. On a 100-note synthetic in-domain benchmark with manually verified annotations it reaches 0.994 micro-F1 and leaves no missed PHI in 99% of notes, against 0.857 and 12% for the best of eight off-the-shelf systems; the same backbone without fine-tuning scores 0.199. Quantized, it runs on a CPU in 615 MB.
• A verifier adapter that judges whether a candidate annotation is complete, reaching 0.94 AUROC on the outputs of nine other systems. Paired tests show that, in-domain, neither GRPO with a recall-weighted reward nor a rule-based detector layer improves a supervised model that already has 0.999 recall, and we explain why a self-assessment tag trained by reward alone is never emitted.
• An analysis of transfer to MIMIC ICU nursing notes (Neamatullah et al., 2008) that scores Safe Harbor identifiers separately. F1 drops to 0.478, below an encoder trained on real i2b2 notes (0.675). Three quarters of the missed patient names and dates fall in notes with an empty or unparseable output, and the failures follow register (writing style) and PHI density rather than clinical content. Three hand-written in-context examples raise F1 by 0.08.
Code and the evaluation harness are available at https://github.com/BardiaKh/EdgeDeID, and the synthetic corpus and model weights at https://huggingface.co/EdgeDeID.
LLMs for de-identification. DeID-GPT showed that a frontier proprietary model can tag PHI without task-specific training (Liu et al., 2023). On real notes, zero-shot GPT-class models seldom flag text that is not PHI but miss a fair share of text that is (Altalla' et al., 2025), and they trail purpose-built systems (Kocaman et al., 2025). Prompts that spell out an institution's categories close much of that gap (Palacios et al., 2026), and LLMs fine-tuned on annotated notes, including the nursing-note corpus we evaluate on, beat encoder baselines (Panchal et al., 2026). Other work adds date normalization (Dai et al., 2025), deployable pipelines (Wu et al., 2025b; Singh et al., 2025), or adversarial anonymization (Staab et al., 2025), and two studies quantify what LLM redaction costs in lost clinical information (Aghakasiri et al., 2025) and in inference cost (Zambare et al., 2026). Nearly all of this work relies on large models reached through an API.
Synthetic data and small models. Because real PHI rarely leaves a hospital, several groups train on generated text. Vakili et al. (2025) trained on text an LLM both wrote and annotated, lost little relative to real data, and found that the annotating model mattered most, which is why we relabel. Kim et al. (2024) used GPT-4 to augment redacted notes, and MedDeID, the closest to our work, trains a compact encoder only on synthetic Dutch notes and approaches a model trained on hospital data (Hellemans et al., 2026). Measures of drift between corpora correlate moderately with how a synthetically trained tagger scores on real text (Cornelius and Rinaldi, 2026). Small models are argued to be the realistic route to clinical NLP when privacy and cost are binding (Garg et al., 2026): LLM anonymizers have been run entirely on hospital hardware (Wiest et al., 2025; Dorémus et al., 2025; Hirsch et al., 2026), and small taggers, often distilled from a larger LLM (Zhou et al., 2024), stay competitive on premises (Gunay et al., 2024; Posada et al., 2026b,a). General-purpose PII filters are also compact (de Bourcy et al., 2026; Zaratiana et al., 2024, 2026) but target web and enterprise text, and an independent evaluation found the OpenAI Privacy Filter weak on medical text (Uppala, 2026), as do we. EDGEDEID differs from these systems in two ways: it is a generative model that writes a typed schema instead of labeling spans, and it never sees real text during training. Our results add a failure case to this literature, which we trace to register and PHI density.
Reinforcement learning and verification. Group Relative Policy Optimization (GRPO) compares each sampled completion with the others in its group and needs no value network (Shao et al., 2024; Guo et al., 2025). After supervised fine-tuning it has improved information extraction (You et al., 2026; Chen et al., 2026) and clinical text classification (Wei et al., 2026), although analyses find that it mostly sharpens behavior the base model already produces (Wu et al., 2025a; Yue et al., 2025) and that the KL penalty limits how far the policy can move (Mroueh, 2025). We know of no prior application to clinical de-identification. LLM judges are poor at spotting omissions in clinical notes unless the task is broken down for them (Fox et al., 2026); our verifier trains a dedicated adapter for this instead.
3 Method
Task and output. A clinical note x contains a set of PHI spans , where is a substring of x and one of ten types (NAME, AGE, DATE, PLACE, ADDRESS, PHONE, EMAIL, ID, URL, DEVICE) chosen to cover the direct identifiers of Safe Harbor (U.S. Department of Health and Human Services, 2012). The model writes as one typed XML object, , in which a name carries its surface variations, a date its original and normalized forms, and an id a subtype (Appendix A). The training reward, the QC layer, and the metric all read this object, so an output is usable only if it parses. We evaluate detection and leave masking and surrogate generation out of scope.
Figure 1 gives an overview. Training builds a synthetic corpus, fine-tunes a small model on it with supervised fine-tuning (SFT), and optionally continues with GRPO. At inference, a rule-based QC layer and a learned verifier can be placed after the model.
3.1 Synthetic Data
Each training note is written by one of three LLM teachers with distinct styles, Claude 3.5 Haiku (Anthropic, 2024), DeepSeek-V3 (DeepSeek-AI, 2024), or Hermes 3 405B (Teknium et al., 2024), which receives a target length and a list of PHI to include and returns the note with its own annotation. The teachers label the same spans differently and have their own blind spots (Hermes 3, for example, tends to miss dates written as DD-MM-YY), so we do not train on their labels. Instead, we fine-tune Qwen3-1.7B-Base (Yang et al., 2025) on a small set of teacher-written notes whose labels were cleaned with rules and heuristics, and use it as a first-pass labeler that re-annotates the whole corpus, replacing three conventions with one. After dropping malformed rows, we apply 37 augmentations that change how an entity is written but not what it refers to, such as the format of a date, the spelling of a name, or the separators in a phone number. The final corpus has 25,972 training notes and a held-out synthetic split of 404.
3.2 Supervised Fine-Tuning
We fine-tune Qwen3-0.6B-Base (Yang et al., 2025) on a plain-text template with three blocks, <instructions>, <examples>, and <note>. The instructions describe the task and the schema. Worked examples appear in 12% of training prompts, so the model learns the task both with and without them and can take few-shot examples at inference. SFT, GRPO, and inference share this template, and the causal language-modeling loss is applied only to the target XML.
Schema-aware tokenizer extension. The base tokenizer splits schema tags such as </phi_entities> into several sub-word pieces. We add 69 tokens for the container, content, and attribute tags of the schema and initialize each new embedding to the mean of the existing ones. Over the training set this shortens a sample by 15.3% and the annotation, the only text the model generates, by 37.5% (536 to 335 tokens on average), removing more than a third of the decoding steps per note.
3.3 GRPO with a Structure-Gated Reward
GRPO (Shao et al., 2024) continues training from the SFT checkpoint. For each prompt the policy samples completions, and each completion's advantage is its reward standardized against the others for the same prompt. The reward for a completion c is
a weighted sum of four terms in [0, 1]. Presence is the fraction of tagged entities that appear verbatim in the note, which penalizes invented PHI. Completeness is entity-level against the reference. Calibration rewards the self-assessment tag (Section 3.4): it compares the model's claim, complete or incomplete, with whether the annotation really is complete, and a false claim of completeness and a missing tag both earn zero. Length gives full credit up to 1,024 tokens. No term needs human labels or an LLM judge (Appendix C). A KL penalty to the SFT policy anchors training, which runs for one pass over the training set.

Figure 1: Overview of EDGEDEID. The solid boxes are the configuration we recommend, which uses SFT alone. The dashed boxes are the three additions we tested on top of it: GRPO with its self-assessment tag (Section 3.3), and the rule-based QC layer and the learned verifier (Section 3.4).
| Self-assess. tag | QC layer | Verifier | |
|---|---|---|---|
| Judge | the extractor | rules and spaCy NER | LoRA adapter |
| When | same pass | after generation | second pass |
| Training | GRPO reward | none | SFT, then GRPO |
| Result | verdict | edited annotation | P(incomplete), review |
| Other systems | no | yes | yes |
Table 1: The three reliability mechanisms. “Other systems”: whether the mechanism can be applied to the output of another de-identifier.
3.4 Reliability Mechanisms
A missed identifier is the costly error, so we test three ways of catching one once the model has written its annotation. They differ in who judges the annotation, when, and what happens to it (Table 1).
Self-assessment tag. The extractor judges its own annotation in the same generation pass, by writing <qc_status>complete</qc_status> or incomplete after the closing </phi_entities>. The tag is absent from the supervised targets, so the calibration term of the GRPO reward (Section 3.3) is its only training signal. A note the model marks incomplete is flagged for review. The tag needs no extra model and no extra pass.
Rule-based quality-control (QC) layer. A deterministic post-processor edits the annotation in three steps. Repair turns malformed XML into a well-formed annotation, falling back to a recover- ing parser that keeps every tag it can read. Pattern detection runs regular expressions over the note for the six types with a fixed surface form (email, phone, URL, id, age, and date, accepting only calendar-valid numeric dates) and adds any match the model left untagged, so recall on these types cannot fall below that of the patterns. The NER fallback runs spaCy to find names, places, and addresses, skipping abbreviations, generic institution words, and mostly upper-case notes. Because it is slow and imprecise, it runs only on notes that look unreliable: those whose XML could not be repaired, in which pattern detection added three or more spans, or that the self-assessment tag marks incomplete (Appendix E). The layer needs no training, only adds spans, and can be applied to any system's output.
Learned verifier. The verifier is a second pass that judges an annotation without editing it. A LoRA adapter (Hu et al., 2022) on the SFT model reads a note and a candidate annotation from any system and returns a verdict in the same format as the self-assessment tag. The two verdicts differ at their first token, so one forward pass gives , and annotations above a threshold go to human review. The verifier thus moves self-assessment out of the extractor's own generation, where the tag must be learned at the end of a long output, into a pass whose only output is the verdict. The adapter is switched off during extraction, so the extractor is unchanged. Its training candidates come only from synthetic train-ing notes: gold annotations corrupted by dropping entities, truncating spans, deleting categories, or adding spurious entities, together with the outputs of four baseline systems (Appendix B). Each candidate is labeled by the zero-leak rule, and the adapter is trained with SFT and then with GRPO on its verdict.
4 Experimental Setup
4.1 Evaluation Data
In-domain benchmark. Our primary test set is 100 synthetic clinical notes, generated separately from the training corpus, whose annotations were manually verified and corrected so that every gold value appears verbatim in its note. They match the style of the training data, so we treat results on them as an upper bound.
MIMIC ICU notes. For out-of-domain evaluation we use the PhysioNet de-identification corpus (Neamatullah et al., 2008; Goldberger et al., 2000): 2,434 ICU nursing notes whose original identifiers were replaced with realistic surrogates, with 1,778 human-annotated PHI spans. We score against this human annotation, not against the output of the rule-based de-identifier distributed with it (Appendix H). About 60% of the notes contain no PHI, so we do not report zero-leak here. The annotators used a broader definition of PHI than HIPAA, which adds clinician names and years (Neamatullah et al., 2008). By our count only 823 of the gold spans are Safe Harbor identifiers of a patient or relative, and 593 are clinician names (Appendix H), so we also report recall on the Safe Harbor spans alone.
4.2 Baselines
We run eight local off-the-shelf systems as a site without annotated data would, with the developers' default configurations and labels mapped to our types (Appendix L): the pattern and NER tools Presidio (Microsoft, 2026) and spaCy (Honnibal et al., 2020), the open-vocabulary tagger GLiNER (Zaratiana et al., 2024), the clinical encoders Stanford-deid (Chambon et al., 2023), RoBERTa-i2b2 and BERT-i2b2 (OBI-ML, 2022), and OpenMed-PII (Panahi, 2025), and the general-purpose OpenAI Privacy Filter (OPF) (de Bourcy et al., 2026). Zero-shot Qwen3-0.6B-Base with our prompt is a lower bound at the same model size.
4.3 Metrics and Implementation
We match typed entities by case-insensitive string comparison within each note. A gold entity counts as found only when a prediction of the same type contains all of it, since a partly covered identifier still leaks. Precision is more lenient: a prediction is correct if it overlaps a gold entity in either direction. We report micro-averaged precision, recall, and F1; macro-F1 over the categories each system can produce; , the F-score with , which weights recall above precision; the zero-leak rate, the share of notes with no missed gold entity; and the XML parse rate. Our own configurations are compared with a paired bootstrap over notes (1,000 resamples, 95% intervals). All EDGEDEID results use greedy decoding that stops at the closing </phi_entities> tag. Each configuration was trained once with a fixed seed, so the intervals reflect resampling of the test set, not training variance. Appendix B lists hyperparameters and compute.
5 Results
5.1 In-Domain Benchmark
Table 2 compares all systems on the benchmark. The supervised model reaches 0.994 F1 and 0.999 recall and misses no PHI in 99 of the 100 notes. The best external system, the 1.5B-parameter OPF, reaches 0.857 F1 with a zero-leak rate of 0.12, and no external system has recall above 0.76. Zero-shot, the same base model scores 0.199 F1 and produces parseable output for only 27% of notes, so training accounts for both the accuracy and the output format. EDGEDEID scores at least 0.92 F1 on every type (Appendix G). The external systems do well on types with a regular surface form, such as emails, and poorly on types that depend on context; OPF's eight categories (de Bourcy et al., 2026) cover no age, place, or device, so every note containing one is a leak. The comparison favors EDGEDEID, because the benchmark is in its domain and in no baseline's. Section 5.3 tests the reverse.
5.2 Additions to the Supervised Model
On the benchmark, the supervised model already reaches 0.999 recall and 0.990 precision, which leaves little room for improvement. Of the three additions we test, only the learned verifier contributes a capability that the supervised model lacks (Table 3).
| System | Params (M) | P | R | F1 | Macro-F1 | Zero-leak | Parse | |
|---|---|---|---|---|---|---|---|---|
| OPF | 0.983 | 0.760 | 0.857 | 0.796 | 0.852 | 0.12 | 1.00 | |
| GLiNER | 195.2 | 0.916 | 0.681 | 0.782 | 0.718 | 0.617 | 0.05 | 0.99 |
| Presidio | - | 0.764 | 0.569 | 0.652 | 0.600 | 0.545 | 0.05 | 1.00 |
| Stanford-deid | 108.9 | 0.646 | 0.554 | 0.597 | 0.570 | 0.366 | 0.02 | 1.00 |
| spaCy | - | 0.764 | 0.459 | 0.573 | 0.499 | 0.514 | 0.02 | 0.99 |
| OpenMed-PII | 434.1 | 0.672 | 0.345 | 0.456 | 0.382 | 0.390 | 0.00 | 1.00 |
| RoBERTa-i2b2 | 354.4 | 0.785 | 0.299 | 0.433 | 0.341 | 0.412 | 0.00 | 1.00 |
| BERT-i2b2 | 107.8 | 0.850 | 0.224 | 0.355 | 0.263 | 0.203 | 0.00 | 1.00 |
| Qwen3-0.6B-Base (0-shot) | 596.0 | 0.586 | 0.120 | 0.199 | 0.142 | 0.132 | 0.02 | 0.27 |
| EDGEDEID (SFT) | 596.0 | 0.990 | 0.999 | 0.994 | 0.997 | 0.986 | 0.99 | 1.00 |
| + QC | 596.0 | 0.989 | 0.999 | 0.994 | 0.997 | 0.985 | 0.99 | 1.00 |
| EDGEDEID (GRPO) | 596.0 | 0.990 | 0.999 | 0.994 | 0.997 | 0.986 | 0.99 | 1.00 |
| + QC | 596.0 | 0.989 | 0.999 | 0.994 | 0.997 | 0.985 | 0.99 | 1.00 |
Table 2: Results on the 100-note in-domain benchmark. External systems are sorted by F1. Every system is scored with the protocol of Section 4.3, and a category a system cannot produce still counts against its recall and zero-leak rate. Parse is the share of outputs that parse after conversion to our schema. Bold marks the best value in each column. Mixture of experts with about 50M active parameters.
GRPO. GRPO left the benchmark predictions unchanged, so all paired differences from SFT are zero (lower block of Table 2; Appendix F). The two models differ only on the MIMIC nursing notes (Section 5.3).
Self-assessment tag. Neither the SFT nor the GRPO model produced the tag in any output, including when the GRPO model was prompted with its own training instructions, which make the tag mandatory. The SFT targets end at </phi_entities>, so almost no sampled completion contained the tag, and a term that is zero for every completion in a group contributes nothing to the group-standardized advantage. The calibration term therefore had no effect during training (Appendix D).
QC layer. The QC layer brought no measurable benefit. Every output already parsed, no note met the criteria for escalation to the NER pass, and pattern detection added a single entity, which was not PHI. Precision changed by -0.001, and all other metrics were unchanged (Appendix E). Because SFT and GRPO produce identical annotations on the benchmark, these results apply to both models.
Verifier. Trained only on synthetic candidates, the SFT adapter separates complete from incomplete outputs of the eleven systems on the benchmark at 0.987 AUROC (Table 3). Most complete outputs in this pool are EDGEDEID's own, and on the nine other systems alone the AUROC is 0.938. The hardest case is OPF, whose incomplete annotations miss whole categories while keeping near-perfect precision: on its outputs alone the adapter reaches 0.789, below the base model without an adapter (0.819). At the reward-optimal threshold the adapter flags 75% of the outputs, which contain 93% of the incomplete ones (Appendix J). A GRPO stage on the verdict leaves AUROC unchanged and worsens calibration (ECE 0.139 → 0.213). Because EDGEDEID's own benchmark outputs include only one incomplete note in 100, the benchmark cannot measure the verifier's value as a self-check.
| Verifier | Synth. val | Benchmark | MIMIC |
|---|---|---|---|
| Zero-shot (no adapter) | 0.537 | 0.600 | 0.658 |
| SFT adapter | 0.813 | 0.987 | 0.661 |
| SFT + GRPO adapter | 0.809 | 0.989 | 0.661 |
Table 3: AUROC of the verifier for detecting incomplete annotations. Synth. val: 800 held-out synthetic candidates. Benchmark: outputs of the 11 systems of Table 2 on the 100 notes, 80% of them incomplete. MIMIC: outputs of 11 systems on 2,434 notes, 18% of them incomplete.
5.3 Out-of-Domain: MIMIC ICU Notes
Table 4 applies the same protocol to MIMIC ICU nursing notes, which do not resemble our synthetic notes. Here the SFT model reaches 0.478 F1, against 0.675 for RoBERTa-i2b2, which was trained on real i2b2 notes much closer to this distribution. Together with Table 2, this shows that each system performs best on text resembling its training data and that none is robust across both registers. On the Safe Harbor spans RoBERTa-i2b2 remains first, and the QC layer raises SFT's Safe Harbor recall from 0.666 to 0.729, at a cost in precision.
| System | P | R | F1 | SH-R | Leak |
|---|---|---|---|---|---|
| RoBERTa-i2b2 | 0.597 | 0.777 | 0.675 | 0.854 | 87 |
| Stanford-deid | 0.445 | 0.654 | 0.529 | 0.362 | 281 |
| BERT-i2b2 | 0.616 | 0.458 | 0.525 | 0.266 | 314 |
| GLiNER | 0.387 | 0.614 | 0.475 | 0.599 | 201 |
| OPF | 0.539 | 0.331 | 0.410 | 0.298 | 314 |
| OpenMed-PII | 0.246 | 0.564 | 0.342 | 0.756 | 138 |
| Presidio | 0.065 | 0.514 | 0.115 | 0.574 | 222 |
| spaCy | 0.034 | 0.530 | 0.063 | 0.514 | 236 |
| Qwen3-0.6B (0-shot) | 0.007 | 0.042 | 0.012 | 0.046 | 375 |
| EDGEDEID (SFT) | 0.407 | 0.580 | 0.478 | 0.666 | 160 |
| + QC | 0.280 | 0.626 | 0.387 | 0.729 | 148 |
| few-shot (k=3) | 0.563 | 0.561 | 0.562 | 0.622 | 181 |
| EDGEDEID (GRPO) | 0.518 | 0.528 | 0.523 | 0.598 | 195 |
| few-shot (k=3) | 0.606 | 0.607 | 0.607 | 0.663 | 170 |
| few-shot + QC | 0.597 | 0.621 | 0.609 | 0.699 | 164 |
Table 4: MIMIC ICU nursing notes (2,434 notes) scored against the human gold standard. External systems are sorted by F1 and followed by our configurations, which are zero-shot unless marked few-shot (three handwritten example notes in the prompt); + QC adds the rule-based layer. SH-R is recall on the 823 Safe Harbor spans, where a span counts as caught if a prediction of any type covers it. Leak is the number of the 399 notes containing Safe Harbor PHI in which at least one such span is missed (lower is better). Best value per column in bold, second best underlined.
Most misses are whole-note failures. Of the 713 patient and relative names and dates, the SFT model misses 200. For 155 of these, the output for the whole note was empty (103) or unparseable (52), which never occurs on the benchmark; in notes with a well-formed annotation the miss rate is (Table 16). The training notes, like the benchmark, are dense in PHI (10.8 mentions per 1,000 characters) and introduce it explicitly. MIMIC notes carry , of them are mostly upper case, and of their dates are a bare month and day. Small controlled edits ( each) are consistent with this account: prepending a “Patient: name” header recovers of missed names and keeping only the sentence that contains the target recovers , whereas title-casing the name recovers . Register noise applied to benchmark notes costs far less (Appendix I).
False positives are register errors. The model reads clinical shorthand as identifiers. It tags “Aline” (an arterial line), “Swan” (a Swan-Ganz catheter), and “Foley” as names, and it treats shift boundaries (“7a-7p”), military times (“2030”), and numeric settings (“10/5”) as dates. Differences in annotation convention explain little of the loss: ignoring entity type and discarding predicted ages under 90, which MIMIC does not annotate, raises SFT precision only from 0.407 to 0.454.
In-context examples recover part of the gap. Because the template accepts worked examples (Section 3.2), part of the register gap can be addressed at inference time without retraining. With three short hand-written example notes in the prompt, F1 rises by 0.083 for SFT (0.478 → 0.562) and by 0.084 for GRPO (0.523 → 0.607), both significant (Appendix F); with the QC layer, GRPO reaches 0.609, second only to RoBERTa-i2b2. For SFT the gain is in precision (0.407 → 0.563). GRPO gains in both precision, reaching 0.606, above RoBERTa-i2b2 (0.597), and recall (0.528 → 0.607), consistent with the examples correcting the register errors above. Safe Harbor recall rises for GRPO (0.598 → 0.663) but falls for SFT (0.666 → 0.622), which returns an empty annotation for more notes when given the examples.
GRPO and the reliability mechanisms on ICU notes. GRPO trades recall for precision on MIMIC (-0.052 and +0.112, both significant; Appendix F), which raises F1 to 0.523 but leaves more Safe Harbor spans uncovered. The self-assessment tag does not appear here either. The QC layer moves the other way. On SFT it raises Safe Harbor recall from 0.666 to 0.729 and reduces the notes with a missed Safe Harbor span from 160 to 148 (for GRPO, 0.598 to 0.650 and 195 to 185), but SFT precision falls from 0.407 to 0.280: the layer adds 1,376 entities, of which 141 match a gold span. Nearly all of them come from the repair step, which recovers the tags of the 2.6% of outputs that do not parse; pattern detection adds 33 entities, and the NER fallback runs on one note. The verifier reaches an AUROC of 0.661, no better than the base model without an adapter (0.658; Table 3), since it shares the extractor's backbone and training register. Unlike in-context examples, neither mechanism corrects the register errors themselves.
5.4 Efficiency
Table 5 reports single-note latency. Because it writes its output token by token, EDGEDEID is one to two orders of magnitude slower than the encoder taggers, even though the schema tokens shorten each annotation by more than a third (Section 3.2). Served with vLLM (Kwon et al., 2023) on one GPU, it takes 0.5 s per note and processes 31 notes per second under 100 concurrent requests.
| System | GPU | CPU | RSS |
|---|---|---|---|
| Stanford-deid | 8 | 124 | 1,222 |
| BERT-i2b2 | 9 | 119 | 1,233 |
| RoBERTa-i2b2 | 14 | 335 | 2,118 |
| GLiNER | 18 | 192 | 2,418 |
| OpenMed-PII | 26 | 476 | 2,285 |
| OPF | 24 | 12,413 | 4,778 |
| Presidio | - | 51 | 1,536 |
| Ours, PyTorch | 3,990 | 29,484 | 4,248 |
| Ours, vLLM (bf16) | 511 | - | - |
| Ours, llama.cpp (Q4) | - | 3,931 | 615 |
Table 5: Median latency in ms per note (20 benchmark notes, processed one at a time after warm-up) on an NVIDIA L40S GPU and on 8 threads of an AMD EPYC 9354 CPU, with peak resident memory in MB for the CPU run. “Ours” is EDGEDEID (SFT); baselines run in PyTorch. Q4 is 4-bit (Q4_K_M) GGUF quantization. The CPU host was shared, so CPU figures are conservative.
Quantized to 4 bits and run with llama.cpp on eight CPU threads, it takes 3.9 s per note and 615 MB of memory, the smallest footprint in the table, against 12.4 s for OPF on the same CPU. Quantization barely changes accuracy: the 4-bit model scores 0.994 F1 with a zero-leak rate of 0.98, against 0.99 at full precision (Appendix K).
6 Discussion
Small models trained on synthetic data. General-purpose PII filters are not a substitute for a model trained on the Safe Harbor categories. The strongest, a 1.5B model with near-perfect precision, left an identifier in 88% of benchmark notes, mostly in categories it has no label for. Fine-tuning a 0.6B model on synthetic notes alone closed that gap on the in-domain benchmark without real PHI at any stage, and the result runs on hardware an institution already owns. We see this as a proof of concept: multi-teacher generation, consistent relabeling, and a typed output schema could extend to other note types, languages, or identifier definitions by changing the generator prompts and the schema.
Register and PHI density. Our error analysis attributes the drop on MIMIC to the form of the notes rather than their clinical content, and most missed names and dates fall in notes that received no usable annotation. Hand-written in-context examples and context-restoring edits both recover part of the loss, and both point to the same remedy at training time: synthetic notes across a wider range of registers and PHI densities, including notes that contain no PHI.
Reinforcement learning. In-domain, nearly every sampled completion received the same reward, and GRPO left the model unchanged; on MIMIC, where there was room to improve, it moved the model toward precision. This is consistent with reports that reinforcement learning mainly amplifies behavior the base policy already produces (Wu et al., 2025a; Yue et al., 2025) and that a 0.5B base model does not acquire the reasoning behavior that larger models learn through the same procedure (Pan et al., 2025). At this scale it adjusts how the model answers more than what it can detect.
Three reliability mechanisms. A self-assessment tag that the extractor must learn to write at the end of its own output never appeared, because a reward on a behavior the policy never samples gives GRPO nothing to amplify. Posed instead as a second pass whose only output is the verdict, self-assessment became learnable (0.94 AUROC on other systems' in-domain outputs), although it did not transfer to MIMIC. The rule-based QC layer is best treated as an optional high-recall mode for sites that review the output: it adds nothing in-domain, but on MIMIC it raised Safe Harbor recall from 0.666 to 0.729, mostly by recovering malformed outputs, at a cost of 0.13 in precision.
7 Conclusion
We presented EDGEDEID, a 0.6B generative de-identifier trained only on synthetic clinical notes. General-purpose PII detectors, including a 1.5B privacy filter, miss identifiers that clinical de-identification must remove, whereas fine-tuning a small model on synthetic data reaches 0.994 F1 on in-domain notes and runs locally on a CPU in 615 MB. On MIMIC ICU notes performance drops, which we trace to telegraphic register and low PHI density, and a few hand-written in-context examples recover part of the loss without annotated data. Reinforcement learning added little to a supervised model already near its ceiling. These results support synthetic-data fine-tuning of small models as a practical route to local de-identification and identify the registers and PHI densities covered by synthetic data as the main target for future work.
Limitations
Training data and models. EDGEDEID is trained only on synthetic notes from three LLM teachers, so its coverage is bounded by what those teachers write, and its performance drops on telegraphic, PHI-sparse text such as MIMIC ICU notes (Section 5.3). We used one backbone family at one size, together with the base and teacher models available at the time of the study; newer or larger models may behave differently. We did not ablate the pseudo-labeling step or the tokenizer extension, and we did not train an encoder tagger on our synthetic corpus, so we cannot say whether a generative model is the best use of this data. An encoder would be faster at inference.
Reinforcement learning. Our GRPO results come from one reward design applied to a strong supervised model, with one run per setting. At 0.6B parameters, reinforcement learning may mainly adjust output style and format rather than underlying capability (Pan et al., 2025; Yue et al., 2025), so these findings may not hold for larger models.
Evaluation. Our in-domain benchmark is small (100 notes), synthetic, and saturated for our models. The i2b2/UTHealth corpora, the standard benchmark for this task, were not accessible to us, so we could not report results on them. MIMIC ICU notes are therefore our only real-text evaluation; they cover one note type from one institution, exercise seven of our ten categories, and are closer to the training data of the i2b2 baselines than to ours. Our Safe Harbor classification of their gold spans is rule-based and is not a legal determination. Prior work often reports token- or character-level scores above 98% (Dernoncourt et al., 2017; Norgeot et al., 2020), but most characters in a clinical note are not PHI, so such scores stay high even when whole identifiers are missed. We instead score entities under a recall-first, per-note protocol that counts an identifier as protected only when it is fully covered; this is closer to how a de-identifier is used, but our numbers are not directly comparable with those reported earlier. We wrote the QC rules while examining errors on our evaluation data, including MIMIC, and a site would adjust them to its own notes. Each configuration is a single training run, all work is in English, the controlled-edit experiments use 25 examples each, and latency was measured on a shared server rather than a consumer device.
Scope of the privacy claim. zero-leak measures residual PHI against a reference annotation. It does not guarantee protection against re-identification, since a note may still be re-identifiable from quasi-identifiers (Morris et al., 2025). We evaluate detection only and do not generate surrogates.
Ethical Considerations
Training uses only synthetic notes written by language models, and no patient record was used for training or for the in-domain benchmark. The only clinical corpus we use is the PhysioNet de-identification corpus of MIMIC ICU notes (Neamatullah et al., 2008), in which the original identifiers were replaced by surrogates before release. We obtained it under the PhysioNet data use agreement, processed it only on local hardware, never sent it to an external API, and do not redistribute it.
EDGEDEID reduces the manual effort of de-identification, but it does not guarantee anonymity and does not replace the legal and institutional safeguards that govern the release of clinical data. Output intended for release should be reviewed by a person and, where required, undergo expert determination (U.S. Department of Health and Human Services, 2012), and the model should be validated on an institution's own notes before use. Because it runs locally, sensitive text need not leave the institution.
References
Kiana Aghakasiri, Noopur Zambare, JoAnn Thai, Carrie Ye, Mayur Mehta, J. Ross Mitchell, and Mohamed Abdalla. 2025. Not what the doctor ordered: Surveying LLM-based de-identification and quantifying clinical information loss. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 32175–32191. Association for Computational Linguistics.
Bayan Altalla', Sameera Abdalla, Ahmad Altamimi, Layla Bitar, Amal Al Omari, Ramiz Kardan, and Iyad Sultan. 2025. Evaluating GPT models for clinical note de-identification. Scientific Reports, 15(1):3852.
Anthropic. 2024. Claude 3.5 Haiku. https://www.anthropic.com/news/3-5-models-and-computer-use. Model claude-3-5-haiku-20241022.
Pierre J. Chambon, Christopher Wu, Jackson M. Steinkamp, Jason Adleberg, Tessa S. Cook, and Curtis P. Langlotz. 2023. Automated deidentification of radiology reports combining transformer and “hide in plain sight” rule-based methods. Journal of the American Medical Informatics Association, 30(2):318–328.
Meixuan Chen, Hehan Li, Ruizhi Zhao, Xin Lu, Peizhi Xu, Liwei Qian, Meifang Li, Shuanglong Li, Hanmeng Liu, Xin Pei, and Yanbiao Ma. 2026. NE-R1: Enhancing named entity recognition model via reinforcement learning. Preprint, arXiv:2609.02366. To appear at EMNLP 2026.
Joseph Cornelius and Fabio Rinaldi. 2026. Measuring the gap: correlating synthetic-to-real drift with PHI de-identification performance. Genomics & Informatics, 24(1).
Hong-Jie Dai, Tatheer Hussain Mir, Ching-Tai Chen, Chien-Chang Chen, Hao-Ping Yang, Chung-Hong Lee, Yi-Yun Chou, Yu-Chin Teng, Shalini Gupta, Omkar Panchal, Divyabharathy Ramesh Nadar, Wei-Hsiang Liao, Yu-Chuan Lin, Zi-Rui Zhao, Richard Tzong-Han Tsai, Yung-Chun Chang, and Jitendra Jonnagaddala. 2025. Leveraging large language models for the deidentification and temporal normalization of sensitive health information in electronic health records. npj Digital Medicine, 8(1).
Charles de Bourcy, Sahra Ghalebikesabi, Avi Schwarzschild, Alex Gorbachev, Mihai Maruseac, Annie Chu, Vol Kyrylov, Tong Mu, Ally Bennett, Andy Nguyen, Casey Meehan, Jessica Gan Lee, Shane Bauer, Harold Nguyen, Rodolpho Eckhardt, Yuqi Liu, Charlie Oxborough, Marco Rougeth, Omar Chedid, and 6 others. 2026. Model card for OpenAI privacy filter. Preprint, arXiv:2608.18274.
DeepSeek-AI. 2024. DeepSeek-V3 technical report. Preprint, arXiv:2412.19437.
Franck Dernoncourt, Ji Young Lee, Özlem Uzuner, and Peter Szolovits. 2017. De-identification of patient notes with recurrent neural networks. Journal of the American Medical Informatics Association, 24(3):596–606.
Tobias Deußer, Lorenz Sparrenberg, Armin Berger, Max Hahnbück, Christian Bauckhage, and Rafet Sifa. 2025. A survey on current trends and recent advances in text anonymization. In 2025 IEEE 12th International Conference on Data Science and Advanced Analytics (DSAA), pages 1–9. IEEE.
Océane Dorémus, Dylan Russon, Benjamin Contrand, Ariel Guerra-Adames, Marta Avalos-Fernandez, Cédric Gil-Jardiné, and Emmanuel Lagarde. 2025. Harnessing moderate-sized language models for reliable patient data deidentification in emergency department records: Algorithm development, validation, and implementation study. JMIR AI, 4:e57828.
Sebastian Fox, Luke Markham, Ryan Lail, and Michael Karotsieris. 2026. LLM judges verify presence, not absence: Omission blindness in AI clinical notes and what recovers it. Preprint, arXiv:2608.31016.
Muskan Garg, Shaina Raza, Shebuti Rayana, Xingyi Liu, and Sunghwan Sohn. 2026. The rise of small
language models in healthcare: A comprehensive survey. Computer Science Review, 62:100999.
Ary L. Goldberger, Luis A. N. Amaral, Leon Glass, Jeffrey M. Hausdorff, Plamen Ch. Ivanov, Roger G. Mark, Joseph E. Mietus, George B. Moody, Chung-Kang Peng, and H. Eugene Stanley. 2000. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation, 101(23):e215–e220.
Murat Gunay, Bunyamin Keles, and Raife Hizlan. 2024. LLMs-in-the-loop part 2: Expert small AI models for anonymization and de-identification of PHI across multiple languages. Preprint, arXiv:2412.10918.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. 2025. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645:633–638.
Stig Hellemans, Tom Stroobants, Elyne Scheurwegs, Pieter Meysman, Philippe G. Jorens, and Kris Laukens. 2026. MedDeID enables locally governed clinical-text de-identification from real or synthetic training data. Preprint, arXiv:2609.10049.
Anja Hirsch, Foo Wei Ten, Kyle S. Krüger, Robin C. Geyer, Tobias Röschl, Matthias I Gröschel, Paul Rostin, Roland Eils, Martin Spott, Fabian Prasser, Alexander Meyer, and Julian Madrid. 2026. The multimodal anonymizer: a fully local multi-agent AI system for medical data deidentification. medRxiv.
Matthew Honnibal, Ines Montani, Sofie Van Landeghem, and Adriane Boyd. 2020. spaCy: Industrial-strength natural language processing in Python. Zenodo.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR).
Lavender Y. Jiang, Xujin Chris Liu, Kyunghyun Cho, and Eric K. Oermann. 2026. Paradox of de-identification: A critique of HIPAA safe harbour in the age of LLMs. Preprint, arXiv:2602.08997.
Alistair E. W. Johnson, Lucas Bulgarelli, and Tom J. Pollard. 2020. Deidentification of free-text medical records using pre-trained bidirectional transformers. In Proceedings of the ACM Conference on Health, Inference, and Learning, pages 214–221. ACM.
Woojin Kim, Sungeun Hahm, and Jaejin Lee. 2024. Generalizing clinical de-identification models by privacy-safe data augmentation using GPT-4. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 21204–21218. Association for Computational Linguistics.
Veysel Kocaman, Hasham Ul Haq, and David Talby. 2023. Beyond accuracy: Automated de-identification of large real-world clinical text datasets. Preprint, arXiv:2312.08495. Extended abstract presented at the Machine Learning for Health (ML4H) Symposium 2023.
Veysel Kocaman, Muhammed Santas, Yigit Gul, Mehmet Butgul, and David Talby. 2025. Can zero-shot commercial APIs deliver regulatory-grade clinical text DeIdentification? Preprint, arXiv:2503.20794. Text2Story Workshop at ECIR 2025.
Rachel Kuo, Andrew A.S. Soltan, Ciaran O'Hanlon, Alan Hasanic, David A. Clifton, Gary Collins, Dominic Furniss, and David W. Eyre. 2025. Benchmarking transformer-based models for medical record de-identification in a single center multi-specialty evaluation. iScience, 28(12):113732.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pages 611–626. ACM.
Kahyun Lee, Nicholas J. Dobbins, Bridget McInnes, Meliha Yetisgen, and Özlem Uzuner. 2021. Transferability of neural network clinical deidentification systems. Journal of the American Medical Informatics Association, 28(12):2661–2669.
Zhengliang Liu, Yue Huang, Xiaowei Yu, Lu Zhang, Zihao Wu, Chao Cao, Haixing Dai, Lin Zhao, Yiwei Li, Peng Shu, Fang Zeng, Lichao Sun, Wei Liu, Dinggang Shen, Quanzheng Li, Tianming Liu, Dajiang Zhu, and Xiang Li. 2023. DeID-GPT: Zero-shot medical text de-identification by GPT-4. Preprint, arXiv:2303.11032.
Microsoft. 2026. Presidio: Data protection and de-identification SDK. https://github.com/microsoft/presidio.Software.
John X. Morris, Thomas R. Campion, Sri Laasya Nutheti, Yifan Peng, Akhil Raj, Ramin Zabih, and Curtis L. Cole. 2025. DIRI: Adversarial patient reidentification with large language models for evaluating clinical text anonymization. In AMIA Joint Summits on Translational Science Proceedings, volume 2025, pages 355–364. PMID 40502277; preprint arXiv:2410.17035.
Youssef Mroueh. 2025. Reinforcement learning with verifiable rewards: GRPO's effective loss, dynamics, and success amplification. Preprint, arXiv:2503.06639.
Ishna Neamatullah, Margaret M. Douglass, Li-wei H. Lehman, Andrew Reisner, Mauricio Villarroel, William J. Long, Peter Szolovits, George B. Moody, Roger G. Mark, and Gari D. Clifford. 2008. Automated de-identification of free-text medical records.
BMC Medical Informatics and Decision Making, 8(1):32.
Beau Norgeot, Kathleen Muenzen, Thomas A. Peterson, Xuancheng Fan, Benjamin S. Glicksberg, Gundolf Schenk, Eugenia Rutenberg, Boris Oskotsky, Marina Sirota, Jinoos Yazdany, Gabriela Schmajuk, Dana Ludwig, et al. 2020. Protected health information filter (Philter): accurately and securely de-identifying free-text clinical notes. npj Digital Medicine, 3(1):57.
OBI-ML. 2022. Robust DeID: De-identification of medical notes using transformer architectures. https://github.com/obi-ml-public/ehr_deidentification. Software and models.
Daniel Palacios, Matthew Brady Neeley, Angel Adetomike Otto, Shalini Dhamodharan, John P. Woodhouse, Chi fan Lin, Mark Zobeck, Zhandong Liu, and Hyun-Hwan Jeong. 2026. Institution-specific LLM prompting recovers PHI that de-identification systems and their gold standards both miss. Preprint, arXiv:2608.17051.
Jiayi Pan, Junjie Zhang, Xingyao Wang, Lifan Yuan, Hao Peng, and Alane Suhr. 2025. TinyZero. https://github.com/Jiayi-Pan/TinyZero. Accessed: 2025-01-24.
Maziyar Panahi. 2025. OpenMed NER: Open-source, domain-adapted state-of-the-art transformers for biomedical NER across 12 public datasets. Preprint, arXiv:2508.01630.
Omkar Panchal, Nai-Wen Chang, Zi-Rui Zhao, Divyabharathy Ramesh Nadar, Hong-Jie Dai, and Jitendra Jonnagaddala. 2026. Benchmarking large language models for de-identification of electronic health record notes. BMJ Health & Care Informatics, 33(1):e101894.
Jose D. Posada, Somalee Datta, and Priya Desai. 2026a. TIDE 2.0: an open, model-agnostic engine for keyed de-identification of clinical notes. Preprint, arXiv:2610.07224.
Jose D. Posada, David Love, Somalee Datta, and Priya Desai. 2026b. SHIELD: A diverse clinical note dataset and distilled small language models for enterprise-scale de-identification. Preprint, arXiv:2605.03301.
Eva Prakash, Maayane Attias, Pierre Chambon, Justin Xu, Steven Truong, Jean-Benoit Delbrouck, Tessa Cook, and Curtis Langlotz. 2026. Improving the performance of radiology report de-identification with large-scale training and benchmarking against cloud vendor methods. BMC Medical Informatics and Decision Making.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.
Praphul Singh, Charlotte Dzialo, Jangwon Kim, Sumana Srivatsa, Irfan Bulu, Sri Gadde, and Krishnaram Kenthapadi. 2025. RedactOR: An LLM-powered framework for automatic clinical data de-identification. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 6: Industry Track), pages 510–530. Association for Computational Linguistics.
Robin Staab, Mark Vero, Mislav Balunović, and Martin Vechev. 2025. Large language models are advanced anonymizers. In International Conference on Learning Representations (ICLR). ArXiv:2402.13846.
Amber Stubbs, Christopher Kotfila, and Özlem Uzuner. 2015. Automated systems for the de-identification of longitudinal clinical narratives: Overview of 2014 i2b2/UTHealth shared task track 1. Journal of Biomedical Informatics, 58:S11–S19.
Amber Stubbs and Özlem Uzuner. 2015. Annotating longitudinal clinical narratives for de-identification: The 2014 i2b2/UTHealth corpus. Journal of Biomedical Informatics, 58:S20–S29.
Ryan Teknium, Jeffrey Quesnelle, and Chen Guang. 2024. Hermes 3 technical report. Preprint, arXiv:2408.11857.
Rohith Uppala. 2026. OpenAI privacy filter: A cross-lingual, cross-domain PII evaluation across 32 benchmarks. Preprint, arXiv:2608.02616.
U.S. Department of Health and Human Services. 2012. Standards for Privacy of Individually Identifiable Health Information; Guidance Regarding Methods for De-identification of Protected Health Information (45 CFR §164.514(b)). Office for Civil Rights, HIPAA Privacy Rule. 45 CFR §164.514. Available at https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/.
Thomas Vakili, Aron Henriksson, and Hercules Dalianis. 2025. Data-constrained synthesis of training data for de-identification. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 27414–27427. Association for Computational Linguistics.
Yishu Wei, Yi Lin, Adam Flanders, George Shih, and Yifan Peng. 2026. Reinforcement learning improves LLM accuracy and reasoning in disease classification from radiology reports. npj Digital Medicine, 9(1).
Isabella C. Wiest, Marie-Elisabeth Leßmann, Fabian Wolf, Dyke Ferber, Marko Van Treeck, Jiefu Zhu, Matthias P. Ebert, Christoph Benedikt Westphalen, Martin Wermke, and Jakob Nikolas Kather. 2025. Deidentifying medical documents with local, privacy-preserving large language models: The LLM-Anonymizer. NEJM AI, 2(4):AIdbp2400537.
Fang Wu, Weihao Xuan, Ximing Lu, Mingjie Liu, Yi Dong, Zaid Harchaoui, and Yejin Choi. 2025a. The invisible leash: Why RLVR may or may not escape its origin. Preprint, arXiv:2507.14843.
Guanchen Wu, Linzhi Zheng, Han Xie, Zhen Xiang, Jiaying Lu, Darren Liu, Delgersuren Bold, Bo Li, Xiao Hu, and Carl Yang. 2025b. Large language model empowered privacy-protected framework for PHI annotation in clinical notes. Preprint, arXiv:2504.18569. Shorter version in MEDINFO 2025, Studies in Health Technology and Informatics, doi:10.3233/SHTI250965.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
Xiao You, Tianwei Yan, Zixu Shan, Longyu Du, and Shan Zhao. 2026. LA-RL: Label-aware self-reflection for reinforcement learning in information extraction. Preprint, arXiv:2607.23420.
Xiang Yue and Shuang Zhou. 2020. PHICON: Improving generalization of clinical text de-identification models via data augmentation. In Proceedings of the 3rd Clinical Natural Language Processing Workshop, pages 209–214. Association for Computational Linguistics.
Yang Yue, Zhiqi Chen, Rui Lu, Andrew Zhao, Zhaokai Wang, Yang Yue, Shiji Song, and Gao Huang. 2025. Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model? In Advances in Neural Information Processing Systems (NeurIPS). ArXiv:2504.13837.
Noopur Zambare, Kiana Aghakasiri, Carissa Lin, Carrie Ye, J. Ross Mitchell, and Mohamed Abdalla. 2026. Towards fair and efficient de-identification: Quantifying the efficiency and generalizability of de-identification approaches. In Findings of the Association for Computational Linguistics: EACL 2026, pages 4242–4257. Association for Computational Linguistics.
Urchade Zaratiana, Ash Lewis, and George Hurn-Maloney. 2026. GLiNER2-PII: A multilingual model for personally identifiable information extraction. Preprint, arXiv:2605.09973.
Urchade Zaratiana, Nadi Tomeh, Pierre Holat, and Thierry Charnois. 2024. GLiNER: Generalist model for named entity recognition using bidirectional transformer. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 5364–5376. Association for Computational Linguistics.
Wenxuan Zhou, Sheng Zhang, Yu Gu, Muhao Chen, and Hoifung Poon. 2024. UniversalNER: Targeted distillation from large language models for open named entity recognition. In International Conference on Learning Representations (ICLR). ArXiv:2308.03279.
A Output Schema
Figure 2 shows an annotation in the output schema. Empty categories are written as self-closing tags, so every output has the same ten containers.
<phi_entities> <names> <name id="1" type="patient"> <variations> <value>Amit Kumar</value> <value>Kumar</value> </variations> </name> </names> <ages><age>35</age></ages> <dates> <date> <original>Oct 1</original> <formatted>????-10-01</formatted> </date> </dates> <places> <place id="1" type="hospital">NYU Langone Medical Center</place> </places> <addresses/> <phones/> <emails/> <ids><id type="MRN">4471902</id></ids> <urls/> <devices/> </phi_entities>
Figure 2: An annotation in the <phi_entities> schema (illustrative values, whitespace condensed).
B Training Details
Tables 6, 7, and 8 list the configurations of the supervised stage, the GRPO stage, and the verifier. All training ran on NVIDIA L40S GPUs: the first-pass labeler for about 1 hour on two GPUs, SFT for about 3 hours on two GPUs, GRPO for 59.6 hours on one GPU, and the verifier adapter for 0.8 hours (SFT stage) and 2.2 hours (GRPO stage) on one GPU. Inference benchmarks used one L40S.
C Reward Details
Presence is the fraction of tagged entities that occur verbatim in the source note; an annotation with no entities scores 1. Completeness is entity-level with under guarded substring matching: a length guard on containment matches closes a reward-hacking channel in which very short outputs match arbitrary references. Calibration compares the claimed <qc_status> with whether the annotation is complete (Table 9). Length gives full credit up to 1,024 tokens and decays linearly beyond.
| Hyperparameter | Value |
|---|---|
| Base model | Qwen3-0.6B-Base (labeler: Qwen3-1.7B-Base) |
| Precision | bfloat16 |
| Epochs | 1 |
| Per-device batch size | 2 |
| Gradient accumulation | 8 |
| Optimizer | AdamW |
| Learning rate | |
| LR schedule | warmup / constant / decay (5% / 90% / 5%) |
| Max sequence length | 8,192 |
| Loss | completion-only causal LM |
| Seed | 2025 |
| Hardware (SFT) | 2 × NVIDIA L40S, ~3 h |
| Hardware (labeler) | 2 × NVIDIA L40S, ~1 h |
Table 6: Supervised fine-tuning.
| Hyperparameter | Value |
|---|---|
| Initialization | SFT checkpoint, full fine-tuning (no LoRA) |
| Precision | bfloat16 |
| Learning rate | |
| Prompts per step | 1 |
| Completions per prompt (G) | 8 |
| Per-device batch size | 1 |
| Gradient accumulation | 8 |
| Sampling temperature | 1.0 |
| Max completion length | 1,024 tokens |
| Reward weights | presence 0.30, completeness 0.40, calibration 0.15, length 0.15 |
| KL coefficient | 0.04 |
| Training length | one pass over the 25,972 training notes (25,972 steps) |
| Seed | 2025 |
| Hardware | 1 × NVIDIA L40S, 59.6 h |
Table 7: GRPO.
D Why the Self-Assessment Tag Was Never Emitted
The <qc_status> tag is absent from all outputs of the SFT and GRPO models, including when GRPO is prompted with its own training instruction block, which states the tag as mandatory, and decoded without a stop string. The outputs end at </phi_entities> well within the generation budget: the policy closes the annotation and stops.
The reward's structure explains this. The supervised targets end at </phi_entities>, so the initial policy assigns almost no probability to any continuation. GRPO standardizes rewards within a group of sampled completions, and the calibration term is exactly 0 whenever the tag is absent. When no completion in a group carries the tag, which is the overwhelmingly likely case at initialization, the
| Hyperparameter | Value |
|---|---|
| Base | EDGEDEID SFT checkpoint (frozen) |
| Adapter | LoRA, rank 16, α 32, dropout 0.05 |
| Training data | 8,000 synthetic training notes; corrupted gold annotations and outputs of BERT-i2b2, GLiNER, Presidio, and RoBERTa-i2b2 |
| SFT stage | 6,655 candidates, 1 epoch, lr , batch |
| SFT label balance | 26% incomplete |
| GRPO stage | 2,142 candidates, 300 steps, lr , , gradient accumulation 4, temperature 1.0, no KL term |
| GRPO label balance | 45% incomplete |
| GRPO reward | well-formed +0.2; correct +0.8; over-cautious +0.4; overconfident 0 |
| Hardware | NVIDIA L40S; 0.8 h (SFT), 2.2 h (GRPO) |
Table 8: Verifier adapter.
| Claimed | Actual | |
|---|---|---|
| complete | complete | 1.0 |
| incomplete | incomplete | 1.0 |
| incomplete | complete | 0.5 |
| complete | incomplete | 0.0 |
| (tag missing) | any | 0.0 |
Table 9: The calibration reward. Claiming completeness after a miss is the safety-critical error and scores zero.
term is constant across the group, contributes no variance, and vanishes from the standardized advantage. Its 0.15 of reward mass was inert throughout training. A reward that is zero for both a wrong answer and a missing answer gives the model no path from the second to the first.
Two remedies follow: put the tag in the supervised targets so that GRPO shapes it instead of having to discover it, or make the verdict the only thing the model writes. The verifier of Section 3.4 takes the second route.
For the same reason, the QC layer does not treat a missing tag as a sign that a note is unreliable (Section 3.4).
E QC Layer Details
Repair first tries a strict XML parser and then a recovering one (lxml with recover), keeping every tag it can read; an output that neither can read becomes an empty annotation. Pattern detection rejects numeric dates whose month or day is impossible (“10/70”). The NER fallback maps spaCy’s PERSON label to name and GPE, LOC, FAC, and ORG to place, adds a street-address pattern, and skips abbreviations (“ECG”, “CAD”), generic institution words, and notes that are more than 60% upper case. A note is sent to the NER fallback if its XML could not be repaired, if pattern detection added three or more spans, or if the model’s own <qc_status> tag reports incomplete; the last never happens, because the model never emits the tag (Appendix D).
Table 10 adds the steps one at a time to the SFT model. On the benchmark only pattern detection changes anything, adding one entity that is not PHI. On MIMIC nearly all of the effect comes from repair: of SFT outputs do not parse, and recovering their tags raises recall by 0.037 and lowers precision by 0.129, since about nine in ten of the recovered values are not PHI. Pattern detection adds 0.009 recall, and the NER fallback runs on one note. On the 404-note held-out split of the training corpus the layer adds 17 entities, 3 of them PHI, and F1 moves from 0.987 to 0.986.
| Step | Benchmark | MIMIC | ||||
|---|---|---|---|---|---|---|
| P | R | F1 | P | R | F1 | |
| None | 0.990 | 0.999 | 0.994 | 0.407 | 0.580 | 0.478 |
| + Repair | 0.990 | 0.999 | 0.994 | 0.278 | 0.617 | 0.383 |
| + Patterns | 0.989 | 0.999 | 0.994 | 0.280 | 0.626 | 0.387 |
| + NER fallback | 0.989 | 0.999 | 0.994 | 0.280 | 0.626 | 0.387 |
Table 10: The QC layer step by step on EDGEDEID SFT (GRPO is identical on the benchmark). MIMIC is scored against the human gold standard.
F Significance Tests
Table 11 lists paired bootstrap differences (1,000 resamples over notes, seed 2025) for the comparisons discussed in the paper.
G Per-Category Results
Tables 12 and 13 give per-category F1 on the two test sets. A dash marks a category the system has no label for, which is different from a score of zero (category attempted, never matched).
H MIMIC Analysis
Reference annotation. The corpus is distributed with the notes, a human gold standard, and the output of a rule-based de-identification tool. One of the distributed annotation files is in fact that tool's output (99.5% of its spans coincide with the tool's
| Test set | Comparison (B - A) | Δ Recall | Δ Precision | Δ F1 | Δ Zero-leak |
|---|---|---|---|---|---|
| Bench. | GRPO - SFT | 0.000[0.000, 0.000] | 0.000[0.000, 0.000] | 0.000[0.000, 0.000] | 0.000[0.000, 0.000] |
| Bench. | QC - none, on GRPO | 0.000[0.000, 0.000] | -0.001[-0.003, 0.000] | 0.000[-0.001, 0.000] | 0.000[0.000, 0.000] |
| MIMIC | GRPO - SFT | -0.052[-0.083, -0.022] | +0.112[+0.084, +0.146] | +0.046[+0.021, +0.074] | -0.022[-0.029, -0.016] |
| MIMIC | QC - none, on SFT | +0.046[+0.023, +0.073] | -0.126[-0.198, -0.033] | -0.091[-0.164, -0.013] | +0.005[+0.003, +0.009] |
| MIMIC | SFT, few-shot - zero-shot | -0.019[-0.052, +0.016] | +0.155[+0.122, +0.193] | +0.083[+0.057, +0.113] | -0.009[-0.017, -0.003] |
| MIMIC | GRPO, few-shot - zero-shot | +0.079[+0.047, +0.117] | +0.088[+0.061, +0.116] | +0.084[+0.060, +0.110] | +0.027[+0.019, +0.035] |
Table 11: Paired bootstrap differences with intervals. An interval that excludes zero marks a significant difference. Because GRPO and SFT have identical scored predictions on the benchmark, QC on SFT gives the same row as QC on GRPO. Few-shot uses three hand-written example notes in the prompt; MIMIC rows are scored against the human gold standard over all categories.
| Category | Presidio | GLiNER | RoBERTa -i2b2 | BERT -i2b2 | OpenMed -PII | Stanford -deid | spaCy | OPF | Base 0-shot | EDGEDEID SFT |
|---|---|---|---|---|---|---|---|---|---|---|
| Name | 0.990 | 0.842 | 0.647 | 0.616 | 0.646 | 0.983 | 0.982 | 0.986 | 0.352 | 0.996 |
| Age | - | 0.756 | 0.987 | 0.987 | 0.987 | - | - | - | 0.280 | 0.987 |
| Date | 0.452 | 0.973 | 0.039 | 0.024 | 0.004 | 0.990 | 0.446 | 0.986 | 0.110 | 0.998 |
| Place | - | 0.868 | 0.000 | 0.000 | 0.000 | 0.221 | 0.629 | - | 0.000 | 0.972 |
| Address | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | - | 0.000 | 0.938 | 0.128 | 1.000 |
| Phone | 0.156 | 0.958 | 0.103 | 0.000 | 0.054 | 0.000 | - | 0.978 | 0.045 | 1.000 |
| 1.000 | 0.316 | 0.660 | 0.000 | 0.984 | - | - | 1.000 | 0.173 | 1.000 | |
| ID | - | 0.730 | 0.865 | 0.000 | 0.959 | 0.000 | - | 0.959 | 0.096 | 0.984 |
| URL | 0.674 | 0.352 | - | - | 0.267 | - | - | 0.114 | 0.134 | 1.000 |
| Device | - | 0.370 | - | - | 0.000 | 0.000 | - | - | 0.000 | 0.923 |
Table 12: Per-category F1 on the in-domain benchmark. GRPO's predictions are identical to SFT's.
| Category | RoBERTa -i2b2 | Stanford -deid | BERT -i2b2 | GLiNER | OPF | OpenMed -PII | Presidio | spaCy | Base 0-shot | EDGEDEID SFT | EDGEDEID GRPO |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | 0.854 | 0.768 | 0.741 | 0.597 | 0.574 | 0.638 | 0.226 | 0.231 | 0.019 | 0.541 | 0.598 |
| Date | 0.745 | 0.090 | 0.172 | 0.547 | 0.205 | 0.269 | 0.066 | 0.058 | 0.030 | 0.509 | 0.589 |
| Place | 0.481 | 0.710 | 0.396 | 0.370 | 0.000 | 0.008 | 0.000 | 0.015 | 0.000 | 0.456 | 0.422 |
| Phone | 0.561 | 0.389 | 0.541 | 0.302 | 0.468 | 0.604 | 0.349 | 0.000 | 0.000 | 0.175 | 0.267 |
| Age | 0.000 | 0.000 | 0.036 | 0.032 | 0.000 | 0.047 | 0.000 | 0.000 | 0.000 | 0.048 | 0.045 |
| ID | 0.026 | 0.105 | 0.100 | 0.000 | 0.000 | 0.041 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
| Address | 0.000 | - | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
Table 13: Per-category F1 on MIMIC against the human gold standard. Ages are near zero for every system that predicts them because MIMIC annotates only ages of 90 and above (4 gold spans), so almost every predicted age is a false positive.
detections) and is easy to mistake for the reference; about 26% of its spans are not PHI. Table 14 shows how much the choice matters. Every competitive system scores higher against the human gold standard, by 0.03 to 0.13 F1, and the ordering of the middle of the table changes.
Safe Harbor classification. We classified every gold span against the HIPAA Safe Harbor list with rules over the gold type and its context (Table 15). This is not a legal determination. Less than half of the annotated spans are Safe Harbor identifiers; a third are clinician names, which many institutions remove by policy but which are not identifiers of the patient.
Why names and dates are missed. Table 16 summarizes the analysis behind Section 5.3. Its scope is the 713 gold spans that are patient or relative names, patient initials, or dates, in 373 notes; the SFT model misses 200. Forty of these misses are spans the model did tag in an output that a later
| System | Tool ref. | Human gold | Untyped |
|---|---|---|---|
| RoBERTa-i2b2 | 0.571 | 0.675 | 0.708 |
| Stanford-deid | 0.435 | 0.529 | 0.535 |
| BERT-i2b2 | 0.398 | 0.525 | 0.560 |
| Ours, GRPO | 0.442 | 0.523 | 0.542 |
| Ours, SFT | 0.423 | 0.478 | 0.500 |
| GLiNER | 0.410 | 0.475 | 0.486 |
| OPF | 0.350 | 0.410 | 0.421 |
| OpenMed-PII | 0.311 | 0.342 | 0.372 |
| Presidio | 0.116 | 0.115 | 0.135 |
| spaCy | 0.064 | 0.063 | 0.079 |
Table 14: MIMIC F1 against the rule-based tool's output, against the human gold standard, and against the human gold standard ignoring entity type. "Ours" is EDGEDEID.
| Class of gold span | Spans | Missed | |
|---|---|---|---|
| Ours | RoB. | ||
| Safe Harbor PHI (823) | |||
| date (month/day) | 482 | 113 | 57 |
| patient or relative name | 231 | 87 | 40 |
| city, town, region, street | 56 | 49 | 3 |
| patient or family phone | 42 | 18 | 11 |
| other (employer, age > 89) | 12 | 8 | 9 |
| Not Safe Harbor (734) | |||
| clinician name | 593 | 203 | 94 |
| ward or unit name | 74 | 69 | 64 |
| year only | 46 | 20 | 12 |
| other (pager, vendor, ...) | 21 | 10 | 10 |
| Unclear (222) | |||
| hospital or facility name | 219 | 116 | 23 |
| other | 3 | 2 | 0 |
Table 15: MIMIC gold spans by Safe Harbor status, with the number left uncovered by any prediction, of any type, of EDGEDEID SFT (Ours) and of RoBERTa-i2b2 (RoB.). The table counts the 1,779 spans as annotated; two overlapping Location spans are merged into one for scoring, giving the 1,778 spans used elsewhere.
malformed tag made unparseable; with such artifacts removed, recall on these spans is about 0.78 instead of 0.72.
Input case. In a separate run served with vLLM, lower-casing every MIMIC note lowers SFT recall from 0.572 to 0.442, while lower-casing only the mostly upper-case notes raises precision (0.415 to 0.453) at a small recall cost (0.572 to 0.542). On the benchmark, lower-casing changes F1 by less than 0.005. The model uses capitalization as a cue for names, and the cue is unreliable in both directions on nursing notes.
I Robustness to Synthetic Perturbation
We perturb the benchmark's inline-tagged gold text and re-derive the note and its reference, so the two stay consistent (Table 17). The surface profile rotates PHI surface forms (date formats, phone separators, name spellings, identifier formats). The register profile applies document-level noise: upper-casing, joined paragraphs, dropped articles and prepositions, and semicolon-separated clauses. Because the reference is re-derived from inline tags, the clean row of this harness differs slightly from Table 2.
| Profile | P | R | F1 | Zero-leak |
|---|---|---|---|---|
| Clean | 0.992 | 0.996 | 0.994 | 0.96 |
| Surface | 0.992 | 0.996 | 0.994 | 0.96 |
| Register | 0.986 | 0.983 | 0.985 | 0.85 |
| Both | 0.984 | 0.955 | 0.969 | 0.75 |
Table 17: EDGEDEID (SFT) under synthetic perturbations of the benchmark.
Surface variation has no effect, which is what the augmentation was meant to achieve. Register noise costs 0.013 recall and 0.11 zero-leak, and the combination 0.041 and 0.21. These effects are real but far smaller than the drop on MIMIC, which is consistent with PHI density and note structure, and not casing or telegraphic style alone, driving that
| Test set | Verifier | Base rate | AUROC | ECE | Flagged | Caught | Flag precision | Residual |
|---|---|---|---|---|---|---|---|---|
| Synthetic val (800) | zero-shot | 0.301 | 0.537 | 0.024 | 0.105 | 0.154 | 0.441 | 0.285 |
| SFT | 0.813 | 0.013 | 0.204 | 0.556 | 0.822 | 0.168 | ||
| SFT + GRPO | 0.809 | 0.134 | 0.163 | 0.506 | 0.939 | 0.178 | ||
| Benchmark (1,100) | zero-shot | 0.795 | 0.600 | 0.531 | 0.160 | 0.199 | 0.989 | 0.758 |
| SFT | 0.987 | 0.139 | 0.746 | 0.931 | 0.991 | 0.215 | ||
| SFT + GRPO | 0.989 | 0.213 | 0.574 | 0.722 | 1.000 | 0.518 | ||
| MIMIC (26,774) | zero-shot | 0.178 | 0.658 | 0.027 | 0.024 | 0.036 | 0.275 | 0.175 |
| SFT | 0.661 | 0.087 | 0.175 | 0.280 | 0.285 | 0.155 | ||
| SFT + GRPO | 0.661 | 0.162 | 0.085 | 0.147 | 0.309 | 0.165 |
Table 18: Verifier results, pooled over systems. Base rate: share of (note, annotation) pairs that are incomplete. Flagged: share sent to review. Caught: share of incomplete pairs that are flagged. Residual: share of unflagged pairs that are incomplete.
| System | Device | Runtime | Precision | Median ms | p90 ms | Peak RSS (MB) |
|---|---|---|---|---|---|---|
| spaCy | CPU | spaCy | fp32 | 35 | 47 | 1,319 |
| Presidio | CPU | spaCy/regex | fp32 | 51 | 70 | 1,536 |
| BERT-i2b2 | CPU | transformers | fp32 | 119 | 187 | 1,233 |
| Stanford-deid | CPU | transformers | fp32 | 124 | 166 | 1,222 |
| GLiNER | CPU | transformers | fp32 | 192 | 294 | 2,418 |
| RoBERTa-i2b2 | CPU | transformers | fp32 | 335 | 466 | 2,118 |
| OpenMed-PII | CPU | transformers | fp32 | 476 | 624 | 2,285 |
| OPF | CPU | torch | fp32 | 12,413 | 19,875 | 4,778 |
| EDGEDEID (SFT) + prompt cache | CPU | llama.cpp | Q4_K_M | 3,931 | 7,711 | 615 |
| EDGEDEID (SFT) + prompt cache | CPU | llama.cpp | Q8_0 | 4,494 | 8,953 | 616 |
| EDGEDEID (SFT) | CPU | llama.cpp | Q4_K_M | 5,914 | 9,477 | 615 |
| EDGEDEID (SFT) | CPU | llama.cpp | Q8_0 | 6,211 | 10,527 | 617 |
| EDGEDEID (GRPO) | CPU | llama.cpp | Q4_K_M | 5,808 | 9,446 | 615 |
| EDGEDEID (SFT) | CPU | transformers | fp32 | 29,484 | 51,388 | 4,248 |
| EDGEDEID (GRPO) | CPU | transformers | fp32 | 29,085 | 51,095 | 4,265 |
| Qwen3-0.6B-Base | CPU | transformers | fp32 | 150,609 | 153,169 | 4,238 |
| Stanford-deid | GPU | transformers | bf16 | 8 | 11 | 1,295 |
| BERT-i2b2 | GPU | transformers | bf16 | 9 | 19 | 1,289 |
| RoBERTa-i2b2 | GPU | transformers | bf16 | 14 | 19 | 2,244 |
| GLiNER | GPU | transformers | bf16 | 18 | 127 | 2,420 |
| OPF | GPU | torch | bf16 | 24 | 31 | 1,994 |
| OpenMed-PII | GPU | transformers | bf16 | 26 | 28 | 2,637 |
| EDGEDEID (SFT) | GPU | vLLM | Q4_K_M | 441 | 765 | - |
| EDGEDEID (SFT) | GPU | vLLM | FP8 | 442 | 796 | - |
| EDGEDEID (SFT) | GPU | vLLM | bf16 | 511 | 931 | - |
| EDGEDEID (GRPO) | GPU | vLLM | bf16 | 509 | 926 | - |
| EDGEDEID (SFT) | GPU | transformers | bf16 | 3,990 | 6,689 | 2,073 |
| EDGEDEID (GRPO) | GPU | transformers | bf16 | 3,982 | 6,599 | 2,090 |
| Qwen3-0.6B-Base | GPU | transformers | bf16 | 18,630 | 19,105 | 2,051 |
Table 19: Single-note latency (median and 90th percentile over 20 notes after warm-up) and peak resident memory. GPU: NVIDIA L40S. CPU: AMD EPYC 9354 limited to 8 threads on a shared server. With 100 concurrent requests, vLLM serves 31 notes per second at bf16 and 17 at Q4_K_M. Quantized variants score 0.994 F1 on the benchmark with a zero-leak rate of 0.98 (Q4_K_M) or 0.99 (Q8_0, FP8).
drop.
J Verifier Details
Table 18 reports the verifier as a review filter at the threshold , which is the reward-optimal threshold given that over-caution costs half as much as overconfidence. The threshold was fixed before looking at either test set. The benchmark pool holds the outputs of all eleven systems of Table 2. Four of them (BERT-i2b2, GLiNER, Presidio, and RoBERTa-i2b2) also produced some of the verifier's training candidates, on different, synthetic training notes. On the benchmark, 198 of the 226 complete pairs are outputs of EDGEDEID (SFT, with and without QC), so the pooled AUROC mostly reflects how well the verifier accepts EDGEDEID's complete outputs. On the nine other systems alone, with 28 complete pairs among 900, it is 0.938 for the SFT adapter, 0.941 after GRPO, and 0.766 zero-shot. OPF's outputs are the hardest: 12 of 100 are complete, and the adapter separates them from its incomplete ones at 0.789 AUROC against 0.819 zero-shot.
On the benchmark the SFT adapter cuts the leak rate among released annotations from 0.795 to 0.215 while reviewing of them. A threshold chosen to catch of incomplete annotations on synthetic validation catches on the benchmark but flags of all pairs, which is of little practical use; the validation distribution of perturbed gold annotations is easier to pass than real system output. On EDGEDEID's own MIMIC outputs the SFT adapter reaches 0.688 AUROC against 0.667 zero-shot.
K Full Latency Results
Table 19 gives all latency measurements. Each system runs in a fresh process with the device fixed before start-up; the device it ran on is read back and verified. The zero-shot base model is slow because it never emits the closing tag and runs to the 1,024-token limit on every note. The median prompt is about 1,060 tokens, of which the fixed instruction block is 867, which is why caching that prefix helps on CPU.
L Baseline Details
All baselines run locally with default thresholds. Their native labels are mapped to our ten types and serialized into the <phi_entities> schema before scoring. Table 20 lists the checkpoints.
| System | Checkpoint or configuration |
|---|---|
| Presidio | Microsoft Presidio analyzer, default recognizers |
| spaCy | en_core_web_lg NER |
| GLiNER | urchade/gliner_mediumv2.1, prompted with our type names |
| Stanford-deid | StanfordAIMI/ stanford-deidentifier-base |
| RoBERTa-i2b2 | obi/deid_roberta_i2b2 |
| BERT-i2b2 | obi/deid_bert_i2b2 |
| OpenMed-PII | OpenMed/OpenMed-PII- SuperClinical-Large-434M-v1 |
| OPF | OpenAI Privacy Filter, run from its released source |
| Base 0-shot | Qwen/Qwen3-0.6B-Base with the EDGEDEID prompt |
Table 20: Baseline systems.