Robot Failure Data: Turning Failed Episodes into Better Policies

Every robot team has a folder of runs it would rather not show. The gripper slipped, the policy chased a reflection, the arm reached for the wrong object, or a network hiccup turned a clean trajectory into a collision. Those episodes are usually deleted before training. That instinct is understandable and expensive: robot failure data is the only signal that tells you where your system stops working.

The Hidden Cost of Clean Datasets

A collection made entirely of successful episodes teaches a policy what success looks like inside the state space it has already seen. It says nothing about the boundaries. Teams discover those boundaries during integration, where one slip becomes a lost shift or a damaged end effector. The familiar loop follows: deploy, break, gather more clean demonstrations, redeploy, break somewhere else.

Survivorship bias in demonstration sets

Teleoperators unconsciously rescue borderline runs. They slow down, reposition a part, or nudge an object just before contact. The logged action sequence looks smooth, but the conditions that demanded rescue never appear as negative examples. Keep only the rescued version and your model never learns that those conditions are hard. EmboData collection workflows retain the rescue event as a labeled branch instead of silently editing it out.

What to Capture When a Run Goes Wrong

A useful failure record contains more than a video of the crash. Capture four things at the moment of divergence:

  1. State snapshot: joint positions, velocities, force-torque readings, and camera frames from every stream the policy consumes.
  2. Divergence point: the timestep where the executed action first departed from the planned action by a meaningful margin.
  3. Intervention trace: what the human did next, including aborts, teleoperation takeovers, and resets.
  4. Outcome label: recovered, aborted, or damaged, with a short free-text cause.

The intervention trace is the most undervalued field. It is a ready-made demonstration of recovery behavior, and precisely the supervision a policy needs to learn when to stop, retry, or ask for help.

A Taxonomy Engineers Will Actually Use

Failure labels are useless if they are too vague to act on. 'Failed grasp' mixes perception, planning, and control problems into one bucket. Split failures by the subsystem that diverged first:

  • Perception: missed detection, wrong segmentation, stale depth, occlusion, lighting change.
  • Planning: wrong subgoal order, unreachable target, missing preconditions such as an open gripper.
  • Control: slip, overshoot, torque saturation, contact with an unexpected surface.
  • System: dropped frames, clock skew, latency spikes, emergency-stop events.

Keep the taxonomy shallow. Four categories with ten child codes will get used; a fifty-page ontology will not. Review the distribution monthly. If control failures dominate, more demonstrations will not help — that is a controller or sensing problem.

Sampling: Make Room for the Bad Runs

Successful and failed episodes should not carry equal weight. For most task policies, a small, deliberately curated failure set outperforms a random increase in demonstration count. Oversample rare but severe modes, keep a separate clean baseline for measuring regression, and never let failures leak into the split used to report happy-path success.

One workable recipe: hold out fifteen percent of failures by scene and object instance, use three quarters of the remainder for training with upweighted loss, and reserve the rest for a stress evaluation rerun on every checkpoint. Teams that need help operationalizing this often start with structured data collection services rather than retrofitting a pipeline later.

Turning Logs into Guardrails

Failure data pays off in three places. It builds held-out evaluation sets that predict field behavior better than clean benchmarks. It supplies preference pairs for reward models, since a successful trajectory and its failed sibling differ exactly where a reward function should learn to penalize. It also defines runtime monitors: when a live trajectory begins resembling a known failure branch, the system can slow down or hand control back to a person.

The Bottom Line

Do not delete the bad runs. Label where they diverged, why, and what happened next; keep a clean baseline; and feed the difficult cases back into evaluation and reward modeling. The most valuable bytes in a robot dataset are often the ones you were about to throw away — a principle EmboData applies to every delivery.

← Previous articleRobot Language Grounding: Building Datasets That Link Commands to Action Next article →Robot Dataset Scaling Laws: Where More Data Helps and Where It Plateaus