Abstract
Heteroscedastic Gaussian processes (HGPs) are kernel-based, non-parametric models that can be used to infer nonlinear functions with time-varying noise. In robotics, they can be employed for learning from demonstration as motion primitives, i.e. as a model of the trajectories to be executed by the robot. HGPs provide variance estimates around the reference signal modeling the trajectory, capturing both the predictive uncertainty and the motion variability. However, similarly to standard Gaussian processes they suffer from a cubic complexity in the number of training points, due to the inversion of the kernel matrix. The uncertainty can be leveraged for more complex learning tasks, such as inferring the variable impedance profile required from a robotic manipulator. However, suitable approximations are needed to make HGPs scalable, at the price of potentially worsening the posterior mean and variance profiles. Motivated by these observations, we study the combination of HGPs and random features, which are a popular, data-independent approximation strategy of kernel functions. In a theoretical analysis, we provide novel guarantees on the approximation error of the HGP posterior due to random features. Moreover, we validate this scalable motion primitive on real robot data, related to the problem of variable impedance learning. In this way, we show that random features offer a viable and theoretically sound alternative for speeding up the trajectory processing, without sacrificing accuracy.
Introduction
In Learning from Demonstration (LfD), robots acquire skills by observing human movements. Gaussian Processes (GPs) are widely used for this purpose as they provide both a reference trajectory (mean) and a measure of uncertainty (variance). In robotics, this variance is crucial for determining variable impedance: the robot should be stiff when precision is required and compliant when demonstrations are inconsistent.
However, standard GPs assume homoscedastic (constant) noise, which fails to capture the time-varying variability inherent in human demonstrations. Heteroscedastic GPs (HGPs) address this by allowing noise to vary over time, but they suffer from $O(n^3)$ computational complexity, making them impractical for long trajectories or large datasets.
Scalable HGPs with Random Features
This work introduces a scalable framework for HGPs using Random Features (RFs). RFs approximate complex kernel functions by mapping inputs into a lower-dimensional, randomized feature space.
The RF-HGP Framework
By applying the Woodbury matrix identity, the computational cost of matrix inversion is reduced from $O(n^3)$ to $O(m^3)$, where $m$ is the number of random features. Unlike data-dependent approximations like Nyström or Sparse Variational GPs, RFs are sampled independently of the data, facilitating efficient incremental learning as new demonstrations are provided.
Theoretical Guarantees
A key contribution of this research is the derivation of novel upper bounds on the approximation error for both the posterior mean and variance. The authors prove that the error scales at a rate of $O(m^{-1/2})$, providing a mathematical safety net for safety-critical robotic applications.
Experimental Evaluation
The approach was validated using real-world data from a 7-DOF Barrett WAM robotic arm across three tasks requiring variable impedance control: Free Motion, an Assembly Task, and Bed-making.
Results and Discussion
The RF-HGP framework demonstrates significant computational advantages. As shown in the performance analysis, prediction time remains low and scales linearly with the number of features, whereas exact HGPs become prohibitively slow as the dataset grows.
Beyond speed, the approximation maintains high accuracy. The approximation error between the exact HGP and RF-HGP decreases as the number of features increases, aligning with the theoretical $1/\sqrt{m}$ convergence rate. Furthermore, the RF-HGP proved more robust than Nyström approximations in scenarios with missing data chunks, thanks to its data-independent feature sampling.
Conclusion
The combination of HGPs and Random Features provides a theoretically sound and practically efficient method for learning robot motion primitives. By treating variance as a source of information rather than noise, the framework enables robots to learn complex, variable-impedance tasks from human demonstrations while maintaining real-time performance. Future work will focus on adaptive feature sampling to better capture sharp changes in task variability.
Summary updated