Manuscript Offprint
arXiv:2610.33476A Differentiable Chassis Safety Layer for Intelligent Vehicle Motion Control
ABSTRACT
Learning-based vehicle motion control requires coordination between diverse task objectives and state-dependent chassis safety constraints. Conventional cascaded architectures may compromise task performance when safety filters modify nominal commands independently of policy learning. This article proposes a differentiable chassis safety layer that modularly integrates task-oriented control with explicit physical constraints. Actuator limits, individual-tire force constraints, and vehicle handling envelopes are incorporated into sequential quadratic programs. Each projected command propagates the predicted vehicle dynamics and updates subsequent constraints, enabling temporal gradient coupling through implicit differentiation. A two-stage learning strategy combines expert imitation with risk-guided supervision and conditional intervention guidance to coordinate nominal control decisions with chassis safety constraints. Closed-loop evaluations under unseen scenarios, emergency maneuvers, and ablation studies demonstrate that the proposed method improves safety–performance coordination and exploits vehicle dynamic potential while maintaining handling stability.
Keywords Vehicle Handling and Stability Control, Differentiable Quadratic Programming, Control Barrier Function, Differentiable Safety Projection, Joint Policy–Safety Optimization
1 Introduction
Intelligent vehicle motion control involves multiple objectives, including trajectory tracking, energy efficiency, ride comfort, and actuator performance [1–3]. Achieving these objectives requires coordination with physical constraints imposed by vehicle dynamics, tire–road interaction, and actuator capabilities. In multi-actuator chassis systems, these constraints are coupled through vehicle motion and vary with operating conditions [4, 5]. Therefore, integrating task optimization with chassis physical constraints remains a fundamental challenge.
Model predictive control (MPC) explicitly incorporates physical constraints into task optimization, while learning-based extensions improve adaptation through data-driven models and parameters [6, 7]. Nevertheless, their effectiveness depends on prediction accuracy, particularly under nonlinear tire behavior, uncertain adhesion, and model mismatch [8, 9]. Alternatively, control barrier functions (CBFs) enforce state-dependent constraints through constrained optimization [10]. High-order and predictive formulations extend this approach to more complex system dynamics [11–13]. However, independently applied constraint projections may modify task-oriented commands without considering the resulting performance degradation [14].
Learning-based controllers provide flexibility in optimizing complex motion tasks [15, 16]. Recent applications include autonomous navigation, networked suspension control, and risk-aware decision-making [17–19]. To incorporate explicit

