SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.06042 · ICLR · 2022

FEDBABU: TOWARD ENHANCED REPRESENTATION FOR FEDERATED IMAGE CLASSIFICATION

Jaehoon Oh, Se-Young Yun, Sangmook Kim

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; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 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/2106.06042.json · badge: /api/ran/2106.06042.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
jhoon-oh/fedbabu canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
TsingZ0/PFL-Non-IID community
Papers with Code archive
1 ran · 3 no recorded run
FunctionStatusWhere it lives
Client Ran
ran on a synthesized input · constructed an object; no result was computed
TsingZ0/PFL-Non-IID/system/flcore/servers/serverbabu.py
code served (permissive licence) · get_code("1048b2e2fa3a6bf4")
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 an instance of its own class, Client: the run constructed the object and did not call it, so no result was computed. 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
import copy
from collections import defaultdict

torch.manual_seed(0)

# Create a small model for testing
class SimpleModel(nn.Module):
    def __init__(self, num_classes=10):
        super(SimpleModel, self).__init__()
        self.fc1 = nn.Linear(4, 8)
        self.fc2 = nn.Linear(8, num_classes)
    
    def forward(self, x):
        x = torch.relu(self.fc1(x))
        x = self.fc2(x)
        return x

# Create a small args object
class Args:
    def __init__(self):
        self.model = SimpleModel(num_classes=10)
        self.algorithm = "FedAvg"
        self.dataset = "cifar10"
        self.device = "cpu"
        self.save_folder_name = "test_folder"
        self.num_classes = 10
        self.batch_size = 2
        self.local_learning_rate = 0.01
        self.local_epochs = 5
        self.few_shot = 0
        self.learning_rate_decay_gamma = 0.99
        self.learning_rate_decay = False

ARGS = {
    'args': Args(),
    'id': 0,
    'train_samples': 10,
    'test_samples': 5,
    'train_slow': False,
    'send_slow': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Client — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Client 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
FedAvg Ran
ran; our contract draft was wrong, not the code
jhoon-oh/fedbabu/models/Fed.py
pointer only (licence: MIT); the stored copy get_code serves, from hongshenghu/source-inference-fl, is pointer only (licence: NONE) · get_code("f9964d719c5cb8f4")
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 hongshenghu/source-inference-fl, 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.

ResNet18 Ran
ran; our contract draft was wrong, not the code
jhoon-oh/fedbabu/models/ResNet.py
code served (permissive licence) · get_code("0f23e7e681845fe0")
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 ResNet. 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)

ARGS = {
    "num_classes": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
ResNet50 Ran
ran; our contract draft was wrong, not the code
jhoon-oh/fedbabu/models/ResNet.py
pointer only (licence: MIT); the stored copy get_code serves, from jackbrocp/entaugment, is pointer only (licence: NONE) · get_code("21ba14c82993c2fe")
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 jackbrocp/entaugment, 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.

conv3x3 Ran
ran; our contract draft was wrong, not the code
jhoon-oh/fedbabu/models/Nets.py
code served (permissive licence) · get_code("7eccbc3004b9fde7")
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 Sequential. 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)

# The function conv3x3 takes in_channels, out_channels, and **kwargs
# in_channels and out_channels are integers used as Conv2d parameters
# **kwargs are passed to Conv2d (e.g., stride, dilation, groups, bias, etc.)

