SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.04699 · ICCV · 2023

GIFD: A Generative Gradient Inversion Method with Feature Domain Optimization

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

arXiv · PDF · Open in the Atlas

Code that ran

12 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2308.04699.json · badge: /api/ran/2308.04699.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ffhibnese/GIFD canonical (classifier label)
classifier basis: census
12 ran · 1 no recorded run
FunctionStatusWhere it lives
activation_errors Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/inversefed/metrics.py
code served (permissive licence) · get_code("e551d62ffffcfda9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned defaultdict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from collections import defaultdict

torch.manual_seed(0)

# Build a small model with named modules
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.relu = nn.ReLU()
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.relu(x)
        x = self.linear2(x)
        return x

model = SimpleModel()
model.eval()

# Create two small input tensors with batch size 2 and feature dimension 4
x1 = torch.randn(2, 4)
x2 = torch.randn(2, 4)

ARGS = {
    "model": model,
    "x1": x1,
    "x2": x2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
additive_noise Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/defense.py
code served (permissive licence) · get_code("1770bad65e763b78")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a list of small gradient tensors (simulating gradients from a model)
input_gradient = [
    torch.randn(2, 4),
    torch.randn(3, 4),
    torch.randn(4,)
]

ARGS = {
    "input_gradient": input_gradient,
    "std": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
densenet_cifar Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/inversefed/nn/densenet.py
pointer only (licence: MIT); the stored copy get_code serves, from tasi-lab/unlearning-inversion-attacks, is pointer only (licence: NONE) · get_code("7db01b64f42f28ee")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tasi-lab/unlearning-inversion-attacks, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gradient_clipping Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/defense.py
code served (permissive licence) · get_code("49e3def5d3ba54c9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create a list of gradient tensors (simulating gradients from a model)
# The function expects input_gradient to be a list of tensors
input_gradient = [
    torch.randn(2, 4, requires_grad=False),
    torch.randn(3, 4, requires_grad=False),
]

# Define bound parameter
bound = 4

ARGS = {
    "input_gradient": input_gradient,
    "bound": bound,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gradient_compression Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/defense.py
code served (permissive licence) · get_code("aae188414ae38f51")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# Create a list of gradient tensors with different shapes
input_gradient = [
    torch.randn(2, 4),
    torch.randn(3, 5),
    torch.randn(2, 3, 4)
]

ARGS = {
    "input_gradient": input_gradient,
    "percentage": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_config Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/rec_mult.py
code served (permissive licence) · get_code("21cecdf2721c9a12")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import yaml
import tempfile
import os

# Create a temporary YAML config file
temp_dir = tempfile.mkdtemp()
config_path = os.path.join(temp_dir, "test_config.yaml")

# Write a valid YAML configuration to the temporary file
config_content = """
model:
  name: test_model
  layers: 3
  hidden_dim: 128
training:
  batch_size: 32
  learning_rate: 0.001
  epochs: 10
data:
  path: /data/dataset
  split: 0.8
"""

with open(config_path, 'w') as f:
    f.write(config_content)

ARGS = {
    'config_path': config_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
merge Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/inversefed/nn/revnet_utils.py
code served (permissive licence) · get_code("2d15f050207aff53")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 7) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The merge function concatenates two tensors along dimension 1
# It expects two tensors x1 and x2
# We'll create small tensors with distinct shapes to make debugging easier

x1 = torch.randn(2, 3)  # batch size 2, feature dim 3
x2 = torch.randn(2, 4)  # batch size 2, feature dim 4

ARGS = {
    "x1": x1,
    "x2": x2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 7) — shape (2, 7) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
psnr Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ffhibnese/GIFD/inversefed/metrics.py
code served (permissive licence) · get_code("5ef2f520281c0bdf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small test tensors with distinct dimensions
# Shape: [B=2, C=3, m=4, n=5]
img_batch = torch.randn(2, 3, 4, 5)
ref_batch = torch.randn(2, 3, 4, 5)

ARGS = {
    "img_batch": img_batch,
    "ref_batch": ref_batch,
    "batched": False,
    "factor": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reconstruction_costs Ran
ran, honoured the contract we drafted
ffhibnese/GIFD/inversefed/reconstruction_algorithms.py
code served (permissive licence) · get_code("24dd50ff238a3c31")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small set of gradients (list of lists of tensors)
# Each gradient is a list of tensors representing parameter gradients
gradient_1 = [torch.randn(2, 4), torch.randn(3, 5), torch.randn(4)]
gradient_2 = [torch.randn(2, 4), torch.randn(3, 5), torch.randn(4)]
gradient_3 = [torch.randn(2, 4), torch.randn(3, 5), torch.randn(4)]

gradients = [gradient_1, gradient_2, gradient_3]

# Create input_gradient with same structure
input_gradient = [torch.randn(2, 4), torch.randn(3, 5), torch.randn(4)]

ARGS = {
    'gradients': gradients,
    'input_gradient': input_gradient,
    'cost_fn': 'l2',
    'indices': 'def',
    'weights': 'equal'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/inversefed/nn/revnet_utils.py
code served (permissive licence) · get_code("781553d9de1bec97")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 5, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects a tensor x with:
# - x.size()[1] must be even (will be split in half along dimension 1)
# - x must have 4 dimensions (indexed with [:, :n, :, :])
# Create a small tensor: batch_size=2, channels=4, height=3, width=5
x = torch.randn(2, 4, 3, 5)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 5, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
total_variation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ffhibnese/GIFD/inversefed/metrics.py
code served (permissive licence) · get_code("3d23162c75564e01")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes a 4D tensor x and computes anisotropic total variation
# It accesses x[:, :, :, :-1], x[:, :, :, 1:], x[:, :, :-1, :], x[:, :, 1:, :]
# So we need a 4D tensor with shape (batch, channels, height, width)
# Using distinct sizes: batch=2, channels=4, height=3, width=5

x = torch.randn(2, 4, 3, 5)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
training_strategy Ran
ran; our contract draft was wrong, not the code
ffhibnese/GIFD/inversefed/optimization_strategy.py
code served (permissive licence) · get_code("add5009f628a413f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ConservativeStrategy. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'strategy': 'conservative',
    'lr': 0.01,
    'epochs': 50,
    'dryrun': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ConservativeStrategy — a ConservativeStrategy output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ConservativeStrategy output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
construct_model Not yet run
unverified (harvested, no recorded run)
ffhibnese/GIFD/inversefed/nn/models.py
code served (permissive licence) · get_code("1e0ee02f7f2be4e0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 0 the same month, 4 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
activation_errors 5 other papers
2 dated earlier, 3 later
Sun_Soteria_Provable_Defense_Against_Privacy_Leakage_in_Federated_Learning_From_CVPR_2021_paper (2021 (year only))
Soteria: Provable Defense against Privacy Leakage in Federated Learning from Representation Perspective
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
2309.13016 (2023-09)
Understanding Deep Gradient Leakage via Inversion Influence Functions
and 2 more not named here
psnr 5 other papers
2 dated earlier, 3 later
Sun_Soteria_Provable_Defense_Against_Privacy_Leakage_in_Federated_Learning_From_CVPR_2021_paper (2021 (year only))
Soteria: Provable Defense against Privacy Leakage in Federated Learning from Representation Perspective
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
2309.13016 (2023-09)
Understanding Deep Gradient Leakage via Inversion Influence Functions
and 2 more not named here
total_variation 5 other papers
2 dated earlier, 3 later
Sun_Soteria_Provable_Defense_Against_Privacy_Leakage_in_Federated_Learning_From_CVPR_2021_paper (2021 (year only))
Soteria: Provable Defense against Privacy Leakage in Federated Learning from Representation Perspective
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
2309.13016 (2023-09)
Understanding Deep Gradient Leakage via Inversion Influence Functions
and 2 more not named here
densenet_cifar 4 other papers
1 dated earlier, 2 later, 1 same year, order not determinable
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
Zhang_Generative_Gradient_Inversion_via_Over-Parameterized_Networks_in_Federated_Learning_ICCV_2023_paper (2023 (year only))
Generative Gradient Inversion via Over-Parameterized Networks in Federated Learning
2309.13016 (2023-09)
Understanding Deep Gradient Leakage via Inversion Influence Functions
and 1 more not named here
merge 2 other papers
2 dated earlier
1802.07088 (2018-02)
i-RevNet: Deep Invertible Networks
2010.01207 (2020-10)
$f$-GAIL: Learning $f$-Divergence for Generative Adversarial Imitation Learning
gradient_clipping 1 other paper
1 dated earlier
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
gradient_compression 1 other paper
1 dated earlier
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
load_config 1 other paper
1 dated earlier
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
reconstruction_costs 1 other paper
1 dated earlier
2107.01154 (2021-07)
Gradient-Leakage Resilient Federated Learning
split 1 other paper
1 dated earlier
1802.07088 (2018-02)
i-RevNet: Deep Invertible Networks
training_strategy 1 other paper
1 dated earlier
Sun_Soteria_Provable_Defense_Against_Privacy_Leakage_in_Federated_Learning_From_CVPR_2021_paper (2021 (year only))
Soteria: Provable Defense against Privacy Leakage in Federated Learning from Representation Perspective

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 Gradient Inversion over Feature Domains (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 1 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.04699")
get_code_for_paper("2308.04699")
have("2308.04699")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2308.04699.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2308.04699.svg)](https://syntology.ai/paper/2308.04699)

Connect an agent — have() is free.