Abstract
Traditional robot Learning from Demonstration (LfD) methods often require extensive datasets to generalize across diverse environments. This paper presents a frame-weighted motion generation method designed to achieve high generalization performance from as few as two demonstrations. By optimizing relevance weights for environmental reference frames using Radial Basis Functions (RBFs) and Dynamic Time Warping (DTW), the proposed approach transforms reference trajectories to fit novel scenarios. Experimental results on bimanual robotic tasks demonstrate that this method significantly outperforms standard statistical models in low-data regimes, achieving a 70% success rate where traditional methods fail.
Introduction
In the field of robot Learning from Demonstration (LfD), the primary objective is to enable robots to acquire complex skills by observing human experts. However, a persistent bottleneck is data efficiency. Standard algorithms, such as Task-Parameterized Gaussian Mixture Models (TP-GMM), typically require a large number of demonstrations to build a reliable statistical representation of a task. For human users, providing dozens of examples is often impractical and tedious.
Furthermore, when a robot encounters a scenario that falls outside the distribution of its training data—a problem known as extrapolation—standard statistical models often produce erratic or meaningless trajectories. This paper addresses the challenge of generalization from extremely small datasets by focusing on how a robot can identify which parts of its environment are relevant at different stages of a task.
Methodology
The core of the proposed approach is the concept of Frame Relevance. Rather than treating all environmental landmarks as equally important throughout a task, the method dynamically weights the influence of different reference frames (e.g., a starting position versus a target object) based on the progress of the motion.
1. Progress Tracking and Relevance Weights
The system defines a progress scalar ($d$) based on the cumulative distance traveled along a trajectory. The importance of a specific reference frame is modeled using a weighted sum of Radial Basis Functions (RBFs). This mathematical formulation allows the "importance" of a frame to transition smoothly as the task evolves—for instance, the robot may prioritize the starting frame at the beginning of a reach and the target frame as it nears completion.
2. Optimization via Dynamic Time Warping
Instead of relying on large-scale statistical distributions, the authors formulate an optimization problem. The system identifies the RBF weights that minimize the difference between a demonstrated trajectory and a synthetically transformed one. This difference is calculated using Dynamic Time Warping (DTW), which allows for robust comparison between trajectories that may vary in speed or duration.
3. Motion Generation
Once the weights are learned, the robot can take a single "reference" demonstration and mathematically warp its translation and rotation to fit a new, unseen situation. By weighting the influence of the starting and target frames based on the current progress, the robot generates a trajectory that is geometrically consistent with the new environment.
Experimental Setup
The researchers evaluated the method using a bimanual setup featuring two Franka-Emika Panda robots. Two specific real-world tasks were tested:
- Roller-on-holder task: Picking a paper roller from a fixed holder and placing it on a holder held by the second robot.
- Flower-in-vase task: Transferring a flower between two vases in varying positions.
Training was conducted on an extremely small scale, utilizing only two expert demonstrations per task. The model was validated against four demonstrations and tested across 20 randomized scenarios to evaluate success rates in extrapolation tasks.
Key Results and Insights
Geometric Reliability
A central finding of this research is that when data is scarce, geometric relationships are more reliable than statistical distributions. By understanding the inherent attraction to a target frame as a task nears completion, the frame-weighted model generalizes far more effectively than a GMM. This "inherent relevance" is a feature of the task itself and does not change with the size of the dataset, explaining why the method remains accurate even with minimal input.
Performance Metrics
In the flower-in-vase task, the proposed method achieved a validation error that was only 11% of the error produced by the standard TP-GMM baseline. In testing across 20 novel scenarios, the proposed method maintained a 70% success rate. In contrast, the standard TP-GMM failed completely (0% success), and even an "Augmented TP-GMM"—which used the proposed method to generate synthetic training data—only reached a 35% success rate.
Data Augmentation Potential
The authors discovered that their method could serve as a powerful tool for data augmentation. By using the frame-weighted approach to generate synthetic demonstrations, they could improve the performance of traditional statistical models, suggesting a hybrid path forward for LfD research.
Conclusion and Future Work
While the frame-weighted method shows great promise for low-data generalization, some limitations remain. Currently, tasks involving more than two reference frames require manual segmentation into simpler subtasks. Future work will focus on automating this segmentation process. Additionally, while the current model handles 3D positions and basic orientation via Slerp (Spherical Linear Interpolation), the authors aim to incorporate more complex end-effector rotations into the weighting logic to improve performance in tasks involving obstacle avoidance and intricate manipulation.
Summary updated