SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.05323 · ICML · 2021

ProgFed: Effective, Communication, and Computation Efficient Federated Learning by Progressive Training

Sebastian Stich, Mario Fritz, Yang He, Hui-Po Wang

arXiv · PDF · Open in the Atlas

Code that ran

7 of 17 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; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 1 failure of our instrument; 10 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/2110.05323.json · badge: /api/ran/2110.05323.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
hui-po-wang/progfed canonical (classifier label)
classifier basis not recorded on the link
6 ran · 7 no recorded run
a514514772/progfed marked official in Papers with Code
Papers with Code archive
1 ran · 3 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran on a synthesized input
hui-po-wang/progfed/utils.py
code served (permissive licence) · get_code("bc52bc416489dfab")
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, ndim 1, 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)

# Create output tensor: batch_size=2, num_classes=4
# This should be logits or probabilities from model predictions
output = torch.randn(2, 4)

# Create target tensor: batch_size=2, with class indices in range [0, 3]
target = torch.tensor([1, 3])

# topk parameter: tuple of k values to compute accuracy for
topk = (1, 2)

ARGS = {
    "output": output,
    "target": target,
    "topk": topk,
}
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, ndim 1, dtype family float — a list 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
add_dp_noise Ran
ran on a synthesized input
hui-po-wang/progfed/quantization.py
code served (permissive licence) · get_code("b6d18bda1a223527")
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, 4) 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 a small tensor input
input = torch.randn(2, 4)

# Define sigma (noise standard deviation)
sigma = 0.1

# Define clip_b (clipping bound)
clip_b = 1.0

ARGS = {
    "input": input,
    "sigma": sigma,
    "clip_b": clip_b,
}
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, 4) — shape (2, 4) 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
get_outdim Ran
ran on a synthesized input
hui-po-wang/progfed/models/model_utils.py
code served (permissive licence) · get_code("1dec658fa1c9eb5f")
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 int, ndim 0, dtype family int, 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

def get_outdim(dset):
    if dset == 'imagenet':
        return 1000
    elif dset == 'cifar100':
        return 100
    elif dset == 'cifar10' or dset == 'mnist':
        return 10
    elif dset == 'emnist':
        return 62
    else:
        raise NotImplementedError()

