Papers › Distance Weighted Supervised Learning for Offline Interaction Data

Distance Weighted Supervised Learning for Offline Interaction Data

26 Apr 2023arXiv:2304.13774archive 2025-07-28

Joey Hejna, Jensen Gao, Dorsa Sadigh

Sequential decision making algorithms often struggle to leverage different sources of unstructured offline interaction data. Imitation learning (IL) methods based on supervised learning are robust, but require optimal demonstrations, which are hard to collect. Offline goal-conditioned reinforcement learning (RL) algorithms promise to learn from sub-optimal data, but face optimization challenges especially with high-dimensional data. To bridge the gap between IL and RL, we introduce Distance Weighted Supervised Learning or DWSL, a supervised method for learning goal-conditioned policies from offline data. DWSL models the entire distribution of time-steps between states in offline data with only supervised learning, and uses this distribution to approximate shortest path distances. To extract a policy, we weight actions by their reduction in distance estimates. Theoretically, DWSL converges to an optimal policy constrained to the data distribution, an attractive property for offline learning, without any bootstrapping. Across all datasets we test, DWSL empirically maintains behavior cloning as a lower bound while still exhibiting policy improvement. In high-dimensional image domains, DWSL surpasses the performance of both prior goal-conditioned IL and RL algorithms. Visualizations and code can be found at https://sites.google.com/view/dwsl/home .

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2304.13774")

Code

Syntology Ran 13 of 27 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 7 ran · our draft was wrong; 2 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: community (archive-listed): 27 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jhejna/dwsl mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

27 samples harvested; 13 ran; 2 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
7ran · our draft was wrong
2ran · fixture could not drive it
1ran
14unverified

Licence: 0 of the 27 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jhejna/dwsl. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_get_space jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 1120c18dc5d68b27 · report
contains_tensors jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · violated contract MIT (permissive) · 637f84c3975402d4 · report
flatten_dict jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 0954fb2e0809ee19 · report
get_buffer_bytes jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 2560be95562059c8 · report
get_from_batch jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 4e1e3b9c7d834b3c · report
nest_dict jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 253bd1783fdde661 · report
np_bytes_per_instance jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · honoured contract MIT (permissive) · b24b0464408ffe6f · report
np_dataset_alloc jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 6a5e94d838f59eb4 · report
remove_stack_dim jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran MIT (permissive) · a22c277630c0ae43 · report
to_device jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 743f3e742b59e566 · report
to_np jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 42e782a8ed834a53 · report
to_tensor jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 95d8a0e297dabc98 · report
unsqueeze jhejna/dwsl/research/algs/dwsl.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · f0ae192e0609afeb · report
Algorithm jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 0bc5a55290b00b3d · report
DWSL jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 2849ec76164663e1 · report
Empty jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 61e694e983824ce6 · report
IdentityProcessor jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · b091d78e039a3988 · report
OffPolicyAlgorithm jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 44dba07f7e9beef9 · report
Processor jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · deee25387cd3a9ad · report
ReplayBuffer jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 377a3792bec4c050 · report
_flatten_dict_helper jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 1a771a68f2829a00 · report
add_dummy_transition jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 85f672bba25c666b · report
add_to_ep jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 19868d3ab5b76af1 · report
concatenate jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 28abd9986e85184e · report
load_data jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 2906ca8520e2b085 · report
save_data jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 135a3fcc0598994a · report
set_in_batch jhejna/dwsl/research/algs/dwsl.py community (archive-listed) unverified MIT (permissive) · 7830c871b6faa561 · report

Tasks

Decision MakingImitation LearningReinforcement Learning (RL)Sequential Decision Making

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections