SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.15810 · ICLR · 2023

Offline RL with No OOD Actions: In-Sample Learning via Implicit Value Regularization

Zhuoran Yang, Zhaoran Wang, Xianyuan Zhan, Haoran Xu, Li Jiang, Jianxiong Li, Victor Wai, Kin Chan

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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; 0 no recorded run), measured 2026-11-22; 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/2303.15810.json · badge: /api/ran/2303.15810.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
ryanxhr/IVR canonical (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
default_init Ran
ran; our contract draft was wrong, not the code
ryanxhr/IVR/common.py
code served (permissive licence) · get_code("718462716d78ea99")
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
import flax.linen as nn

ARGS = {
    "scale": jnp.sqrt(2)
}
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 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
merge_trajectories Ran
ran on a synthesized input
ryanxhr/IVR/dataset_utils.py
code served (permissive licence) · get_code("0c3b9f06d1f100cd")
How it ran

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

import numpy as np

# The function expects trajs: a list of trajectories
# Each trajectory is iterable and yields tuples of:
# (obs, act, rew, mask, done, next_obs)
# All of these should be stackable with np.stack

# Create sample trajectory data
# Each step in a trajectory is (obs, act, rew, mask, done, next_obs)

# Trajectory 1: 3 steps
traj1 = [
    (np.array([1.0, 2.0, 3.0, 4.0]), np.array([0.5, 0.6]), np.array(1.0), np.array(1.0), np.array(0.0), np.array([1.1, 2.1, 3.1, 4.1])),
    (np.array([1.5, 2.5, 3.5, 4.5]), np.array([0.7, 0.8]), np.array(2.0), np.array(1.0), np.array(0.0), np.array([1.6, 2.6, 3.6, 4.6])),
    (np.array([2.0, 3.0, 4.0, 5.0]), np.array([0.9, 1.0]), np.array(3.0), np.array(0.0), np.array(1.0), np.array([2.1, 3.1, 4.1, 5.1])),
]

# Trajectory 2: 2 steps
traj2 = [
    (np.array([5.0, 6.0, 7.0, 8.0]), np.array([1.1, 1.2]), np.array(4.0), np.array(1.0), np.array(0.0), np.array([5.1, 6.1, 7.1, 8.1])),
    (np.array([6.0, 7.0, 8.0, 9.0]), np.array([1.3, 1.4]), np.array(5.0), np.array(1.0), np.array(1.0), np.array([6.1, 7.1, 8.1, 9.1])),
]

trajs = [traj1, traj2]

ARGS = {
    "trajs": trajs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_into_trajectories Ran
ran on a synthesized input
ryanxhr/IVR/dataset_utils.py
code served (permissive licence) · get_code("b5cd4f789150335c")
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. 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)

# Create small tensors for observations, actions, rewards, masks, dones_float, next_observations
batch_size = 2
obs_dim = 4
action_dim = 3

observations = torch.randn(batch_size, obs_dim)
actions = torch.randn(batch_size, action_dim)
rewards = torch.randn(batch_size, 1)
masks = torch.ones(batch_size, 1)
dones_float = torch.tensor([[0.0], [1.0]])
next_observations = torch.randn(batch_size, obs_dim)

ARGS = {
    "observations": observations,
    "actions": actions,
    "rewards": rewards,
    "masks": masks,
    "dones_float": dones_float,
    "next_observations": next_observations,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 2 the same month, 1 later) and 0 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
default_init 8 other papers
4 dated earlier, 1 the same month, 3 later
1812.05905 (2018-12)
Soft Actor-Critic Algorithms and Applications
2106.03273 (2021-06)
Control-Oriented Model-Based Reinforcement Learning with Implicit Differentiation
2206.01079 (2022-06)
When does return-conditioned supervised learning work for offline reinforcement learning?
and 5 more not named here
merge_trajectories 1 other paper
1 the same month
2303.00957 (2023-03)
Preference Transformer: Modeling Human Preferences using Transformers for RL
split_into_trajectories 1 other paper
1 dated earlier
2210.07484 (2022-10)
Mutual Information Regularized Offline Reinforcement Learning

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Most offline reinforcement learning (RL) methods suffer from the trade-off between improving the policy to surpass the behavior policy and constraining the policy to limit the deviation from the behavior policy as computing Q-values using outof-distribution (OOD) actions will suffer from errors due to distributional shift. The recent proposed In-sample Learning paradigm (i.e., IQL), which improves the policy by quantile regression using only data samples, shows great promise because it learns an optimal policy without querying the value function of any unseen actions. However, it remains unclear how this type of method handles the distributional shift in learning the value function. In this work, we make a key finding that the in-sample learning paradigm arises under the Implicit Value Regularization (IVR) framework. This gives a deeper understanding of why the in-sample learning paradigm works, i.e., it applies implicit value regularization to the policy. Based on the IVR framework, we further propose two practical algorithms, Sparse Q-learning (SQL) and Exponential Q-learning (EQL), which adopt the same value regularization used in existing works, but in a complete insample manner. Compared with IQL, we find that our algorithms introduce sparsity in learning the value function, making them more robust in noisy data regimes. We also verify the effectiveness of SQL and EQL on D4RL benchmark datasets and show the benefits of in-sample learning by comparing them with CQL in small data regimes. Code is available at https://github.com/ryanxhr/IVR.

For agents

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

get_harvested_code_for_paper("2303.15810")
get_code_for_paper("2303.15810")
have("2303.15810")

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

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

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

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

Connect an agent — have() is free.