SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.10790 · NeurIPS · 2023

Guide Your Agent with Adaptive Multimodal Rewards

Honglak Lee, U Berkeley, Jinwoo Shin, Lisa Lee, Kimin Lee, Younggyo Seo, Hao Liu, Changyeon Kim, Lab, Robot Dyson

arXiv · PDF · Open in the Atlas

Code that ran

15 of 17 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 13 failures of our instrument; 2 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/2309.10790.json · badge: /api/ran/2309.10790.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
csmile-1006/ARP canonical (classifier label)
classifier basis: census
15 ran · 2 no recorded run
FunctionStatusWhere it lives
build_env_fn Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/local_run_procgen.py
code served (permissive licence) · get_code("4c63ec9cb2cb9f8d")
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 absl.flags
import torch
import numpy as np

# Set up absl flags
absl.flags.DEFINE_string('env', 'default_env_config', 'Environment configuration')
FLAGS = absl.flags.FLAGS
FLAGS.mark_as_parsed()

# Create a minimal stand-in Procgen class
class Procgen:
    def __init__(self, game_name, env_config):
        self.game_name = game_name
        self.env_config = env_config
    
    def __call__(self):
        return self

# Define the function to test
def build_env_fn(game_name):
    def env_fn():
        env = Procgen(game_name, FLAGS.env)
        return env
    return env_fn