Figure 1: Motivation for policy–safety coordination. (a) Handling demand versus physical limits. (b) Nominal-to-executed steering mismatch after safety projection. (c) Coordination of steering policy learning and state-dependent safety correction. The admissible sets are schematic.
constraints into neural learning, OptNet introduced differentiable optimization layers [20, 21]. Adaptive CBF methods further enabled parameterized safety conditions [22, 23], while BarrierNet integrated differentiable CBF-constrained QPs into neural controllers [24]. However, optimization-layer gradients may become uninformative under certain active-constraint configurations [25].
For chassis motion control, the central difficulty lies in the dynamic coupling of heterogeneous physical constraints. Unlike geometric motion constraints, tire-force capacity depends on longitudinal and lateral force demands, vertical loads, and road adhesion, while handling limits depend on the evolving sideslip and yaw states. These state-control dependencies are particularly important during high-dynamic maneuvers. Moreover, each constrained control command changes subsequent vehicle states and constraint conditions. Consequently, independent single-step projections cannot explicitly represent the temporal interaction between successive chassis constraints within the learning process. This motivates a dynamics-coupled differentiable optimization architecture tailored to chassis motion control.
To address this challenge, this article proposes ChassisOptNet, a differentiable chassis optimization network for joint task–constraint learning. The network integrates actuator limits, tire-force constraints, and vehicle handling envelopes into state-dependent quadratic programming (QP) layers. Successive QPs are coupled through predictive vehicle dynamics, enabling constraint corrections and their temporal sensitivities to influence task-oriented learning. A two-stage training strategy combines expert imitation with risk-guided supervision and conditional intervention guidance. The framework is demonstrated on four-wheel-steering (4WS) vehicle motion control, using trajectory tracking as a representative task.
The main contributions are summarized as follows:
• Chassis-specific differentiable safety layer: A modular safety layer integrates actuator limits, individual-tire friction constraints, and CBF-based handling envelopes into a unified control-space QP formulation, accounting for their coupling with vehicle dynamics.
• Dynamics-unrolled safety projection: Sequential differentiable QPs are coupled through predictive vehicle dynamics, allowing each projected control action to update subsequent states and safety constraints. Implicit differentiation provides temporal projection sensitivities for upstream learning.
• Safety-guarded task learning: A two-stage learning strategy combines expert imitation with expert-relative risk supervision and conditional safety-intervention guidance, coordinating task-oriented control with chassis safety projection. Closed-loop simulations validate the framework under unseen and near-limit operating conditions.
The remainder of this article is organized as follows. Section 2 develops the 4WS vehicle dynamics, handling-stability constraints, and dynamics-unrolled differentiable safety projection. Section 3 introduces the joint policy-learning framework and two-stage training procedure. Section 4 reports the closed-loop simulation results and ablation studies. Section 5 discusses the findings and limitations. Section 6 concludes this article.
2.1 Vehicle Dynamics for Safety Projection
A two-degree-of-freedom bicycle model with linear tire cornering stiffness is employed to predict lateral and yaw motion. Longitudinal speed is regulated by a separate speed-tracking controller and is treated as an available parameter in the lateral controller. The state and control vectors are defined as and , where is lateral velocity, is yaw rate, and and are the front- and rear-wheel steering angles. The control-affine model is given by
Here, m and denote vehicle mass and yaw moment of inertia, respectively. The distances from the center of mass to the front and rear axles are and . The quantities and denote the cornering stiffness of an individual front and rear tire, respectively, and is the longitudinal velocity. The factors of two in (1) account for the two tires on each axle. The model is used within the operating region , with a positive numerical lower bound applied to longitudinal speed during implementation. Its linear tire representation provides a computationally tractable prediction model, while nonlinear tire saturation is addressed through additional friction constraints.
2.2 Multi-Level Chassis Constraints
Vehicle handling-stability constraints are classified into three categories according to their state–control dependence: control-space, state–control coupled, and state-space constraints. Actuator limits are directly imposed on steering commands, while tire-friction constraints are mapped into state-dependent steering limits through the tire model. Handling-envelope constraints are converted into control-dependent inequalities using control barrier functions (CBFs). These constraints form a unified control-space representation for the subsequent differentiable safety projection.
2.2.1 Constraints in Control Space
Steering-angle and steering-rate limitations act directly on the control vector . Their admissible region is defined by
Here, and are the lower and upper steering-angle limits for axle . The symbol denotes componentwise inequalities. The steering-rate limits are imposed between successive projected commands as
Here, is the prediction sampling interval, is the prediction-step index, and is the current sampling instant. At , denotes the previously applied steering command. At subsequent steps, denotes the preceding projected command. The actuator bounds used in the experiments are symmetric around zero.
2.2.2 Constraints in State-Control Coupled Space
Tire–road friction limitations couple vehicle states and steering inputs through the lateral tire forces. Define as the wheel set and as the axle of wheel . The kinematic slip terms are
The linear per-wheel lateral tire force is approximated by
where is the cornering stiffness per tire and is the corresponding axle steering angle. The normalized friction constraint is
(6)
where and are the longitudinal and normal wheel forces, is the tire–road friction coefficient, and is the friction reserve. Estimated quantities are indicated by a hat. For the current state and wheel-force estimates, the remaining lateral-force bound is evaluated as
where is the numerical lower bound used by the QP implementation. Normal loads and longitudinal speeds are also subject to positive numerical lower bounds. If the unmodified radicand is negative, the assumed longitudinal-force demand has already exceeded the reserved friction capacity. The numerical lower bound does not restore physical tire feasibility.
Each wheel contributes two control-affine inequalities:
(8)
Here, and are nonnegative relaxation variables. Stacking the inequalities for the four wheels gives
where , , and . The row coefficients follow (8). This eight-inequality formulation retains the individual wheel-force limits and their associated slack penalties. The use of per-wheel constraints is consistent with the eight tire slack variables in the differentiable QP.
2.2.3 Constraints in State Space
The handling envelope constrains the lateral–yaw state and is mapped into steering-input inequalities through the vehicle dynamics. For , a diamond-shaped envelope provides four planar state inequalities:
(10)
where and denote the prescribed sideslip and yaw-rate boundaries, respectively. The longitudinal speed is frozen during each local QP evaluation, and denotes the four-dimensional vector of ones. The matrix defines the handling boundary through the approximation . The four handling-envelope inequalities are converted into control-dependent conditions using relative-degree-one CBFs. Forward invariance can be established for the nominal continuous-time model when the CBF inequalities are feasible and enforced without relaxation. Since the relative degree of the handling envelope is one, the matrix form of the control barrier function based on the handling envelope is represented as:
Each determines the permitted decrease rate of the corresponding barrier function. Its value influences the state-dependent admissible control region. A larger gain permits a faster decrease of a positive barrier function and therefore does not necessarily impose a more conservative safety condition. can be computed by substituting the vehicle dynamics model (1) into the constraint. Rewrite this constraint into the unified control-affine form:
Here, denotes the handling-envelope slack vector. The matrix contains positive CBF gains. The nominal handling set is . The formulation evaluates the handling envelope using the operating parameters available at each QP step. These parameters are held fixed during the local CBF calculation. If the envelope matrix varies continuously with time, its derivative must also be considered. The corresponding constraint contains the additional term on the right-hand side.
The slack variables relax the nominal CBF inequalities when required by the QP. Consequently, the resulting soft-constrained filter does not establish strict forward invariance of the original handling envelope.
2.3 Chassis-Constrained QP Formulation
The preceding constraints provide a unified control-space representation of steering- actuator, tire-force, and handling-stability limitations. To account for their evolution along a predicted vehicle trajectory, a sequence of state-dependent safety-projection problems is constructed over a horizon of N steps. The local prediction horizon N equals the steering-policy output horizon in the reported model.
At sampling instant t, the nominal policy provides the steering sequence
The initial predicted state is . At each prediction step , the nominal steering command is corrected using a minimum-intervention quadratic program.
The optimization variables are
where and represent the relaxation variables of the handling-envelope and tire-friction constraints.
The local safety-projection problem is formulated as
(15)
s.t.
The positive-definite matrix determines the relative penalty assigned to front- and rear-wheel steering corrections. The positive-definite slack-weight matrices and penalize violations of the corresponding nominal constraints. In the implementation, their diagonal penalty coefficients are both . The vector and scalar specify the handling-CBF gains and tire-friction reserve at prediction step . The QP decision vector has dimension 14, comprising two steering angles, four handling slacks, and eight tire slacks.
After solving the local QP, the optimized steering command is extracted as
The predicted lateral–yaw state is subsequently updated using
The updated state determines the tire-force and handling-envelope constraints used at the next prediction step. This procedure is repeated for .
The resulting projected steering sequence is
The formulation consists of sequential QP solutions linked by vehicle-dynamics propagation. Each QP minimizes the local steering correction under the predicted state and the corresponding constraints. The projected commands also influence later optimization problems through their effects on the predicted states.
During receding-horizon execution, the first projected command is applied when safety-filtered control is selected. The remaining projected commands and predicted states provide temporal information for offline policy training.
2.4 Dynamics-Unrolled Differentiable Projection
Conventional safety filters with fixed model parameters and prescribed safety margins may introduce inaccurate or overly conservative control constraints under vehicle-model uncertainty and state-estimation errors. To address this limitation, the preceding physical constraints are embedded into a differentiable quadratic programming (QP) layer. The projection weights, CBF gains, and tire-friction reserve are parameterized to support data-driven adaptation of the admissible control region under varying operating conditions.
Combining the sequential QPs with vehicle-state propagation yields
where denotes the differentiable safety-projection operator, and are the nominal and projected steering sequences, contains the projection weights and safety-related parameters, is the estimated vehicle state, and is the previously applied steering command. Under appropriate regularity conditions, QP solution sensitivities can be obtained by differentiating the Karush–Kuhn–Tucker (KKT) conditions [20, 26]. This enables learning-based adjustment of the safety-projection parameters and provides the basis for the policy–safety coordination framework developed in the following section.

