SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.13431 · 2022

Instruction-Following Agents with Multimodal Transformer

arXiv · PDF · Open in the Atlas

Code that ran

15 of 20 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 9 have no contract verdict; 4 failures of our instrument; 5 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/2210.13431.json · badge: /api/ran/2210.13431.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
lhao499/instructrl canonical (classifier label)
classifier basis not recorded on the link
15 ran · 5 no recorded run
FunctionStatusWhere it lives
build_env_fn Ran
ran on a synthesized input
lhao499/instructrl/instructrl/instructrl_main.py
code served (permissive licence) · get_code("600b55b260ebe0ff")
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 sys

# Initialize FLAGS if not already done
if not hasattr(absl.flags.FLAGS, 'env'):
    absl.flags.DEFINE_string('env', 'default_env', 'Environment configuration')

FLAGS = absl.flags.FLAGS

# Stand-in class for RLBenchArmGripper
class RLBenchArmGripper:
    def __init__(self, game_name, env_config):
        self.game_name = game_name
        self.env_config = env_config
    
    def reset(self):
        return None
    
    def step(self, action):
        return None, 0, False, {}

# Set up FLAGS
FLAGS([''])  # Mark as parsed to avoid issues

ARGS = {
    'game_name': 'reach_target'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
absl — 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_test_step Ran
ran on a synthesized input
lhao499/instructrl/instructrl/local_run.py
code served (permissive licence) · get_code("1189ccb694f97474")
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

# Stand-in classes and minimal implementations

class JaxRNG:
    """Minimal RNG wrapper for JAX"""
    def __init__(self, rng):
        self.rng = rng
    
    def __call__(self, keys):
        """Return the RNG state"""
        return self.rng

class MockModel:
    """Minimal model with required methods"""
    def __init__(self):
        self.params = {'w': jnp.ones((4, 3))}
    
    def rng_keys(self):
        """Return RNG keys needed"""
        return jax.random.PRNGKey(0)
    
    def apply(self, variables, inputs, rngs=None, method=None):
        """Apply model with given method"""
        if method is not None:
            return method(variables, inputs, rngs=rngs)
        return jnp.ones((2,))
    
    def greedy_action(self, variables, inputs, rngs=None):
        """Greedy action selection method"""
        return jnp.array([0, 1])

class MockEnv:
    """Minimal environment"""
    def __init__(self):
        self.observation_space_size = 4
        self.action_space_size = 3
    
    def reset(self, rng):
        obs = jnp.ones(4)
        return obs, {}
    
    def step(self, obs, action, rng):
        next_obs = jnp.ones(4)
        reward = jnp.array(1.0)
        done = False
        info = {}
        return next_obs, reward, done, info

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

class MockRollout:
    """Mock rollout module"""
    @staticmethod
    def batch_rollout(rng, env_fn, policy, episode_length, window_size, num_episodes, num_actions):
        """Minimal batch rollout"""
        return {
            'episode_returns': jnp.ones(num_episodes),
            'episode_lengths': jnp.ones(num_episodes, dtype=jnp.int32)
        }

# Create mock rollout module
class rollout:
    batch_rollout = staticmethod(MockRollout.batch_rollout)

# Construct ARGS dictionary
ARGS = {
    'model': MockModel(),
    'env_fn': mock_env_fn,
    'episode_length': 10,
    'instruct': {'instruction': jnp.array([0.1, 0.2, 0.3, 0.4])},
    'window_size': 5,
    'num_episodes': 2,
    'num_actions': 3,
}
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 on a synthesized input
lhao499/instructrl/instructrl/instructrl_main.py
code served (permissive licence) · get_code("06f8960d0fb5a580")
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 jax import random
from functools import partial
from typing import Any, Dict, Callable
import flax.linen as nn
from flax.core import FrozenDict
from optax import GradientTransformation

# Define JaxRNG class that the function expects
class JaxRNG:
    def __init__(self, rng):
        self.rng = rng
    
    def __call__(self, keys):
        # Split the RNG for each requested key
        rngs = {}
        rng = self.rng
        if isinstance(keys, (list, tuple)):
            for key in keys:
                rng, subkey = random.split(rng)
                rngs[key] = subkey
        return rngs

# Define a minimal model that matches the expected interface
class SimpleModel(nn.Module):
    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 = self.dense1(x)
        x = self.dense2(x)
        # Return dict with 'loss' key as expected by loss_fn
        loss = jnp.mean(x ** 2)
        return {'loss': loss}
    
    def rng_keys(self):
        # Return list of RNG keys needed by the model
        return ['dropout']

# Create a minimal TrainState-like class
class TrainState:
    def __init__(self, params, step=0):
        self.params = params
        self.step = step
    
    def apply_gradients(self, grads):
        # Simple SGD-like update
        new_params = jax.tree_map(
            lambda p, g: p - 0.01 * g,
            self.params,
            grads
        )
        return TrainState(new_params, self.step + 1)

# Initialize model and parameters
model = SimpleModel()
key = random.PRNGKey(0)
key, subkey = random.split(key)
batch_example = jnp.ones((2, 4))  # batch size 2, input dim 4
params = model.init(subkey, batch_example)['params']

# Create a simple learning rate schedule function
def learning_rate_schedule(step):
    return 0.001 * (0.99 ** (step // 100))

# Define ARGS dict
ARGS = {
    'model': model,
    'learning_rate': learning_rate_schedule,
    '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
lhao499/instructrl/instructrl/model.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
discrete_euler_to_quaternion Ran
ran on a synthesized input
lhao499/instructrl/instructrl/data.py
code served (permissive licence) · get_code("6f7c29d589a38d3b")
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 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 numpy as np
from scipy.spatial.transform import Rotation

torch = None  # Not needed for this function

# Create small test data
discrete_euler = np.array([[0, 0, 0], [45, 90, 180]])
resolution = 1.0

ARGS = {
    'discrete_euler': discrete_euler,
    'resolution': resolution,
}
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 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
extend_and_repeat Ran
ran; our contract draft was wrong, not the code
lhao499/instructrl/instructrl/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_metrics Ran
ran; our contract draft was wrong, not the code
lhao499/instructrl/instructrl/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
lhao499/instructrl/instructrl/model.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
hash_file Ran
ran on a synthesized input
lhao499/instructrl/instructrl/models/openai/download.py
code served (permissive licence) · get_code("15ba5cffc310ab9f")
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 hashlib
import tempfile
import os

# Create a temporary file with some content to hash
temp_dir = tempfile.mkdtemp()
temp_file_path = os.path.join(temp_dir, "test_file.txt")
with open(temp_file_path, 'w') as f:
    f.write("test content for hashing")

ARGS = {
    "path": temp_file_path
}
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 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
mask_intersection Ran
ran on a synthesized input
lhao499/instructrl/instructrl/models/m3ae/model.py
code served (permissive licence) · get_code("cd63725ed150c8be")
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, 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 jax.numpy as jnp
import numpy as np

# Create two small boolean-like masks
mask1 = jnp.array([
    [1.0, 0.0, 1.0, 0.5],
    [0.0, 1.0, 0.0, 1.0]
], dtype=jnp.float32)

mask2 = jnp.array([
    [1.0, 1.0, 0.0, 0.5],
    [1.0, 0.0, 1.0, 0.0]
], dtype=jnp.float32)

ARGS = {
    "mask1": mask1,
    "mask2": mask2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — 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, 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
mask_not Ran
ran on a synthesized input
lhao499/instructrl/instructrl/models/m3ae/model.py
code served (permissive licence) · get_code("e0f860b8706ea27b")
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
import numpy as np

torch.manual_seed(0)

# The function mask_not takes a mask and returns 1.0 - mask
# It expects a numeric array-like object (tensor or numpy array)
# that supports subtraction from a float

mask = torch.tensor([[0.2, 0.5, 0.8, 0.1],
                     [0.3, 0.6, 0.9, 0.4]], dtype=torch.float32)

ARGS = {
    "mask": mask
}
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 (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
mask_union Ran
ran on a synthesized input
lhao499/instructrl/instructrl/models/m3ae/model.py
code served (permissive licence) · get_code("d049b3e2054cb151")
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, 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 jax.numpy as jnp

# Create two small test masks with different shapes for clarity
mask1 = jnp.array([
    [1.0, 0.0, 0.5, 0.0],
    [0.0, 0.0, 0.0, 0.0]
], dtype=jnp.float32)

mask2 = jnp.array([
    [0.0, 0.0, 0.0, 1.0],
    [0.5, 0.0, 0.0, 0.0]
], dtype=jnp.float32)

ARGS = {
    "mask1": mask1,
    "mask2": mask2
}
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 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
mse_loss Ran
ran, violated the contract we drafted
lhao499/instructrl/instructrl/model.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.

prefix_metrics Ran
ran on a synthesized input
lhao499/instructrl/instructrl/models/m3ae/utils.py
code served (permissive licence) · get_code("d97e89c7f1953b3a")
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

torch.manual_seed(0)

# Simple metrics dict with string keys and numeric values
metrics = {
    'loss': 0.5,
    'accuracy': 0.95,
    'f1_score': 0.88
}

# Prefix string to prepend to each metric key
prefix = 'train'

ARGS = {
    'metrics': metrics,
    'prefix': prefix
}
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
wrap_function_with_rng Ran
ran; our contract draft was wrong, not the code
lhao499/instructrl/instructrl/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)
lhao499/instructrl/instructrl/envs/rollout.py
code served (permissive licence) · get_code("c16d1755d384c81b")
How it ran

no invocation recorded.

build_env_fn Not yet run
unverified (harvested, no recorded run)
lhao499/instructrl/instructrl/local_run.py
code served (permissive licence) · get_code("dc4f5bae4c75e9c4")
How it ran

no invocation recorded.

download Not yet run
unverified (harvested, no recorded run)
lhao499/instructrl/instructrl/models/openai/download.py
code served (permissive licence) · get_code("a18a67bfbd7246bb")
How it ran

no invocation recorded.

get_cont_action Not yet run
unverified (harvested, no recorded run)
lhao499/instructrl/instructrl/data.py
code served (permissive licence) · get_code("913edd29987265fa")
How it ran

no invocation recorded.

sync_state_fn Not yet run
unverified (harvested, no recorded run)
lhao499/instructrl/instructrl/instructrl_main.py
code served (permissive licence) · get_code("278d0834e4c3f3b4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 11 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 10 later) and 9 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
1 dated earlier, 1 the same month, 2 later
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
2309.10790 (2023-09)
Guide Your Agent with Adaptive Multimodal Rewards
and 1 more not named here
mse_loss 4 other papers
1 dated earlier, 1 the same month, 2 later
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
2309.10790 (2023-09)
Guide Your Agent with Adaptive Multimodal Rewards
and 1 more not named here
mask_intersection 2 other papers
1 dated earlier, 1 later
2205.14204 (2022-05)
Multimodal Masked Autoencoders Learn Transferable Representations
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
mask_not 2 other papers
1 dated earlier, 1 later
2205.14204 (2022-05)
Multimodal Masked Autoencoders Learn Transferable Representations
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
mask_union 2 other papers
1 dated earlier, 1 later
2205.14204 (2022-05)
Multimodal Masked Autoencoders Learn Transferable Representations
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
prefix_metrics 2 other papers
1 dated earlier, 1 the same month
2006.04779 (2020-06)
Conservative Q-Learning for Offline Reinforcement Learning
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning
wrap_function_with_rng 2 other papers
2 later
2309.10790 (2023-09)
Guide Your Agent with Adaptive Multimodal Rewards
2310.08558 (2023-10)
Offline Retraining for Online RL: Decoupled Policy Learning to Mitigate Exploration Bias
cross_entropy 1 other paper
1 later
2309.10790 (2023-09)
Guide Your Agent with Adaptive Multimodal Rewards
get_metrics 1 other paper
1 later
2309.10790 (2023-09)
Guide Your Agent with Adaptive Multimodal Rewards
get_pos_embed 1 other paper
1 later
2309.10790 (2023-09)
Guide Your Agent with Adaptive Multimodal Rewards
sync_state_fn 1 other paper
1 later
2309.10790 (2023-09)
Guide Your Agent with Adaptive Multimodal Rewards

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

Humans are excellent at understanding language and vision to accomplish a wide range of tasks. In contrast, creating general instruction-following embodied agents remains a difficult challenge. Prior work that uses pure language-only models lack visual grounding, making it difficult to connect language instructions with visual observations. On the other hand, methods that use pre-trained multimodal models typically come with divided language and visual representations, requiring designing specialized network architecture to fuse them together. We propose a simple yet effective model for robots to solve instruction-following tasks in vision-based environments. Our \ours method consists of a multimodal transformer that encodes visual observations and language instructions, and a transformer-based policy that predicts actions based on encoded representations. The multimodal transformer is pre-trained on millions of image-text pairs and natural language text, thereby producing generic cross-modal representations of observations and instructions. The transformer-based policy keeps track of the full history of observations and actions, and predicts actions autoregressively. Despite its simplicity, we show that this unified transformer model outperforms all state-of-the-art pre-trained or trained-from-scratch methods in both single-task and multi-task settings. Our model also shows better model scalability and generalization ability than prior work.

For agents

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

get_harvested_code_for_paper("2210.13431")
get_code_for_paper("2210.13431")
have("2210.13431")

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

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

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

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

Connect an agent — have() is free.