Latent Policy Barrier (LPB) is a novel framework that significantly enhances the robustness of robot behavior cloning by decoupling task imitation from error recovery. It employs a base diffusion policy to learn expert behavior and a separate dynamics model to "steer" the robot back toward the expert distribution whenever it drifts into unfamiliar, out-of-distribution (OOD) states.
The Challenge of Covariate Shift
Behavior Cloning (BC) is a popular method for teaching robots tasks by having them mimic human experts. However, BC suffers from a notorious problem known as covariate shift: small execution errors compound over time, pushing the robot into states it never encountered during training. Once the robot is OOD, it lacks the knowledge to recover, often leading to task failure.
Standard solutions like DAgger require humans to manually provide corrective demonstrations for these failure cases. This process is labor-intensive and can introduce suboptimal data that pollutes the expert distribution. Other methods rely on heavy data augmentation, which often depends on task-specific assumptions that fail to generalize.
The Latent Policy Barrier Approach
Inspired by Control Barrier Functions (CBFs) in classical control theory, LPB introduces a two-pronged approach. Instead of forcing a single model to learn both task execution and recovery, it splits the workload:
- The Base Policy: A diffusion policy trained exclusively on high-quality expert demonstrations. This ensures the robot knows exactly how to perform the task perfectly under ideal conditions.
- The Visual Latent Dynamics Model: This model is trained on a mix of expert data and "exploratory" rollout data. Crucially, the authors obtain this rollout data for free by saving intermediate checkpoints during the base policy's training and running them in the environment. These suboptimal checkpoints naturally explore regions just outside the expert paths, providing valuable negative examples.
Inference-Time Steering: During execution, the system encodes the current observation into a latent space and calculates an OOD score ($\delta$) based on the distance to the nearest expert neighbor. If this score exceeds a safety threshold, LPB activates the dynamics model to predict future states. It then applies gradient guidance to the diffusion process, effectively nudging the robot's chosen action so that the predicted future state moves back toward the safe expert manifold.
Experimental Validation
The authors evaluated LPB across a diverse set of challenging manipulation tasks, testing its sample efficiency by using only 20% of available expert demonstrations in simulated environments:
- Simulation: Push-T, Robomimic (Square, Tool Hang, Transport), and the multi-task Libero10 suite.
- Real-World: A "Cup Arrangement" task and a high-precision "Belt Assembly" task.
Key Results: LPB consistently outperformed baselines like Filtered BC and CCIL, particularly in long-horizon, precision-sensitive tasks.
- Success Rates: In the complex "Tool Hang" task, LPB achieved a 39% success rate, compared to just 27% for a standard expert-only BC policy and 29% for Filtered BC.
- Robustness to Noise: When Gaussian noise was injected into the robot's actions, LPB maintained a significantly higher success rate than baselines, demonstrating strong self-correction capabilities.
- Real-World Recovery: In the Belt Assembly task, LPB improved the success rate from 55% to 75%. In the Cup Arrangement task, it successfully recovered from OOD initial poses where the base policy failed completely.
Key Takeaways & Future Work
- Decoupling is Key: Separating "how to do the task" from "how to recover" prevents the base policy from being degraded by noisy, suboptimal recovery data.
- Suboptimal Data as a Feature: Repurposing rollouts from half-trained checkpoints teaches the dynamics model about failure states without requiring extra human annotations.
- Latent Space as a Safety Set: The latent embeddings of a BC-trained encoder naturally form a "safe" manifold, making distance measurements a reliable signal for predicting imminent failures.
Limitations: LPB currently focuses on short-term, local corrections and may struggle with aggressive deviations requiring long-term strategic planning. Additionally, the visual dynamics model is trained per-task. Future work could explore multi-task dynamics models to capture shared physics across domains, further improving data efficiency. Finally, relying on the original expert training data at inference time to compute the OOD metric could pose memory or compute constraints for some deployed systems.
Summary updated