Figure 2: Architecture of the proposed safety-guarded task learning framework.
3 Safety-Guarded Task Learning
This section presents the proposed learning framework, including its network architecture, differentiable policy–safety coupling, and two-stage training strategy. The framework integrates nominal steering prediction, safety-parameter generation, and differentiable handling-stability projection to coordinate trajectory-tracking performance with physical constraints.
3.1 Modular Architecture and Signal Flow
As shown in Fig. 2, the framework consists of a policy network, a safety-parameter generation network, and a differentiable handling-stability projection layer. Both networks process vehicle observations through a shared feature representation to generate
(20)
where denotes the observation vector, is the encoded feature representation, and , , and are the corresponding network parameters. The nominal steering sequence contains the predicted front- and rear-wheel steering commands over steps. The safety-parameter sequence comprises the projection weights , handling-CBF gains , and tire-friction reserves .
The differentiable projection layer receives and to generate the corrected sequence under the prescribed physical constraints. During training, task-related losses and projection sensitivities provide gradient feedback to the upstream networks, subject to the enabled loss terms and trainable parameter groups. The corresponding gradient propagation and optimization strategy are detailed in the following subsections.
3.2 Projection-Guided Gradient Coupling
ChassisOptNet couples task-oriented learning with physical constraint optimization through the differentiable projection defined in (19). As illustrated in Fig. 2, the nominal control sequence and constraint parameters are jointly involved in a dynamics-unrolled QP process, allowing projection-dependent losses to influence network optimization.
Let collect the projected control sequence and optimized constraint slacks. The gradients with respect to the nominal commands and projection parameters are
(21) where denotes direct task and risk supervision, while represents projection-dependent losses. The Jacobians are defined as and .
Unlike independent single-step projections, these Jacobians capture both the local QP sensitivities and the effects of preceding control corrections on subsequent vehicle states and constraints. The projection weights determine the control-correction metric, whereas the CBF gains and tire-friction margins parameterize the prescribed constraints. This establishes a gradient coupling between task-oriented control and chassis constraint projection.
During training, nominal-rollout risk losses and detached intervention targets provide direct policy guidance, while projection-dependent losses enable gradients through the differentiable QPs. The latter also support optimization of the constraint-parameter network when its parameters are trainable. Consequently, the effective gradient coupling depends on the enabled loss terms and parameter-update configuration.
3.3 Two-Stage Task–Constraint Learning
The proposed framework adopts a two-stage training strategy. Stage I initializes the nominal steering policy using expert MPC demonstrations. Stage II introduces handling-risk supervision and differentiable safety projection to improve the coordination between tracking performance and physical constraints.
3.3.1 Task-Oriented Learning
The nominal policy is trained to predict the expert steering sequence. Let and denote the nominal and expert steering sequences of sample , where is the prediction horizon and is the batch size.
To account for prediction-step importance, define the weighted mean-square operator
(22)
where J is the sequence length, is the dimension of , and is the temporal decay factor.
The Stage-I objective is
(23)
Here, provides expert steering supervision, while suppresses abrupt variations in the predicted steering sequence. The safety-projection layer is not activated during Stage I.
3.3.2 Risk-Guided Fine-Tuning
Stage II initializes the policy from Stage I and introduces safety-related learning objectives. The loss combines expert imitation, risk-gated intervention, expert-relative handling-risk supervision, curvature-dependent tracking, and QP slack regularization:
where denotes the corresponding loss weight and gradually introduces the auxiliary objectives during the first Stage-II epochs.
- Expert imitation. To preserve the tracking performance learned in Stage I, nominal-sequence imitation is retained. An additional first-step loss emphasizes the command used in receding-horizon execution:
Table 1: Key network and training hyperparameters.
| Parameter | Value |
| Network Architecture | |
|---|---|
| Input dimension | |
| Preview/control horizon () | |
| Hidden dimension | |
| Residual blocks | |
| Dropout rate | |
| Output dimension | |
| Training Configuration | |
| Optimizer | AdamW |
| Batch size | |
| Stage-I / Stage-II epochs | |
| Stage-I / Stage-II learning rates | |
| Curriculum ramp epochs | |
| Key Stage-II Loss Weights | |
- Risk-gated intervention. The handling-envelope utilization and maximum tire-force utilization are evaluated through nominal and expert vehicle-dynamics rollouts:
Here, and denote the predicted sideslip angle and yaw rate, is the four-wheel set, and is a numerical regularizer. The limits and follow the handling-envelope definition in Section 2. The quantities , and denote longitudinal tire force, lateral tire force, vertical load, and road adhesion coefficient, respectively.
Let superscripts ref and exp identify nominal-policy and expert rollouts. The expert-relative risk allowances are
where is the transient risk tolerance and is the expert-relative margin.
The intervention gate and corresponding losses are
where is the indicator function and denotes stop-gradient. Both the gate and projected steering targets are detached during differentiation. These losses guide the nominal policy toward feasible steering decisions when its predicted risk exceeds the expert-relative allowance.
- Expert-relative risk supervision. To discourage excessive risk without suppressing successful near-limit responses, a recoverability-related penalty is constructed from handling and tire-risk sequences:
For risk category c, the four components penalize the squared excess above the expert-relative allowance, additional mean boundary violation beyond budget , excessive peak risk, and unfavorable risk growth relative to the expert, respectively. The trend penalty uses the difference between successive risk indices and coefficient . The expert risk trajectories are treated as fixed references. This formulation encourages bounded risk excursions and recovery trends without imposing a terminal invariant-set condition.
- Curvature-dependent tracking. For high-curvature maneuvers, the desired yaw rate is . A curvature-dependent gate is defined as
where is the sigmoid function, is the preview curvature, and and determine the activation threshold and transition width.
The tracking and terminal penalties are
(31)
where , , and are the predicted lateral error, heading error, and yaw rate under the nominal sequence. These terms improve anticipatory yaw response and terminal tracking during sustained high-curvature maneuvers.
- Constraint regularization. The QP slack loss is
where and are the optimized handling and tire-constraint slack vectors. This term discourages constraint relaxation and retains a gradient pathway through the differentiable QP.
The policy and shared feature layers are updated during Stage II. The safety-parameter output layer is optimized only when its training option is enabled. In the reference configuration, projected-sequence imitation and optional nominal-rollout tracking have zero loss weights, while the safety-parameter output layer remains fixed.
4 Experimental Validation
The proposed framework is evaluated using closed-loop Python–CarSim simulations. The experiments include generalization tests under varying trajectories, speeds, and road adhesion, a near-limit handling maneuver, and ablation studies of the safety-projection and learning components.
4.1 Simulation Platform and Expert Demonstrations
Expert demonstrations were collected using a nonlinear model predictive controller (MPC) in a Python–CarSim co-simulation environment. The MPC employed a single-track lateral–yaw model and nonlinear Frenet-frame kinematics to predict vehicle motion. The prediction state and control input were defined as and , where is the path coordinate, and are the lateral and heading errors, and are the longitudinal and lateral velocities, and is the yaw rate. The MPC optimized the steering sequence by minimizing
Table 2: Vehicle and steering-actuator parameters.
| Parameter | Symbol | Value | Unit |
|---|---|---|---|
| Vehicle mass | 1259.9 | kg | |
| Yaw moment of inertia | 1343.1 | kgm | |
| CG to front axle | 1.04 | m | |
| CG to rear axle | 1.56 | m | |
| Front cornering stiffness per tire | 39800 | N/rad | |
| Rear cornering stiffness per tire | 34050 | N/rad | |
| Effective wheel radius | 0.287 | m |
Table 3: Statistical comparison of tracking accuracy and handling stability in trajectory, speed, and tire–road friction generalization tests.
| Metric | LQR | MPC | Ours |
|---|---|---|---|
| Trajectory generalization | |||
| Maximum absolute lateral error (m) | 0.1482 | 0.1564 | 0.0878 |
| Mean absolute lateral error (m) | 0.0342 | 0.0358 | 0.0199 |
| Maximum absolute sideslip angle (deg) | 1.2078 | 1.1229 | 2.0003 |
| Mean absolute sideslip angle (deg) | 0.1852 | 0.1675 | 0.3732 |
| Maximum absolute yaw rate (deg/s) | 11.2793 | 11.6960 | 13.6922 |
| Mean absolute yaw rate (deg/s) | 2.1270 | 2.1417 | 2.3611 |
| Velocity generalization | |||
| Maximum absolute lateral error (m) | 0.1882 | 0.2226 | 0.1783 |
| Mean absolute lateral error (m) | 0.0400 | 0.0509 | 0.0443 |
| Maximum absolute sideslip angle (deg) | 2.3823 | 1.8960 | 5.0198 |
| Mean absolute sideslip angle (deg) | 0.4269 | 0.3079 | 1.5111 |
| Maximum absolute yaw rate (deg/s) | 17.5158 | 17.6572 | 20.4647 |
| Mean absolute yaw rate (deg/s) | 3.3605 | 3.5145 | 3.9477 |
| Tire–road adhesion generalization | |||
| Maximum absolute lateral error (m) | 0.1662 | 0.1862 | 0.1199 |
| Mean absolute lateral error (m) | 0.0363 | 0.0449 | 0.0231 |
| Maximum absolute sideslip angle (deg) | 1.9426 | 1.1362 | 2.7342 |
| Mean absolute sideslip angle (deg) | 0.3531 | 0.1865 | 0.4839 |
| Maximum absolute yaw rate (deg/s) | 10.7256 | 10.7493 | 13.1834 |
| Mean absolute yaw rate (deg/s) | 2.1133 | 2.1663 | 2.3393 |
where and . The weighting matrices were and . The sampling interval was s, with a prediction horizon of . Steering-actuator, tire-friction, and handling-stability constraints were included in the optimization. The resulting nonlinear program was solved using CasADi and IPOPT, with warm-start initialization. Only the first optimized steering command was applied, while an independent PID controller regulated longitudinal speed.
The expert dataset covered seven reference-path families, including lane changes, slalom, circular paths, J-turns, U-turns, and variable-curvature cornering. Reference speeds ranged from 30 to 60 km/h, with tire–road adhesion coefficients between 0.6 and 1.0. These scenarios provided diverse steering demands and lateral–yaw responses.
Only successful expert rollouts were retained, requiring maneuver completion, valid MPC solutions, and bounded vehicle responses. The resulting dataset comprised 181 trajectories, divided into training and validation subsets at the trajectory level with a 75:25 ratio to prevent temporal data leakage.
The policy input comprised 22 vehicle-state, tracking-error, actuator, and tire-related features, together with 4H path-preview features, where . The network predicted front–rear steering pairs supervised by the corresponding expert MPC sequences. Training employed AdamW with a batch size of 128, followed by 160 imitation-learning epochs and 340 safety-guided fine-tuning epochs, as detailed in Table 1.

