atlas

Research map / Federated learning and privacy / Privacy attacks and secure learning

DAGER: Exact Gradient Inversion for Large Language Models

NeurIPS 2024 · Federated learning and privacy › Privacy attacks and secure learning · approach: Gradient inversion attacks · 10 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DAGER, a search-based gradient inversion attack that exactly recovers whole text batches (up to 128) from self-attention weight gradients of LLMs in the honest-but-curious FedSGD setting.

Problem

Gradient inversion attacks on text in federated learning are approximate and limited to small batches and short sequences, and do not scale to modern decoder LLMs.

Approach

Self-attention projection gradients are low-rank and linear combinations of input embeddings when batch tokens are fewer than the hidden dimension, so a span check on the gradient column space identifies which vocabulary tokens are in the client batch; decoders use causal masks for greedy prefix extension, encoders use heuristic exhaustive search.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DAGER instead of LAMPGPT-2 · CoLA, B=8ROUGE-1: 8.9\pm1.2 -> 100.0\pm0.0Helped
Use DAGER instead of LAMPGPT-2 · SST-2, B=8ROUGE-1: 8.1\pm1.1 -> 100.0\pm0.0Helped
Use DAGER instead of LAMPGPT-2 · Rotten Tomatoes, B=8ROUGE-1: 6.8\pm0.7 -> 100.0^{+0.0}_{-0.1}Helped
Use DAGER instead of LAMPBERT · CoLA, B=8ROUGE-2: 13.1\pm1.9 -> 48.8\pm4.5Helped
Use DAGER instead of LAMPBERT · SST-2, B=8ROUGE-2: 19.1\pm2.8 -> 59.8\pm2.9Helped
Use DAGER instead of LAMPBERT · Rotten Tomatoes, B=8ROUGE-2: 2.0\pm0.6 -> 11.4\pm1.3Helped
Apply rank-threshold heuristic when gradients are full rank (ablation)DAGER on GPT-2 · CoLA, B=128ROUGE-1: 0 -> 30.3Helped
Increase model embedding dimension from GPT-2 to LLaMa-2 (7B)DAGER · CoLA, B=128ROUGE-1: 30.3\pm1.0 -> 99.5\pm0.2Helped
Increase batch size to 128 on GPT-2DAGER · Rotten TomatoesROUGE-1: 100.0\pm0.0 -> 0.0\pm0.0Hurt
Use larger GPT-2 LARGE instead of GPT-2 BASEDAGER · Rotten Tomatoes, B=64ROUGE-1: 2.8\pm1.1 -> 44.1\pm4.2Helped
Use next-token prediction settingDAGER on GPT-2 · Rotten Tomatoes, B=32ROUGE-1: 98.0\pm1.7 -> 99.6^{+0.3}_{-0.9}Helped
Increase FedAvg learning rate from 10^{-4} to 5\times10^{-4} (ablation)DAGER on GPT-2 · Rotten Tomatoes, batch size 16ROUGE-1: 95.4\pm1.6 -> 84.2\pm1.8Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CoLA SST-2 Rotten Tomatoes ECHR

Benchmarks: CoLA SST-2 Rotten Tomatoes ECHR

Metrics: ROUGE-1 ROUGE-2 runtime

Baselines: TAG LAMP

Builds on: Dr. Aduenko-style exact linear-layer gradient inversion (Fowl et al.) TAG LAMP FedSGD FedAvg LoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy