SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.01331 · ICML · 2024

Offline Imitation from Observation via Primal Wasserstein State Occupancy Matching

Alexander Schwing, Yu-Xiong Wang, Kai Yan

arXiv · PDF · Open in the Atlas

Code that ran

12 of 14 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 no recorded run), measured 2026-11-21; 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/2311.01331.json · badge: /api/ran/2311.01331.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
KaiYan289/PW-DICE canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
kaiyan289/pw-dice canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
add_terminals Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KaiYan289/PW-DICE/PWDICE_continuous/dataset.py
pointer only (licence: NONE) · get_code("7ce1439208658937")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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.

atanh Ran
ran; our contract draft was wrong, not the code
KaiYan289/PW-DICE/PWDICE_continuous/NN.py
pointer only (licence: NONE); the stored copy get_code serves, from jasonma2016/smodice, is pointer only (licence: NONE) · get_code("cf5ce98955ab4534")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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.

choice Ran
ran, honoured the contract we drafted
KaiYan289/PW-DICE/PWDICE_continuous/advance_NN.py
pointer only (licence: NONE) · get_code("c8bdd33928f69383")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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.

choice2 Ran
ran, honoured the contract we drafted
KaiYan289/PW-DICE/PWDICE_continuous/advance_NN.py
pointer only (licence: NONE) · get_code("347766442faf6236")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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.

concatlist Ran
ran, honoured the contract we drafted
kaiyan289/pw-dice/PWDICE_tabular_wrapup/ours_newKL_solver_arbitrary.py
pointer only (licence: NONE) · get_code("3665ac63b6a49f6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiyan289/pw-dice 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.

construct_dataset Ran
ran; our contract draft was wrong, not the code
KaiYan289/PW-DICE/PWDICE_continuous/dataset.py
pointer only (licence: NONE) · get_code("0e03fe35d8e01f02")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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_data Ran
ran; our contract draft was wrong, not the code
KaiYan289/PW-DICE/PWDICE_continuous/datagen.py
pointer only (licence: NONE) · get_code("333cd5157d8a351c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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_data_pre Ran
ran; our contract draft was wrong, not the code
KaiYan289/PW-DICE/PWDICE_continuous/datagen.py
pointer only (licence: NONE) · get_code("ac35521adf325e83")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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_dataset Ran
ran; our contract draft was wrong, not the code
KaiYan289/PW-DICE/PWDICE_continuous/dataset.py
pointer only (licence: NONE) · get_code("2b68a6cee77f95fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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_dist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KaiYan289/PW-DICE/PWDICE_continuous/dist_metric.py
pointer only (licence: NONE) · get_code("ec8e6f427087880b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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.

list2gen Ran
ran; our contract draft was wrong, not the code
kaiyan289/pw-dice/PWDICE_tabular_wrapup/ours_newKL_solver_arbitrary.py
pointer only (licence: NONE) · get_code("03cb6d46061c329e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiyan289/pw-dice 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.

soft_linear_piecewise_loss Ran
ran, honoured the contract we drafted
KaiYan289/PW-DICE/PWDICE_continuous/dist_metric.py
pointer only (licence: NONE) · get_code("2331e1c5de71901c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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.

estimate_traj_val Not yet run
unverified (harvested, no recorded run)
KaiYan289/PW-DICE/PWDICE_continuous/advance_NN.py
pointer only (licence: NONE) · get_code("b1a53ce39d2e8d5c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KaiYan289/PW-DICE 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. No invocation recorded.

git_commit Not yet run
unverified (harvested, no recorded run)
kaiyan289/pw-dice/PWDICE_tabular_wrapup/ours_newKL_solver_arbitrary.py
pointer only (licence: NONE) · get_code("a5206fc3db71b6bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kaiyan289/pw-dice 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. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 13 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
atanh 4 other papers
2 dated earlier, 2 later
2202.02433 (2022-02)
Versatile Offline Imitation from Observations and Examples via Regularized State-Occupancy Matching
2206.03023 (2022-06)
Offline Goal-Conditioned Reinforcement Learning via f -Advantage Regression
2403.01734 (2024-03)
Offline Goal-Conditioned Reinforcement Learning for Safety-Critical Tasks with Recovery Policy
and 1 more not named here

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

Repositories linked to this paper

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

Abstract

In real-world scenarios, arbitrary interactions with the environment can often be costly, and actions of expert demonstrations are not always available. To reduce the need for both, offline Learning from Observations (LfO) is extensively studied: the agent learns to solve a task given only expert states and task-agnostic non-expert stateaction pairs. The state-of-the-art DIstribution Correction Estimation (DICE) methods, as exemplified by SMODICE, minimize the state occupancy divergence between the learner's and empirical expert policies. However, such methods are limited to either f -divergences (KL and χ 2 ) or Wasserstein distance with Rubinstein duality, the latter of which constrains the underlying distance metric crucial to the performance of Wasserstein-based solutions. To enable more flexible distance metrics, we propose Primal Wasserstein DICE (PW-DICE). It minimizes the primal Wasserstein distance between the learner and expert state occupancies and leverages a contrastively learned distance metric. Theoretically, our framework is a generalization of SMODICE, and is the first work that unifies f -divergence and Wasserstein minimization. Empirically, we find that PW-DICE improves upon several state-ofthe-art methods. The code is available at https: //github.com/KaiYan289/PW-DICE.

For agents

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

get_harvested_code_for_paper("2311.01331")
get_code_for_paper("2311.01331")
have("2311.01331")

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

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

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

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

Connect an agent — have() is free.