[Paper Review] Contextual Tuning of Model Predictive Control for Autonomous Racing
This paper proposes a contextual Bayesian optimization framework that leverages a learned dynamics model to encode environmental conditions as context variables, enabling faster and more efficient controller tuning for autonomous racing. By transferring knowledge across different driving conditions and cars, the method reduces lap time optimization time by accelerating convergence in new contexts, validated on 2,000+ laps with 1:28 scale RC cars.
Learning-based model predictive control has been widely applied in autonomous racing to improve the closed-loop behaviour of vehicles in a data-driven manner. When environmental conditions change, e.g., due to rain, often only the predictive model is adapted, but the controller parameters are kept constant. However, this can lead to suboptimal behaviour. In this paper, we address the problem of data-efficient controller tuning, adapting both the model and objective simultaneously. The key novelty of the proposed approach is that we leverage a learned dynamics model to encode the environmental condition as a so-called context. This insight allows us to employ contextual Bayesian optimization to efficiently transfer knowledge across different environmental conditions. Consequently, we require fewer data to find the optimal controller configuration for each context. The proposed framework is extensively evaluated with more than 3'000 laps driven on an experimental platform with 1:28 scale RC race cars. The results show that our approach successfully optimizes the lap time across different contexts requiring fewer data compared to other approaches based on standard Bayesian optimization.
Motivation & Objective
- To address the challenge of suboptimal controller performance when environmental conditions change, such as rain reducing tire traction.
- To improve sample efficiency in controller tuning by leveraging contextual information from prior experiments.
- To enable knowledge transfer across different cars and driving contexts to reduce the number of required laps for optimal tuning.
- To demonstrate the first hardware implementation of contextual Bayesian optimization in robotics, using a 1:28 scale RC racing platform.
Proposed method
- The method encodes environmental conditions as context variables using a parametric residual dynamics model trained on telemetry data from previous laps.
- A Gaussian process surrogate model is used to represent the objective function (regularized lap time) in Bayesian optimization, with context-dependent hyperparameters.
- Contextual Bayesian optimization is applied to tune MPC controller weights (Q_adv and Q_cont) by leveraging data from previous contexts to initialize the surrogate model.
- The dynamics model is re-estimated every lap using new telemetry data, allowing context variables (regression coefficients) to adapt to changing conditions.
- Knowledge transfer is achieved by pre-training the GP surrogate model on data from multiple contexts, accelerating convergence in new contexts.
- The framework is implemented in ROS and open-sourced, enabling integration into robotic control pipelines.
Experimental results
Research questions
- RQ1Can environmental conditions such as weather or track grip be effectively encoded as context variables in a dynamics model for controller tuning?
- RQ2How does contextual Bayesian optimization improve sample efficiency in MPC controller tuning compared to standard BO?
- RQ3To what extent can knowledge from prior experiments on different cars and conditions be transferred to accelerate tuning in new contexts?
- RQ4Can a low-dimensional parametric dynamics model reliably capture context changes such as reduced traction due to rain?
- RQ5What is the performance gain in terms of lap time optimization speed when using contextual tuning versus standard tuning?
Key findings
- Contextual Bayesian optimization reduced the number of required laps to find optimal controller parameters by accelerating convergence, especially in the initial phase of tuning.
- The method achieved faster optimization in new contexts by leveraging pre-trained surrogate models from prior experiments, with the first iteration already yielding good performance.
- Regression coefficients from the residual dynamics model were distinguishable across different contexts (e.g., dry vs. wet), confirming their suitability as context descriptors.
- The framework demonstrated successful hardware deployment on 1:28 scale RC race cars, with over 2,000 laps driven in total.
- The open-source ROS implementation of contextual BO enables broader adoption and integration into robotic control systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.