SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1611.07725 · 2016

iCaRL: Incremental Classifier and Representation Learning

Sylvestre-Alvise Rebuffi, Christoph Lampert, Alexander Kolesnikov, Georg Sperl

arXiv · PDF · Open in the Atlas

Code that ran

5 of 14 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 2 have no contract verdict; 3 failures of our instrument; 9 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/1611.07725.json · badge: /api/ran/1611.07725.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
srebuffi/iCaRL canonical (classifier label)
classifier basis: census
2 ran · 5 no recorded run
mmasana/FACIL community
Papers with Code archive
2 ran · 2 no recorded run
DRSAD/iCaRL community
Papers with Code archive
1 ran · 2 no recorded run
FunctionStatusWhere it lives
dataset_transforms Ran
ran; our contract draft was wrong, not the code
mmasana/FACIL/src/approach/icarl.py
code served (permissive licence) · get_code("85bc3649f83b49eb")
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
from torch.utils.data import Dataset, ConcatDataset

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, size=5, transform=None):
        self.size = size
        self.transform = transform
        self.data = torch.randn(size, 4)
        self.labels = torch.randint(0, 2, (size,))
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        x = self.data[idx]
        y = self.labels[idx]
        if self.transform:
            x = self.transform(x)
        return x, y

def identity_transform(x):
    return x

def new_transform(x):
    return x * 2

dataset1 = SimpleDataset(size=5, transform=identity_transform)
dataset2 = SimpleDataset(size=3, transform=identity_transform)

concat_dataset = ConcatDataset([dataset1, dataset2])

