NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Privacy Leakage in Federated Learning in Radiology Reports: A Comparative Evaluation of Tokenizer-Driven Privacy Risks

Santhosh Parampottupadam, Andres Martinez, Dimitrios Bounias, Sinem Sav, Klaus Maier-Hein, Ralf Floca

TL;DR

Federated learning (FL) is often championed as a privacy-preserving framework for training medical AI without sharing raw patient data. However, this paper demonstrates that an active malicious server can exploit shared gradients to reconstruct up to 44% of sentences from confidential radiology reports. Crucially, the authors discover a surprising privacy-utility trade-off: domain-specific tokenizers like RadBERT actually heighten privacy risks by making complex clinical terms easier to reconstruct verbatim.

What Problem Does This Paper Address?

When training large language models (LLMs) on clinical text, data privacy is paramount due to strict regulations like HIPAA and GDPR. Federated learning addresses this by keeping data localized on institutional clients (e.g., hospitals) and only sharing model updates (gradients) with a central server.

However, FL is vulnerable to gradient inversion attacks, where an adversary reverse-engineers the shared gradients to piece back together the original training text. While this vulnerability has been studied in generic NLP contexts, its impact on the highly structured, dense language of radiology reports remained unclear. Furthermore, the role of the tokenizer—the component that chops raw text into subword units before it enters the model—had never been systematically isolated as a privacy variable.

Methods

The authors designed a controlled, tokenizer-aware evaluation to isolate vocabulary segmentation from model architecture.

  1. The Setup: Six simulated FL clients trained a compact, 3-layer GPT-2-style transformer (13.4M parameters) with a fixed sequence length of 32 tokens.
  2. The Independent Variables: The model architecture was held completely constant while the authors varied the tokenizer (GPT-2, LLaMA-2, and RadBERT) and the local batch sizes (64, 128, and 256).
  3. The Threat Model: They assumed an active malicious server that subtly modifies the model architecture before distribution. Specifically, the server inserts a lightweight analytic "imprint" module (a linear probe) right after the token embedding lookup layer.
  4. The Attack: Using closed-form analytic gradient inversion, the server isolates per-sample gradients from the batch sum and decodes the recovered embeddings using a nearest-neighbor search against the tokenizer's embedding table.
Figure 1. Gradient-inversion attack pathway in federated radiology NLP. A malicious central server coordinates model training across multiple hospitals. By inserting a lightweight linear probe at the embedding stage, the server exposes token-level representations and, from the probe’s gradi- ents, reconstructs token embeddings in closed form. Decoding these embeddings via the tokenizer’s embedding table yields patient text, illustrating that federated learning can leak confidential report content even without raw data sharing.

Datasets

The models were trained and evaluated on two prominent public clinical text corpora:

  • The Dischargesum Dataset: Comprising 98,206 discharge summaries and 368,751 diagnostic reports.
  • MIMIC-CXR: A locally curated sample of 1,500 free-text radiology reports.

Key Insights and Ideas

  • The Tokenizer Paradox: Domain-specific tokenizers like RadBERT are excellent for clinical utility because they compress complex medical terms (e.g., "pneumothorax") into a single token. However, this drastically reduces the "attack-surface diameter." For a general-purpose tokenizer like GPT-2, "pneumothorax" is fragmented into multiple subwords (p / neu / moth / orax), creating multiple points of failure during reconstruction. For RadBERT, it's an all-or-nothing single token, making it highly recoverable.
  • Batch Size is Not a Perfect Shield: Conventional wisdom suggests that larger batch sizes protect privacy by averaging gradients across more samples. While increasing the batch size from 64 to 256 did cause a graceful degradation in reconstruction fidelity, it failed to eliminate leakage. As long as a token uniquely occupies a bin within the malicious imprint layer, it can be cleanly recovered.
  • Clinical Context as PHI: Even though direct identifiers (names, dates) were pre-redacted in the datasets, the attack successfully recovered dense clinical context (rare diagnoses, specific procedure combinations). Under HIPAA's expert-determination standard and GDPR's concept of indirect identifiability, leaking this unique clinical context constitutes a severe privacy breach.

Key Results

  • High Sentence Accuracy: Exact sentence-level reconstruction ranged from 31% to 44% across all configurations. At a batch size of 64 on the Discharge dataset, exact reconstruction accuracy reached 42.3% for RadBERT, 42.1% for GPT-2, and 39.4% for LLaMA-2.
  • Clinical Term Leakage: To quantify the leak of meaningful medical data, the authors used Google's MedGemma NER model. RadBERT leaked the highest amount of clinical information, recovering 18.1% of a 1,440-term reference vocabulary (260 unique terms), compared to 12.5% for GPT-2 and 9.4% for LLaMA-2.
  • Fidelity Metrics: Across all datasets, RadBERT consistently yielded higher Sentence-BLEU (S-BLEU), Global-BLEU (G-BLEU), and ROUGE-L scores under attack, confirming that domain adaptation facilitates more accurate text recovery.
Reconstruction fidelity across datasets and tokenizers at varying batch sizes.

Limitations and Future Work

  • Worst-Case Scenario Constraints: This study deliberately evaluated an unconstrained adversary with no defenses enabled. In real-world cross-silo FL, defenses like Differential Privacy (DP) and Secure Aggregation (SecAgg) would be active, which the authors expect would substantially lower these reconstruction rates.
  • Short Sequence Lengths: The experiments relied on a 32-token sequence length. Longer sequences increase input dimensionality, making single-step reconstruction significantly harder in practice.
  • IID Data Split: The data partition across the six clients was approximately IID (independent and identically distributed). Real-world clinical deployments typically suffer from non-IID data skew, which alters gradient sparsity and vulnerability.

Future Directions: The authors point to evaluating hybrid defense mechanisms (combining SecAgg with task-tuned DP noise) and extending tokenizer-controlled privacy audits to frontier-scale models and longer sequence lengths as vital next steps.

Summary updated

BibTeX
@misc{parampottupadam2026privacy,
  author = {Santhosh Parampottupadam and Andres Martinez and Dimitrios Bounias and Sinem Sav and Klaus Maier-Hein and Ralf Floca},
  title = {{Privacy Leakage in Federated Learning in Radiology Reports: A Comparative Evaluation of Tokenizer-Driven Privacy Risks}},
  year = {2026},
  eprint = {2607.14205},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.14205},
}
Figure