Abstract
Learning from Demonstration (LfD) is an efficient technique for robots to acquire new skills through expert observation, significantly mitigating the need for laborious manual reward function design. This paper introduces a novel framework for model-based LfD in the context of robotic manipulation. Our proposed pipeline is underpinned by two primary components: self-supervised pose and shape estimation and contact sequence generation. The former utilizes differentiable rendering to estimate object poses and shapes from demonstration videos, while the latter iteratively optimizes contact points and forces using differentiable simulation, consequently effectuating object transformations. Empirical evidence demonstrates the efficacy of our LfD pipeline in acquiring manipulation actions from human demonstrations. Complementary to this, ablation studies focusing on object tracking and contact sequence inference underscore the robustness and efficiency of our approach in generating long-horizon manipulation actions, even amidst environmental noise. Validation of our results extends to real-world deployment of the proposed pipeline.
Introduction
Teaching robots complex, contact-rich manipulation skills directly from raw RGB videos of human demonstrations remains a significant challenge in robotics. While Learning from Demonstration (LfD) offers a path to bypass manual reward function engineering, translating 2D visual observations into 3D physical actions involves bridging two major gaps: the Perception Gap (extracting accurate 3D models and 6D poses from video) and the Physics Gap (inferring the invisible forces applied by a human and mapping them to robotic hardware).
This paper introduces Diff-LfD, a novel framework that addresses these hurdles by integrating differentiable rendering with differentiable physics simulation. By forcing a physics engine to replicate observed visual trajectories, the system can extract the underlying dynamics required for complex tasks like in-hand manipulation.
Methodology
The Diff-LfD pipeline consists of two primary stages: perception through differentiable rendering and action planning through differentiable physics.
1. Self-Supervised Perception
The perception module estimates object shape and tracks its 6D pose across video frames. It utilizes Segment Anything (SAM) for object isolation and Differentiable Signed Distance Functions (Diff-SDF) for reconstruction. To handle the limited viewpoints typical of casual video, the framework incorporates a pre-trained diffusion model (Zero-1-to-3) to hallucinate unseen sides of the object, ensuring a complete 3D mesh is available for simulation.
2. Contact-Aware Manipulation Planning
Once the object's trajectory is extracted, a hierarchical planner determines the necessary robotic actions:
- Low-level Optimization: Uses a differentiable physics simulator (Nimble Physics) to optimize contact points and wrenches (forces). To overcome the gradient discontinuities inherent in contact physics, Gaussian noise is injected to smooth the optimization landscape.
- High-level Planning: An A*-based tree search sequences these contact events over long horizons, enabling complex maneuvers such as finger-gaiting.
- Policy Distillation: For real-time execution, the planner generates training data for a neural network policy, which is then fine-tuned using reinforcement learning (REINFORCE) with domain randomization to bridge the sim-to-real gap.
Experimental Results
The framework was evaluated on both standard datasets, such as the Something-Something (sth-sth) dataset, and custom in-hand manipulation tasks involving primitive and real-world objects.
Performance Benchmarks
- Something-Something Dataset: Diff-LfD achieved a 100% success rate across basic manipulation classes (Push/Pull Left/Right), significantly outperforming baseline optimization methods.
- In-Hand Manipulation: In simulated rotation tasks, Diff-LfD achieved a final rotation error of just 2.6° for a ball, compared to 7.2° for RRT and 11.2° for iLQR.
- Real-World Validation: The distilled policy was successfully deployed on a physical Allegro Hand. It demonstrated robust generalization, achieving accurate in-hand rotations for various objects, including a lemon (6.3° error) and a ball (2.4° error).
Discussion and Future Work
A key insight of this work is that differentiable physics engines can be used to "back-calculate" forces from visual trajectories. Furthermore, the use of diffusion models to aid 3D reconstruction from limited views proves highly effective for self-supervised LfD.
However, limitations remain. The current system is restricted to rigid bodies and assumes uniform mass distribution. Future research will focus on extending the framework to articulated and deformable objects, as well as incorporating learned residual layers in the physics simulation to further improve accuracy in complex real-world environments.
Summary updated