ARGS = {
    "in_channels": 3,
    "out_channels": 16,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
FedBABU Not yet run
unverified (harvested, no recorded run)
TsingZ0/PFL-Non-IID/system/flcore/servers/serverbabu.py
code served (permissive licence) · get_code("94f3fdefbfd44006")
How it ran

no invocation recorded.

ResNet34 Not yet run
unverified (harvested, no recorded run)
jhoon-oh/fedbabu/models/ResNet.py
code served (permissive licence) · get_code("ac3dd06d1a08c549")
How it ran

no invocation recorded.

Server Not yet run
unverified (harvested, no recorded run)
TsingZ0/PFL-Non-IID/system/flcore/servers/serverbabu.py
code served (permissive licence) · get_code("c9022996c28dd496")
How it ran

no invocation recorded.

clientBABU Not yet run
unverified (harvested, no recorded run)
TsingZ0/PFL-Non-IID/system/flcore/servers/serverbabu.py
code served (permissive licence) · get_code("b2f6d4c187b737c7")
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, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 7 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
ResNet18 27 other papers
5 dated earlier, 22 later
1605.07146 (2016-05)
Wide Residual Networks
1901.09847 (2019-01)
Error Feedback Fixes SignSGD and other Gradient Compression Schemes
1910.09652 (2019-10)
Kernelized Wasserstein Natural Gradient
and 24 more not named here
ResNet34 24 other papers
7 dated earlier, 17 later
1605.07146 (2016-05)
Wide Residual Networks
1811.12814 (2018-11)
Graph-Based Global Reasoning Networks
2002.12047 (2020-02)
FMix: Enhancing Mixed Sample Data Augmentation
and 21 more not named here
ResNet50 14 other papers
3 dated earlier, 11 later
1605.07146 (2016-05)
Wide Residual Networks
1811.12814 (2018-11)
Graph-Based Global Reasoning Networks
2006.13554 (2020-06)
Normalized Loss Functions for Deep Learning with Noisy Labels
and 11 more not named here
Client
brick of this paper's assembly: helper
9 other papers
4 dated earlier, 1 the same month, 4 later · 2 only as an assembly brick
1602.05629 (2016-02)
Communication-Efficient Learning of Deep Networks from Decentralized Data
2001.01523 (2020-01)
Think Locally, Act Globally: Federated Learning with Local and Global Representations
2012.04221 (2020-12)
Ditto: Fair and Robust Federated Learning Through Personalization
and 6 more not named here
FedAvg 9 other papers
6 dated earlier, 3 later
1602.05629 (2016-02)
Communication-Efficient Learning of Deep Networks from Decentralized Data
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1812.07108 (2018-12)
Learning Private Neural Language Modeling with Attentive Aggregation
and 6 more not named here
Server
brick of this paper's assembly: helper
4 other papers
2 dated earlier, 2 later
1602.05629 (2016-02)
Communication-Efficient Learning of Deep Networks from Decentralized Data
2102.07623 (2021-02)
FedBN: Federated Learning on Non-IID Features via Local Batch Normalization
2111.04263 (2021-11)
Federated Learning Based on Dynamic Regularization
and 1 more not named here
conv3x3 2 other papers
2 later
2311.13267 (2023-11)
FedFN: Feature Normalization for Alleviating Data Heterogeneity Problem in Federated Learning
2408.04301 (2024-08)
Tackling Noisy Clients in Federated Learning with End-to-end Label Correction

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 has evolved to improve a single global model under data heterogeneity (as a curse) or to develop multiple personalized models using data heterogeneity (as a blessing). However, little research has considered both directions simultaneously. In this paper, we first investigate the relationship between them by analyzing Federated Averaging (McMahan et al., 2017) at the client level and determine that a better federated global model performance does not constantly improve personalization. To elucidate the cause of this personalization performance degradation problem, we decompose the entire network into the body (extractor), which is related to universality, and the head (classifier), which is related to personalization. We then point out that this problem stems from training the head. Based on this observation, we propose a novel federated learning algorithm, coined FedBABU, which only updates the body of the model during federated training (i.e., the head is randomly initialized and never updated), and the head is fine-tuned for personalization during the evaluation process. Extensive experiments show consistent performance improvements and an efficient personalization of FedBABU. The code is available at https://github.com/jhoon-oh/FedBABU.

For agents

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

get_harvested_code_for_paper("2106.06042")
get_code_for_paper("2106.06042")
have("2106.06042")

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

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

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

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

Connect an agent — have() is free.