English

Uncovering Gradient Inversion Risks in Practical Language Model Training

Machine Learning 2025-07-30 v1 Artificial Intelligence

Abstract

The gradient inversion attack has been demonstrated as a significant privacy threat to federated learning (FL), particularly in continuous domains such as vision models. In contrast, it is often considered less effective or highly dependent on impractical training settings when applied to language models, due to the challenges posed by the discrete nature of tokens in text data. As a result, its potential privacy threats remain largely underestimated, despite FL being an emerging training method for language models. In this work, we propose a domain-specific gradient inversion attack named Grab (gradient inversion with hybrid optimization). Grab features two alternating optimization processes to address the challenges caused by practical training settings, including a simultaneous optimization on dropout masks between layers for improved token recovery and a discrete optimization for effective token sequencing. Grab can recover a significant portion (up to 92.9% recovery rate) of the private training data, outperforming the attack strategy of utilizing discrete optimization with an auxiliary model by notable improvements of up to 28.9% recovery rate in benchmark settings and 48.5% recovery rate in practical settings. Grab provides a valuable step forward in understanding this privacy threat in the emerging FL training mode of language models.

Keywords

Cite

@article{arxiv.2507.21198,
  title  = {Uncovering Gradient Inversion Risks in Practical Language Model Training},
  author = {Xinguo Feng and Zhongkui Ma and Zihan Wang and Eu Joe Chegne and Mengyao Ma and Alsharif Abuadbba and Guangdong Bai},
  journal= {arXiv preprint arXiv:2507.21198},
  year   = {2025}
}

Comments

15 Pages, 5 figures, 10 tables. Accepted by ACM CCS 2024

R2 v1 2026-07-01T04:22:48.125Z