March 2026

Conference Paper

Position-Enhanced Gradient Attack (PEGA) on Medical Language Models

By:
Xu, Nuo; Stanley, Christopher B; Gounley, John P; Hanson, Heidi A; Ge, Chang; Ding, Caiwen
Page Number:
1-7
Book Title:
MMAsia '25: Proceedings of the 7th ACM International Conference on Multimedia in Asia
Publication Date:
March 12, 2026
Publisher Location:
Association for Computing Machinery, New York, New York, United States of America
Conference Name:
ACM Multimedia Asia: 7th ACM International Conference on Multimedia in Asia
Conference Location:
Kuala Lumpur, Malaysia
Conference Sponsor:
Association for Computing Machinery
View DOI Listing:
https://doi.org/10.1145/3743093.3771065

Abstract

Federated Learning (FL) enables collaborative training of language models on sensitive clinical notes without sharing the data. However, this paradigm is vulnerable to gradient inversion attacks that can reconstruct private data from shared gradients. We find that state-of-the-art attacks are less effective in the medical domain, failing to overcome the unique challenges posed by its specialized vocabulary and unstructured format. To address this, we introduce the Position-Enhanced Gradient Attack (PEGA), a novel attack that makes gradients position-aware by optimizing token and position embeddings simultaneously. PEGA employs two key innovations: a periodic sorting of positional embeddings to resolve token order ambiguity and a late-stage embedding replacement strategy to correct hard-to-recover critical tokens. To evaluate the leakage of sensitive data more directly, we also propose the Unified PHI-Recall (UPHI), a new metric measuring the recovery of Protected Health Information. Experiments on the MIMIC-III dataset show that PEGA significantly outperforms leading attacks like TAG and LAMP, particularly in its ability to reconstruct identifiable patient information, exposing a more severe and nuanced privacy risk in federated medical NLP.