Abstract
Scaling model-based inverse reinforcement learning (IRL) to real robotic manipulation tasks with unknown dynamics remains an open problem. The key challenges lie in learning effective dynamics models and stabilizing the bi-level optimization inherent in IRL. This paper introduces a gradient-based IRL framework that allows robots to learn cost functions directly from purely visual human demonstrations. By leveraging unsupervised 2D keypoints and differentiating through a visual model predictive control (MPC) loop, the proposed method achieves stable, sample-efficient learning for real-world robotic manipulation tasks without requiring action labels or proprioceptive data from the human expert.
Introduction
Teaching robots to perform complex tasks via Inverse Reinforcement Learning (IRL)—where the robot infers an underlying reward or cost function from an expert's demonstration—is highly appealing but difficult to scale. Traditionally, IRL requires demonstrations that include both environment states and exact expert actions (e.g., joint torques), which often necessitates cumbersome kinesthetic teaching. Furthermore, model-based IRL involves two nested optimization loops: an "inner loop" to find the best policy for a given cost function, and an "outer loop" to update that cost function. Historically, these loops are disconnected, leading to training oscillations and instability.
Methodology
The authors propose a fully differentiable, vision-based IRL pipeline that treats the problem as a bi-level optimization task. The architecture consists of three core components:
- Visual Latent State & Dynamics Model: An unsupervised autoencoder extracts low-dimensional 2D keypoints from RGB images. A neural network dynamics model is then trained to predict how actions change these keypoints and the robot's joint states.
- Visual Model Predictive Control (MPC): The robot uses gradient descent to optimize an action sequence that minimizes a cost function in the predicted keypoint space.
- Gradient-Based IRL: Using the
higherlibrary, the system auto-differentiates through the inner MPC planner. This allows the outer loop to update cost function parameters by directly calculating the gradient of the IRL loss with respect to the inner loop's policy optimization steps.
Experimental Setup
The framework was validated using three distinct datasets:
- Self-Supervised Robot Data: 108 sequences of a Kuka iiwa arm moving randomly to train the keypoint detector.
- Auto-Generated Demonstrations: 15 trajectories of a reaching task to validate the core algorithm.
- Human Video Demonstrations: RGB video of a human placing a bottle on a shelf, used to test the system's ability to learn from third-party visual data without action labels.
Results and Analysis
A primary finding is that differentiating through the planner significantly improves training stability. Traditional feature-matching IRL methods (such as apprenticeship learning) often oscillate wildly. In contrast, the proposed gradient-based approach converges smoothly to effective solutions in both reaching and placing tasks.
Furthermore, the research highlights the importance of temporal information in cost functions. While a simple weighted cost struggles with multi-stage tasks, Time-Dependent Weighted Costs successfully learn to shift focus across different keypoints over the trajectory's horizon, effectively acting as a sequence of sub-goals. In hardware tests for the placing task, the learned cost generalized well to new starting positions, achieving a mean squared distance to the goal of 4.26, compared to 40.99 for a simple weighted cost.
Discussion and Future Work
While the system successfully bypasses the need for action labels, it remains dependent on the quality of the visual predictive model. Training accurate dynamics models in visual latent spaces is a persistent challenge. Additionally, the current keypoint detector assumes the demonstration is recorded from the robot's perspective. Future work will explore viewpoint-invariant descriptors and context translation to enable imitation from arbitrary third-person perspectives.
Conclusion
This work demonstrates that differentiating through a visual MPC planner provides a stable and sample-efficient pathway for model-based IRL. By learning directly from visual keypoints, robots can begin to acquire complex manipulation skills from simple human videos, moving closer to intuitive, sensor-free robot training.
Summary updated