Abstract
Gaussian Processes (GPs) are highly valued in robotics for their sample efficiency, yet their cubic computational complexity often makes them impractical for real-time policy optimization. This paper introduces BAGEL (Batch Automatic differentiation of Gaussian process Evaluations), a GPU-accelerated framework that leverages fast predictive sampling and batch automatic differentiation. BAGEL achieves a 5x speedup over traditional CPU-based methods, enabling the training of a heavy-duty hydraulic boom controller in under 30 seconds—a task that previously required hours using exact GP methods.
1. Introduction
In robotics, "sample efficiency" is critical for minimizing mechanical wear and ensuring safety during training. Gaussian Processes (GPs) are ideal for this because they can build accurate surrogate models of machine dynamics from minimal data. However, standard GP inference scales cubically ($O(n^3)$) with data points, creating a computational bottleneck for policy optimization. BAGEL addresses this by providing a scalable, GPU-native implementation that makes GP-based reinforcement learning practical for real-world hardware.
2. Methodology
BAGEL unifies several recent breakthroughs into a "full-stack" GPU implementation:
- Fast GP Inference: By utilizing KISS-GP and LOVE (Lanczos Variance Estimates) via the GPyTorch library, BAGEL achieves constant-time predictive means and linear-scaling sampling.
- Vectorized Monte Carlo: The algorithm processes entire batches of trajectories simultaneously on the GPU, providing stable gradient estimates for policy updates.
- Automatic Differentiation (Autodiff): Moving away from complex analytical gradients like those in PILCO, BAGEL uses PyTorch’s autodiff to propagate gradients through Monte Carlo evaluations, offering greater flexibility for goal-conditioned policies.
- Memory Management: Integration with the KeOps library allows for symbolic kernel operations, enabling the system to scale to 10,000 trajectories per batch without memory overflow.
3. Experimental Setup
The researchers evaluated BAGEL on a real-world heavy-duty hydraulic boom. The training dataset consisted of 2,200 transitions collected from just 110 seconds of manual operation. The system was benchmarked on reference-tracking tasks, comparing its performance against baselines like PILCO and standard exact GP autodiff.
4. Key Results
BAGEL demonstrated significant improvements in both training efficiency and control precision. As shown in the performance benchmarks, the GPU-accelerated batch approach converges to high-return policies in under 30 seconds, vastly outperforming exact GP methods.
Beyond speed, the framework proved highly effective on physical hardware. The trained policy successfully managed the machine's intrinsic deadbands and complex dynamics, tracking reference commands with high accuracy.
5. Discussion and Insights
- The Batch Advantage: Processing 100+ trajectories in a single GPU batch provides the gradient quality needed for stable convergence, preventing the policy from falling into local optima.
- Sublinear Scaling: Due to modern GPU kernel efficiency, increasing policy network size or trajectory count results in a sublinear drop in speed, allowing for more powerful models at a low computational cost.
6. Limitations and Future Work
While BAGEL solves speed and memory issues, it still faces the "curse of dimensionality" inherent to GPs; accuracy can degrade as input features grow. Future work will explore integrating fast GP methods with deep kernels or hybrid models to tackle even more sophisticated robotic tasks.
Summary updated