SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2302.12422 · 2023

MimicPlay: Long-Horizon Imitation Learning by Watching Human Play

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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 2 have no contract verdict; 1 failure of our instrument; 3 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/2302.12422.json · badge: /api/ran/2302.12422.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
j96w/mimicplay canonical (classifier label)
classifier basis not recorded on the link
3 ran · 3 no recorded run
FunctionStatusWhere it lives
create_hdf5_filter_key Ran
ran on a synthesized input
j96w/mimicplay/mimicplay/utils/file_utils.py
code served (permissive licence) · get_code("f034a4365ebe2b33")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import h5py
import numpy as np
import tempfile
import os

# Create a temporary HDF5 file with the required structure
temp_dir = tempfile.mkdtemp()
hdf5_path = os.path.join(temp_dir, "test_data.hdf5")

# Create a valid HDF5 file with data structure
with h5py.File(hdf5_path, 'w') as f:
    data_grp = f.create_group('data')
    
    # Create demo_0
    demo_0 = data_grp.create_group('demo_0')
    demo_0.attrs['num_samples'] = 10
    demo_0.create_dataset('observations', data=np.random.randn(10, 4))
    
    # Create demo_1
    demo_1 = data_grp.create_group('demo_1')
    demo_1.attrs['num_samples'] = 15
    demo_1.create_dataset('observations', data=np.random.randn(15, 4))
    
    # Create demo_2
    demo_2 = data_grp.create_group('demo_2')
    demo_2.attrs['num_samples'] = 12
    demo_2.create_dataset('observations', data=np.random.randn(12, 4))

ARGS = {
    'hdf5_path': hdf5_path,
    'demo_keys': ['demo_0', 'demo_1'],
    'key_name': 'test_filter'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_env_metadata_from_dataset Ran
ran on a synthesized input
j96w/mimicplay/mimicplay/utils/file_utils.py
code served (permissive licence) · get_code("cf8d19412ddb9fbf")
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 os
import h5py
import json
import tempfile

# Create a temporary HDF5 file with the required structure
temp_dir = tempfile.mkdtemp()
dataset_path = os.path.join(temp_dir, "test_dataset.hdf5")

# Create the HDF5 file with env_args metadata
with h5py.File(dataset_path, 'w') as f:
    data_group = f.create_group('data')
    env_args = {
        'env_name': 'CartPole-v1',
        'type': 'gym',
        'env_kwargs': {'gravity': 9.8, 'length': 0.5}
    }
    data_group.attrs['env_args'] = json.dumps(env_args)

ARGS = {
    'dataset_path': dataset_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py — 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
register_algo_factory_func Ran
ran; our contract draft was wrong, not the code
j96w/mimicplay/mimicplay/algo/algo.py
code served (permissive licence) · get_code("1db8c13e93e6d733")
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 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
from collections import OrderedDict

torch.manual_seed(0)

# The function register_algo_factory_func takes one parameter: algo_name (str)
# It returns a decorator function that takes a factory_func as input
# The decorator stores the factory_func in REGISTERED_ALGO_FACTORY_FUNCS dict

# Create a simple factory function to pass to the decorator
def sample_algo_factory(config):
    """Sample algorithm factory function"""
    return "SampleAlgoClass"

# The algo_name parameter should be a string identifier for the algorithm
algo_name_value = "sample_algorithm"

ARGS = {
    "algo_name": algo_name_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
algo_factory Not yet run
unverified (harvested, no recorded run)
j96w/mimicplay/mimicplay/algo/algo.py
code served (permissive licence) · get_code("c9dad182621b681d")
How it ran

no invocation recorded.

algo_name_to_factory_func Not yet run
unverified (harvested, no recorded run)
j96w/mimicplay/mimicplay/algo/algo.py
code served (permissive licence) · get_code("16f37e2539e0aca4")
How it ran

no invocation recorded.

config_factory Not yet run
unverified (harvested, no recorded run)
j96w/mimicplay/mimicplay/configs/base_config.py
code served (permissive licence) · get_code("a081f9af76febfc3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 4 later) and 2 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
algo_factory 2 other papers
1 dated earlier, 1 later
2108.03298 (2021-08)
What Matters in Learning from Offline Human Demonstrations for Robot Manipulation
2410.24221 (2024-10)
EgoMimic: Scaling Imitation Learning via Egocentric Video
algo_name_to_factory_func 2 other papers
1 dated earlier, 1 later
2108.03298 (2021-08)
What Matters in Learning from Offline Human Demonstrations for Robot Manipulation
2410.24221 (2024-10)
EgoMimic: Scaling Imitation Learning via Egocentric Video
register_algo_factory_func 2 other papers
1 dated earlier, 1 later
2108.03298 (2021-08)
What Matters in Learning from Offline Human Demonstrations for Robot Manipulation
2410.24221 (2024-10)
EgoMimic: Scaling Imitation Learning via Egocentric Video
config_factory 1 other paper
1 later
2410.24221 (2024-10)
EgoMimic: Scaling Imitation Learning via Egocentric Video

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

Imitation learning from human demonstrations is a promising paradigm for teaching robots manipulation skills in the real world. However, learning complex long-horizon tasks often requires an unattainable amount of demonstrations. To reduce the high data requirement, we resort to human play data - video sequences of people freely interacting with the environment using their hands. Even with different morphologies, we hypothesize that human play data contain rich and salient information about physical interactions that can readily facilitate robot policy learning. Motivated by this, we introduce a hierarchical learning framework named MimicPlay that learns latent plans from human play data to guide low-level visuomotor control trained on a small number of teleoperated demonstrations. With systematic evaluations of 14 long-horizon manipulation tasks in the real world, we show that MimicPlay outperforms state-of-the-art imitation learning methods in task success rate, generalization ability, and robustness to disturbances. Code and videos are available at https://mimic-play.github.io

For agents

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

get_harvested_code_for_paper("2302.12422")
get_code_for_paper("2302.12422")
have("2302.12422")

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

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

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

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

Connect an agent — have() is free.