Tokenizer-Driven FL Leakage

Arxiv pdf 2026-07-01T00:00:00
arXiv Paper — PDF not available. Only the Executive Summary is available here. To read or download the full paper, visit the arXiv abstract page.

Abstract

**Background:** Federated learning (FL) enables multi-institutional model training on clinical text without sharing raw data; however, gradient inversion methods can reconstruct sensitive information from shared model updates. The extent of such privacy leakage in FL applied to radiology reports, and the role of tokenizer design, remains unclear. **Objective:** To quantify gradient-based reconstruction of radiology report text in an FL setting and to compare privacy risk across three transformer tokenization strategies in a controlled, tokenizeraware evaluation. **Methods:** Six FL clients trained a GPT-2style transformer (sequence length 32) on two public radiology corpora comprising 368,751 diagnostic reports, 98,206 discharge summaries, and 1,500 MIMIC-CXR free-text reports. Models were trained using three tokenizers (GPT-2, RadBERT, LLaMA-2) with batch sizes of 64, 128, and 256. An active malicious-server threat model was assumed (the server modifies the shared model architecture before distribution), and analytic gradient inversion was applied to recover text. Reconstruction fidelity was measured over five runs using exact sentence accuracy, S-BLEU, G-BLEU, and ROUGE-L. **Results:** Exact sentence reconstruction ranged from 31% to 44% across tokenizers (30.643.5% across the 27 tokenizer __ dataset __ batch-size cells). At batch size 64 on the Discharge dataset, accuracy was 42.1% (GPT-2), 42.3% (RadBERT), and 39.4% (LLaMA-2), decreasing to 37.3%, 37.2%, and 34.3% at batch size 256. S-BLEU scores declined with increasing batch size (e.g., GPT-2: 0.44 __ 0.33; RadBERT: 0.48 __ 0.35; LLaMA-2: 0.39 __ 0.30). RadBERT yielded higher reconstruction fidelity and greater recovery of clinical terms, but no tokenizer prevented leakage. **Conclusions:** Substantial portions of radiology report text can be reconstructed from FL gradients even with larger batch sizes and domain-specific tokenizers. Tokenizer design influences leakage severity and should be incorporated into privacy evaluations for clinical language models. Integrating safeguards such as secure aggregation and differential privacy is likely necessary to meet HIPAA and GDPR requirements when deploying FL for radiology NLP. > Preprint. Under review at _JMIR Medical Informatics_ .

Loading executive summary...

LINK COPIED TO CLIPBOARD