ARGS = {
    "dataset": concat_dataset,
    "transform_to_change": new_transform
}
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
get_one_hot Ran
ran; our contract draft was wrong, not the code
DRSAD/iCaRL/iCaRL.py
pointer only (licence: NONE) · get_code("71a66063541d1b3b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DRSAD/iCaRL when it was checked. 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.

load_class_in_feature_space Ran
ran on a synthesized input
srebuffi/iCaRL/iCaRL-Tensorflow/utils_icarl.py
code served (permissive licence) · get_code("52298d4288456271")
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 numpy as np
from unittest.mock import Mock

# Create a mock session object that will be called with sess.run()
class MockSession:
    def __init__(self):
        self.call_count = 0
    
    def run(self, fetches):
        # Return mock data for each call
        # scores, label_batch, loss_class, file_string_batch, op_feature_map
        batch_size = 2
        num_features = 4
        
        scores = np.random.rand(batch_size, 5)
        label_batch = np.array([0, 1])
        loss_class = np.array([0.5, 0.3])
        file_string_batch = np.array([b'file1.txt', b'file2.txt'])
        # op_feature_map shape: (batch_size, 1, 1, num_features)
        op_feature_map = np.random.rand(batch_size, 1, 1, num_features)
        
        self.call_count += 1
        return scores, label_batch, loss_class, file_string_batch, op_feature_map

# Create mock tensors/placeholders (they won't actually be used in computation)
scores = Mock(name='scores')
label_batch = Mock(name='label_batch')
loss_class = Mock(name='loss_class')
file_string_batch = Mock(name='file_string_batch')
op_feature_map = Mock(name='op_feature_map')

# Set up arguments
files_from_cl = ['file1.txt', 'file2.txt', 'file3.txt', 'file4.txt', 'file5.txt']
batch_size = 2
sess = MockSession()

ARGS = {
    'files_from_cl': files_from_cl,
    'batch_size': batch_size,
    'scores': scores,
    'label_batch': label_batch,
    'loss_class': loss_class,
    'file_string_batch': file_string_batch,
    'op_feature_map': op_feature_map,
    'sess': sess
}
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
override_dataset_transform Ran
ran; our contract draft was wrong, not the code
mmasana/FACIL/src/approach/icarl.py
code served (permissive licence) · get_code("c60e16f66d93fb54")
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 _GeneratorContextManager. 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
from torch.utils.data import DataLoader, ConcatDataset

torch.manual_seed(0)

# Create a minimal dataset class with transform attribute
class SimpleDataset:
    def __init__(self, size=2):
        self.data = torch.randn(size, 4)
        self.labels = torch.randint(0, 2, (size,))
        self.transform = None
    
    def __len__(self):
        return len(self.data)
    
    def __getitem__(self, idx):
        return self.data[idx], self.labels[idx]

# Create simple transform functions
def identity_transform(x):
    return x

def scale_transform(x):
    return x * 2

# Create dataset instances
dataset1 = SimpleDataset(size=2)
dataset2 = SimpleDataset(size=2)

# Create a ConcatDataset
concat_dataset = ConcatDataset([dataset1, dataset2])

# Set initial transforms
dataset1.transform = identity_transform
dataset2.transform = identity_transform

# Define the arguments
ARGS = {
    "dataset": concat_dataset,
    "transform": scale_transform
}
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 _GeneratorContextManager — a _GeneratorContextManager output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _GeneratorContextManager 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
relu Ran
ran on a synthesized input
srebuffi/iCaRL/iCaRL-Tensorflow/utils_resnet.py
code served (permissive licence) · get_code("4c8201151d6e4d18")
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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 tensorflow as tf
import numpy as np

# Create a small TensorFlow tensor
x = tf.constant([[1.0, -2.0, 3.0, -4.0],
                 [5.0, -6.0, 7.0, -8.0]], dtype=tf.float32)

# Define arguments for the relu function
ARGS = {
    "x": x,
    "name": "test_relu",
    "alpha": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
Appr Not yet run
unverified (harvested, no recorded run)
mmasana/FACIL/src/approach/icarl.py
code served (permissive licence) · get_code("c9d0a1630e27cbbb")
How it ran

no invocation recorded.

Inc_Learning_Appr Not yet run
unverified (harvested, no recorded run)
mmasana/FACIL/src/approach/icarl.py
code served (permissive licence) · get_code("56204fa814f880a3")
How it ran

no invocation recorded.

get_variable Not yet run
unverified (harvested, no recorded run)
srebuffi/iCaRL/iCaRL-Tensorflow/utils_resnet.py
code served (permissive licence) · get_code("573afeddc57bd6d5")
How it ran

no invocation recorded.

iCIFAR100 Not yet run
unverified (harvested, no recorded run)
DRSAD/iCaRL/iCaRL.py
pointer only (licence: NONE) · get_code("3ce5508891ff92a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DRSAD/iCaRL when it was checked. 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.

iCaRLmodel Not yet run
unverified (harvested, no recorded run)
DRSAD/iCaRL/iCaRL.py
pointer only (licence: NONE) · get_code("8b2070f8a9c2aa15")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, DRSAD/iCaRL when it was checked. 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.

parse_devkit_meta Not yet run
unverified (harvested, no recorded run)
srebuffi/iCaRL/iCaRL-Tensorflow/utils_data.py
code served (permissive licence) · get_code("2e54a5d9c05be1fc")
How it ran

no invocation recorded.

read_data Not yet run
unverified (harvested, no recorded run)
srebuffi/iCaRL/iCaRL-Tensorflow/utils_data.py
code served (permissive licence) · get_code("b1a4e999428538e9")
How it ran

no invocation recorded.

read_data_test Not yet run
unverified (harvested, no recorded run)
srebuffi/iCaRL/iCaRL-Tensorflow/utils_data.py
code served (permissive licence) · get_code("a1952a1bd60c5594")
How it ran

no invocation recorded.

unpickle Not yet run
unverified (harvested, no recorded run)
srebuffi/iCaRL/iCaRL-TheanoLasagne/utils_cifar100.py
code served (permissive licence) · get_code("86aadd9c26d05f6c")
How it ran

no invocation recorded.

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
Inc_Learning_Appr
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
1606.09282 (2016-06)
Learning without Forgetting
1612.00796 (2016-12)
Overcoming catastrophic forgetting in neural networks
get_one_hot
brick of this paper's assembly: helper
1 other paper
1 dated earlier
1606.09282 (2016-06)
Learning without Forgetting

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

A major open problem on the road to artificial intelligence is the development of incrementally learning systems that learn about more and more concepts over time from a stream of data. In this work, we introduce a new training strategy, iCaRL, that allows learning in such a classincremental way: only the training data for a small number of classes has to be present at the same time and new classes can be added progressively. iCaRL learns strong classifiers and a data representation simultaneously. This distinguishes it from earlier works that were fundamentally limited to fixed data representations and therefore incompatible with deep learning architectures. We show by experiments on CIFAR-100 and ImageNet ILSVRC 2012 data that iCaRL can learn many classes incrementally over a long period of time where other strategies quickly fail.

For agents

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

get_harvested_code_for_paper("1611.07725")
get_code_for_paper("1611.07725")
have("1611.07725")

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

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

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

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

Connect an agent — have() is free.