To Err is Robotic: Rapid Value-Based Trial-and-Error during Deployment
Maximilian Du, Alexander Khazatsky, Tobias Gerstenberg, Chelsea Finn
TL;DR
The paper tackles rapid adaptation of robot policies to novel scenarios by embedding explicit trial-and-error behavior into an expert-trained base policy. It introduces Bellman-Guided Retrials, which attach a value function learned from demonstrations to monitor progress and trigger recoveries and retrials when suboptimal progress is detected via the Bellman target $y = r + \gamma V_\phi(s_t)$. A non-parametric skewing mechanism biases future samples away from past failure states, enabling diverse strategy exploration without requiring reward signals or data collection beyond the original demonstrations. Across simulated grasping tasks and real-robot experiments, the approach yields significant performance gains (over $20\%$ in simulation and over $50\%$ real-world) and demonstrates robust assistance across short-horizon and long-horizon tasks. The framework provides a practical, data-efficient pathway to retrofit existing policies with explicit deployment-time trial-and-error capabilities, while highlighting limitations related to recovery policies and environment dynamics.
Abstract
When faced with a novel scenario, it can be hard to succeed on the first attempt. In these challenging situations, it is important to know how to retry quickly and meaningfully. Retrying behavior can emerge naturally in robots trained on diverse data, but such robot policies will typically only exhibit undirected retrying behavior and may not terminate a suboptimal approach before an unrecoverable mistake. We can improve these robot policies by instilling an explicit ability to try, evaluate, and retry a diverse range of strategies. We introduce Bellman-Guided Retrials, an algorithm that works on top of a base robot policy by monitoring the robot's progress, detecting when a change of plan is needed, and adapting the executed strategy until the robot succeeds. We start with a base policy trained on expert demonstrations of a variety of scenarios. Then, using the same expert demonstrations, we train a value function to estimate task completion. During test time, we use the value function to compare our expected rate of progress to our achieved rate of progress. If our current strategy fails to make progress at a reasonable rate, we recover the robot and sample a new strategy from the base policy while skewing it away from behaviors that have recently failed. We evaluate our method on simulated and real-world environments that contain a diverse suite of scenarios. We find that Bellman-Guided Retrials increases the average absolute success rates of base policies by more than 20% in simulation and 50% in real-world experiments, demonstrating a promising framework for instilling existing trained policies with explicit trial and error capabilities. For evaluation videos and other documentation, go to https://sites.google.com/view/to-err-robotic/home
