SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.06343 · ICLR · 2025

Studying the Interplay Between the Actor and Critic Representations in Reinforcement Learning

David Abel, Prakash Panangaden, Samuel Garcin, Trevor A. McInroe, Pablo Samuel Castro, Christopher G. Lucas, Stefano V. Albrecht

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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 6 have no contract verdict; 0 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/2503.06343.json · badge: /api/ran/2503.06343.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
francelico/deac-rep canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
flatten Ran
ran on a synthesized input
francelico/deac-rep/procgen_experiments/eval_utils/mutual_info_procgen_eval.py
code served (permissive licence) · get_code("2e836db324c441d5")
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 (8, 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 torch
import numpy as np

torch.manual_seed(0)

# The function takes arr and calls arr.reshape(arr.shape[0] * arr.shape[1], -1)
# So arr needs to be a tensor with at least 2 dimensions
# Create a small 3D tensor: shape (2, 4, 3) for variety
arr = torch.randn(2, 4, 3)

ARGS = {
    "arr": arr
}
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 Tensor, ndim 2, dtype family float, shape (8, 3) — shape (8, 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
layer_init_normed_make_fn Ran
ran on a synthesized input
francelico/deac-rep/procgen_experiments/utils/model_util.py
code served (permissive licence) · get_code("48466eb97d63e6ed")
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 function. 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 jax
import jax.numpy as jnp

# Define l2_normalized since it's used in the function
def l2_normalized(x):
    """Normalize array along last axis to unit norm."""
    norm = jnp.sqrt(jnp.sum(x**2, axis=-1, keepdims=True))
    return x / (norm + 1e-8)

# Define a simple initialization function that mimics jax init functions
def simple_init_fn(key, shape, dtype):
    """Simple initialization function that returns random values."""
    return jax.random.normal(key, shape, dtype=dtype)

# Create valid arguments
scale = 2.5  # A float scale factor
init_fn = simple_init_fn  # An initialization function

ARGS = {
    "scale": scale,
    "init_fn": init_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
make_opt Ran
ran on a synthesized input
francelico/deac-rep/brax_experiments/train_scripts/train_dcpg.py
code served (permissive licence) · get_code("44563d039e270c59")
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 MultiSteps. 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 optax
from typing import Callable


torch.manual_seed(0)


class Args:
    def __init__(self):
        self.max_grad_norm = 1.0
        self.adam_eps = 1e-8
        self.learning_rate = 0.001
        self.anneal_lr = False
        self.gradient_accumulation_steps = 4


def dummy_lr_scheduler(step: int) -> float:
    """Dummy learning rate scheduler function."""
    return 0.001 * (0.99 ** step)


args = Args()
lr_scheduler_fn = dummy_lr_scheduler

ARGS = {
    "args": args,
    "lr_scheduler_fn": lr_scheduler_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
optax, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MultiSteps — a MultiSteps output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MultiSteps 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
random_projection Ran
ran on a synthesized input
francelico/deac-rep/procgen_experiments/utils/model_util.py
code served (permissive licence) · get_code("cd4d33a05a1fc39c")
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 ArrayImpl, 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 jax
import jax.numpy as jnp
import functools
from flax.linen.initializers import orthogonal, variance_scaling, lecun_normal, normal, constant
import flax.linen as nn

class RandomProjector(nn.Module):
    out_dim: int

    @nn.compact
    def __call__(self, x):
        return jax.lax.stop_gradient(nn.Dense(self.out_dim, kernel_init=normal(), bias_init=constant(0.0))(x))

@functools.partial(jax.jit, static_argnames=('out_dim',))
def random_projection(x, key, out_dim: int):
    rand_projector = RandomProjector(out_dim)
    rand_projector_params = rand_projector.init(key, x)
    return rand_projector.apply(rand_projector_params, x)

# Setup code to construct valid arguments
x = jnp.ones((2, 4))
key = jax.random.PRNGKey(0)
out_dim = 3

ARGS = {
    'x': x,
    'key': key,
    'out_dim': out_dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
set_layer_init_fn Ran
ran on a synthesized input
francelico/deac-rep/procgen_experiments/utils/model_util.py
code served (permissive licence) · get_code("8a9250b415d9f888")
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 jax
import jax.numpy as jnp
from functools import partial
from flax.linen.initializers import variance_scaling, orthogonal, lecun_normal

def l2_normalized(x):
    """Helper function to normalize array along last axis"""
    return x / (jnp.linalg.norm(x, axis=-1, keepdims=True) + 1e-12)

class Args:
    def __init__(self, kernel_init_method):
        self.kernel_init_method = kernel_init_method

ARGS = {
    "args": Args("ppg_cleanrl_procgen")
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — 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
step_envs_once Ran
ran on a synthesized input
francelico/deac-rep/procgen_experiments/eval_utils/mutual_info_procgen_eval.py
code served (permissive licence) · get_code("f73e23e506f33203")
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

class MockSpec:
    def __init__(self):
        self.config = MockConfig()

class MockConfig:
    def __init__(self):
        self.max_episode_steps = 10

class MockEnv:
    def __init__(self):
        self.spec = MockSpec()
        self.num_envs = 2
    
    def step(self, action):
        batch_size = 2
        obs = np.random.randn(batch_size, 4).astype(np.float32)
        reward = np.random.randn(batch_size).astype(np.float32)
        done = np.array([False, False], dtype=bool)
        info = {
            'elapsed_step': np.array([3, 5], dtype=np.int32)
        }
        return obs, reward, done, info

envs = MockEnv()
action = [1, 0]

ARGS = {
    'envs': envs,
    'action': action
}
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
prepare_data Not yet run
unverified (harvested, no recorded run)
francelico/deac-rep/procgen_experiments/eval_utils/mutual_info_procgen_eval.py
code served (permissive licence) · get_code("b81e0663664c16d2")
How it ran

no invocation recorded.

Also present in other papers' code

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

Extracting relevant information from a stream of high-dimensional observations is a central challenge for deep reinforcement learning agents. Actor-critic algorithms add further complexity to this challenge, as it is often unclear whether the same information will be relevant to both the actor and the critic. To this end, we here explore the principles that underlie effective representations for the actor and for the critic in on-policy algorithms. We focus our study on understanding whether the actor and critic will benefit from separate, rather than shared, representations. Our primary finding is that when separated, the representations for the actor and critic systematically specialise in extracting different types of information from the environment-the actor's representation tends to focus on action-relevant information, while the critic's representation specialises in encoding value and dynamics information. We conduct a rigourous empirical study to understand how different representation learning approaches affect the actor and critic's specialisations and their downstream performance, in terms of sample efficiency and generation capabilities. Finally, we discover that a separated critic plays an important role in exploration and data collection during training. Our code, trained models and data are accessible at https://github.com/francelico/deac-rep.

For agents

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

get_harvested_code_for_paper("2503.06343")
get_code_for_paper("2503.06343")
have("2503.06343")

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

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

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

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

Connect an agent — have() is free.