SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.14495 · 2022

Task-Agnostic Continual Reinforcement Learning: Gaining Insights and Overcoming Challenges

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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, 1 violated it and 5 have no contract verdict; 3 failures of our instrument; 2 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/2205.14495.json · badge: /api/ran/2205.14495.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
amazon-research/replay-based-recurrent-rl canonical (classifier label)
classifier basis not recorded on the link
9 ran · 2 no recorded run
FunctionStatusWhere it lives
atanh Ran
ran on a synthesized input
amazon-research/replay-based-recurrent-rl/code/misc/utils.py
code served (permissive licence) · get_code("c96673bfd86f55b0")
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 Tensor, 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 torch

torch.manual_seed(0)

# The function atanh takes a single parameter x
# It expects x to be a tensor that supports:
# - clamp() method
# - torch.log() operation
# - division and addition operations

# Create a small tensor with values in a valid range for atanh
# atanh is defined for x in (-1, 1), so we'll use values in that range
x = torch.tensor([
    [0.1, 0.2, 0.3, 0.4],
    [0.0, -0.1, -0.2, -0.3]
], dtype=torch.float32)

ARGS = {
    "x": x
}
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 Tensor, 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
get_envs Ran
ran on a synthesized input
amazon-research/replay-based-recurrent-rl/code/misc/sequoia_envs.py
code served (permissive licence) · get_code("94f234b2c98314c2")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 gym
from gym.wrappers import TimeLimit
from typing import Callable, List

# Create a minimal mock eparams object
class EParams:
    def __init__(self):
        self.single_task_id = 0
        self.monitor_success = False

# Create a minimal mock IncrementalRLSetting
class MockEnv(gym.Env):
    def __init__(self):
        self.observation_space = gym.spaces.Box(low=0, high=1, shape=(4,), dtype='float32')
        self.action_space = gym.spaces.Discrete(2)
        self._step_count = 0
    
    def reset(self, **kwargs):
        self._step_count = 0
        return self.observation_space.sample()
    
    def step(self, action):
        self._step_count += 1
        obs = self.observation_space.sample()
        reward = 0.0
        done = self._step_count >= 10
        info = {'success': False}
        return obs, reward, done, info
    
    def seed(self, seed):
        pass
    
    def render(self):
        pass
    
    def close(self):
        pass

class MockIncrementalRLSetting:
    def __init__(self, dataset, max_episode_steps, nb_tasks):
        self.dataset = dataset
        self.max_episode_steps = max_episode_steps
        self.nb_tasks = nb_tasks
        self.train_envs = [lambda: MockEnv() for _ in range(nb_tasks)]

# Monkey-patch the import
import sys
from types import ModuleType

mock_sequoia = ModuleType('sequoia')
mock_sequoia_settings = ModuleType('sequoia.settings')
mock_sequoia_settings_rl = ModuleType('sequoia.settings.rl')
mock_sequoia_settings_rl_incremental = ModuleType('sequoia.settings.rl.incremental')
mock_sequoia_settings_rl_incremental_setting = ModuleType('sequoia.settings.rl.incremental.setting')

mock_sequoia_settings_rl_incremental_setting.IncrementalRLSetting = MockIncrementalRLSetting

sys.modules['sequoia'] = mock_sequoia
sys.modules['sequoia.settings'] = mock_sequoia_settings
sys.modules['sequoia.settings.rl'] = mock_sequoia_settings_rl
sys.modules['sequoia.settings.rl.incremental'] = mock_sequoia_settings_rl_incremental
sys.modules['sequoia.settings.rl.incremental.setting'] = mock_sequoia_settings_rl_incremental_setting

ARGS = {
    'env_name': 'CartPole-v1',
    'nb_tasks': 2,
    'max_episode_steps': 500,
    'train_seed': 123,
    'eparams': EParams()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gym, sequoia — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
get_state Ran
ran; our contract draft was wrong, not the code
amazon-research/replay-based-recurrent-rl/code/misc/torch_utility.py
code served (permissive licence) · get_code("a61f2ad7df535ba0")
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. 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

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "m": model
}
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 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
hess_analysis Ran
ran on a synthesized input
amazon-research/replay-based-recurrent-rl/code/misc/utils.py
code served (permissive licence) · get_code("b610b56e4fe7749d")
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. 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

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

# Add 'hess' attribute to model parameters
for p in model.parameters():
    p.hess = torch.randn_like(p)

ARGS = {
    "model": model
}
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 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
is_supported Ran
ran, violated the contract we drafted
amazon-research/replay-based-recurrent-rl/code/misc/autograd_hacks.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from NLGithubWP/pTNAS, is pointer only (licence: NONE) · get_code("d5f71e934c65e691")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from NLGithubWP/pTNAS, and GitHub detected no licence in that repository 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_model_states Ran
ran on a synthesized input
amazon-research/replay-based-recurrent-rl/code/misc/torch_utility.py
code served (permissive licence) · get_code("60105fbae1120564")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 tempfile
import os

torch.manual_seed(0)

# Create a temporary checkpoint file
temp_dir = tempfile.mkdtemp()
checkpoint_path = os.path.join(temp_dir, 'model_checkpoint.pt')

# Create sample model states (simulating what would be saved)
model_states = {
    'layer1.weight': torch.randn(4, 3),
    'layer1.bias': torch.randn(4),
    'layer2.weight': torch.randn(5, 4),
    'layer2.bias': torch.randn(5),
}

# Create sample args to be stored
model_args = {
    'hidden_dim': 128,
    'num_layers': 2,
    'learning_rate': 0.001,
    'model_name': 'test_model',
}

