AI Pulse by Inblix

How remembering failure made robots learn 8x faster

OpenAI Blog · Jul 20, 2026 · 3 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: How remembering failure made robots learn 8x faster

Here’s a problem anyone who’s trained a robot knows too well: most of the time, the robot fails. And in reinforcement learning, failure usually means the algorithm learns nothing. No reward signal. No gradient. Just wasted experience. That’s the sparse reward trap, and it’s why roboticists spend weeks hand-crafting dense reward functions that nudge the arm toward a goal.

A team at OpenAI has now shown that failure, when replayed with the right perspective, might be the best teacher. Their technique, Hindsight Experience Replay (HER), takes an episode where the robot missed the target and retroactively relabels it as an attempt to reach wherever the robot actually ended up. The gripper knocked a puck two inches left of the goal? HER says: “Good job — that was the goal all along.” It sounds like cheating. It’s not. By reframing every trajectory as intentional, the algorithm extracts useful signal from episodes that would otherwise be thrown away. The result is a form of implicit curriculum: the robot first learns to reach easy, accidentally-achieved states, then gradually chains those skills toward the real objective.

The paper demonstrates HER across three robotic manipulation tasks in simulation — pushing, sliding, and pick-and-place — using nothing but binary success/failure rewards. No shaping. No dense feedback. Just a single bit: did the object end up where it should? Standard off-policy algorithms like DQN and DDPG flatlined in these environments. With HER bolted on, the same algorithms solved all three tasks. Ablation studies confirmed exactly what you’d expect: strip out hindsight replay, and performance collapses. The team also transferred policies trained purely in simulation onto a physical Fetch robot, which successfully completed the pick-and-place task in the real world without any fine-tuning.

There’s an important limitation to name. HER assumes the goal can be expressed as a desired state of the environment, and it works best when goals are interchangeable — that is, when learning to reach any state helps you reach the specific one you care about. For tasks with complex, irreversible dynamics or goals that can’t be specified as a target configuration, the approach doesn’t apply cleanly. But for the vast middle ground of manipulation problems where you know what success looks like but can’t easily describe the path there, this technique removes what has long been the most tedious part of training physical systems. The code was released alongside the paper, and judging by how quickly the robotics community has adopted the idea since 2017, hindsight is proving to be more than 20/20.

💡 Key Takeaways

  1. Hindsight Experience Replay lets RL algorithms learn from failed episodes by retroactively pretending the outcome was the intended goal, turning sparse binary rewards into dense training signal without any reward engineering.
  2. Standard off-policy algorithms like DDPG failed completely on robotic pushing, sliding, and pick-and-place tasks with binary rewards, but adding HER made all three tasks solvable — and policies transferred directly from simulation to a physical robot arm.
  3. The technique only requires goals to be expressible as environment states and works best when learning to reach any state helps with the target state, making it more suited to manipulation than tasks with complex irreversible dynamics.
  4. By treating every trajectory as intentional, HER creates an automatic curriculum where the agent first masters easy-to-reach configurations before chaining those skills toward harder objectives.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

Learn more

Glossary terms

← Back to all articles