(a)

(b)

(c)

(d)

(e)

(f)
Figure 3: Safety validation of the proposed controller under near-limit maneuvers: (a) trajectory-tracking result; (b) sideslip angle and yaw rate; (c) front and rear steering commands; (d) evolution of the dynamic stability envelope; (e) stability-boundary exceedance; (f) evolution of the tire-adhesion safety margin.
Table 4: Quantitative results of the ablation study under high-speed emergency collision-avoidance maneuvers.
| Metric | Policy Network | Policy Network + Non-diff Safety Layer | Policy Network + Diff Safety Layer + No Joint Training | Ours |
|---|---|---|---|---|
| Maximum Absolute Lateral Error (m) | 0.4562 | - | 1.8739 | 0.3422 |
| Mean Absolute Lateral Error (m) | 0.1150 | - | 0.4981 | 0.1011 |
| Maximum |β| (deg) | 7.9939 | - | 9.5251 | 8.5579 |
| Mean |β| (deg) | 1.6558 | - | 3.5399 | 2.4303 |
| Maximum |γ| (deg/s) | 23.6297 | - | 14.0890 | 25.6503 |
| Mean |γ| (deg/s) | 4.7406 | - | 4.3293 | 4.7711 |
Notes: Policy Network + Non-diff Safety Layer denotes the policy network followed by a fixed non-differentiable safety layer with and .
Generalization tests were conducted on held-out trajectory, speed, and adhesion conditions excluded from policy training. LQR, MPC, and the proposed controller were evaluated on identical scenarios. All three controllers completed the prescribed generalization tests, and the statistics in Table 3 were calculated without controller-specific success filtering. Separate near-limit and emergency maneuvers were used for handling-response analysis and ablation studies. CarSim provided the nonlinear vehicle response, while the safety-projection layer used the reduced-order model introduced in Section 2.
4.2 Baselines and Evaluation Metrics
Two model-based controllers were considered as baselines. The LQR controller provided an unconstrained linear feedback reference, and the MPC controller represented the model-based trajectory-tracking benchmark. The controllers were evaluated using identical test scenarios within each generalization category. Maximum and mean absolute lateral displacement errors quantify tracking accuracy, while the maximum and mean magnitudes of vehicle sideslip angle and yaw rate characterize the handling response. Larger sideslip and yaw-rate magnitudes are not themselves proof of unsafe behavior. Safety-related interpretations also require the applicable handling boundaries and tire-force limitations.
4.3 Generalization to Unseen Operating Conditions
Three held-out test groups were designed to evaluate generalization across trajectory, velocity, and road-adhesion conditions. Trajectory tests used unseen lane-change geometries at 30–60 km/h and . Velocity tests extended the reference speed to 65–80 km/h, while adhesion tests reduced to 0.3–0.5. All controllers were evaluated under identical conditions.
As reported in Table 3, the proposed method reduced the mean lateral tracking error from 0.0358 to 0.0199 m in trajectory generalization and from 0.0449 to 0.0231 m in adhesion generalization, compared with MPC. Under velocity generalization, it achieved a lower maximum error of 0.1783 m, although its mean error of 0.0443 m was slightly higher than the LQR result. The proposed controller generally exhibited larger sideslip and yaw-rate responses than MPC, motivating further evaluation of near-limit handling behavior.
4.4 Near-Limit Handling Assessment
A low-adhesion J-turn was conducted to evaluate tracking and handling responses near the stability limits. As shown in Fig. 3, LQR exhibited substantial trajectory deviation and unstable lateral-yaw responses. MPC mitigated the instability but showed slower tracking convergence. The proposed controller completed the maneuver with faster convergence while exhibiting transient excursions beyond the prescribed handling boundary. These results demonstrate improved tracking-stability coordination in this near-limit scenario without implying strict constraint satisfaction.
4.5 Ablation Study of Safety Projection and Learning
High-speed single- and double-lane-change maneuvers were conducted at 80–90 km/h and to evaluate the contributions of safety projection and policy training.
As shown in Table 4, the fixed non-differentiable safety filter failed to complete the prescribed maneuvers, with maximum lateral errors exceeding 3 m. The differentiable safety layer without joint training completed the maneuvers but produced maximum and mean lateral errors of 1.8739 and 0.4981 m. The nominal policy achieved corresponding errors of 0.4562 and 0.1150 m. The complete framework reduced these errors to 0.3422 and 0.1011 m, demonstrating the benefit of coordinating nominal policy learning with safety-related supervision and projection under the evaluated emergency conditions.
5 Discussion
The proposed differentiable chassis safety layer provides a modular interface between task-oriented control and explicit physical constraints. Although demonstrated through trajectory tracking, the architecture can be extended to other vehicle motion-control objectives with appropriate task formulations. The generalization and near-limit experiments demonstrate improved tracking performance under the evaluated conditions, while the ablation results highlight the benefits of coordinating policy learning with chassis safety projection.
The dynamics-unrolled formulation captures the temporal coupling between projected control actions and subsequent safety constraints. However, the effectiveness of projection-dependent gradients depends on the training configuration. Furthermore, the simplified vehicle model, relaxed safety constraints, and assumed state availability preclude strict closed-loop safety guarantees. Future work will investigate uncertainty-aware safety projection, real-time implementation, and experimental validation.
6 Conclusion
This article proposed a differentiable chassis safety layer for intelligent vehicle motion control. Actuator limits, individual-tire friction constraints, and vehicle handling envelopes are embedded into sequential QPs coupled through predictive vehicle dynamics. The resulting layer enables modular integration with task-oriented controllers and provides projection sensitivities for safety-guided learning. A two-stage training strategy combines expert imitation with risk supervision and conditional intervention guidance. Closed-loop CarSim experiments demonstrate improved task execution under the evaluated generalization and emergency conditions, supporting the effectiveness of the proposed task–safety coordination framework.
Declarations
On behalf of all authors, the corresponding author states that there is no conflict of interest.
Acknowledgments
This work was supported in part by the National Key R&D Plan of China (Grant No. 2024YFB2505200), and in part by the National Science Foundation of China under Grants 52472452 and 52325212.
References
[1] Wenqiang Zhao, Hongqian Wei, Qiang Ai, Wei Jing, and Youtong Zhang. Signal reconstruction and memory feedback control for path tracking under penetrative cyber-attacks. IEEE Internet of Things Journal, 13(6):10954–10970, 2026.
[2] Mingqiang Wang, Quanwei Xu, Zhengxian Chen, Mingming Zhao, Hong Wang, and Jun Li. An energy-aware car-following control framework with data-driven enhanced deep reinforcement learning for automated vehicles. IEEE Internet of Things Journal, pages 1–1, 2026.
[3] Qi Zhu, Xiangpeng Xie, and Kun Zhang. Safety-comfort-oriented adaptive safe q-learning for networked active quarter-vehicle suspension systems. IEEE Internet of Things Journal, 12(23):51279–51288, 2025.
[4] Carrie G. Bobier-Tiu, Craig E. Beal, John C. Kegelman, Rami Y. Hindiyeh, and J. Christian Gerdes. Vehicle control synthesis using phase portraits of planar dynamics. Vehicle System Dynamics, 57(9):1318–1337, 2019.
[5] Xiaolin Ding, Zhenpo Wang, Lei Zhang, and Jizheng Liu. A comprehensive vehicle stability assessment system based on enabling tire force estimation. IEEE Transactions on Vehicular Technology, 71(11):11571–11588, 2022.
[6] Lukas Hewing, Kim P. Wabersich, Marcel Menner, and Melanie N. Zeilinger. Learning-based model predictive control: Toward safe learning in control. Annual Review of Control Robotics and Autonomous Systems, 3(1):269–296, 2020.
[7] Ningyuan Guo, Xudong Zhang, and Yuan Zou. Real-time predictive control of path following to stabilize autonomous electric vehicles under extreme drive conditions. Automotive Innovation, 5(4):453–470, 2022.
[8] Nathan A. Spielberg, Matthew Brown, and J. Christian Gerdes. Neural network model predictive motion control applied to automated driving with unknown friction. IEEE Transactions on Control Systems Technology, 30(5):1934–1945, 2022.
[9] Matthias Lorenzen, Frank Allgöwer, and Mark Cannon. Adaptive model predictive control with robust constraint satisfaction. IFAC-PapersOnLine, 50(1):3313–3318, 2017.
[10] Aaron D. Ames, Xiangru Xu, Jessy W. Grizzle, and Paulo Tabuada. Control barrier function based quadratic programs for safety critical systems. IEEE Transactions on Automatic Control, 62(8):3861–3876, 2017.
[11] Wei Xiao and Calin Belta. High-order control barrier functions. IEEE Transactions on Automatic Control, 67(7):3655–3662, 2022.
[12] Jun Zeng, Bike Zhang, and Koushil Sreenath. Safety-critical model predictive control with discrete-time control barrier function. In 2021 American Control Conference (ACC), pages 3882–3889. IEEE, 2021.
[13] Hossein Abdi, Pan Zhao, Naira Hovakimyan, and Reza Ghabcheloo. Model predictive control barrier functions: Guaranteed safety with reduced conservatism and shortened horizon. In 2024 American Control Conference (ACC), pages 1652–1657, 2024.
[14] Kai-Chieh Hsu, Haimin Hu, and Jaime F Fisac. The safety filter: A unified view of safety-critical control in autonomous systems. Annual Review of Control, Robotics, and Autonomous Systems, 7, 2023.
[15] Fangyin Tian, Zhiheng Li, Fei-Yue Wang, and Li Li. Parallel learning-based steering control for autonomous driving. IEEE Transactions on Intelligent Vehicles, 8(1):379–389, 2023.
[16] Yifan Hu, Junjie Fu, and Guanghui Wen. Safe reinforcement learning for model-reference trajectory tracking of uncertain autonomous vehicles with model-based acceleration. IEEE Transactions on Intelligent Vehicles, 8(3):2332–2344, 2023.
[17] Peng Yao, Qiming Liu, and Zhiyao Zhao. Obstacle avoidance for unmanned surface vehicle by null-space guidance vector field with deep reinforcement learning. IEEE Internet of Things Journal, 12(13):24518–24529, 2025.
[18] Qi Zhu, Xiangpeng Xie, and Kun Zhang. Safety-comfort-oriented adaptive safe q-learning for networked active quarter-vehicle suspension systems. IEEE Internet of Things Journal, 12(23):51279–51288, 2025.
[19] Yuanyuan Zhang, Yingying Wang, and Weisong Wen. EIRM-RL: Epistemic integrity risk monitoring inspired safe reinforcement learning for trustworthy autonomous navigation. IEEE Internet of Things Journal, 13(2):3500–3512, 2026.
[20] Brandon Amos and J. Zico Kolter. OptNet: Differentiable optimization as a layer in neural networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 136–145. PMLR, 2017.
[21] Akshay Agrawal, Brandon Amos, Shane Barratt, Stephen Boyd, Steven Diamond, and J. Zico Kolter. Differentiable convex optimization layers. In Advances in Neural Information Processing Systems, volume 32, 2019.
[22] Wei Xiao, Calin Belta, and Christos G. Cassandras. Adaptive control barrier functions. IEEE Transactions on Automatic Control, 67(5):2267–2281, 2022.
[23] Brett T. Lopez, Jean-Jacques E. Slotine, and Jonathan P. How. Robust adaptive control barrier functions: An adaptive and data-driven approach to safety. IEEE Control Systems Letters, 5(3):1031–1036, 2021.
[24] Wei Xiao, Tsun-Hsuan Wang, Ramin Hasani, Makram Chahine, Alexander Amini, Xiao Li, and Daniela Rus. Barriernet: Differentiable control barrier functions for learning of safe robot control. IEEE Transactions on Robotics, 39(3):2289–2307, 2023.
[25] Anselm Paulus, Georg Martius, and Vít Musil. LPGD: A general framework for backpropagation through embedded optimization layers. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 39989–40014. PMLR, 21–27 Jul 2024.
[26] Stephen Gould, Richard Hartley, and Dylan John Campbell. Deep declarative networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, page 1–1, 2021.
Author Biographies

