Papers › GIFD: A Generative Gradient Inversion Method with Feature Domain Optimization

GIFD: A Generative Gradient Inversion Method with Feature Domain Optimization

9 Aug 2023ICCV 2023 1arXiv:2308.04699archive 2025-07-28

Hao Fang, Bin Chen, Xuan Wang, Zhi Wang, Shu-Tao Xia

Federated Learning (FL) has recently emerged as a promising distributed machine learning framework to preserve clients' privacy, by allowing multiple clients to upload the gradients calculated from their local data to a central server. Recent studies find that the exchanged gradients also take the risk of privacy leakage, e.g., an attacker can invert the shared gradients and recover sensitive data against an FL system by leveraging pre-trained generative adversarial networks (GAN) as prior knowledge. However, performing gradient inversion attacks in the latent space of the GAN model limits their expression ability and generalizability. To tackle these challenges, we propose \textbf{G}radient \textbf{I}nversion over \textbf{F}eature \textbf{D}omains (GIFD), which disassembles the GAN model and searches the feature domains of the intermediate layers. Instead of optimizing only over the initial latent code, we progressively change the optimized layer, from the initial latent space to intermediate layers closer to the output images. In addition, we design a regularizer to avoid unreal image generation by adding a small l₁ ball constraint to the searching range. We also extend GIFD to the out-of-distribution (OOD) setting, which weakens the assumption that the training sets of GANs and FL tasks obey the same data distribution. Extensive experiments demonstrate that our method can achieve pixel-level reconstruction and is superior to the existing methods. Notably, GIFD also shows great generalizability under different defense strategy settings and batch sizes.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.04699")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ffhibnese/gifd officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ffhibnese/GIFD. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

additive_noise ffhibnese/GIFD/defense.py official repository ran MIT (permissive) · 1770bad65e763b78 · report
densenet_cifar ffhibnese/GIFD/inversefed/nn/densenet.py official repository ran MIT (permissive) · 7db01b64f42f28ee · report
gradient_clipping ffhibnese/GIFD/defense.py official repository ran MIT (permissive) · 49e3def5d3ba54c9 · report
gradient_compression ffhibnese/GIFD/defense.py official repository ran MIT (permissive) · aae188414ae38f51 · report
load_config ffhibnese/GIFD/rec_mult.py official repository ran MIT (permissive) · 21cecdf2721c9a12 · report
merge ffhibnese/GIFD/inversefed/nn/revnet_utils.py official repository ran fingerprinted MIT (permissive) · 2d15f050207aff53 · report
reconstruction_costs ffhibnese/GIFD/inversefed/reconstruction_algorithms.py official repository ran MIT (permissive) · 24dd50ff238a3c31 · report
split ffhibnese/GIFD/inversefed/nn/revnet_utils.py official repository ran fingerprinted MIT (permissive) · 781553d9de1bec97 · report
training_strategy ffhibnese/GIFD/inversefed/optimization_strategy.py official repository ran MIT (permissive) · add5009f628a413f · report
activation_errors ffhibnese/GIFD/inversefed/metrics.py official repository unverified MIT (permissive) · e551d62ffffcfda9 · report
construct_model ffhibnese/GIFD/inversefed/nn/models.py official repository unverified MIT (permissive) · 1e0ee02f7f2be4e0 · report
psnr ffhibnese/GIFD/inversefed/metrics.py official repository unverified MIT (permissive) · 5ef2f520281c0bdf · report
total_variation ffhibnese/GIFD/inversefed/metrics.py official repository unverified MIT (permissive) · 3d23162c75564e01 · report

Tasks

Federated LearningImage Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections