Papers › Hindsight Experience Replay

Hindsight Experience Replay

5 Jul 2017NeurIPS 2017 12arXiv:1707.01495archive 2025-07-28

Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, Wojciech Zaremba

Dealing with sparse rewards is one of the biggest challenges in Reinforcement Learning (RL). We present a novel technique called Hindsight Experience Replay which allows sample-efficient learning from rewards which are sparse and binary and therefore avoid the need for complicated reward engineering. It can be combined with an arbitrary off-policy RL algorithm and may be seen as a form of implicit curriculum. We demonstrate our approach on the task of manipulating objects with a robotic arm. In particular, we run experiments on three different tasks: pushing, sliding, and pick-and-place, in each case using only binary rewards indicating whether or not the task is completed. Our ablation studies show that Hindsight Experience Replay is a crucial ingredient which makes training possible in these challenging environments. We show that our policies trained on a physics simulation can be deployed on a physical robot and successfully complete the task.

PaperPDFConference PDFCodeCode 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="1707.01495")

Code

Syntology Ran 16 of 16 code samples harvested from 12 repositories linked to this paper; 0 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · our draft was wrong; 1 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: community (archive-listed): 15 samples from 12 repositories, 15 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

28 repositories listed; official and paper-mentioned ones first.

AdamStelmaszczyk/dqn mentioned on GitHubtf report
Baichenjia/BHER mentioned on GitHubtf report
JunkyByte/HER_DQN mentioned on GitHubpytorch report
Medabid1/RL_Project mentioned on GitHubpytorch report
Stevenhunter167/HER_Minigrid mentioned on GitHubpytorch report
TianhongDai/hindsight-experience-replay mentioned on GitHubpytorch report
YangRui2015/Modular_HER mentioned on GitHubtf report
bacdavid/HER mentioned on GitHubtf report
fapont/hackaton-hiparis-2021 mentioned on GitHub report
flowersteam/curious mentioned on GitHub report
hietalajulius/clothmanip mentioned on GitHub report
jaem-seo/AI_tokamak_control mentioned on GitHubMIT report
offworld-projects/research-halgan mentioned on GitHubtfMIT report
rk1998/robot-sac mentioned on GitHubtf report
sdicastro/simandrealbettertogether mentioned on GitHubpytorch report
sjYoondeltar/IQN_example mentioned on GitHubtf report
sjYoondeltar/myRL_example mentioned on GitHubtf report
sumitsk/HER mentioned on GitHubpytorch report
tenvinc/CS4246-Project 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

16 samples harvested; 16 ran; 1 honoured the contract we drafted; 0 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.

1ran · honoured contract
4ran · our draft was wrong
1ran · fixture could not drive it
10ran

Licence: 9 of the 16 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 12 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

HER bacdavid/HER/hindsight_experience.py community (archive-listed) ran no licence file found · pointer only · a2d77ddd5e9cb248 · report
HER JunkyByte/HER_DQN/src/her_module/her.py community (archive-listed) ran no licence file found · pointer only · 9d20e8525bae5d5c · report
HER_Sampler YangRui2015/Modular_HER/mher/samplers/her_sampler.py community (archive-listed) ran MIT (permissive) · e959db3969fc9191 · report
HER_sampler sumitsk/HER/her.py community (archive-listed) ran MIT (permissive) · f0fd2810588c0760 · report
HerRewardModel opendilab/DI-engine/ding/reward_model/her_reward_model.py community (archive-listed) ran Apache-2.0 (permissive) · 06e4f2c26ad752ba · report
HindsightExperienceReplayMemory hemilpanchiwala/Hindsight-Experience-Replay/dqn_with_her/HERMemory.py community (archive-listed) ran no licence file found · pointer only · cee4c46cd21980ff · report
RelabelSampler YangRui2015/Modular_HER/mher/samplers/her_sampler.py community (archive-listed) ran MIT (permissive) · 5b95feb61a547c1b · report
Sampler YangRui2015/Modular_HER/mher/samplers/her_sampler.py community (archive-listed) ran MIT (permissive) · 8c4664b53d0576fa · report
concat bacdavid/HER/hindsight_experience.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · f616d3cbede3329d · report
get_replay_buffer_kwargs hietalajulius/dynamic-cloth-folding/utils/general_utils.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 40295510a8fb1d25 · report
her_sample tenvinc/CS4246-Project/agent/core.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 18eb3a56918d44a6 · report
her_sampler sdicastro/simandrealbettertogether/her_modules/her.py community (archive-listed) ran no licence file found · pointer only · 6001bd605e7c8a38 · report
her_sampler Medabid1/RL_Project/utils/her.py community (archive-listed) ran no licence file found · pointer only · 732ee2071c58239b · report
make_sample_her_transitions Baichenjia/BHER/BHER/bher/her.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 14bbcdb9ee8b58d7 · report
make_sample_her_transitions flowersteam/curious/baselines/her/her.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · dc602be819c160dc · report
make_sample_her_transitions identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · e0785843af667cdd · report

Tasks

Reinforcement LearningReinforcement Learning (RL)

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Experience Replay

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