SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.02078 · 2022

Straggler-Resilient Personalized Federated Learning

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 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; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 1 failure of our instrument; 5 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/2206.02078.json · badge: /api/ran/2206.02078.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
shenzebang/SRPFL canonical (classifier label)
classifier basis not recorded on the link
6 ran · 5 no recorded run
FunctionStatusWhere it lives
dispatch Ran
ran on a synthesized input
shenzebang/SRPFL/AFA-CD.py
code served (permissive licence) · get_code("e87571901eb57d76")
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 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
import torch.nn as nn

torch.manual_seed(0)

class LocalTrainer:
    def __init__(self):
        self.loss_value = 0.5
    
    def train(self, net):
        # Returns weights and loss
        w_local = {name: param.clone() for name, param in net.named_parameters()}
        loss = torch.tensor(self.loss_value)
        return (w_local, loss)

class SimpleNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

local = LocalTrainer()
net = SimpleNet()

ARGS = {
    "local": local,
    "net": net
}
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 1, 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
line_to_indices Ran
ran on a synthesized input
shenzebang/SRPFL/models/language_utils.py
code served (permissive licence) · get_code("944fedd1c33c8b12")
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 int; 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
import re

# Define the functions
def split_line(line):
    """split given line/phrase into list of words"""
    return re.findall("[\\w']+|[.,!?;]", line)

def line_to_indices(line, word2id, max_words=25):
    """converts given phrase into list of word indices"""
    unk_id = len(word2id)
    line_list = split_line(line)
    indl = [word2id[w] if w in word2id else unk_id for w in line_list[:max_words]]
    indl += [unk_id] * (max_words - len(indl))
    return indl

# Create a small word2id dictionary
word2id = {
    "hello": 0,
    "world": 1,
    "this": 2,
    "is": 3,
    "a": 4,
    "test": 5,
    "phrase": 6,
}

# Create test arguments
ARGS = {
    "line": "hello world this is a test",
    "word2id": word2id,
    "max_words": 25,
}
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 int — 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
local_update Ran
ran on a synthesized input
shenzebang/SRPFL/AFA-CD.py
code served (permissive licence) · get_code("e01f7b48b569a79e")
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 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
import torch.nn as nn

torch.manual_seed(0)

class SimpleNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class LocalTrainer:
    def __init__(self):
        pass
    
    def train(self, net):
        # Simulate training: return weights and a loss value
        w_local = {name: param.clone() for name, param in net.named_parameters()}
        loss = torch.tensor(0.5)
        return (w_local, loss)

net = SimpleNet()
local = LocalTrainer()

ARGS = {
    "local": local,
    "net": net
}
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 1, 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
relabel_class Ran
ran, honoured the contract we drafted
shenzebang/SRPFL/my_sample.py
code served (permissive licence) · get_code("c05f9655534eb098")
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 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

torch.manual_seed(0)

# The function relabel_class takes a single parameter 'c' which is a hexadecimal class value (string)
# It performs string operations: isdigit(), int() conversions, and hex parsing
# We need to provide valid test cases

# Test cases that cover the three branches:
# 1. Digit case: c is a digit string and int(c) < 40
# 2. Uppercase letter case: hex value <= 90
# 3. Lowercase letter case: hex value > 90

test_cases = [
    "5",      # digit case: isdigit() and int("5") < 40
    "A",      # uppercase letter: int("A", 16) = 10 <= 90
    "1F",     # hex value: int("1F", 16) = 31 <= 90
    "5A",     # hex value: int("5A", 16) = 90 <= 90
    "61",     # hex value: int("61", 16) = 97 > 90
]

# The function takes a single string parameter 'c'
ARGS = {
    "c": "A"
}
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 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
split_line Ran
ran; our contract draft was wrong, not the code
shenzebang/SRPFL/models/language_utils.py
code served (permissive licence) · get_code("fa409d7a7fea4818")
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 re

