SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.06543 · ECCV · 2022

CoSCL: Cooperation of Small Continual Learners is Stronger than a Big One

Jun Zhu, Qian Li, Yi Zhong, Liyuan Wang, Xingxing Zhang

arXiv · PDF · Open in the Atlas

Code that ran

1 of 4 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 0 have no contract verdict; 1 failure 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/2207.06543.json · badge: /api/ran/2207.06543.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
lywang3081/CoSCL community
Papers with Code archive
1 ran · 1 no recorded run
lywang3081/caf community
Papers with Code archive
0 ran · 2 no recorded run
FunctionStatusWhere it lives
gs_cal_mmoe Ran
ran; our contract draft was wrong, not the code
lywang3081/CoSCL/approaches/gs_coscl.py
code served (permissive licence) · get_code("88d85883088e4691")
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 dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np

torch.manual_seed(0)

class SimpleMMoEModel(nn.Module):
    def __init__(self):
        super(SimpleMMoEModel, self).__init__()
        self.layer1 = nn.Linear(4, 8)
        self.layer2 = nn.Linear(8, 3)
        self.last_layer = nn.Linear(3, 2)
        self.act = []
        
    def forward(self, x, task, avg_act=False):
        x = self.layer1(x)
        self.act.append(x.clone())
        x = torch.relu(x)
        x = self.layer2(x)
        self.act.append(x.clone())
        x = torch.relu(x)
        x = self.last_layer(x)
        return x

model = SimpleMMoEModel()

x = torch.randn(2, 4)
y = torch.LongTensor([0, 1])

criterion = nn.CrossEntropyLoss()

t = 0

ARGS = {
    't': t,
    'x': x,
    'y': y,
    'criterion': criterion,
    'model': model,
    'sbatch': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
Appr Not yet run
unverified (harvested, no recorded run)
lywang3081/CoSCL/approaches/gs_coscl.py
code served (permissive licence) · get_code("d02101c3bf771dcb")
How it ran

no invocation recorded.

KLD Not yet run
unverified (harvested, no recorded run)
lywang3081/caf/approaches/ppo_ewc_caf.py
code served (permissive licence) · get_code("cf3dfb506115c589")
How it ran

no invocation recorded.

PPO_EWC_CAF Not yet run
unverified (harvested, no recorded run)
lywang3081/caf/approaches/ppo_ewc_caf.py
code served (permissive licence) · get_code("98dc6385a4cc4799")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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 4 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

Continual learning requires incremental compatibility with a sequence of tasks. However, the design of model architecture remains an open question: In general, learning all tasks with a shared set of parameters suffers from severe interference between tasks; while learning each task with a dedicated parameter subspace is limited by scalability. In this work, we theoretically analyze the generalization errors for learning plasticity and memory stability in continual learning, which can be uniformly upper-bounded by (1) discrepancy between task distributions, (2) flatness of loss landscape and (3) cover of parameter space. Then, inspired by the robust biological learning system that processes sequential experiences with multiple parallel compartments, we propose Cooperation of Small Continual Learners (CoSCL) as a general strategy for continual learning. Specifically, we present an architecture with a fixed number of narrower sub-networks to learn all incremental tasks in parallel, which can naturally reduce the two errors through improving the three components of the upper bound. To strengthen this advantage, we encourage to cooperate these sub-networks by penalizing the difference of predictions made by their feature representations. With a fixed parameter budget, CoSCL can improve a variety of representative continual learning approaches by a large margin (e.g., up to 10.64% on CIFAR-100-SC, 9.33% on CIFAR-100-RS, 11.45% on CUB-200-2011 and 6.72% on Tiny-ImageNet) and achieve the new state-of-the-art performance. Our code is available at https://github.com/lywang3081/CoSCL.

For agents

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

get_harvested_code_for_paper("2207.06543")
get_code_for_paper("2207.06543")
have("2207.06543")

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

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

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

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

Connect an agent — have() is free.