# Construct ARGS with valid arguments
ARGS = {
    'game_name': 'coinrun'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
absl, numpy, torch — 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
build_env_fn Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/main_procgen.py
code served (permissive licence) · get_code("e59d13cf153d2bcf")
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 torch
import torch.nn as nn

class Procgen:
    """Stand-in Procgen environment class"""
    def __init__(self, game_name, conf):
        self.game_name = game_name
        self.conf = conf
        self.observation_space = type('obj', (object,), {'shape': (64, 64, 3)})()
        self.action_space = type('obj', (object,), {'n': 15})()
    
    def reset(self):
        return torch.zeros(64, 64, 3, dtype=torch.uint8)
    
    def step(self, action):
        obs = torch.zeros(64, 64, 3, dtype=torch.uint8)
        reward = 0.0
        done = False
        info = {}
        return obs, reward, done, info
    
    def close(self):
        pass

class Config:
    """Stand-in config class"""
    def __init__(self):
        self.num_levels = 200
        self.num_envs = 1
        self.distribution_mode = 'easy'
        self.start_level = 0
        self.use_data_augmentation = False
        self.paint_vel_info = False
        self.use_backgrounds = True
        self.center_agent = True
        self.use_monochrome_assets = False

ARGS = {
    'game_name': 'coinrun',
    'conf': Config()
}
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 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
center_crop Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
csmile-1006/ARP/arp_dt/label_reward.py
code served (permissive licence) · get_code("e10e152877684c24")
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 4, dtype family int, shape (2, 4, 6, 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 numpy as np

# Create a small test image with shape [N, H, W, C]
# N=2 (batch), H=8 (height), W=10 (width), C=3 (channels)
image = np.random.randint(0, 256, size=(2, 8, 10, 3), dtype=np.uint8)

# Define crop size as (height, width)
crop_size = (4, 6)

ARGS = {
    "image": image,
    "crop_size": crop_size,
}
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 ndarray, ndim 4, dtype family int, shape (2, 4, 6, 3) — shape (2, 4, 6, 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
create_test_step Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/local_run_procgen.py
code served (permissive licence) · get_code("c1968d45084db3b3")
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
from functools import partial
from typing import Callable, Dict, Any


class MockModel:
    """Minimal model with methods called by create_test_step."""
    
    def __init__(self):
        self.params = {"layer": jnp.ones((4, 3))}
    
    def rng_keys(self):
        """Return list of RNG key names."""
        return ["dropout"]
    
    def greedy_action(self, batch, **kwargs):
        """Greedy action selection method."""
        # Return mock action output
        batch_size = batch.get("observation", jnp.zeros((2, 4))).shape[0]
        return jnp.zeros((batch_size, 2))
    
    def apply(self, variables, batch, rngs, method):
        """Apply model with given method."""
        return method(batch=batch)


class JaxRNG:
    """Mock JAX RNG generator."""
    
    def __init__(self, seed):
        self.seed = seed
        self.counter = 0
    
    def __call__(self):
        """Generate next RNG key."""
        self.counter += 1
        return jax.random.fold_in(self.seed, self.counter)


class MockEnv:
    """Minimal environment for rollout."""
    
    def __init__(self):
        self.observation_space = type('Space', (), {'shape': (4,)})()
        self.action_space = type('Space', (), {'n': 2})()
    
    def reset(self):
        return jnp.ones(4)
    
    def step(self, action):
        return jnp.ones(4), 0.0, False, {}


def mock_env_fn():
    """Factory function for environment."""
    return MockEnv()


def mock_transform_obs(obs):
    """Transform observation."""
    return obs


def mock_transform_action(action):
    """Transform action."""
    return action


class MockState:
    """Mock training state."""
    
    def __init__(self):
        self.params = {"layer": jnp.ones((4, 3))}


# Mock rollout module (simplified)
class MockRollout:
    @staticmethod
    def batch_rollout(rng, data_aug_rng, env, policy_fn, transform_obs_fn, 
                      transform_action_fn, episode_length, window_size, 
                      num_episodes, return_to_go, scale, clip_model, vl_type, 
                      text, reward_min, use_normalize, eval_data_path, data_name):
        """Mock batch rollout function."""
        metrics = {"return": 0.5}
        videos = []
        return metrics, None, videos


# Inject mock rollout module
import sys
import types
rollout_procgen = types.ModuleType('rollout_procgen')
rollout_procgen.batch_rollout = MockRollout.batch_rollout
sys.modules['rollout_procgen'] = rollout_procgen


ARGS = {
    "model": MockModel(),
    "env_fn": mock_env_fn,
    "episode_length": 10,
    "instruct": {"instruction": "test"},
    "window_size": 4,
    "num_episodes": 2,
    "transform_obs_fn": mock_transform_obs,
    "transform_action_fn": mock_transform_action,
    "return_to_go": 1.0,
    "scale": 1.0,
    "clip_model": False,
    "vl_type": "value",
    "text": "test_text",
    "reward_min": 0.0,
    "use_normalize": False,
    "eval_data_path": "/tmp/eval_data",
}
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
create_train_step Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/main_procgen.py
code served (permissive licence) · get_code("cd913272f866da49")
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
from functools import partial
from flax import linen as nn
from flax.core import FrozenDict
from flax.training import train_state
import optax


class JaxRNG:
    """Stand-in class for RNG management"""
    def __init__(self, rng):
        self.rng = rng
        self.counter = 0
    
    def __call__(self, keys):
        """Return dict of RNGs for each key"""
        rngs = {}
        for key in keys:
            self.counter += 1
            self.rng, subkey = jax.random.split(self.rng)
            rngs[key] = subkey
        return rngs


class SimpleModel(nn.Module):
    """Minimal Flax model for testing"""
    
    def setup(self):
        self.dense1 = nn.Dense(features=3)
        self.dense2 = nn.Dense(features=2)
    
    def __call__(self, batch, rngs=None, deterministic=False):
        x = batch['x']
        x = self.dense1(x)
        x = self.dense2(x)
        logits = x
        
        # Compute a dummy loss
        loss = jnp.mean(logits ** 2)
        
        # Compute dummy accuracy
        acc = jnp.mean(jnp.argmax(logits, axis=-1) == batch['y'])
        
        return {
            'loss': loss,
            'acc': acc,
            'trans_loss': jnp.array(0.1),
            'return_loss': jnp.array(0.05)
        }
    
    def rng_keys(self):
        """Return list of RNG keys used by the model"""
        return ['dropout']


def create_dummy_params():
    """Create dummy parameters for the model"""
    model = SimpleModel()
    rng = jax.random.PRNGKey(0)
    dummy_batch = {
        'x': jnp.ones((2, 4)),
        'y': jnp.array([0, 1])
    }
    params = model.init(rng, dummy_batch, deterministic=True)['params']
    return params


def learning_rate_fn(step):
    """Dummy learning rate schedule"""
    return 0.001 / (1.0 + 0.1 * step)


# Create model
model = SimpleModel()

# Create params
params = create_dummy_params()

# Create a dummy train state
tx = optax.adam(learning_rate=0.001)
state = train_state.TrainState.create(
    apply_fn=model.apply,
    params=params,
    tx=tx
)

# Create a batch
batch = {
    'x': jnp.ones((2, 4)),
    'y': jnp.array([0, 1])
}

ARGS = {
    'model': model,
    'learning_rate': learning_rate_fn,
    'weight_decay': 0.0001
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, optax — 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
cross_entropy Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/ARPDT.py
code served (permissive licence) · get_code("ef0abd7fbdc81c5e")
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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update("jax_default_prng_impl", "threefry2x32")
key = jax.random.PRNGKey(0)

# Create small dummy tensors
batch_size = 2
num_classes = 4

# logits: shape (batch_size, num_classes) - raw model outputs
logits = jnp.array([
    [2.0, 1.0, 0.5, -1.0],
    [1.5, -0.5, 2.5, 0.0]
], dtype=jnp.float32)

# labels: shape (batch_size,) - class indices
labels = jnp.array([0, 2], dtype=jnp.int32)

ARGS = {
    "logits": logits,
    "labels": labels,
    "num_classes": num_classes
}
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 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
decode_inst Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/label_reward.py
code served (permissive licence) · get_code("f25568ad24490bfc")
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 str. 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

# Create a numpy array representing an encoded instruction
# The function looks for non-zero elements and converts them to bytes then decodes as UTF-8
# Let's create an array with ASCII values for a simple string like "hello"
encoded_instruction = np.array([104, 101, 108, 108, 111, 0, 0, 0], dtype=np.uint8)

ARGS = {
    "inst": encoded_instruction
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
extend_and_repeat Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from MaxSobolMark/OOO, is pointer only (licence: NONE) · get_code("d2f199c948f2a9ed")
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 MaxSobolMark/OOO, 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.

get_clip_instruct Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/data_procgen.py
code served (permissive licence) · get_code("875b618ee63e51df")
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 str. 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

torch.manual_seed(0)

# Based on the function body, it takes a single parameter 'task'
# and returns a string based on task matching.
# The function doesn't use any complex objects, just performs string comparisons
# and returns formatted strings.

ARGS = {
    'task': 'coinrun'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_clip_special_instruct Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/data_procgen.py
code served (permissive licence) · get_code("ec540958aea12ead")
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 str. 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

torch.manual_seed(0)

# The function takes two parameters: env_name (string) and inst_type (string)
# It returns a string based on the conditions
# No complex objects are needed - just strings

ARGS = {
    'env_name': 'coinrun',
    'inst_type': 'misinfo'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_m3ae_instruct Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/data_procgen.py
code served (permissive licence) · get_code("e356500e344c9b01")
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 str. 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 numpy as np

torch.manual_seed(0)

# The function get_m3ae_instruct takes a single parameter 'task' which is a string
# It returns instruction strings based on the task name
# No complex objects or tensors are needed

ARGS = {
    'task': 'coinrun'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_metrics Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/utils.py
code served (permissive licence) · get_code("f051af6f08e6125a")
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
import flax
from flax import jax_utils

# Create a simple metrics dictionary with JAX arrays
metrics_dict = {
    'loss': jnp.array(0.5),
    'accuracy': jnp.array(0.95),
    'f1_score': jnp.array(0.92)
}

# Simulate a replicated metrics structure (as if from pmap)
# by wrapping in a device dimension
replicated_metrics = jax.tree_util.tree_map(
    lambda x: jnp.expand_dims(x, axis=0),
    metrics_dict
)

ARGS = {
    'metrics': replicated_metrics,
    'unreplicate': True
}
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
get_pos_embed Ran
ran, honoured the contract we drafted
csmile-1006/ARP/arp_dt/ARPDT.py
code served (permissive licence) · get_code("a94b14df1af9126d")
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 3, dtype family float, shape (1, 4, 8) 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.numpy as jnp

# The function takes two parameters: embed_dim and length
# embed_dim: the embedding dimension (must be even)
# length: the sequence length

ARGS = {
    "embed_dim": 8,
    "length": 4,
}
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 ArrayImpl, ndim 3, dtype family float, shape (1, 4, 8) — shape (1, 4, 8) 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
mse_loss Ran
ran, violated the contract we drafted
csmile-1006/ARP/arp_dt/ARPDT.py
pointer only (licence: MIT); the stored copy get_code serves, from MaxSobolMark/OOO, is pointer only (licence: NONE) · get_code("cc35af8b18b7dc58")
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 MaxSobolMark/OOO, 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.

wrap_function_with_rng Ran
ran; our contract draft was wrong, not the code
csmile-1006/ARP/arp_dt/utils.py
code served (permissive licence) · get_code("1e6123c693775a38")
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.random

# The function wrap_function_with_rng takes a single parameter: rng
# which should be a JAX random key

# Create a JAX random key
rng_key = jax.random.PRNGKey(0)

# Define the ARGS dict with the parameter for wrap_function_with_rng
ARGS = {
    "rng": rng_key
}
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
batch_rollout Not yet run
unverified (harvested, no recorded run)
csmile-1006/ARP/arp_dt/envs/rollout_procgen.py
code served (permissive licence) · get_code("e229edef99438b95")
How it ran

no invocation recorded.

sync_state_fn Not yet run
unverified (harvested, no recorded run)
csmile-1006/ARP/arp_dt/main_procgen.py
code served (permissive licence) · get_code("278d0834e4c3f3b4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 3 later) and 10 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
extend_and_repeat 4 other papers
3 dated earlier, 1 later
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
and 1 more not named here
mse_loss 4 other papers
3 dated earlier, 1 later
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
and 1 more not named here
wrap_function_with_rng 2 other papers
1 dated earlier, 1 later
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
2310.08558 (2023-10)
Offline Retraining for Online RL: Decoupled Policy Learning to Mitigate Exploration Bias
cross_entropy 1 other paper
1 dated earlier
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
get_metrics 1 other paper
1 dated earlier
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
get_pos_embed 1 other paper
1 dated earlier
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
sync_state_fn 1 other paper
1 dated earlier
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer

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

Developing an agent capable of adapting to unseen environments remains a difficult challenge in imitation learning. This work presents Adaptive Return-conditioned Policy (ARP), an efficient framework designed to enhance the agent's generalization ability using natural language task descriptions and pre-trained multimodal encoders. Our key idea is to calculate a similarity between visual observations and natural language instructions in the pre-trained multimodal embedding space (such as CLIP) and use it as a reward signal. We then train a return-conditioned policy using expert demonstrations labeled with multimodal rewards. Because the multimodal rewards provide adaptive signals at each timestep, our ARP effectively mitigates the goal misgeneralization. This results in superior generalization performances even when faced with unseen text instructions, compared to existing text-conditioned policies. To improve the quality of rewards, we also introduce a fine-tuning method for pre-trained multimodal encoders, further enhancing the performance. Video demonstrations and source code are available on the project website: https://sites.google.com/view/2023arp.

For agents

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

get_harvested_code_for_paper("2309.10790")
get_code_for_paper("2309.10790")
have("2309.10790")

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

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

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

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

Connect an agent — have() is free.