SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_35251 · AAAI · 2025

On-Policy Algorithms for Continual Reinforcement Learning (Student Abstract)

Maciej Wołczyk, Tadeusz Dziarmaga, Tomasz Arczewski, Marcin Mazur

Open in the Atlas

Code that ran

9 of 10 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; 2 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/aaai_35251.json · badge: /api/ran/aaai_35251.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
Teddy298/continualworld-ppo canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
colorize Ran
ran; our contract draft was wrong, not the code
Teddy298/continualworld-ppo/continualworld/utils_ppo/logx.py
pointer only (licence: MIT); the stored copy get_code serves, from milanganai/milanganai.github.io, is pointer only (licence: NONE) · get_code("7e36f1c357c4618d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from milanganai/milanganai.github.io, 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.

combined_shape Ran
ran; our contract draft was wrong, not the code
Teddy298/continualworld-ppo/continualworld/ppo/core.py
pointer only (licence: MIT); the stored copy get_code serves, from yinglunxu/reward_poisoning_attack_drl, is pointer only (licence: NONE) · get_code("57542f87e248db45")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yinglunxu/reward_poisoning_attack_drl, 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.

convert_json Ran
ran; our contract draft was wrong, not the code
Teddy298/continualworld-ppo/continualworld/utils_ppo/serialization_utils.py
code served (permissive licence) · get_code("483884bd7a472ace")
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 json
import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

class SimpleConfig:
    def __init__(self):
        self.learning_rate = 0.001
        self.batch_size = 32
        self.num_layers = 3

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

class CustomObject:
    def __init__(self):
        self.value = 42
        self.name = "test"

# Create test objects
test_dict = {
    "key1": "value1",
    "key2": 123,
    "key3": [1, 2, 3],
    "nested": {"inner_key": "inner_value"}
}

test_nested_structure = {
    "model": SimpleModel(),
    "config": SimpleConfig(),
    "tensor": torch.randn(2, 4),
    "list": [1, 2, "three", {"four": 4}],
    "tuple": (1, 2, "three"),
    "custom_obj": CustomObject(),
    "simple_types": [True, False, None, 3.14, 42]
}

test_list = [1, "string", 3.14, True, None, [1, 2, 3]]

test_tuple = (1, "string", 3.14, SimpleConfig(), [1, 2, 3])

test_object = CustomObject()

test_tensor = torch.randn(2, 4)

test_string = "simple_string"

test_number = 42

test_complex_nested = {
    "level1": {
        "level2": {
            "model": SimpleModel(),
            "values": [torch.randn(2, 4), np.array([1, 2, 3])],
            "config": SimpleConfig()
        }
    }
}

ARGS = {
    "obj": test_nested_structure
}
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
convert_json Ran
ran; our contract draft was wrong, not the code
Teddy298/continualworld-ppo/continualworld/ppo/utils/serialization_utils.py
code served (permissive licence) · get_code("7585e962968588cf")
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 json
import torch
import numpy as np

def is_json_serializable(v):
    try:
        json.dumps(v)
        return True
    except:
        return False

def convert_json(obj):
    """Convert obj to a version which can be serialized with JSON."""
    if is_json_serializable(obj):
        return obj
    else:
        if isinstance(obj, dict):
            return {convert_json(k): convert_json(v) for k, v in obj.items()}
        elif isinstance(obj, tuple):
            return (convert_json(x) for x in obj)
        elif isinstance(obj, list):
            return [convert_json(x) for x in obj]
        elif hasattr(obj, '__name__') and (not 'lambda' in obj.__name__):
            return convert_json(obj.__name__)
        elif hasattr(obj, '__dict__') and obj.__dict__:
            obj_dict = {convert_json(k): convert_json(v) for k, v in obj.__dict__.items()}
            return {str(obj): obj_dict}
        return str(obj)

torch.manual_seed(0)

class CustomObject:
    def __init__(self):
        self.x = 42
        self.y = "test"

class NamedObject:
    def __init__(self):
        self.value = 123

NamedObject.__name__ = "NamedObject"

test_tensor = torch.randn(2, 4)
test_array = np.array([1, 2, 3])
test_custom = CustomObject()
test_dict = {"key": "value", "nested": {"inner": 1}}
test_list = [1, 2.5, "string", None, True]
test_tuple = (1, 2, "three")
test_lambda = lambda x: x + 1
test_named_obj = NamedObject()

ARGS = {
    "obj": test_custom
}
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
discount_cumsum Ran
ran; our contract draft was wrong, not the code
Teddy298/continualworld-ppo/continualworld/ppo/core.py
code served (permissive licence) · get_code("13141eda72cfce23")
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 ndarray, ndim 1, dtype family float, shape (5,) 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 numpy as np
import scipy.signal

# discount_cumsum takes two parameters:
# - x: array-like input that will be reversed, filtered, and reversed again
# - discount: discount factor (float)

# Create a small numpy array for x
x = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Create a discount factor
discount = 0.99

ARGS = {
    "x": x,
    "discount": discount,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (5,) — shape (5,) 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
distribute_value Ran
ran, honoured the contract we drafted
Teddy298/continualworld-ppo/continualworld/ppo/core.py
code served (permissive licence) · get_code("b1c5f8e3bf092b45")
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 int, ndim 0, dtype family int, shape () 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    "value": 100,
    "num_proc": 4,
}
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 int, ndim 0, dtype family int, shape () — shape () 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
flat_concat Ran
ran, honoured the contract we drafted
Teddy298/continualworld-ppo/continualworld/utils_ppo/mpi_tf.py
pointer only (licence: MIT); the stored copy get_code serves, from milanganai/milanganai.github.io, is pointer only (licence: NONE) · get_code("f29202d8108bccd3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from milanganai/milanganai.github.io, 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.

is_json_serializable Ran
ran, violated the contract we drafted
Teddy298/continualworld-ppo/continualworld/ppo/utils/serialization_utils.py
code served (permissive licence) · get_code("9ca8b8e45f7fbebf")
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 bool, ndim 0, dtype family float, shape () 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 json

def is_json_serializable(v):
    try:
        json.dumps(v)
        return True
    except:
        return False

# Test with various values
ARGS = {
    "v": {"key": "value", "number": 42, "list": [1, 2, 3]}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
is_json_serializable Ran
ran, violated the contract we drafted
Teddy298/continualworld-ppo/continualworld/utils_ppo/serialization_utils.py
code served (permissive licence) · get_code("fa3450e31c44ab7b")
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 bool, ndim 0, dtype family float, shape () 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 json
import torch
import numpy as np

torch.manual_seed(0)

# The function is_json_serializable takes a single parameter 'value'
# and checks if it can be serialized to JSON using json.dumps()
# We need to provide a value that will be passed to this function

# Let's test with a JSON-serializable value
test_value = {
    "name": "test",
    "number": 42,
    "list": [1, 2, 3],
    "nested": {"key": "value"},
    "float": 3.14,
    "bool": True,
    "null": None,
    "string": "hello"
}

ARGS = {
    "value": test_value
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
assign_params_from_flat Not yet run
unverified (harvested, no recorded run)
Teddy298/continualworld-ppo/continualworld/utils_ppo/mpi_tf.py
code served (permissive licence) · get_code("7504559670b3de3c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 5 later) and 3 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
colorize 17 other papers
15 dated earlier, 2 later
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
1909.12255 (2019-09)
Harnessing Structures for Value-Based Planning and Reinforcement Learning
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
and 14 more not named here
combined_shape 14 other papers
12 dated earlier, 2 later
1906.06818 (2019-06)
Stacked Capsule Autoencoders
1912.13465 (2019-12)
Reward-Conditioned Policies
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
and 11 more not named here
is_json_serializable 9 other papers
7 dated earlier, 2 later
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2106.09110 (2021-06)
Safe Reinforcement Learning Using Advantage-Based Intervention
and 6 more not named here
convert_json 7 other papers
6 dated earlier, 1 later
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2106.09110 (2021-06)
Safe Reinforcement Learning Using Advantage-Based Intervention
and 4 more not named here
flat_concat 6 other papers
5 dated earlier, 1 later
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2210.07573 (2022-10)
Model-based Safe Deep Reinforcement Learning via a Constrained Proximal Policy Optimization Algorithm
2302.00808 (2023-02)
ACPO: A Policy Optimization Algorithm for Average MDPs with Constraints
and 3 more not named here
discount_cumsum 2 other papers
2 dated earlier
1912.13465 (2019-12)
Reward-Conditioned Policies
2205.14842 (2022-05)
Efficient Reward Poisoning Attacks on Online Deep Reinforcement 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

Continual reinforcement learning (CRL) is the study of optimal strategies for maximizing rewards in sequential environments that change over time. This is particularly crucial in domains such as robotics, where the operational environment is inherently dynamic and subject to continual change. Nevertheless, research in this area has thus far concentrated on off-policy algorithms with replay buffers that are capable of amortizing the impact of distribution shifts. Such an approach is not feasible with on-policy reinforcement learning algorithms that learn solely from the data obtained from the current policy. In this paper, we examine the performance of proximal policy optimization (PPO), a prevalent onpolicy reinforcement learning (RL) algorithm, in a classical CRL benchmark. Our findings suggest that the current methods are suboptimal in terms of average performance. Nevertheless, they demonstrate encouraging competitive outcomes with respect to forward transfer and forgetting metrics. This highlights the need for further research into continual onpolicy reinforcement learning. The source code is available at https://github.com/Teddy298/continualworld-ppo.

For agents

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

get_harvested_code_for_paper("aaai_35251")
get_code_for_paper("aaai_35251")
have("aaai_35251")

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

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

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

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

Connect an agent — have() is free.