NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Temporal Gradient Inversion Attacks With Robust Optimization

Bowen Li, Hanlin Gu, Ruoxin Chen, Jie Li, Chentao Wu, Na Ruan, Xueming Si, Lixin Fan

TL;DR

Federated Learning’s "data stays local" promise is under fire. This paper introduces TGIAs-RO, a potent attack that reconstructs private training data by watching model gradients over multiple time steps. By leveraging temporal information and robust optimization, the attack breaks through previous barriers like large batch sizes and complex model architectures (e.g., ResNet18) that typically thwart such privacy breaches.

What Problem Does This Paper Address?

Federated Learning (FL) is designed to be privacy-preserving: clients train models locally and only share "gradients" (mathematical updates) with a central server. However, Gradient Inversion Attacks (GIAs) have shown that an adversary (like a curious server) can sometimes reverse-engineer the original training images from these gradients.

Until now, GIAs had major "blind spots." They usually relied on a single iteration's gradient, which often failed when:

  1. Batch sizes were large: Reconstructing 128 images from one update is mathematically "underdetermined"—there are too many unknowns.
  2. Models were complex: Non-linear layers like ReLU and Batch Normalization create "bad local minima" where optimization gets stuck.
  3. Models converged: As a model learns, gradients shrink toward zero, providing almost no information for an attacker.

The authors of this paper set out to prove that these "protections" are fragile if an attacker simply waits and collects gradients over time.

Methods

The core innovation is Temporal Gradient Inversion Attacks with Robust Optimization (TGIAs-RO). Instead of a single snapshot, the attacker uses $T$ snapshots of gradients corresponding to the same data batch across different training epochs.

The process involves four key steps:

  1. Label Restoration & Alignment: The attacker first recovers the data labels (using the model's last layer) and then uses cosine similarity to "align" gradients from different time steps that likely belong to the same batch of data.
  2. Parallel Optimization: The attacker runs $T$ separate optimization processes in parallel, one for each temporal gradient.
  3. Robust Aggregation: This is the "Robust Optimization" (RO) part. Because some gradients might be "invalid" (e.g., from a converged model), a simple average would ruin the reconstruction. Instead, the authors use robust statistics (like Krum or coordinate-wise median) to filter out "collapsed" or outlier reconstructions.
  4. Iterative Refinement: The aggregated result is used as the starting point for the next round of optimization, effectively "collaborating" across time to find the global solution.

Datasets

The authors evaluated TGIAs-RO across diverse benchmarks to prove its versatility:

  • Computer Vision: MNIST (digits), CIFAR10 (small images), and ImageNet (high-resolution $224 \times 224$ pixels).
  • Natural Language Processing: The Reuters 21578 (R8 subset) dataset for text classification.
  • Architectures: Tested on LeNet, AlexNet, ResNet18, and TextCNN.

Key Insights and Ideas

  • The Power of Time: The "aha moment" is realizing that while one gradient update might be insufficient to solve the "puzzle" of a large batch, ten updates of the same batch provide enough constraints to make the problem solvable.
  • Robustness is a Double-Edged Sword: Robust statistics (usually used to defend models against malicious updates) are used here by the attacker to filter out their own failed optimization attempts.
  • Defenses are Leaky: The attack is surprisingly resilient against common privacy defenses. It can still reconstruct data even when Differential Privacy (adding noise) or Gradient Sparsification (removing 40% of the update) is applied, because the attacker has multiple "looks" at the data over time.
  • Breaking the "Convergence Shield": Previous attacks failed on trained models. TGIAs-RO succeeds because its robust aggregation simply ignores the near-zero gradients from converged layers.

Key Results

  • Scaling Batch Size: TGIAs-RO successfully reconstructed data for batch sizes up to 128, whereas previous state-of-the-art methods (like DLG or SAPAG) typically failed or produced noise beyond a batch size of 8.
  • High-Res Success: It achieved high-quality reconstructions on ImageNet ($224 \times 224$), a significant jump from the $32 \times 32$ thumbnails usually seen in GIA research.
  • Quantitative Superiority: In head-to-head tests, TGIAs-RO maintained a Structural Similarity Index (SSIM) above 0.6 and high PSNR on ImageNet, while baseline methods collapsed to near-zero quality.
  • Text Recovery: On the R8 text dataset, the method achieved a 100% recovery rate for small batches and remained highly effective even as complexity increased.

Limitations and Future Work

  • Computational Overhead: The attack is more expensive than single-iteration GIAs. Using 10 temporal gradients roughly increases the reconstruction time by a factor of 10.
  • Batch Alignment Dependency: The attack assumes the adversary can correctly identify when the same batch is being reused across epochs. While the authors show this is possible via label and gradient similarity, it might be more difficult in "Non-IID" scenarios where data distribution is highly skewed.
  • Future Directions: The authors suggest that this work should inspire more "adaptive" privacy-preserving methods that account for information leakage over the entire training duration, rather than just a single step.

Summary updated

BibTeX
@article{li2025temporal,
  author = {Bowen Li and Hanlin Gu and Ruoxin Chen and Jie Li and Chentao Wu and Na Ruan and Xueming Si and Lixin Fan},
  title = {{Temporal Gradient Inversion Attacks With Robust Optimization}},
  journal = {IEEE Transactions on Dependable and Secure Computing},
  year = {2025},
  url = {https://openreview.net/forum?id=8Rsid2g6Jo},
}

Loading related content...

Figure