def split_line(line):
    """split given line/phrase into list of words
    Args:
        line: string representing phrase to be split
    
    Return:
        list of strings, with each string representing a word
    """
    return re.findall("[\\w']+|[.,!?;]", line)


ARGS = {
    "line": "Hello, world! This is a test."
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
word_to_indices Ran
ran, honoured the contract we drafted
shenzebang/SRPFL/models/language_utils.py
code served (permissive licence) · get_code("33132cebb0573dc3")
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 int; 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

ALL_LETTERS = '\n !"&\'(),-.0123456789:;>?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]abcdefghijklmnopqrstuvwxyz}'

def word_to_indices(word):
    """returns a list of character indices
    Args:
        word: string

    Return:
        indices: int list with length len(word)
    """
    indices = []
    for c in word:
        indices.append(ALL_LETTERS.find(c))
    return indices

ARGS = {
    "word": "Hello"
}
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 int — 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
load_image Not yet run
unverified (harvested, no recorded run)
shenzebang/SRPFL/my_sample.py
code served (permissive licence) · get_code("91339fc6f68d3a1f")
How it ran

no invocation recorded.

ray_dispatch Not yet run
unverified (harvested, no recorded run)
shenzebang/SRPFL/FEDAVG-ray.py
code served (permissive licence) · get_code("70443626b59d55b5")
How it ran

no invocation recorded.

ray_dispatch Not yet run
unverified (harvested, no recorded run)
shenzebang/SRPFL/FEDME-ray.py
code served (permissive licence) · get_code("7a76637cf7a9284d")
How it ran

no invocation recorded.

ray_dispatch Not yet run
unverified (harvested, no recorded run)
shenzebang/SRPFL/HFMAML-ray.py
code served (permissive licence) · get_code("223cbef354009719")
How it ran

no invocation recorded.

ray_dispatch Not yet run
unverified (harvested, no recorded run)
shenzebang/SRPFL/LG-ray.py
code served (permissive licence) · get_code("036a5062a158bbe3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 1 later) and 7 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
word_to_indices 3 other papers
2 dated earlier, 1 later
1812.06127 (2018-12)
Federated Optimization in Heterogeneous Networks
2012.04221 (2020-12)
Ditto: Fair and Robust Federated Learning Through Personalization
2407.18365 (2024-07)
FADAS: Towards Federated Adaptive Asynchronous Optimization
split_line 2 other papers
2 dated earlier
1812.06127 (2018-12)
Federated Optimization in Heterogeneous Networks
1912.13445 (2019-12)
Robust Aggregation for Federated Learning
line_to_indices 1 other paper
1 the same month
2206.13190 (2022-06)
An Empirical Study of Personalized Federated Learning
relabel_class 1 other paper
1 dated earlier
2005.01026 (2020-05)
Multi-Center Federated Learning: Clients Clustering for Better Personalization

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 an emerging learning paradigm that allows training models from samples distributed across a large network of clients while respecting privacy and communication restrictions. Despite its success, federated learning faces several challenges related to its decentralized nature. In this work, we develop a novel algorithmic procedure with theoretical speedup guarantees that simultaneously handles two of these hurdles, namely (i) data heterogeneity, i.e., data distributions can vary substantially across clients, and (ii) system heterogeneity, i.e., the computational power of the clients could differ significantly. Our method relies on ideas from representation learning theory to find a global common representation using all clients' data and learn a user-specific set of parameters leading to a personalized solution for each client. Furthermore, our method mitigates the effects of stragglers by adaptively selecting clients based on their computational characteristics and statistical significance, thus achieving, for the first time, near optimal sample complexity and provable logarithmic speedup. Experimental results support our theoretical findings showing the superiority of our method over alternative personalized federated schemes in system and data heterogeneous environments.

For agents

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

get_harvested_code_for_paper("2206.02078")
get_code_for_paper("2206.02078")
have("2206.02078")

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

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

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

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

Connect an agent — have() is free.