Lune

NeurIPS2024Top-tier venue

SPEAR: Exact Gradient Inversion of Batches in Federated Learning

Dimitar I. Dimitrov, Maximilian Baader, Mark Niklas Müller, Martin T. Vechev

Abstract

Federated learning is a framework for collaborative machine learning where clients only share gradient updates and not their private data with a server. However, it was recently shown that gradient inversion attacks can reconstruct this data from the shared gradients. In the important honest-but-curious setting, existing attacks enable exact reconstruction only for batch size of b=1b=1, with larger batches permitting only approximate reconstruction. In this work, we propose SPEAR, the first algorithm reconstructing whole batches with b>1b>1 exactly. SPEAR combines insights into the explicit low-rank structure of gradients with a sampling-based algorithm. Crucially, we leverage ReLU-induced gradient sparsity to precisely filter out large numbers of incorrect samples, making a final reconstruction step tractable. We provide an efficient GPU implementation for fully connected networks and show that it recovers high-dimensional ImageNet inputs in batches of up to b≲25b \lesssim 25 exactly while scaling to large networks. Finally, we show theoretically that much larger batches can be reconstructed with high probability given exponential time.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Robbing the Fed: Directly Obtaining Private Data in Federated Learning with Modified Models cites Inverting Gradients - How easy is it to break privacy in federated learning?
  • When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA Systems cites Recovering Private Text in Federated Learning of Language Models
  • R-GAP: Recursive Gradient Attack on Privacy cites Inverting Gradients - How easy is it to break privacy in federated learning?
  • Recovering Private Text in Federated Learning of Language Models cites Inverting Gradients - How easy is it to break privacy in federated learning?
  • Recovering Private Text in Federated Learning of Language Models cites R-GAP: Recursive Gradient Attack on Privacy
  • Recovering Private Text in Federated Learning of Language Models cites Deep Learning with Differential Privacy
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Shared Spotlight Meridian: Distributed Sparse Pseudorandom Functions for Scalable Federated LearningYoulong Ding, Peihua Mai, Jingqi Zhang, Sherman S. M. Chow et al.S&P 2026 · 1 citation
  2. When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA SystemsChenqing Zhu, Yanbo Dai, Yulong Tian, Qingming Li et al.USENIX Security 2026

Builds on13

  1. Deep Learning with Differential PrivacyMartín Abadi, Andy Chu, Ian J. Goodfellow, H. Brendan McMahan et al.CCS 2016 · 7,620 citations
  2. Inverting Gradients - How easy is it to break privacy in federated learning?Jonas Geiping, Hartmut Bauermeister, Hannah Dröge, Michael MoellerNeurIPS 2020 · 1,822 citations
  3. Robbing the Fed: Directly Obtaining Private Data in Federated Learning with Modified ModelsLiam H. Fowl, Jonas Geiping, Wojciech Czaja, Micah Goldblum et al.ICLR 2022 · 181 citations
  4. R-GAP: Recursive Gradient Attack on PrivacyJunyi Zhu, Matthew B. BlaschkoICLR 2021 · 157 citations
  5. Recovering Private Text in Federated Learning of Language ModelsSamyak Gupta, Yangsibo Huang, Zexuan Zhong, Tianyu Gao et al.NeurIPS 2022 · 120 citations

Related papers

  1. DAGER: Exact Gradient Inversion for Large Language ModelsIvo Petrov, Dimitar I. Dimitrov, Maximilian Baader, Mark Niklas Müller et al.NeurIPS 2024 · 29 citations
  2. GRAIN: Exact Graph Reconstruction from GradientsMaria Drencheva, Ivo Petrov, Maximilian Baader, Dimitar Iliev Dimitrov et al.ICLR 2025
  3. ARES: Scalable and Practical Gradient Inversion Attack in Federated Learning Through Activation RecoveryZirui Gong, Leo Yu Zhang, Yanjun Zhang, Viet Vo et al.S&P 2026
  4. Cocktail Party Attack: Breaking Aggregation-Based Privacy in Federated Learning Using Independent Component AnalysisSanjay Kariyappa, Chuan Guo, Kiwan Maeng, Wenjie Xiong et al.ICML 2023 · 43 citations
  5. See Through Gradients: Image Batch Recovery via GradInversionHongxu Yin, Arun Mallya, Arash Vahdat, José M. Álvarez et al.CVPR 2021
Dusk over the sea between two cliffs drawn in fine vertical lines