Manuscript Offprint

arXiv:2610.33839

EdgeDeID: A 0.6B Clinical De-identifier Trained Without Real Patient Data

Sina Daneshgar, Raya Namazi, Amirali Khosravi, Pouria Rouzrokh, Bardia Khosravi

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.

References (45)