SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.02056 · NeurIPS · 2021

Curriculum Offline Imitating Learning

Minghuan Liu, Weinan Zhang, Tie-Yan Liu, Jian Shen, Li, Hanye Zhao, Zhengyu Yang

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 0 failures of our instrument; 2 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/2111.02056.json · badge: /api/ran/2111.02056.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
apexrl/coil canonical (classifier label)
classifier basis: classifier_2025
2 ran · 2 no recorded run
FunctionStatusWhere it lives
COIL Ran
ran on a synthesized input · constructed an object; no result was computed
apexrl/coil/rlkit/torch/coil/coil.py
code served (permissive licence) · get_code("37c462910b745910")
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 an instance of its own class, COIL: the run constructed the object and did not call it, so no result was computed. 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
import torch.optim as optim

torch.manual_seed(0)

class SimplePolicy(nn.Module):
    """Minimal policy network for COIL trainer."""
    def __init__(self, obs_dim=4, action_dim=3):
        super().__init__()
        self.fc = nn.Linear(obs_dim, action_dim * 2)  # outputs mean and log_std
        self.obs_dim = obs_dim
        self.action_dim = action_dim
    
    def forward(self, obs, return_log_prob=False):
        batch_size = obs.shape[0]
        output = self.fc(obs)
        mean = output[:, :self.action_dim]
        log_std = output[:, self.action_dim:]
        std = torch.exp(log_std)
        normal_dist = torch.distributions.Normal(mean, std)
        actions = normal_dist.rsample()
        log_pi = normal_dist.log_prob(actions).sum(dim=-1, keepdim=True)
        return actions, mean, log_std, log_pi
    
    def get_log_prob(self, obs, acts):
        output = self.fc(obs)
        mean = output[:, :self.action_dim]
        log_std = output[:, self.action_dim:]
        std = torch.exp(log_std)
        normal_dist = torch.distributions.Normal(mean, std)
        log_prob = normal_dist.log_prob(acts).sum(dim=-1)
        return log_prob

policy = SimplePolicy(obs_dim=4, action_dim=3)

ARGS = {
    'policy': policy,
    'policy_lr': 0.001,
    'policy_mean_reg_weight': 0.001,
    'policy_std_reg_weight': 0.001,
    'optimizer_class': optim.Adam,
    'beta_1': 0.9,
    'use_l2': True,
    'bc_mode': 'mle',
}
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 COIL — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a COIL 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_numpy Ran
ran, honoured the contract we drafted
apexrl/coil/rlkit/torch/coil/coil.py
code served (permissive licence) · get_code("c03dde4a55ed93b3")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function get_numpy takes a tensor and converts it to numpy
# It calls .to('cpu'), .detach(), and .numpy() on the tensor
# So we need to pass a valid torch tensor

test_tensor = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                            [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    'tensor': test_tensor
}
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 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
Trainer Not yet run
unverified (harvested, no recorded run)
apexrl/coil/rlkit/torch/coil/coil.py
code served (permissive licence) · get_code("711336253996e363")
How it ran

no invocation recorded.

tensor Not yet run
unverified (harvested, no recorded run)
apexrl/coil/rlkit/torch/coil/coil.py
code served (permissive licence) · get_code("e98f92e9afd0ddda")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 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
get_numpy
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 1 only as an assembly brick
1705.05363 (2017-05)
Curiosity-driven Exploration by Self-supervised Prediction
2608.02332 (2026-08)
Diffusion Policy with Behavioral Advantage Correction for Offline Reinforcement Learning
tensor
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1705.05363 (2017-05)
Curiosity-driven Exploration by Self-supervised Prediction

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

Offline reinforcement learning (RL) tasks require the agent to learn from a precollected dataset with no further interactions with the environment. Despite the potential to surpass the behavioral policies, RL-based methods are generally impractical due to the training instability and bootstrapping the extrapolation errors, which always require careful hyperparameter tuning via online evaluation. In contrast, offline imitation learning (IL) has no such issues since it learns the policy directly without estimating the value function by bootstrapping. However, IL is usually limited in the capability of the behavioral policy and tends to learn a mediocre behavior from the dataset collected by the mixture of policies. In this paper, we aim to take advantage of IL but mitigate such a drawback. Observing that behavior cloning is able to imitate neighboring policies with less data, we propose Curriculum Offline Imitation Learning (COIL), which utilizes an experience picking strategy for imitating from adaptive neighboring policies with a higher return, and improves the current policy along curriculum stages. On continuous control benchmarks, we compare COIL against both imitation-based and RL-based methods, showing that it not only avoids just learning a mediocre behavior on mixed datasets but is also even competitive with state-of-the-art offline RL methods.

For agents

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

get_harvested_code_for_paper("2111.02056")
get_code_for_paper("2111.02056")
have("2111.02056")

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

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

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

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

Connect an agent — have() is free.