Locally Weighted Regression Pseudo-Rehearsal for Online Learning of Vehicle Dynamics

Grady Williams, Brian Goldfain, James M. Rehg, Evangelos A. TheodorouarXiv 2019

Introduction

Autonomous vehicles operating in high-performance regimes, such as off-road racing or emergency maneuvers, rely heavily on Model Predictive Control (MPC). MPC requires a precise dynamics model to predict vehicle response to control inputs. However, vehicle dynamics are inherently non-stationary; factors like tire wear, surface changes (e.g., transitioning from asphalt to mud), and payload shifts can significantly degrade a static model's accuracy.

While neural networks (NNs) are powerful function approximators for complex dynamics, they suffer from "catastrophic forgetting" when updated online. Standard rehearsal techniques, which involve replaying old data to maintain performance, are often computationally or storage-prohibitive for embedded systems. This paper introduces Locally Weighted Projection Regression Pseudo-Rehearsal (LW-PR$^2$), a hybrid architecture designed to enable real-time adaptation without loss of prior knowledge.

Methodology: The LW-PR$^2$ Framework

The proposed LW-PR$^2$ system utilizes a dual-model approach to balance speed and stability. It consists of a fast Neural Network (the "Actor") and a stable Locally Weighted Projection Regression (LWPR) model (the "Teacher").

The LW-PR$^2$ system architecture.

The workflow involves three main components:

  1. Pseudo-Rehearsal: A Gaussian Mixture Model (GMM) generates synthetic "pseudo-inputs" ($X_s$) that represent the original training distribution.
  2. Target Generation: These inputs are processed by the LWPR model to produce "pseudo-outputs" ($Y_s$). Since LWPR is non-parametric and updates locally, it retains global knowledge while adapting to new data.
  3. Constrained Gradient Update: The NN is updated using a combination of real-time data ($X_d, Y_d$) and pseudo-samples ($X_s, Y_s$). A constrained optimization rule ensures that weight updates do not contradict the base knowledge captured by the system identification data.

Experimental Evaluation

The researchers tested the system using a 1/5 scale autonomous vehicle in both simulation (Gazebo) and real-world conditions. A key test involved a "muddy track" scenario where 10kg of additional weight was added to the vehicle, drastically altering its handling characteristics. The model was evaluated on its ability to adapt to these new dynamics while maintaining performance on previously learned "dry" dynamics.

Key Results

The LW-PR$^2$ method demonstrated significant improvements in both model accuracy and vehicle control performance. In the muddy track tests, the adaptive model achieved a Mean Squared Error (MSE) of 1.33, compared to 2.11 for the non-adaptive base model.

Comparison of lap times and model MSE over time.

As shown in the figures, the adaptive model (labeled LWRR in the plots) allowed the vehicle to achieve faster lap times (averaging ~32s) compared to the base model (~34.8s). Crucially, standard online adaptation using Stochastic Gradient Descent (SGD) without pseudo-rehearsal was found to be unstable, frequently leading to vehicle crashes after minimal training.

Conclusion

LW-PR$^2$ effectively bridges the gap between high-frequency control requirements and the need for stable online learning. By using LWPR as a "memory bank" to supervise a fast neural network, the system achieves robust adaptation to changing environments without catastrophic forgetting. Future work will explore dynamic input distributions for pseudo-rehearsal to further enhance the system's versatility in novel environments.

Summary updated

BibTeX
@misc{williams2019locally,
  author = {Grady Williams and Brian Goldfain and James M. Rehg and Evangelos A. Theodorou},
  title = {{Locally Weighted Regression Pseudo-Rehearsal for Online Learning of Vehicle Dynamics}},
  year = {2019},
  eprint = {1905.05162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.05162},
}
Figure