TL;DR
This paper introduces an iterative learning semi-parametric dynamics model for autonomous racing. By combining a known parametric model with a neural network for unknown dynamics, it achieves more accurate and generalizable predictions than purely parametric or non-parametric approaches, adapting to changing vehicle dynamics in real-time.
What Problem Does This Paper Address?
Accurate modeling of a robot's dynamics is fundamental for safe and efficient motion control, especially in applications like autonomous racing. Traditional approaches often rely on purely parametric models (based on known physics) or purely non-parametric models (like neural networks). Parametric models are efficient and explainable but may miss complex dynamics, while non-parametric models can be highly accurate but struggle with generalization and can suffer from "catastrophic forgetting" when learning new data. Furthermore, real-world robotic systems experience changing dynamics over time (e.g., due to wear and tear or varying environmental conditions), necessitating models that can adapt online. This paper tackles the challenge of creating a dynamics model that is both accurate, generalizable, and capable of adapting to these changing dynamics in real-time, specifically within the context of autonomous racing using Model Predictive Control (MPC).
Methods
The core of the paper is a novel iterative learning semi-parametric dynamics model. This model combines two components:
- Parametric Part: This component represents the known dynamics of the system, often based on established physical principles (e.g., a bicycle model for vehicle dynamics). It provides a baseline prediction.
- Non-parametric Part: This component, implemented as a neural network, learns the "residuals" or the unknown, complex dynamics that the parametric model misses.
The learning process is iterative:
- Bootstrapping: The model is initially trained on a pre-recorded dataset.
- Online Adaptation: The system then operates, and the neural network component is iteratively updated in real-time using new data. To combat catastrophic forgetting, a pseudo-rehearsal method is employed, where the neural network is trained on both new data and synthetically generated "old" data. A constrained gradient update rule ensures consistency between the updates from new and synthetic data.
The authors specifically use a bicycle model for the parametric part and a two-hidden-layer neural network for the non-parametric part, predicting velocities and yaw rate.
Datasets
The paper primarily uses simulated data for training and evaluation.
- Bootstrapping Data: Collected from manual driving in a simulator to establish an initial model.
- Validation Data: Collected from the simulator with modified vehicle dynamics (e.g., changed mass and friction coefficient) to test adaptation.
- Test Data: Further modified dynamics data to evaluate generalization.
The data is split into train, validation, and test sets based on longitudinal velocity to simulate a realistic scenario where collecting data from the entire state space is not feasible.
Key Insights and Ideas
- Semi-parametric models offer the best of both worlds: They combine the generalization and efficiency of parametric models with the accuracy of non-parametric models, making them ideal for real-world applications where full state-space data is scarce.
- Iterative learning is crucial for real-world adaptation: Robotic systems' dynamics change, and models need to adapt online. The proposed iterative approach allows for continuous improvement without requiring complete retraining.
- Pseudo-rehearsal effectively combats catastrophic forgetting: By using synthetically generated past data alongside new data, the neural network can learn new dynamics without losing previously acquired knowledge.
- Constrained gradient updates are key for stable iterative learning: Ensuring consistency between updates from new and synthetic data prevents instability during online adaptation.
- The model can adapt to significant dynamic changes: The experiments demonstrate that the model can successfully adjust to changes in vehicle mass and tire friction.
Key Results
- The semi-parametric model achieved better accuracy and generalization than purely parametric or purely non-parametric models on validation sets.
- The iterative learning system successfully adapted to modified vehicle dynamics in simulations, outperforming models trained only on initial data.
- In autonomous racing simulations, the iterative learning system achieved improved lap times and lower model MSE compared to fixed models, demonstrating its ability to harness changing dynamics effectively.
- The system showed excellent generalization capabilities to unseen state spaces and modified dynamics.
Limitations and Future Work
- Instability in iterative learning: The authors acknowledge that iterative learning can sometimes lead to increased variance in performance metrics like lap times, suggesting a potential for instability.
- Batch learning limitations: Neural networks inherently learn in batches, which can hinder the ability to learn very short-term dynamics changes.
- Parametric part not updated iteratively: The current approach only updates the non-parametric part, leaving the parametric part fixed. Updating both iteratively is desirable but difficult.
- Simulation-to-real-world transfer: While the authors believe their approach facilitates this, they were unable to perform real-world experiments due to external circumstances. Future work could focus on validating the system on a physical vehicle.
- Further exploration of regularization: While L2 regularization was found to be beneficial, further investigation into its impact and other regularization techniques could be valuable.
Summary updated