Papers › Structured Cooperative Learning with Graphical Model Priors

Structured Cooperative Learning with Graphical Model Priors

16 Jun 2023arXiv:2306.09595archive 2025-07-28

Shuangtong Li, Tianyi Zhou, Xinmei Tian, DaCheng Tao

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.

PaperPDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 27 code samples harvested from 1 repository linked to this paper: 17 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 6 honoured, 0 violated, 4 with no contract checked; 7 where Syntology's instrument failed) · 10 unverified. Where Syntology's instrument failed: 3 where our contract draft was wrong; 4 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 27 samples from 1 repository, 17 ran (10 with no instrument failure; 7 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

shuangtongli/scool officialmentioned in papermentioned on GitHubpytorchGPL-3.0Syntology: 27 samples, 17 ran (7 instrument-failed) · 10 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

27 samples harvested: 17 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 6 honoured, 0 violated, 4 with no contract checked; 7 where Syntology's instrument failed) · 10 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

6ran · honoured contract
3ran · our draft was wrong
4ran; the contract check could not run
4ran
10unverified

Licence: 27 of the 27 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from shuangtongli/scool. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

shuangtongli/scool official repository 27 samples, 17 ran (7 instrument-failed) · 10 unverified
GradientCommunicator SCooL_SBM.py ran GPL-3.0 (copyleft) · pointer only · d876497e00e6c106 · report fixture: signature send_buffer_group:list/1/list · returned list · level recorded 2026-09-24
SBM SCooL_SBM.py ran fingerprinted GPL-3.0 (copyleft) · pointer only · 94405d260fe4287c · report fixture: signature converge_ll_fraction:float/0/float · returned NoneType · level recorded 2026-09-24
convert_targets SCooL_SBM.py ran · our draft was wrong fingerprinted GPL-3.0 (copyleft) · pointer only · cbb3676d764783b5 · report fixture: signature targets:Tensor/1/int, mask:list/1/int · returned Tensor · level recorded 2026-09-22
expand_label_group SCooL_SBM.py ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · c0fdb29350b47fef · report fixture: signature label_group:list/1/list, split:int/0/int · returned list · level recorded 2026-09-22
flatten_tensors in 5 papers SCooL_SBM.py ran · honoured contract GPL-3.0 (copyleft) · pointer only · de96e9b005b53e0f · report fixture: signature tensors:list/1/Tensor · returned Tensor · level recorded 2026-09-22
fusion_index_by_partition SCooL_SBM.py ran; the contract check could not run (RAISES) GPL-3.0 (copyleft) · pointer only · ce8985f9c6ff5d7a · report fixture: signature label_group_index:list/1/list, index_partition:list/1/list · returned list · level recorded 2026-09-22
gen_graph in 6 papers SCooL_SBM.py ran · honoured contract GPL-3.0 (copyleft) · pointer only · 3b4d375bb85e7531 · report fixture: signature size:int/0/int, args:Args/0/? · returned ndarray · level recorded 2026-09-22
get_gamma_mask1 SCooL_SBM.py ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 41e093b5840c3c8e · report fixture: signature gamma:ndarray/2/float · returned ndarray · level recorded 2026-09-22
get_local_testset_index SCooL_SBM.py ran · honoured contract GPL-3.0 (copyleft) · pointer only · 787c57c7462ef291 · report fixture: signature train_label_set:set/0/?, test_label_group_index:dict/0/? · returned list · level recorded 2026-09-24
my_dataset SCooL_SBM.py ran fingerprinted GPL-3.0 (copyleft) · pointer only · 14913b47dc804fc9 · report fixture: signature index:int/0/int · returned tuple · level recorded 2026-09-22
select_partition SCooL_SBM.py ran · honoured contract GPL-3.0 (copyleft) · pointer only · 2dfa877d72134757 · report fixture: signature split_label_group_num:int/0/int, every_label_split_num:int/0/int, num_labels:int/0/int · returned list · level recorded 2026-09-22
select_partition_rand_non_iid SCooL_SBM.py ran · honoured contract fingerprinted GPL-3.0 (copyleft) · pointer only · 6feffb04f2f14bd0 · report fixture: signature split_label_group_num:int/0/int, every_label_split_num:int/0/int, args_randomseed:int/0/int, num_labels:int/0/int · returned list · level recorded 2026-09-22
show_partition_labels SCooL_SBM.py ran; the contract check could not run (RAISES) GPL-3.0 (copyleft) · pointer only · c2e4eda6ed62704b · report fixture: signature targets:list/1/int, targets_index:list/1/int · returned set · level recorded 2026-09-22
split_non_iid_dataset_tiny SCooL_SBM.py ran GPL-3.0 (copyleft) · pointer only · a0c77613eca8be1d · report fixture: signature data_object:SimpleDataObject/0/?, every_label_split_num:int/0/int, train_val_ratio:list/1/float, num_labels:int/0/int · returned tuple · level recorded 2026-09-22
test in 377 papers SCooL_SBM.py ran; the contract check could not run (RAISES) GPL-3.0 (copyleft) · pointer only · f26491b89ba8cbd1 · report fixture: returned Tensor · level recorded 2026-09-22
test_fast SCooL_SBM.py ran; the contract check could not run (RAISES) GPL-3.0 (copyleft) · pointer only · bc928d693ea619a6 · report fixture: signature model:callable/0/?, test_loader:list/1/tuple, mask:NoneType/0/? · returned tuple · level recorded 2026-09-22
unflatten_tensors in 5 papers SCooL_SBM.py ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 349c36e737eadfe1 · report fixture: signature flat:Tensor/1/float, tensors:list/1/Tensor · returned tuple · level recorded 2026-09-22
CIFAR10 in 9 papers SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · 5ee024da6c8949f5 · report
Communicator SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · d77445da3ef0a1dd · report
Recorder SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · 18c8289cf4a4ed2f · report
get_child_rank_list SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · addd1210c4f11516 · report
get_mixing_mat SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · 794e7158191ec7b9 · report
get_true_correlation SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · 773b2394ca8b41a9 · report
partition_non_iid_determine_dataset SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · 5fd2e83393abbe88 · report
partition_non_iid_random_dataset SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · c54edd3381deb898 · report
run in 143 papers SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · 66a8ff916b55511a · report
split_device SCooL_SBM.py unverified GPL-3.0 (copyleft) · pointer only · e1199bb49610617a · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for Structured Cooperative Learning (SCooL) (graph method: Structured Cooperative Learning (SCooL)). 27 bricks; individually on a fixture: 19 ran (of which 1 constructed an object rather than computing a result; 11 with no instrument failure: 6 honoured, 0 violated, 5 with no contract checked; 8 where Syntology's instrument failed) · 8 unverified. The assembly has not been run end-to-end.

  1. run entry · level 0 · unverified · 66a8ff916b55511a
  2. AverageMeter helper · level 1 · ran · 9355efdc819d943e
  3. GradientCommunicator helper · level 1 · ran · d876497e00e6c106
  4. Recorder helper · level 0 · unverified · 18c8289cf4a4ed2f
  5. SBM model · level 1 · ran · 94405d260fe4287c
  6. comp_accuracy helper · level 1 · ran; the contract check could not run · 08b050ad57b64351
  7. gen_graph helper · level 1 · ran · honoured contract · 3b4d375bb85e7531
  8. get_true_correlation helper · level 0 · unverified · 773b2394ca8b41a9
  9. partition_non_iid_determine_dataset helper · level 0 · unverified · 5fd2e83393abbe88
  10. partition_non_iid_random_dataset helper · level 0 · unverified · c54edd3381deb898
  11. test helper · level 1 · ran; the contract check could not run (RAISES) · f26491b89ba8cbd1
  12. test_fast helper · level 1 · ran; the contract check could not run (RAISES) · bc928d693ea619a6
  13. Communicator helper · level 0 · unverified · d77445da3ef0a1dd
  14. flatten_tensors helper · level 1 · ran · honoured contract · de96e9b005b53e0f
  15. unflatten_tensors helper · level 1 · ran · our draft was wrong · 349c36e737eadfe1
  16. get_mixing_mat helper · level 0 · unverified · 794e7158191ec7b9
  17. get_gamma_mask1 helper · level 1 · ran · honoured contract · 41e093b5840c3c8e
  18. CIFAR10 helper · level 0 · unverified · 5ee024da6c8949f5
  19. fusion_index_by_partition helper · level 1 · ran; the contract check could not run (RAISES) · ce8985f9c6ff5d7a
  20. get_local_testset_index helper · level 1 · ran · honoured contract · 787c57c7462ef291
  21. my_dataset helper · level 1 · ran · 14913b47dc804fc9
  22. select_partition helper · level 1 · ran · honoured contract · 2dfa877d72134757
  23. show_partition_labels helper · level 1 · ran; the contract check could not run (RAISES) · c2e4eda6ed62704b
  24. split_non_iid_dataset_tiny helper · level 1 · ran · a0c77613eca8be1d
  25. select_partition_rand_non_iid helper · level 1 · ran · honoured contract · 6feffb04f2f14bd0
  26. convert_targets helper · level 1 · ran · our draft was wrong · cbb3676d764783b5
  27. expand_label_group helper · level 1 · ran · our draft was wrong · c0fdb29350b47fef

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2306.09595") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

Stochastic Block ModelVariational Inferencemodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections