SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1812.00420 · 2018

Efficient Lifelong Learning with A-GEM

Marc Ranzato, Marcus Rohrbach, Mohamed Elhoseiny, Arslan Chaudhry

arXiv · PDF · Open in the Atlas

Code that ran

2 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 0 have no contract verdict; 2 failures of our instrument; 10 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/1812.00420.json · badge: /api/ran/1812.00420.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
facebookresearch/agem marked official in Papers with Code
Papers with Code archive
2 ran · 10 no recorded run
FunctionStatusWhere it lives
create_conv_layer Ran
ran; our contract draft was wrong, not the code
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("4531aa012b415174")
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 SymbolicTensor. 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 tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)

# Create a small input tensor: [batch_size, height, width, channels]
# batch=2, height=4, width=4, channels=3
input_tensor = tf.constant(
    np.random.randn(2, 4, 4, 3).astype(np.float32)
)

# Create weights for conv2d: [filter_height, filter_width, in_channels, out_channels]
# Using 3x3 filters, 3 input channels, 5 output channels
w_tensor = tf.constant(
    np.random.randn(3, 3, 3, 5).astype(np.float32)
)

# Create biases: [out_channels]
b_tensor = tf.constant(
    np.random.randn(5).astype(np.float32)
)

ARGS = {
    'input': input_tensor,
    'w': w_tensor,
    'b': b_tensor,
    'stride': 1,
    'apply_relu': True
}
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 SymbolicTensor — a SymbolicTensor 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
create_fc_layer Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("f5ffbe87b7ec7cb6")
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 EagerTensor, ndim 2, dtype family float, shape (2, 3) 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

# Set random seed for reproducibility
tf.random.set_seed(0)

# Create small tensors for the FC layer
batch_size = 2
input_dim = 4
output_dim = 3

# Input tensor: shape (batch_size, input_dim)
input_tensor = tf.constant(np.random.randn(batch_size, input_dim), dtype=tf.float32)

# Weight tensor: shape (input_dim, output_dim)
w_tensor = tf.constant(np.random.randn(input_dim, output_dim), dtype=tf.float32)

# Bias tensor: shape (output_dim,)
b_tensor = tf.constant(np.random.randn(output_dim), dtype=tf.float32)

ARGS = {
    'input': input_tensor,
    'w': w_tensor,
    'b': b_tensor,
    'apply_relu': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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, 3) — shape (2, 3) 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
Model Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("fc44c3b7614307dc")
How it ran

no invocation recorded.

_bn Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("60a81bb1d1fb0b67")
How it ran

no invocation recorded.

_conv Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("0562f5e312d29cbd")
How it ran

no invocation recorded.

_fc Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("3de3229cf0087e10")
How it ran

no invocation recorded.

_residual_block Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("6a7664c18c49e6ba")
How it ran

no invocation recorded.

_residual_block_first Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("5cfb34725fa7d7cc")
How it ran

no invocation recorded.

bias_variable Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("a96da1b71ad1a9ef")
How it ran

no invocation recorded.

vgg_conv_layer Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("3dd896a5062484eb")
How it ran

no invocation recorded.

vgg_fc_layer Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("b1b9b69ee1f47548")
How it ran

no invocation recorded.

weight_variable Not yet run
unverified (harvested, no recorded run)
facebookresearch/agem/model/model.py
code served (permissive licence) · get_code("70fae4aed55bdadc")
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, 6 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 6 later) and 6 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
bias_variable
brick of this paper's assembly: helper
2 other papers
2 later
1903.07864 (2019-03)
Class-incremental Learning via Deep Model Consolidation
2006.06958 (2020-06)
Understanding the Role of Training Regimes in Continual Learning
create_conv_layer
brick of this paper's assembly: helper
2 other papers
2 later
1903.07864 (2019-03)
Class-incremental Learning via Deep Model Consolidation
2006.06958 (2020-06)
Understanding the Role of Training Regimes in Continual Learning
create_fc_layer
brick of this paper's assembly: helper
2 other papers
2 later
1903.07864 (2019-03)
Class-incremental Learning via Deep Model Consolidation
2006.06958 (2020-06)
Understanding the Role of Training Regimes in Continual Learning
vgg_conv_layer
brick of this paper's assembly: helper
2 other papers
2 later
1903.07864 (2019-03)
Class-incremental Learning via Deep Model Consolidation
2006.06958 (2020-06)
Understanding the Role of Training Regimes in Continual Learning
vgg_fc_layer
brick of this paper's assembly: helper
2 other papers
2 later
1903.07864 (2019-03)
Class-incremental Learning via Deep Model Consolidation
2006.06958 (2020-06)
Understanding the Role of Training Regimes in Continual Learning
weight_variable
brick of this paper's assembly: helper
2 other papers
2 later
1903.07864 (2019-03)
Class-incremental Learning via Deep Model Consolidation
2006.06958 (2020-06)
Understanding the Role of Training Regimes in Continual Learning

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 lifelong learning, the learner is presented with a sequence of tasks, incrementally building a data-driven prior which may be leveraged to speed up learning of a new task. In this work, we investigate the efficiency of current lifelong approaches, in terms of sample complexity, computational and memory cost. Towards this end, we first introduce a new and a more realistic evaluation protocol, whereby learners observe each example only once and hyper-parameter selection is done on a small and disjoint set of tasks, which is not used for the actual learning experience and evaluation. Second, we introduce a new metric measuring how quickly a learner acquires a new skill. Third, we propose an improved version of GEM (Lopez-Paz & Ranzato, 2017), dubbed Averaged GEM (A-GEM), which enjoys the same or even better performance as GEM, while being almost as computationally and memory efficient as EWC (Kirkpatrick et al., 2016) and other regularizationbased methods. Finally, we show that all algorithms including A-GEM can learn even more quickly if they are provided with task descriptors specifying the classification tasks under consideration. Our experiments on several standard lifelong learning benchmarks demonstrate that A-GEM has the best trade-off between accuracy and efficiency. 1

For agents

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

get_harvested_code_for_paper("1812.00420")
get_code_for_paper("1812.00420")
have("1812.00420")

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

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

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

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

Connect an agent — have() is free.