SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.09595 · ICML · 2023

Structured Cooperative Learning with Graphical Model Priors

Tianyi Zhou, Dacheng Tao, Xinmei Tian, Shuangtong Li

arXiv · PDF · Open in the Atlas

Code that ran

17 of 27 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; 6 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 7 failures of our instrument; 10 no recorded run), measured 2026-11-22; 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.09595.json · badge: /api/ran/2306.09595.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
shuangtongli/scool canonical (classifier label)
classifier basis: classifier_2025
17 ran · 10 no recorded run
FunctionStatusWhere it lives
GradientCommunicator Ran
ran on a synthesized input
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("d876497e00e6c106")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

SBM Ran
ran on a synthesized input
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("94405d260fe4287c")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

convert_targets Ran
ran; our contract draft was wrong, not the code
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("cbb3676d764783b5")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

expand_label_group Ran
ran; our contract draft was wrong, not the code
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("c0fdb29350b47fef")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

flatten_tensors Ran
ran, honoured the contract we drafted
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("de96e9b005b53e0f")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

fusion_index_by_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("ce8985f9c6ff5d7a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

gen_graph Ran
ran, honoured the contract we drafted
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("3b4d375bb85e7531")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

get_gamma_mask1 Ran
ran, honoured the contract we drafted
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("41e093b5840c3c8e")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

get_local_testset_index Ran
ran, honoured the contract we drafted
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("787c57c7462ef291")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

my_dataset Ran
ran on a synthesized input
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("14913b47dc804fc9")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

select_partition Ran
ran, honoured the contract we drafted
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("2dfa877d72134757")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

select_partition_rand_non_iid Ran
ran, honoured the contract we drafted
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("6feffb04f2f14bd0")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

show_partition_labels Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("c2e4eda6ed62704b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

split_non_iid_dataset_tiny Ran
ran on a synthesized input
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("a0c77613eca8be1d")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

test Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("f26491b89ba8cbd1")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

test_fast Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("bc928d693ea619a6")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

unflatten_tensors Ran
ran; our contract draft was wrong, not the code
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("349c36e737eadfe1")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

CIFAR10 Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("5ee024da6c8949f5")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

Communicator Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("d77445da3ef0a1dd")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

Recorder Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("18c8289cf4a4ed2f")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

get_child_rank_list Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("addd1210c4f11516")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

get_mixing_mat Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("794e7158191ec7b9")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

get_true_correlation Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("773b2394ca8b41a9")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

partition_non_iid_determine_dataset Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("5fd2e83393abbe88")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

partition_non_iid_random_dataset Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("c54edd3381deb898")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

run Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("66a8ff916b55511a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

split_device Not yet run
unverified (harvested, no recorded run)
shuangtongli/scool/SCooL_SBM.py
pointer only (licence: GPL-3.0) · get_code("e1199bb49610617a")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, shuangtongli/scool, is not in the permissive set Syntology serves inline. 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.

Also present in other papers' code

Of 27 samples lifted from this paper's linked repositories, 27 carry a function identity and 0 do not. Of the 27 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 25 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
flatten_tensors
brick of this paper's assembly: helper
2 other papers
2 dated earlier
2008.11364 (2020-08)
Improving Semi-supervised Federated Learning by Reducing the Gradient Diversity of Models
2210.14026 (2022-10)
SWIFT: Rapid Decentralized Federated Learning via Wait-Free Model Communication
unflatten_tensors
brick of this paper's assembly: helper
2 other papers
2 dated earlier
2008.11364 (2020-08)
Improving Semi-supervised Federated Learning by Reducing the Gradient Diversity of Models
2210.14026 (2022-10)
SWIFT: Rapid Decentralized Federated Learning via Wait-Free Model Communication

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We study how to train personalized models for different tasks on decentralized devices with limited local data. We propose "Structured Cooperative Learning (SCooL)", in which a cooperation graph across devices is generated by a graphical model prior to automatically coordinate mutual learning between devices. By choosing graphical models enforcing different structures, we can derive a rich class of existing and novel decentralized learning algorithms via variational inference. In particular, we show three instantiations of SCooL that adopt Dirac distribution, stochastic block model (SBM), and attention as the prior generating cooperation graphs. These EM-type algorithms alternate between updating the cooperation graph and cooperative learning of local models. They can automatically capture the cross-task correlations among devices by only monitoring their model updating in order to optimize the cooperation graph. We evaluate SCooL and compare it with existing decentralized learning methods on an extensive set of benchmarks, on which SCooL always achieves the highest accuracy of personalized models and significantly outperforms other baselines on communication efficiency. Our code is available at https://github.com/ShuangtongLi/SCooL. decentralized learning • cooperative learning • personalized model • structured learning Ɵ i Ɵ j Y ij D i : cat vs. tiger D i : cat vs. tiger D i : cat vs. tiger D j : wolf vs. dog D j : wolf vs. dog D j : wolf vs. dog Graphical Model Prior P(Y)

For agents

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

get_harvested_code_for_paper("2306.09595")
get_code_for_paper("2306.09595")
have("2306.09595")

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

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

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

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

Connect an agent — have() is free.