Decepticons: Corrupted Transformers Breach Privacy in Federated Learning for Language Models

Liam Fowl, Jonas Geiping, Steven Reich, Yuxin Wen, Wojtek Czaja +2 more
1/29/2022
cs.LGcs.CLcs.CR
transformer-attentionfederated

Official code: JonasGeiping/breaching (328 stars, Python, MIT, PyTorch, last commit 2026-01-24).

Abstract

A central tenet of Federated learning (FL), which trains models without centralizing user data, is privacy. However, previous work has shown that the gradient updates used in FL can leak user information.

Show full abstract

While the most industrial uses of FL are for text applications (e.g. keystroke prediction), nearly all attacks on FL privacy have focused on simple image classifiers. We propose a novel attack that reveals private user text by deploying malicious parameter vectors, and which succeeds even with mini-batches, multiple users, and long sequences. Unlike previous attacks on FL, the attack exploits characteristics of both the Transformer architecture and the token embedding, separately extracting tokens and positional embeddings to retrieve high-fidelity text. This work suggests that FL on text, which has historically been resistant to privacy attacks, is far more vulnerable than previously thought.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Breaching privacy in federated learning scenarios for vision and text

32872PythonFeb 15, 202210 months agoMIT
decentralized-learningfederated-learningmachine-learningprivacy-auditpytorch+1 more

Similar Papers

Cite this paper

@article{fowl2022decepticons,
  title  = {Decepticons: Corrupted Transformers Breach Privacy in Federated Learning for Language Models},
  author = {Liam Fowl and Jonas Geiping and Steven Reich and Yuxin Wen and Wojtek Czaja and Micah Goldblum and Tom Goldstein},
  year   = {2022},
  eprint = {2201.12675},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12675}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.12675.svg)](https://codeofpaper.com/paper/2201.12675)

Discussion