Abstract:To address the problem that pure reinforcement learning-based vehicle trajectory tracking control mainly relies on reward functions to indirectly constrain control behavior, while random exploration in the early training stage may generate excessive or rapidly varying front-wheel steering angles and make it difficult to ensure that control inputs and vehicle states continuously satisfy predefined constraint boundaries, a Safe-SAC vehicle trajectory tracking control method based on a model predictive safety filtering layer is proposed. The Soft Actor-Critic (SAC) algorithm is employed as the main controller to generate candidate front-wheel steering angles according to vehicle tracking errors and lateral dynamic states. A model predictive safety filtering layer is introduced between the SAC controller and the vehicle actuator to perform short-horizon constraint verification of the candidate actions using a vehicle prediction model. When the SAC output satisfies the constraints on front-wheel steering angle magnitude, steering rate, and vehicle states, the safety filtering layer remains non-interventional and directly outputs the original control action. When the candidate action may lead to constraint violations, the safety filtering layer performs a minimum necessary correction through online optimization, so that the final executed front-wheel steering angle satisfies the prescribed safety constraints while preserving the original control intention of SAC as much as possible. The safety action correction process is formulated as a constrained quadratic programming problem, and the mechanism of the safety filtering layer is analyzed in terms of action correction optimality, constraint satisfaction, and non-intervention. Simulations under a double-lane-change scenario are conducted on the MATLAB/Simulink platform, and comparisons are made with an MPC controller and a pure SAC controller. The results show that the lateral-error root mean square and heading-error root mean square of Safe-SAC are 0.0023 m and 0.00651 rad, respectively. While satisfying the front-wheel steering and vehicle-state constraints, Safe-SAC can reduce trajectory tracking errors and suppress local abrupt steering variations. Further analysis of the training process shows that the safety filtering layer can correct high-risk actions during the early training stage, and its intervention gradually decreases as the SAC policy converges, demonstrating favorable constraint assurance and non-intervention characteristics.