TL;DR
SegDiff bridges the gap between continuous action prediction and keypose-based robot manipulation by learning continuous trajectories anchored to the next keypose. Combined with a novel diffusion-inversion ensembling mechanism, it achieves both long-horizon consistency and real-time adaptability in dynamic, multi-modal environments.
What Problem Does This Paper Address?
Imitation learning (IL) allows robots to learn manipulation skills directly from expert demonstrations. Currently, two main paradigms dominate:
- Continuous Action Prediction (e.g., Diffusion Policy, ACT): These methods predict short-horizon continuous action sequences. While smooth, they suffer from compounding errors over long horizons and struggle with multi-modal action distributions (e.g., if a robot can grab a cup from the left or right, averaging these modes results in an unsafe path straight through the cup).
- Keypose-Based Prediction (e.g., PerAct): These methods predict discrete, critical waypoints (keyposes) and rely on an external path planner to fill in the blanks. This open-loop design prevents real-time adaptation if the environment changes mid-motion.
The authors introduce SegDiff to combine the best of both worlds: the closed-loop, real-time responsiveness of continuous prediction with the long-horizon stability of keypose anchoring.
Methods
SegDiff introduces two core components:
1. Segmented Trajectory Modeling (STM)
Instead of predicting a fixed-horizon sliding window, SegDiff segments expert demonstrations into sub-trajectories that terminate at the next keypose (defined by changes in gripper state or near-zero velocity). The model is trained to predict the complete continuous trajectory from the current state to this next keypose anchor. Because these segments vary in length, trajectories are interpolated to a fixed length $L$ during training using cubic splines.
2. Dynamic Temporal Ensembling (DTE)
During inference, SegDiff uses Receding Horizon Control (RHC), executing the first few actions and storing the rest in an action buffer. To ensure the buffer remains valid when the environment changes or when multi-modal actions cause mode-switching, SegDiff leverages DDIM Inversion.
At each step, it generates two candidates:
- $\tau_{rand}$: A standard prediction sampled from random Gaussian noise.
- $\tau_{prior}$: A prior-informed prediction obtained by running DDIM inversion on the existing action buffer to get a noise vector, then denoising it conditioned on the latest observation.
By comparing the root-mean-square error (RMSE) between the buffer, $\tau_{rand}$, and $\tau_{prior}$, SegDiff dynamically decides whether to blend the new prediction with the buffer (maintaining mode consistency) or discard the buffer entirely if the environment has changed significantly.
Datasets
The authors evaluated SegDiff across both simulated benchmarks and real-world tasks:
- RLBench: Evaluated on 10 representative manipulation tasks and the full RLBench-60 benchmark (scripted demonstrations, 100 training episodes per task).
- RoboMimic: Evaluated on 3 tasks (Lift, Can, Square) using the Profi-Human (PH) dataset, which consists of human teleoperated demonstrations.
- Real-World Tasks: 5 custom tasks deployed on an xArm7 manipulator: Cube (position generalization), Flip Cup (6DoF dexterity), Package (multi-modality), Banana (dynamic adaptation), and Screw Cap (precise manipulation).
Key Insights and Ideas
- Capping Compounding Errors: Mathematically, traditional sliding-window methods suffer from quadratic or exponential error growth over long horizons. By anchoring predictions to the next keypose, SegDiff caps the trajectory deviation to the local segment length, turning a long-term compounding error problem into a sequence of short-horizon bounded problems.
- Inversion as a Mode Validator: DDIM inversion acts as a clever consistency check. Denoising from the inverted noise vector under a new observation preserves the original action mode. If a large gap appears between the buffer and this new trajectory, it serves as an explicit signal that the environment has changed and the buffer must be discarded.
Key Results
- Simulation Benchmarks: On the 10 RLBench tasks, SegDiff achieved an average success rate of 86.7%, significantly outperforming Diffusion Policy (54.4%) and Chain-of-Action (75.6%). It showed massive improvements in precision-heavy tasks like Turn Tap (+42.7% over DP).
- RoboMimic Data Efficiency: SegDiff demonstrated superior performance in low-demonstration regimes (e.g., 30-50 demos), proving highly data-efficient due to its keypose anchoring.
- Real-World Robustness: In the multi-modal Package task, SegDiff achieved a 100% success rate by preventing mode-switching oscillations. In the dynamic Banana task (where the object was moved mid-execution), it achieved 90% success, rapidly discarding invalid buffers to adapt.
- Efficiency: The parallel sampling of $\tau_{rand}$ and $\tau_{prior}$ introduces negligible computational overhead, increasing total latency by only ~5.4% (33.7 ms) compared to a standard Diffusion Policy.
Limitations and Future Work
The primary limitation of SegDiff is its reliance on pre-defined, rule-based keyposes (e.g., gripper state changes or zero velocity) to segment the training data. If a dataset lacks clear velocity drops or gripper changes, segmentation becomes difficult. The authors note that integrating automated or self-supervised keypose discovery is a promising direction for future research.
Summary updated