Lu Xiong received the Ph.D. degree in vehicle engineering from Tongji University, Shanghai, China, in 2005. From November 2008 to November 2009, he was a Postdoctoral Fellow with the Institute of Automobile Engineering and Vehicle Engines, University of Stuttgart, Germany, with Dr. Jochen Wiedemann. He is now a Professor at Tongji University. He is also the Dean of the College of Automotive and Energy Engineering, the Director of the Clean Energy Automotive Engineering Center, and the Executive Director of the Institute of Intelligent Vehicles, Tongji University. His research interests include perception, decision, and planning; dynamic control; state estimation; and testing and evaluation of autonomous vehicles.

Xuge Hu received the B.S. degree in the School of Transportation, Jilin University, China, in 2024. She is currently pursuing the Ph.D. degree in the College of Automotive and Energy Engineering, Tongji University, China. Her research interests include intelligent vehicle control and autonomous driving.

Yufei Song received the B.S. and M.S. degrees from the College of Automotive and Energy Engineering, Tongji University, Shanghai, China, in 2023 and 2026, respectively. His research interests include autonomous driving and motion planning.

Weidong Liu received the M.E. degree from China Agriculture University, Beijing, China, in 2012. He is now a Doctoral student studying in the School of Automotive Studies, Tongji University, and working at Jiangling Motors Co., Ltd. His research interests include decision, planning, and dynamic control of autonomous vehicles.

Chen Tang received his Ph.D. degree in mechanical and mechatronics engineering from the University of Waterloo, Ontario, Canada, in 2018. From 2019 to 2021, he worked at the University of Waterloo, Waterloo, Canada, as a postdoctoral researcher. He is currently an Associate Professor with the College of Automotive and Energy Engineering, Tongji University, Shanghai. His research interests include advanced chassis systems, vehicular active safety systems, and intelligent transportation systems.