SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.00127 · ICML · 2023

Surrogate Model Extension (SME): A Fast and Accurate Weight Update Attack on Federated Learning

Matthew Blaschko, Junyi Zhu, Ruicong Yao

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 3 failures of our instrument; 4 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/2306.00127.json · badge: /api/ran/2306.00127.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
junyizhu-ai/surrogate_model_extension canonical (classifier label)
classifier basis: classifier_2025
3 ran · 2 no recorded run
eth-sri/fedavg_leakage unrelated (classifier label)
classifier basis: classifier_2025
2 ran · 2 no recorded run
FunctionStatusWhere it lives
IWU Ran
ran on a synthesized input · constructed an object; no result was computed
junyizhu-ai/surrogate_model_extension/sme/Adversary/adversary.py
pointer only (licence: NONE) · get_code("f83a503893df1e24")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, junyizhu-ai/surrogate_model_extension 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.

compute_matching Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
eth-sri/fedavg_leakage/fedavg/attacks/grad_attack.py
code served (permissive licence) · get_code("0889102a88546b82")
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. 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
from torchvision import transforms

torch.manual_seed(0)

# Create small synthetic inputs
# at_inputs: shape (batch_size, channels, height, width) - normalized images
# inputs: shape (batch_size, channels, height, width) - normalized images
batch_size = 2
channels = 3
height = 4
width = 4

# Create synthetic normalized image data (values in typical range for normalized images)
at_inputs = np.random.randn(batch_size, channels, height, width).astype(np.float32) * 0.2 + 0.5
inputs = np.random.randn(batch_size, channels, height, width).astype(np.float32) * 0.2 + 0.5

# Clip to valid range
at_inputs = np.clip(at_inputs, 0, 1)
inputs = np.clip(inputs, 0, 1)

delta = 0.1
dataset = 'CIFAR10'

ARGS = {
    'at_inputs': at_inputs,
    'inputs': inputs,
    'delta': delta,
    'dataset': dataset,
    'batch_size': batch_size,
    'metric': 'l2',
    'fedavg': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, skimage, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple 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
compute_norm Ran
ran, honoured the contract we drafted
junyizhu-ai/surrogate_model_extension/sme/Adversary/adversary.py
pointer only (licence: NONE) · get_code("c815819da7d3f742")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, junyizhu-ai/surrogate_model_extension 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.

generate_init_img Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
eth-sri/fedavg_leakage/fedavg/attacks/grad_attack.py
code served (permissive licence) · get_code("8b672039c1c6718a")
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) and returned ArrayImpl, ndim 3, dtype family float, shape (2, 4, 3) 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 jax
import jax.numpy as jnp

# Create a JAX random key
rng = jax.random.PRNGKey(0)

# Define shape for the generated image
shape = (2, 4, 3)

# Define initialization method
att_init = 'normal'

# Construct ARGS dictionary
ARGS = {
    'rng': rng,
    'shape': shape,
    'att_init': att_init
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) 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
total_variation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
junyizhu-ai/surrogate_model_extension/sme/Adversary/adversary.py
pointer only (licence: NONE) · get_code("751c3b578dca1309")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, junyizhu-ai/surrogate_model_extension 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.

attack_via_grad_opt_flax Not yet run
unverified (harvested, no recorded run)
eth-sri/fedavg_leakage/fedavg/attacks/grad_attack.py
code served (permissive licence) · get_code("554cc2806b81818b")
How it ran

no invocation recorded.

prior_boundary Not yet run
unverified (harvested, no recorded run)
junyizhu-ai/surrogate_model_extension/sme/Adversary/adversary.py
pointer only (licence: NONE) · get_code("8bce02582e5fa957")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, junyizhu-ai/surrogate_model_extension 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. No invocation recorded.

require_grad Not yet run
unverified (harvested, no recorded run)
junyizhu-ai/surrogate_model_extension/sme/Adversary/adversary.py
pointer only (licence: NONE) · get_code("a5e33466fcb446bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, junyizhu-ai/surrogate_model_extension 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. No invocation recorded.

visualize Not yet run
unverified (harvested, no recorded run)
eth-sri/fedavg_leakage/fedavg/attacks/grad_attack.py
code served (permissive licence) · get_code("0161a159399d1e19")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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

In Federated Learning (FL) and many other distributed training frameworks, collaborators can hold their private data locally and only share the network weights trained with the local data after multiple iterations. Gradient inversion is a family of privacy attacks that recovers data from its generated gradients. Seemingly, FL can provide a degree of protection against gradient inversion attacks on weight updates, since the gradient of a single step is concealed by the accumulation of gradients over multiple local iterations. In this work, we propose a principled way to extend gradient inversion attacks to weight updates in FL, thereby better exposing weaknesses in the presumed privacy protection inherent in FL. In particular, we propose a surrogate model method based on the characteristic of two-dimensional gradient flow and low-rank property of local updates. Our method largely boosts the ability of gradient inversion attacks on weight updates containing many iterations and achieves state-ofthe-art (SOTA) performance. Additionally, our method runs up to 100× faster than the SOTA baseline in the common FL scenario. Our work re-evaluates and highlights the privacy risk of sharing network weights. Our code is available at https://github.com/JunyiZhu-AI/ surrogate_model_extension.

For agents

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

get_harvested_code_for_paper("2306.00127")
get_code_for_paper("2306.00127")
have("2306.00127")

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

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

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

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

Connect an agent — have() is free.