Abstract
This paper proposes an online learning method of Gaussian process state-space model (GP-SSM). GP-SSM is a probabilistic representation learning scheme that represents unknown state transition and/or measurement models as Gaussian processes (GPs). While the majority of prior literature on learning of GP-SSM are focused on processing a given set of time series data, data may arrive and accumulate sequentially over time in most dynamical systems. Storing all such sequential data and updating the model over entire data incur large amount of computational resources in space and time. To overcome this difficulty, we propose a practical method, termed onlineGPSSM, that incorporates stochastic variational inference (VI) and online VI with novel formulation. The proposed method mitigates the computational complexity without catastrophic forgetting and also support adaptation to changes in a system and/or a real environments. Furthermore, we present application of onlineGPSSM into the reinforcement learning (RL) of partially observable dynamical systems by integrating onlineGPSSM with Bayesian filtering and trajectory optimization algorithms. Numerical examples are presented to demonstrate applicability of the provided method.
Introduction
Learning the dynamics of a system from data—often called system identification—is a fundamental challenge in robotics, especially when the system's true state cannot be directly measured and sensor readings are noisy. Gaussian Process State-Space Models (GP-SSMs) have emerged as a powerful tool for this task because they are non-parametric and naturally quantify uncertainty. However, most existing GP-SSM learning algorithms are designed for "batch" processing, assuming a fixed dataset is available upfront.
In real-world applications, data arrives sequentially. Storing all historical data to retrain a model is computationally infeasible, yet training only on the newest data leads to "catastrophic forgetting," where the model loses its knowledge of past dynamics. This paper introduces onlineGPSSM, a framework designed to learn and adapt online while maintaining a strict computational budget.
The onlineGPSSM Framework
The core contribution of this work is an extension of stochastic Variational Inference (VI) to the online setting for recurrent state-space models.
To prevent catastrophic forgetting, the method uses the previous approximate posterior distribution as the prior for the current learning step. This recursive formulation mathematically constrains the GP hyperparameters, ensuring the model absorbs new information (such as changing environmental conditions) without overwriting baseline physics learned previously. To maintain efficiency, the framework utilizes a sparse GP approximation, representing the full GP through a small, fixed set of "inducing points."
Reinforcement Learning and Planning
The learned onlineGPSSM is integrated into a Model Predictive Control (MPC) loop to create a robust reinforcement learning framework for partially observable systems. Unlike many GP-based RL methods that assume full state observability, this framework explicitly models latent states and observation noise.
The system operates in a closed loop:
- State Estimation: An Extended Kalman Filter (EKF) estimates the current latent state from noisy measurements.
- Online Learning: The
onlineGPSSMmodule updates the dynamics model based on the latest transitions. - Trajectory Optimization: A belief space iterative Linear Quadratic Gaussian (iLQG) algorithm plans control policies. Crucially, this planner is uncertainty-aware; it uses the variance predicted by the GP to penalize risky or highly uncertain trajectories, leading to safer and more robust control.
Experimental Evaluation
The paper evaluates onlineGPSSM through both synthetic benchmarks and complex simulations:
- Synthetic Linear System: In a 1D toy model,
onlineGPSSMachieved a Root Mean Square Error (RMSE) of 0.6381 using only 20 inducing points. This performance matched state-of-the-art batch methods (RMSE 0.6421) that require infinite memory, while significantly outperforming standard streaming methods (RMSE 1.0650). Furthermore, the training time foronlineGPSSMremained constant over time, whereas batch methods saw exponential increases in computation as data accumulated. - Fixed-Wing UAV Simulation: The framework was tested on a UAV loitering task involving localized, unmodeled wind disturbances and noisy GPS data. While standard controllers drifted off-target due to the wind, the
onlineGPSSMframework successfully learned the wind's effects on the fly. It corrected the UAV's trajectory and achieved accurate target tracking after only a few iterations.
Conclusion and Future Work
onlineGPSSM provides a practical path forward for deploying Gaussian Process models in real-time robotic systems. By treating past posteriors as future priors, it achieves a balance between adaptation and stability.
Future work may address the limitations of the Extended Kalman Filter by incorporating more sophisticated non-linear filters like Particle Filters or Unscented Kalman Filters (UKF). Additionally, the authors suggest that incorporating a small "mini-batch" replay buffer of past data could further stabilize learning in highly complex or rapidly changing environments.
Summary updated