Federated-learning attack recovers sentences exactly, authors say
In short
- A preprint (not yet peer reviewed) from Birla Institute of Technology and Science, Goa, describes an attack in which one malicious participant in federated learning recovers other participants' training sentences word for word.
- The authors say it is the first to show exact sentence recovery with 100% precision. On aggregates with up to 4 times more tokens than the model's hidden dimension, they report recovering up to 80.2% of client sentences exactly, a regime where, they say, existing attacks recover none exactly.
- The trick is to subtract each recovered sentence's contribution from the averaged update, so the next round can see the sentences that were hidden under it.
- The strongest results are on one family of model designs (parallel-residual) and on research datasets. Adding noise to the shared updates stopped the attack in the authors' test.
What the paper reports
Federated learning lets several parties fine-tune one language model without handing over their text. Each party trains on its own data and sends back only a model update, and a server averages them. The promise is that raw text never leaves the owner.
The authors, Omkar Shrikanth, Soham Dambalkar, Parag Jyoti Pal, Advik Raj Basani and Arnab K. Paul, ask what an honest-but-curious client can learn. This is a participant who follows the rules but studies the shared model updates. Earlier text-recovery attacks, they write, assumed a server that sees each client's update separately, and they degrade as the batch grows. In the averaged update, the number of tokens C can far exceed the model's hidden dimension d. The paper calls the point where the token count reaches d the "wall", and "above the wall" means C > d. The strongest previous method it describes, DAGER, recovers text up to 128 sentences but, per the paper, hits that wall once the batch's token count approaches d.
How does the attack recover other people's sentences?
Think of the averaged update as a smoothie made from many people's sentences. You cannot pull one fruit out, but you can guess a recipe, check whether the guess matches the taste, and then remove that fruit's share from the smoothie. With the strong flavour gone, weaker ones become easier to identify. The paper describes five steps that repeat in a loop:
- Residual: the attacker takes the aggregated update, which it can observe because it also receives the new model.
- Bag of tokens: it reads which tokens (word pieces) appeared anywhere in the clients' data.
- Generate: a guided beam search proposes sentences, scoring each next token by how well the model's hidden state matches the update's signal plus how fluent the text is.
- Verify: candidates are checked against the gradient, and only those that match are accepted.
- Peel: the accepted sentences' estimated gradient contributions are subtracted, and the loop runs again until a pass finds nothing new.
The numbers
The authors tested Pythia-160M, Pythia-410M and GPT-J-6B (hidden dimensions 768, 1,024 and 4,096) on SST-2 movie reviews, Enron emails and PubMed text. Aggregates ranged from 256 to 65,536 tokens. Each experiment was repeated three times and the median is reported. All attacks ran on a single NVIDIA A100 GPU.
The 80.2% headline figure appears in the abstract. We did not locate that exact number in the body text we read, so it is the authors' summary claim; the body reports figures by configuration.
Limits the paper states
- Precision is not always 100%. In the Enron sequence-length test, recovery stayed at 100% for caps of 16 to 48 tokens, then dropped sharply at 96, and precision fell from 80% to 66.7% between 64 and 96.
- Recovery falls as the aggregate grows. The authors say their method extends the regime where recovery is possible but remains limited when the aggregate holds too many tokens relative to d.
- Architecture. The full attack works on parallel-residual models. A reduced version on GPT-2 reaches pooled precision of 66.7%, and recovers none in the largest configuration tested (8 clients, batch 64, length 16).
- Setting. The attack assumes the attacker knows the model, joins full fine-tuning under FedAvg, and sees the aggregated update. The data are public research sets, not a deployed system.
- Defences. The noise test covered one model and one configuration. Under a FedAdam server optimiser (first round), the attack recovered no sentences exactly; the authors say this shows failure of their current attack in that setting, not protection against methods that account for the server's optimiser.
Terms in plain English
- Federated learning: many parties train one model, each on their own data, and share only updates. (our wording)
- Gradient inversion: reconstructing training data from the update it produced. (our wording)
- FedAvg: the standard way a server averages client updates into one.
- Hidden dimension (d): the width of the model's internal vectors; the paper uses it as a yardstick for how much text an aggregate can hold.
- Precision: of the sentences the attack claims, the share that are exactly right.
Where things stand
The paper is a preprint and has not been peer reviewed. The authors describe it as a framework for awareness, to inform privacy assessments and stronger defences, and say extending the full pipeline to more architectures is future work. They give a code repository for reproducing the experiments.
Sources
- Stealing Exact Training Data from Other Clients during Federated Learning, arXiv preprint, 18 November 2026 (PDF)
Sources
Related stories
- Quantum Computing Applications in Cryptography
- Belfort releases Bel-0, a chatbot that works on encrypted prompts
- A small AI model still leaks 'forgotten' facts to trick prompts
- Ai2 releases Olmicro, five small open language models
- Frontier AI models can name a text's author, a preprint finds
- Quantum test checks where a message was sent from, authors report
More from Teach the Bot
- Three chatbots name the wrong authors for rarely cited papers
- AI answers rarely say a research question is open, preprint finds
- Alibaba releases Qwen4-Max, a 2.4-trillion-parameter sparse model
- Preprint says memory lifts a self-improving AI's coding scores
- TypeSafe's Jev 1.14 adds image input and a bounding-box answer