ARGS = {
    'dset': 'cifar10'
}
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 int, ndim 0, dtype family int, 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
hadamard_rotation_reverse Ran
ran; our contract draft was wrong, not the code
a514514772/progfed/fl_utils.py
code served (permissive licence) · get_code("fc505935053e95fd")
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 (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 torch
import numpy as np

torch.manual_seed(0)

# Create input tensor
# The function expects input to have at least 2 dimensions
# sz[0] is the first dimension, and sz2 = total_elements / sz[0]
# Let's use shape (4, 3) so sz1=4, sz2=3
input_tensor = torch.randn(4, 3, dtype=torch.float32)

# Create diag tensor
# This should be broadcastable with the reshaped input (sz1, sz2)
# The function does: x = x * diag
# So diag should have compatible shape for broadcasting with (4, 3)
diag = torch.randn(4, 3, dtype=torch.float32)

ARGS = {
    "input": input_tensor,
    "diag": diag,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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 (4, 3) — shape (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
loss_prox Ran
ran on a synthesized input
hui-po-wang/progfed/fl_utils.py
code served (permissive licence) · get_code("9256737dcb816d37")
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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.layer2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.layer2(self.layer1(x))

device = "cpu"
model_global = SimpleModel()
model_local = SimpleModel()

ARGS = {
    "model_global": model_global,
    "model_local": model_local,
    "device": device
}
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
make_layers Ran
ran on a synthesized input
hui-po-wang/progfed/models/vgg.py
code served (permissive licence) · get_code("2e9f2a01123f7bb8")
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 ModuleList. 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)

# Construct cfg argument - use one of the predefined configurations
cfg_dict = {
    'A': [[64, 'M', 128, 'M'], [256, 256, 'M'], [512, 512, 'M'], [512, 512, 'M']], 
    'B': [[64, 64, 'M', 128, 128, 'M'], [256, 256, 'M'], [512, 512, 'M'], [512, 512, 'M']], 
    'D': [[64, 64, 'M', 128, 128, 'M'], [256, 256, 256, 'M'], [512, 512, 512, 'M'], [512, 512, 512, 'M']], 
    'E': [[64, 64, 'M', 128, 128, 'M'], [256, 256, 256, 256, 'M'], [512, 512, 512, 512, 'M'], [512, 512, 512, 512, 'M']]
}

# Use a simple config (A) for testing
test_cfg = cfg_dict['A']

ARGS = {
    'cfg': test_cfg,
    'batch_norm': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ModuleList — a ModuleList 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
noniid Ran
ran on a synthesized input
hui-po-wang/progfed/fl_utils.py
code served (permissive licence) · get_code("211d11b1d33333e4")
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
import random

torch.manual_seed(0)
random.seed(0)

# Create a minimal dataset stand-in
class MinimalDataset:
    def __init__(self, num_samples=20, num_classes=4):
        self.targets = torch.tensor([i % num_classes for i in range(num_samples)])
    
    def __len__(self):
        return len(self.targets)

dataset = MinimalDataset(num_samples=20, num_classes=4)
num_users = 4
shard_per_user = 2

ARGS = {
    'dataset': dataset,
    'num_users': num_users,
    'shard_per_user': shard_per_user,
    'rand_set_all': []
}
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 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
combine_dequantization Not yet run
unverified (harvested, no recorded run)
a514514772/progfed/fl_utils.py
code served (permissive licence) · get_code("802e94968a21f96e")
How it ran

no invocation recorded.

combine_quantization Not yet run
unverified (harvested, no recorded run)
hui-po-wang/progfed/quantization.py
code served (permissive licence) · get_code("e74b43ecaac25ae7")
How it ran

no invocation recorded.

convnet Not yet run
unverified (harvested, no recorded run)
hui-po-wang/progfed/models/convnet.py
code served (permissive licence) · get_code("18e31c431c76dd56")
How it ran

no invocation recorded.

linear_dequantization Not yet run
unverified (harvested, no recorded run)
a514514772/progfed/fl_utils.py
code served (permissive licence) · get_code("0a5d4af66055e016")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
hui-po-wang/progfed/models/resnet.py
code served (permissive licence) · get_code("985e0af71e7442e3")
How it ran

no invocation recorded.

resnet34 Not yet run
unverified (harvested, no recorded run)
hui-po-wang/progfed/models/resnet.py
code served (permissive licence) · get_code("a465e5dfb7d431b1")
How it ran

no invocation recorded.

resnet50 Not yet run
unverified (harvested, no recorded run)
hui-po-wang/progfed/models/resnet.py
code served (permissive licence) · get_code("564cac17d754ae0f")
How it ran

no invocation recorded.

update_model_global_optim Not yet run
unverified (harvested, no recorded run)
a514514772/progfed/fl_utils.py
code served (permissive licence) · get_code("8af2a79bfe0213c9")
How it ran

no invocation recorded.

vgg11_bn Not yet run
unverified (harvested, no recorded run)
hui-po-wang/progfed/models/vgg.py
code served (permissive licence) · get_code("305019eddb7a5f28")
How it ran

no invocation recorded.

vgg13_bn Not yet run
unverified (harvested, no recorded run)
hui-po-wang/progfed/models/vgg.py
code served (permissive licence) · get_code("20e419cb19c5a145")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 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 17 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

Federated learning is a powerful distributed learning scheme that allows numerous edge devices to collaboratively train a model without sharing their data. However, training is resource-intensive for edge devices, and limited network bandwidth is often the main bottleneck. Prior work often overcomes the constraints by condensing the models or messages into compact formats, e.g., by gradient compression or distillation. In contrast, we propose ProgFed, the first progressive training framework for efficient and effective federated learning. It inherently reduces computation and two-way communication costs while maintaining the strong performance of the final models. We theoretically prove that ProgFed converges at the same asymptotic rate as standard training on full models. Extensive results on a broad range of architectures, including CNNs (VGG, ResNet, ConvNets) and U-nets, and diverse tasks from simple classification to medical image segmentation show that our highly effective training approach saves up to 20% computation and up to 63% communication costs for converged models. As our approach is also complimentary to prior work on compression, we can achieve a wide range of trade-offs by combining these techniques, showing reduced communication of up to 50× at only 0.1% loss in utility. Code is available at https://github.com/hui-po-wang/ ProgFed.

For agents

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

get_harvested_code_for_paper("2110.05323")
get_code_for_paper("2110.05323")
have("2110.05323")

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

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

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

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

Connect an agent — have() is free.