SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.05764 · ICML · 2023

Fair yet Asymptotically Equal Collaborative Learning

Bryan Kian, Hsiang Low, Xinyi Xu, See-Kiong Ng, Xiaoqiang Lin, Chuan-Sheng Foo

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 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 9 have no contract verdict; 0 failures of our instrument; 3 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.05764.json · badge: /api/ran/2306.05764.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
xqlin98/Fair-yet-Equal-CML canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
xqlin98/fair-yet-equal-cml canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
BaseGameModel Ran
ran on a synthesized input
xqlin98/fair-yet-equal-cml/utils/RL_Environment.py
code served (permissive licence) · get_code("c5736ad6414b0814")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. 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

# Define action space
action_space = 5

# INIT_ARGS for BaseGameModel.__init__
INIT_ARGS = {
    'action_space': action_space
}

# The class has multiple methods but none are clear computation methods.
# Looking at the methods:
# - get_move(state): takes state, likely returns action
# - move(state): takes state
# - remember(...): stores experience
# - step_update(total_step): update based on step count

# We'll test get_move as it's the most likely to be a primary method
METHOD = 'get_move'

# ARGS for get_move method
ARGS = {
    'state': np.array([0.1, 0.2, 0.3, 0.4])  # Simple state representation
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
VGG11 Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/models_defined.py
code served (permissive licence) · get_code("7a48517be70a2b3a")
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 VGG. 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 = {
    'device': None
}
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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
VGG13 Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/models_defined.py
code served (permissive licence) · get_code("01d7319eacb5ce39")
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 VGG. 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 = {
    'device': None
}
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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
VGG16 Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/models_defined.py
code served (permissive licence) · get_code("3e93e3b0043f1f4b")
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 VGG. 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 = {
    'device': None,
}
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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
get_train_valid_indices Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/Data_Prepper.py
code served (permissive licence) · get_code("e92cdd2c5e37de44")
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 random
import numpy as np

def get_train_valid_indices(n_samples, train_val_split_ratio, sample_size_cap=None):
    indices = list(range(n_samples))
    random.seed(1234)
    random.shuffle(indices)
    split_point = int(n_samples * train_val_split_ratio)
    train_indices, valid_indices = (indices[:split_point], indices[split_point:])
    if sample_size_cap is not None:
        train_indices = indices[:min(split_point, sample_size_cap)]
    return (train_indices, valid_indices)

ARGS = {
    "n_samples": 100,
    "train_val_split_ratio": 0.8,
    "sample_size_cap": 50
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
powerlaw Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/Data_Prepper.py
code served (permissive licence) · get_code("38ad362487fa886e")
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 random
import numpy as np

# sample_indices: a list of indices that will be distributed across participants
sample_indices = list(range(100))

# n_participants: number of participants to distribute data to
n_participants = 5

# alpha: shape parameter for the power law distribution (already has default)
alpha = 1.65911332899

# shuffle: whether to shuffle the sample indices before distribution
shuffle = False

ARGS = {
    "sample_indices": sample_indices,
    "n_participants": n_participants,
    "alpha": alpha,
    "shuffle": shuffle,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
scale_grad Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/utils.py
code served (permissive licence) · get_code("9f8295bcd2930adb")
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)

# The function iterates over `grad` and accesses param.data, 
# so `grad` should be an iterable of objects with a .data attribute.
# This is typically a list of tensors or parameters.

grad_list = [
    torch.nn.Parameter(torch.randn(2, 4)),
    torch.nn.Parameter(torch.randn(3, 5))
]

scale_value = 0.5

ARGS = {
    "grad": grad_list,
    "scale": scale_value
}
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
split_torchtext_dataset_ratios Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/Data_Prepper.py
code served (permissive licence) · get_code("ba35fed1b44e7786")
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
import random
from unittest.mock import Mock

torch.manual_seed(0)

# Create a mock dataset object that has a split method
class MockDataset:
    def __init__(self, size=10):
        self.size = size
        self.data = list(range(size))
    
    def split(self, split_ratio, random_state=None):
        """Split the dataset into two parts based on split_ratio"""
        split_point = int(self.size * split_ratio)
        first_part = MockDataset(split_point)
        second_part = MockDataset(self.size - split_point)
        return first_part, second_part

# Create the data argument
data = MockDataset(size=10)

# Create the ratios argument
ratios = [2, 3, 5]

ARGS = {
    "data": data,
    "ratios": ratios,
}
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
translate_grad Ran
ran on a synthesized input
xqlin98/Fair-yet-Equal-CML/utils/utils.py
code served (permissive licence) · get_code("2d2dd5624dd3f57a")
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
import torch.nn as nn

torch.manual_seed(0)

# Create a simple parameter list (grad) - the function iterates over it
# and accesses param.data, so we need objects with a .data attribute
class ParamWrapper:
    def __init__(self, tensor):
        self.data = tensor

# Create two small tensors to serve as parameters
param1 = ParamWrapper(torch.randn(2, 4))
param2 = ParamWrapper(torch.randn(3, 5))

grad = [param1, param2]

# distance is added to param.data, so it should be a scalar or tensor
distance = 0.5

ARGS = {
    "grad": grad,
    "distance": distance
}
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
DDQNTrainer Not yet run
unverified (harvested, no recorded run)
xqlin98/fair-yet-equal-cml/utils/RL_Environment.py
code served (permissive licence) · get_code("335b16bdcc52903e")
How it ran

no invocation recorded.

ReplayMemory Not yet run
unverified (harvested, no recorded run)
xqlin98/fair-yet-equal-cml/utils/RL_Environment.py
code served (permissive licence) · get_code("d2cebae41fcbd2cd")
How it ran

no invocation recorded.

averge_models Not yet run
unverified (harvested, no recorded run)
xqlin98/Fair-yet-Equal-CML/utils/utils.py
code served (permissive licence) · get_code("e1e5490d48b1ae6f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 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 12 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 collaborative learning with streaming data, nodes (e.g., organizations) jointly and continuously learn a machine learning (ML) model by sharing the latest model updates computed from their latest streaming data. For the more resourceful nodes to be willing to share their model updates, they need to be fairly incentivized. This paper explores an incentive design that guarantees fairness so that nodes receive rewards commensurate to their contributions. Our approach leverages an explore-then-exploit formulation to estimate the nodes' contributions (i.e., exploration) for realizing our theoretically guaranteed fair incentives (i.e., exploitation). However, we observe a "rich get richer" phenomenon arising from the existing approaches to guarantee fairness and it discourages the participation of the less resourceful nodes. To remedy this, we additionally preserve asymptotic equality, i.e., less resourceful nodes achieve equal performance eventually to the more resourceful/"rich" nodes. We empirically demonstrate in two settings with real-world streaming data: federated online incremental learning and federated reinforcement learning, that our proposed approach outperforms existing baselines in fairness and learning performance while remaining competitive in preserving equality.

For agents

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

get_harvested_code_for_paper("2306.05764")
get_code_for_paper("2306.05764")
have("2306.05764")

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

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

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

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

Connect an agent — have() is free.