# Create and save checkpoint
checkpoint = {
    'model_states': model_states,
    'args': model_args,
}

torch.save(checkpoint, checkpoint_path)

# Define ARGS for load_model_states function
ARGS = {
    'path': checkpoint_path,
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
make_output_format Ran
ran; our contract draft was wrong, not the code
amazon-research/replay-based-recurrent-rl/code/oailibs/logger.py
code served (permissive licence) · get_code("c9637f11d7c5f378")
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 HumanOutputFormat. 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 os
import sys
import tempfile
import shutil

# Create a temporary directory for output files
temp_dir = tempfile.mkdtemp()

# Define arguments for make_output_format function
ARGS = {
    'format': 'log',  # Can be 'stdout', 'log', 'json', 'csv', or 'tensorboard'
    'ev_dir': temp_dir,
    'log_suffix': '_test'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type HumanOutputFormat — a HumanOutputFormat output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a HumanOutputFormat 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
print_model_info Ran
ran on a synthesized input
amazon-research/replay-based-recurrent-rl/code/misc/utils.py
code served (permissive licence) · get_code("0493eaba8ac6cfcc")
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, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# Create minimal actor model
class Actor(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(self.linear1(x))

# Create minimal critic model
class Critic(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 5)
        self.linear2 = nn.Linear(5, 1)
    
    def forward(self, x):
        return self.linear2(self.linear1(x))

actor = Actor()
critic = Critic()

# Ensure at least one model has trainable parameters
for param in actor.parameters():
    param.requires_grad = True
for param in critic.parameters():
    param.requires_grad = True

ARGS = {
    "models": [actor, critic],
    "enable_print": True
}
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 tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
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
profile Ran
ran; our contract draft was wrong, not the code
amazon-research/replay-based-recurrent-rl/code/oailibs/logger.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from facebookresearch/gen_dgrl, is pointer only (licence: NOASSERTION) · get_code("98948fae5be7e92e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from facebookresearch/gen_dgrl, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

read_json Not yet run
unverified (harvested, no recorded run)
amazon-research/replay-based-recurrent-rl/code/oailibs/logger.py
code served (permissive licence) · get_code("88ef5a17fc986d9a")
How it ran

no invocation recorded.

symsqrt Not yet run
unverified (harvested, no recorded run)
amazon-research/replay-based-recurrent-rl/code/misc/autograd_hacks.py
code served (permissive licence) · get_code("56afcb3496c8fd91")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 6 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 5 later) and 5 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
make_output_format 73 other papers
24 dated earlier, 1 the same month, 48 later
1611.05763 (2016-11)
Learning to reinforcement learn
1804.06459 (2018-04)
On Learning Intrinsic Rewards for Policy Gradient Methods
1806.02473 (2018-06)
Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation
and 70 more not named here
read_json 22 other papers
17 dated earlier, 5 later
1611.05763 (2016-11)
Learning to reinforcement learn
1711.00123 (2017-11)
Backpropagation through the Void: Optimizing control variates for black-box gradient estimation
1804.06459 (2018-04)
On Learning Intrinsic Rewards for Policy Gradient Methods
and 19 more not named here
profile 13 other papers
10 dated earlier, 3 later
1804.06459 (2018-04)
On Learning Intrinsic Rewards for Policy Gradient Methods
1806.02473 (2018-06)
Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation
1806.07857 (2018-06)
RUDDER: Return Decomposition for Delayed Rewards
and 10 more not named here
is_supported 3 other papers
3 later
2206.02927 (2022-06)
Spectral Bias Outside the Training Set for Deep Networks in the Kernel Regime
2403.10318 (2024-03)
pTNAS: Progressive Neural Architecture Search for Tabular Data
2407.10964 (2024-07)
No Train, all Gain: Self-Supervised Gradients Improve Deep Frozen Representations
symsqrt 3 other papers
3 later
2206.02927 (2022-06)
Spectral Bias Outside the Training Set for Deep Networks in the Kernel Regime
2403.10318 (2024-03)
pTNAS: Progressive Neural Architecture Search for Tabular Data
2407.10964 (2024-07)
No Train, all Gain: Self-Supervised Gradients Improve Deep Frozen Representations
get_state 1 other paper
1 dated earlier
1705.03633 (2017-05)
Inferring and Executing Programs for Visual Reasoning

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 (CL) enables the development of models and agents that learn from a sequence of tasks while addressing the limitations of standard deep learning approaches, such as catastrophic forgetting. In this work, we investigate the factors that contribute to the performance differences between task-agnostic CL and multi-task (MTL) agents. We pose two hypotheses: (1) task-agnostic methods might provide advantages in settings with limited data, computation, or high dimensionality, and (2) faster adaptation may be particularly beneficial in continual learning settings, helping to mitigate the effects of catastrophic forgetting. To investigate these hypotheses, we introduce a replay-based recurrent reinforcement learning (3RL) methodology for task-agnostic CL agents. We assess 3RL on a synthetic task and the Meta-World benchmark, which includes 50 unique manipulation tasks. Our results demonstrate that 3RL outperforms baseline methods and can even surpass its multi-task equivalent in challenging settings with high dimensionality. We also show that the recurrent task-agnostic agent consistently outperforms or matches the performance of its transformer-based counterpart. These findings provide insights into the advantages of task-agnostic CL over task-aware MTL approaches and highlight the potential of task-agnostic methods in resource-constrained, high-dimensional, and multi-task environments.

For agents

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

get_harvested_code_for_paper("2205.14495")
get_code_for_paper("2205.14495")
have("2205.14495")

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

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

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

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

Connect an agent — have() is free.