Surrogate Substitution Preserves PHI Detectability: A Multi-Detector Equivalence Study

Qiming Bao, Jia Hui Feng, Kim Chester V. Eugenio, Meng FonML4H 2026 Poster 2026

TL;DR

When sharing clinical notes for AI development, hospitals often swap out sensitive patient details (like "Anna S.") for realistic fakes ("Maria S.") rather than blacking them out—a trick called structure-preserving de-identification. This paper tests whether downstream privacy detectors can still spot those fake names and dates as reliably as the originals. Across 1,750 documents and 11 detectors, the answer is mostly yes: overall detection recall dips by just 1.24 percentage points, though the gap widens for certain detectors, non-English texts, and strict boundary matching.

What Problem Does This Paper Address?

To train medical AI without violating privacy laws like HIPAA or GDPR, clinical text has to be stripped of Protected Health Information (PHI). You can redact it (John Smith $\rightarrow$ [NAME]), or you can substitute it with a plausible same-type surrogate (John Smith $\rightarrow$ Maria Lopez).

Substitution keeps text fluent, which helps downstream models. It also enables a clever privacy defense called "hiding in plain sight": if a de-identifier misses a real name, an attacker shouldn't be able to tell it apart from the fake ones. Plus, many pipelines run a second PHI detector over the substituted text as a safety net.

Both of those safeguards break down if downstream detectors treat surrogates differently than real PHI. Existing evaluations usually mash together coverage (how much PHI the tool replaced) and substitution quality (whether the replacements still look like PHI). The authors isolate the second question: given that a span was replaced, can a downstream detector find the surrogate as often as it found the original?

Methods

The authors propose a paired, black-box evaluation protocol that separates coverage from substitution effects:

The paired protocol with a worked example
  1. Paired Detection: They run a commercial de-identifier (Custodian Labs' Guardian Layer) on documents, then score only the replaced spans before and after transformation using an identical panel of 11 detectors across three families:
  2. Rule-based: Microsoft Presidio
  3. Encoder tagger: OBI deid_roberta_i2b2
  4. Zero-shot LLMs: 9 models including Gemma 4 (31B, E4B), Qwen 3.5 (4B, 9B, 35B-A3B), Llama 3.1 8B, Llama 3.3 70B, DeepSeek V2-Lite, and GPT-4o-mini.
  5. Equivalence Testing: With tens of thousands of paired outcomes, standard statistical significance tests will flag even tiny, meaningless differences. Instead, the authors use document-level cluster-bootstrap equivalence testing (TOST) to check if the change in recall ($\Delta$) falls within a $\pm 2$ percentage-point margin.
  6. Mechanism & Downstream Checks: To figure out why detections are lost, they conduct human annotation of 197 surrogates, a "same-slot counterfactual" (swapping in Python Faker values into the exact same spots), and detector test–retest checks. They also test whether de-identification hurts a downstream clinical task: ICD-10 diagnosis classification.

Datasets

The evaluation covers 1,750 documents (250 each from seven public or synthetic benchmarks in seven languages):

  • Clinical: ASQ-PHI (synthetic English clinical queries) and MEDDOCAN (Spanish clinical case reports with synthetic PHI, paired with ICD-10 diagnosis labels from the CodiEsp corpus).
  • General PII: MultiCoNER v2, and the English, Dutch, French, and German subsets of PII-Masking-300k.

No new benchmarks are introduced, though the authors release their 250-document subsets, transformed outputs, and annotations.

Key Insights and Ideas

  • Equivalent on average, but not everywhere: While the pooled drop is small, equivalence within $\pm 2$ points does not hold uniformly. Clean English text passes easily, but identifier-dense non-English benchmarks (like Spanish MEDDOCAN and Dutch PII-nl) and several individual detectors exceed the $\pm 2$-point margin.
  • Canonical fakes are too easy to spot: When the authors substituted Faker values as a baseline, detector recall often jumped above the original text (77–94%). Because Faker generates maximally canonical, textbook names and dates, detectors spot them effortlessly—which actually undermines "hiding in plain sight."
  • It's not just bad surrogates: Human raters ($\kappa = 0.79$) found that 65% of the commercial surrogates were well-formed and 23% were defective. While defective surrogates were lost more often (8.6% vs. 5.1%), about half of all lost detections happened on completely well-formed surrogates.
  • Detection is fickle: Swapping a Faker value into a slot where the commercial surrogate was missed recovered 71% of the lost detections—and the reverse was also true (78% of Faker losses were kept by the commercial surrogate). Even at temperature 0, GPT-4o-mini flipped 4–5% of its own predictions between identical runs.

Key Results

  • Primary Result: Across 5,273 replaced spans (57,035 span$\times$detector outcomes), pooled recall moved from 75.9% to 74.7% ($\Delta = -1.24$ points, 90% CI $[-1.65, -0.84]$), comfortably within the $\pm 2$-point margin under overlap matching.
Delta per benchmark with 90% cluster-bootstrap CIs
  • Strict Matching: Under exact-boundary matching, the drop widens to $-1.94$ points (and $-2.13$ with type matching), falling outside the $\pm 2$-point margin.
  • Coverage: As a standalone de-identifier, the transform's coverage was incomplete—replacing 77.8% of gold PHI on ASQ-PHI, 52.2% on MEDDOCAN, and 6–32% on general-domain corpora.
  • Downstream Task: On ICD-10 diagnosis classification, macro accuracy changed by at most 0.5 points across substitution, Faker, and redaction. However, Faker (which draws ages at random) broke age-group consistency by 14–23 points, whereas the commercial transform kept it within 2.4 points.

Limitations and Future Work

  • Proxy metric: Detectability preservation doesn't measure whether surrogates preserve temporal consistency or general clinical utility; the downstream check only tested one task family with small local LLMs.
  • Selection bias: Conclusions only apply to the spans the transform chose to replace, which were easier for detectors to find in the first place (75.9% original recall vs. 59.3% on unreplaced spans).
  • Heuristics and prompts: Gold spans had to be re-projected heuristically because the commercial tool didn't expose replacement offsets, and LLM detectors were only tested with one fixed prompt.
  • Synthetic data: All benchmarks are public or synthetic; validating the protocol on real electronic health record (EHR) text remains future work.

Summary updated

BibTeX
@inproceedings{bao2026surrogate,
  author = {Qiming Bao and Jia Hui Feng and Kim Chester V. Eugenio and Meng Fon},
  title = {{Surrogate Substitution Preserves PHI Detectability: A Multi-Detector Equivalence Study}},
  booktitle = {ML4H 2026 Poster},
  year = {2026},
  url = {https://openreview.net/forum?id=KYUHXphr9e},
}
Figure