Abstract
In Formula One, teams compete to develop their cars and achieve the highest possible finishing position in each race. During a race, however, teams are unable to alter the car, so they must improve their cars' finishing positions via race strategy, i.e. optimising their selection of which tyre compounds to put on the car and when to do so. In this work, we introduce a reinforcement learning model, RSRL (Race Strategy Reinforcement Learning), to control race strategies in simulations, offering a faster alternative to the industry standard of hard-coded and Monte Carlo-based race strategies. Controlling cars with a pace equating to an expected finishing position of P5.5, RSRL achieves an average finishing position of P5.33 on our test race, the 2023 Bahrain Grand Prix, outperforming the best baseline of P5.63. We then demonstrate, in a generalisability study, how performance for one track or multiple tracks can be prioritised via training. Further, we supplement model predictions with feature importance, decision tree-based surrogate models, and decision tree counterfactuals towards improving user trust in the model. Finally, we provide illustrations which exemplify our approach in real-world situations, drawing parallels between simulations and reality.
Introduction
In Formula One, strategy is one of the few levers teams can pull once a race begins. Deciding which tyre compound to use and exactly when to pit can mean the difference between a podium and a finish outside the points. The current industry standard involves running millions of Monte Carlo simulations to find candidate strategies. However, this approach is computationally expensive and struggles to adapt dynamically to live events like safety cars or unexpected tyre wear. This paper, a collaboration between Imperial College London and the Mercedes-AMG PETRONAS F1 Team, introduces RSRL (Race Strategy Reinforcement Learning) to move strategy from slow simulations to real-time, autonomous, and explainable AI decision-making.
Methods
The authors propose RSRL, which utilizes a Deep Recurrent Q-Network (DRQN). Unlike standard RL, which looks at a single snapshot in time, a DRQN uses a recurrent layer (LSTM) to maintain a "memory" of previous states. This is vital for F1, where understanding trends—such as whether a car is catching the opponent ahead—is more important than just knowing the current gap. The model chooses between four actions every lap: No Pit, Pit for Softs, Pit for Mediums, or Pit for Hards.
A key contribution is the "translator layer" architecture. This abstracts the RL agent from specific data sources, allowing the same model to be trained on high-fidelity team simulators, deployed on live race data, or tested on commercial games like F1 23.
To bridge the trust gap between complex "black box" models and human strategists, the system integrates Explainable AI (XAI) tools including TimeSHAP for feature importance and VIPER for extracting simplified decision-tree surrogates that mimic the complex RL policy.
Key Results
On the 2023 Bahrain GP test case, RSRL achieved an average finishing position of P5.33, outperforming Mercedes’ own State-of-the-Art (SOTA) model (P5.86) and a "Fixed Strategy" baseline (P5.63).
In generalization studies across 14 tracks, the model remained competitive on unseen tracks, beating the SOTA model by an average of 0.21 positions. Furthermore, the simplified VIPER decision trees achieved 92.6% accuracy in predicting the full RL model's actions, suggesting that the AI's logic is consistent and extractable for human verification.
Conclusion and Future Work
RSRL demonstrates that RL can outperform traditional simulation methods while providing the transparency necessary for high-stakes environments. Future work aims to explore multi-agent cooperative strategies, where two cars from the same team work together to optimize a joint result, and incorporating direct feedback from professional strategists into the RL reward function to capture expert intuition.
Summary updated