Learning from Robot Failures: Data That Turns Errors into Signal
Most robot datasets are museums of success. Operators trim the clips where a grasp slipped, a door stuck, or a policy wandered off course, and what remains is a clean corpus that trains a policy with no idea of what failure looks like. In deployment, the first unexpected state is therefore the first time the system encounters one. Failure data closes that gap. It is not a footnote to a collection campaign; it is the material that teaches a robot to recognize when a plan is unraveling and what to do next.
Why Success-Only Corpora Mislead
A policy trained only on clean trajectories learns a very narrow lesson: that the world reliably cooperates. It never sees the boundary between a stable grasp and a slipping one, so it cannot learn the sensory signatures that precede a fault. Confidence estimates become poorly calibrated, because every training example carried an implicit success label.
What a failed episode reveals
- Boundary conditions. The object weights, surface angles, or grip forces at which a strategy stops working.
- Recovery affordances. Which actions remain available once the original plan has failed — a second grasp, a reset, a request for help.
- Sensor signatures. The force spike, slip event, or visual occlusion that reliably precedes a fault.
- Human behavior. The corrections an operator makes when things go wrong, which are often the most informative demonstrations in the whole session.
None of this appears in a curated success set. Removing failures does not remove their causes from the deployment environment; it only removes the evidence from the training data.
A Taxonomy Worth Labeling
Collecting failures without labels produces a folder of interesting anecdotes. To make the data usable, assign each episode a cause as well as an outcome. Four categories cover most cases: perception failures, where the target or state was misread; planning failures, where the action sequence was wrong for the situation; physical failures, where execution slipped, jammed, or collided; and system failures, where timing, connectivity, or calibration broke down.
A minimum label set
- The task phase at the moment of failure: approach, contact, manipulation, or release.
- The observed symptom, stated in terms a sensor can verify.
- The likely cause, with an uncertainty flag when the operator cannot tell.
- Whether the episode was recovered, aborted, or required human intervention.
- The corrective action taken, timestamped like any other action in the log.
That last field is easy to omit and expensive to recover later. At EmboData we treat the correction as a first-class demonstration, because it directly teaches the behavior the team wants the policy to adopt next time.
Collecting Failures Deliberately
Random collection yields mostly ordinary episodes, even when failures are common. Deliberate collection uses short challenge campaigns: vary one factor at a time until the current policy breaks, then record the transition and the operator's response. Useful factors include object mass, surface friction, lighting, clutter density, and small changes in instruction phrasing.
Keep the near misses. An episode where the robot reached the target but stopped one centimeter short is more informative than a spectacular collision, because it sits close to the decision boundary and can be corrected with a small action change. Aim for a modest negative share — roughly ten to twenty percent in a first pass — rather than flooding the set with catastrophic states the system will rarely face.
Safety still governs everything. Induce failures inside a defined envelope, with speed and force limits, an emergency stop, and a clear rule for when an operator takes over. A dangerous episode is not a valuable dataset entry.
Turning Errors into Training Signal
Failure data earns its keep in three ways. First, it trains a detector that recognizes out-of-distribution states and hands control back to a human. Second, it supplies corrective demonstrations: after a slip, the logged recovery sequence shows exactly how to re-grasp or retry. Third, it creates contrastive pairs, where a successful and a failed version of the same task differ in one decisive step, making the consequence of that step explicit to the model.
Avoid simply inverting success labels. A failed episode is not automatically a negative example of every action in it; the first eight steps may have been correct. Weight the segment near the failure, annotate the rest normally, and let the policy learn where the decision actually went wrong.
What to Measure Next
Track failure-detection latency, recovery rate, and false-alarm rate separately. A detector that flags every unusual lighting change is not useful, and a recovery policy that works only for previously seen faults is not generalization. For context on the wider data lifecycle, see our research archive and the collection and review workflows described under our services.