This section presents the simulation results and discussion of the proposed framework, organized into four parts.
Section 4.1 examines how the 1st-order CLBF advantage modifier influences Proximal Policy Optimization during training, analyzing the effect of the control Lyapunov weight
, the static-obstacle barrier weight
, and the pedestrian barrier weight
on the agent’s learning, and comparing the resulting policy against the PPO(MLP) and PPO-LSTM baselines.
Section 4.2 then studies the deployment-time HOCLBF-QP layer, investigating how the class-
coefficients shape the agent’s braking response to a crossing pedestrian and its goal-reaching behavior.
Section 4.3 compares the integrated CLBF-PPO-HOCLBF-QP framework against the traditional HOCLBF-QP baseline across a range of pedestrian crossing speeds. Finally,
Section 4.4 reports the per-step computational time of both controllers and assesses the real-time feasibility of the online optimization at the control rate defined in
Section 3.3.
4.1. Effect on 1st-Order CLBF Advantage Estimates to Proximal Policy Optimization
This subsection focuses on the impact of the first-order CLBF advantage modifier by varying each of its three weights individually, while keeping the other weights constant. The weights under consideration are: the control Lyapunov weight
as discussed in
Section 4.1.1, the static-obstacle barrier weight
in
Section 4.1.2, and the pedestrian barrier weight
in
Section 4.1.3. For each variation, the resulting training return and agent trajectory will be compared with the corresponding reference setting.
All results in this section are aggregated over three random seeds with three repetitions for each seed; the tables report the mean and standard deviation across runs with a 90% confidence interval, and the exploration-entropy setting is given in
Table A1. The episodic return curves are shown as a 50-episode moving average, applied solely to improve the legibility of the high-frequency return signal.
4.1.1. Effect on Control Lyapunov Weight on Agent’s Learning
Following the modified advantage estimates by CLF,
Figure 8 compares the episodic return over training under different Control Lyapunov Function weights, where
is shown as the pink triangle line,
as the light-orange downward-triangle line, and
as the blue cross line. All curves are reported as 50-episode moving averages of the episodic return over the training horizon. In this experiment, the agent only drives to reach the goal, without pedestrian movement, at a full speed of
. The return reflects how well the agent learns to complete the scenario over training. Regarding the influence of
, summarized in
Table 2, adding a moderate Lyapunov weight helps the agent learn goal-reaching behavior: for
and
, the agent converges to a high return. At
, the CLF signal on the advantage is strong enough to bias the policy gradient toward goal-converging actions, yet small enough that the GAE advantage term still dominates; this setting converges fastest, with average return at 976.02. At
, although the convergence is slightly slower, the margin is higher than
. Moreover, the return trend is the smoothest, indicating the most stable learning, with more than 90% success rate. However, an excessively strong CLF signal,
, degrades learning: the analytic Lyapunov term begins to overwrite the learned GAE advantage, and because this term is myopic—reflecting only the instantaneous sign of the Lie derivative rather than the long-horizon return—the policy gradient is pulled by a short-sighted signal, training destabilizes, and the agent ultimately fails to reach the goal. The effect of
is therefore non-monotonic: the CLBF modifier accelerates and stabilizes goal-reaching only within a moderate weight range, where it injects an explicit stability signal without displacing the learned advantage.
Figure 9 compares baselines: PPO(MLP), represented by the blue dashed circle, and PPO-LSTM, the dark orange squared line from [
46], against the proposed method, with a control Lyapunov weight
of 0.10, on the identical goal-reaching task. The proposed method rises quickly and holds at a high, stable plateau throughout training, while both baseline approaches reach a comparable early peak and then decline; PPO-LSTM oscillates and fails in later episodes, and PPO(MLP) steadily collapses to the lowest returns by the end of training. This contrast follows directly from the modified advantage estimate in Equation (
30). The baselines drive the policy gradient using only the GAE advantage, which is bootstrapped from a still-learning critic. Once the agent explores away from the goal-reaching behavior, no structural signal pulls it back, and the policy drifts. Instead, the proposed approach adds the CLF term, computed from the analytic Lie derivative of the Lyapunov function and therefore independent of the critic value, which at every update re-penalizes actions that violate the CLF descent condition and continually steers the policy toward goal-reaching actions. Because PPO-LSTM is the more capable baseline, it has recurrent memory and additional parameters inside. However, the learning still degrades. The improvement cannot be attributed to network capacity, but specifically to the explicit stability signal injected by the first-order CLBF advantage modifier.
In terms of agent trajectory,
Figure 10 illustrates the trajectories for the three controllers on a similar goal-reaching task. The proposed method at
(green dashed-dot line) conducts a smooth, continuous path that curves around the static obstacle (box) and terminates at the goal region, with the agent’s final pose aligned to the goal. Whereas both baselines fail to complete the scenario: the PPO-LSTM trajectory (blue) advances further than PPO(MLP) but stalls short of the goal, while the PPO(MLP) trajectory (orange dashed) deviates from the goal-directed path earlier and terminates before reaching the goal. These trajectories are the spatial matching of the return curve in
Figure 9. In the CLF descent signal, it keeps the agent’s heading toward the goal throughout the episode, whereas the baselines, lacking that structural anchor, drift off the goal-reaching path once their learned policy degrades.
4.1.2. Effect on Control Barrier Weight on Static Obstacle on Agent’s Learning
Regarding the influence of the Control Barrier Function weight
on agent training, and under the same conditions as the control Lyapunov weight experiment—the absence of a pedestrian and a fixed agent speed of
—
Figure 11 illustrates how the barrier weight on the static obstacle (the box) affects the agent’s training, with the Lyapunov weight held fixed at
; the
case therefore coincides with the control-Lyapunov-only reference. At
(green triangle line), the inclusion of the barrier weight accelerates the agent’s learning relative to the unweighted case and yields a more stable learning process, and
Table 3 shows that it raises the success rate above the unweighted baseline at an essentially unchanged average return. As the barrier weight is increased further, to
and
, performance deteriorates: the success rate declines below the unweighted baseline and the training return converges more slowly. As reported in
Table 3, the average advantage decreases monotonically with
, since the barrier penalty only subtracts from the advantage and a larger weight further attenuates the dominant GAE term. The decline in success rate is instead caused by an overly conservative policy: at
, the agent maintains an unnecessarily large clearance from the obstacle and continues to accumulate step-wise safety and proximity rewards yet fails to reach the goal reliably. The influence of
is therefore non-monotonic, mirroring that of
: a moderate barrier weight accelerates and stabilizes learning while improving obstacle avoidance, whereas an excessive weight sacrifices goal-reaching in favor of over-cautious behavior. The two ablations are distinguished only by their failure modes—an over-weighted
destabilizes training, whereas an over-weighted
preserves training stability but renders the policy over-conservative.
Figure 12 depicts the agent’s trajectories over the barrier weight on a static obstacle. Because
scales the penalty on any steering action that reduces clearance to a wider position, for most of the values, from
= 0.00 to
= 0.10, the trajectories remain closely clustered, with slight separation from the box, each rounding the box along a smooth, goal-directed path and terminating at the goal with the agent aligned to the target. However, at
= 0.15, the trajectory markedly departs from the others, swinging into a much wider, lower arc that keeps an excessive distance from the box and deviates from the goal-reaching route, so that the agent may drive off the road rather than staying on the road; this is thus the drop in the success rate. A moderate
yields a path that is safe yet still goal-directed, whereas an excessive
produces an exaggerated route in which obstacle clearance is prioritized over goal-reaching. The agent continues to grow stepwise safety and proximity rewards across its wide area, but no longer reliably reaches the goal.
4.1.3. Effect on Control Barrier Weight on Pedestrian on Agent’s Learning
In this study, we investigated the impact of control barrier weight on the training efficacy in pedestrian avoidance scenarios. We simulated a situation in which a pedestrian at a crosswalk is obscured by a box, rendering them invisible to the agent. The pedestrian’s movement speed is set at , while the agent’s maximum speed is equal to .
As illustrated in
Figure 13, in the scenario where no weight is applied (i.e., the unweighted case), the reward achieves an initial peak but subsequently declines and plateaus throughout the training period, resulting in a success rate that remained below 50%. This trend indicates an insufficient signal from the pedestrian barrier, which hampers the policy’s development.
Increasing the pedestrian barrier weight, denoted as , significantly improves training performance through enhanced penalties for pedestrian safety derived from Lie derivatives. Specifically, at weights of and , the training performance improves; however, the lower weight of introduced considerable oscillations in the reward, leading to inconsistencies in the learning signal regarding pedestrian avoidance. In this instance, a stronger signal facilitates a more stable learning trajectory, resulting in elevated average returns and an increased success rate, allowing the agent to learn pedestrian avoidance more effectively.
Conversely, excessive weight may compromise the training process. Similar to the unweighted scenario, an excessive weight of exhibits a similar trajectory, experiencing an initial peak followed by a drop into a low reward band. The observed weight dynamics reflect the significance of maintaining a coherent learning environment; weights of and successfully sustained a high, stable performance plateau once peak performance is achieved. In contrast, the absence of a signal (at ) and the application of excessive weight (at ) both fail to maintain this plateau. The former case lacks an adequate structural signal to mitigate policy drift, while the latter suffers from a myopic analytic term that progressively overshadowed the learned advantages.
Figure 14 illustrates the spatial trajectories of the agent with varying weights assigned to the pedestrian barrier variable (
). These trajectories reflect the return trends observed in
Figure 13 and the quantitative results presented in
Table 4. This is the first trajectory comparison conducted with a pedestrian actively crossing, and the figure depicts the static obstacle, the pedestrian, and the path the agent takes as it emerges from behind the occluding obstacle.
At , the reference trajectory results in a collision with the pedestrian during training. Without a pedestrian barrier term in the modified advantage estimate, the policy lacks an explicit avoidance signal, causing the agent to drive directly into the pedestrian’s path. This behavior aligns with the low success rate of 49.80% recorded for this configuration.
When the pedestrian barrier signal is activated, the agent’s behavior changes significantly. At both
and
, the agent successfully steers away from the pedestrian and reaches the goal region, completing the scenario. However, the quality of the resulting path varies between the two settings. At
, the trajectory is comparatively irregular, showing a tendency to drift toward the road boundary. This indicates a reduced safety margin, consistent with its success rate of 73.83% and the greater oscillation noted in
Figure 13. In contrast, at
, the stronger emphasis on pedestrian barrier awareness produces a significantly smoother and better-centered trajectory that consistently reaches the goal, correlating with the highest success rate of 78.07%. When the weight is further increased to
, the agent overreacts to the barrier signal, veers off the road, and fails to complete the scenario, resulting in a sharp decline in success rate to 30.47%.
Regarding the agent’s trajectory, it thus confirms that the intensity of the pedestrian barrier weight directly influences the agent’s driving behavior. An insufficient weight provides no collision-avoidance capability and leads to accidents, while a moderate weight results in a safe, goal-directed path—most effectively at . Conversely, an excessive weight causes the agent to stray off the road. This non-monotonic relationship is consistent with the effects of and observed in previous ablations and confirms that the pedestrian barrier modifier enhances driving behavior only within a moderate weight range.
4.3. Comparison on Integration of the First-Order Lyapunov—Barrier-Proximal Policy Optimization
and Higher-Order CLBF-QP and Traditional Higher-Order CLBF-QP in Agent’s Driving Behavior in Various Pedestrian Speed
This subsection illustrates a comparison of the agent’s driving behaviors in a scenario involving pedestrians crossing at various speeds. The agent, starting with an initial speed of
, drives toward its goal while responding to pedestrians moving at constant speeds of
,
, and
. These comparisons are depicted in
Figure 23,
Figure 24 and
Figure 25, respectively, and
Table 5 consolidates the comparison into a single set of quantitative metrics, grouped into safety-and-avoidance, goal convergence, kinematic-model validity, and QP constraint relaxation. The CLBF-PPO model is employed, trained with a fixed Control Lyapunov–Barrier controller, with parameters set to
,
, and
for the training policy. Additionally, the HOCLBF-QP parameters are defined as
and
for the HOCLF-QP based on Equation (
19). For the HOCBF-QP, the parameters are set to
and
based on Equation (
24). The slack weight is
and
in the QP optimization according to Equation (
37). In the traditional baseline, labeled HOCLBF-QP [
42], the parameters remain similar to those of the proposed method to facilitate a comparison of driving behaviors.
At the lowest crossing speed of
as illustrated in
Figure 23, the relative velocity term of the barrier remains minimal, resulting in the closing rate,
, keeping the second-order barrier constraint binding only briefly. Consequently, the proposed controller executes a singular, shallow deceleration upon the pedestrian’s appearance. Once the pedestrian has crossed, the higher-order Lyapunov constraint allows the agent to restore its nominal speed and proceed toward its goal. In contrast, the traditional baseline maintains a nearly constant velocity, as its nominal action lies comfortably within the feasibility region of the quadratic program, thereby eliciting no corrective action from the safety filter. Although both controllers successfully complete the task at this speed, the distinguishing factor lies in the margin rather than the outcome: as reported in
Table 5, the proposed controller reduces its speed, effectively decreasing its closing rate on the pedestrian, thereby ensuring a longer temporal separation. The baseline, conversely, sustains full speed and clears the pedestrian by executing a wider steering maneuver, as indicated by the greater steering excursions listed in the same table. Both trajectories maintain a positive clearance throughout the process, preventing any collision at this speed.
As the crossing speed is increased to
, depicted in
Figure 24, the closing rate escalates sufficiently for the proposed controller to compute a significantly stronger braking command, ultimately bringing the vehicle to a complete stop while the pedestrian traverses the lane. Following the relaxation of the barrier constraint, the higher-order Lyapunov constraint reinstates the goal-directed convergence signal, allowing the agent to smoothly accelerate back to its nominal speed, thus completing the maneuver in a single braking-and-recovery sequence. The peak deceleration and the extended completion time for this sequence are documented in
Table 5. The traditional baseline also reaches the goal at this speed without engaging the brakes, resulting in a quicker completion. Therefore, the proposed controller makes a calculated decision to accept a modest increase in travel time in exchange for a substantially greater temporal safety margin. This behavior is a direct consequence of the modified advantage estimates: due to the incorporation of the Lyapunov and barrier Lie derivatives in the policy gradient during training, the learned policy is biased toward actions that reside within the intersection of the stability and safety sets, positioning it favorably to resume goal-directed motion immediately upon the release of the barrier constraint.
The divergence between the two controllers becomes particularly pronounced at the highest crossing speed,
, as illustrated in
Figure 25. In this scenario, the proposed controller again decelerates to a stop and subsequently recovers, executing a clearly discernible acceleration pulse that returns the vehicle to its nominal speed and guides it toward the goal through coordinated steering. In contrast, the traditional baseline opts to avoid the pedestrian, achieving the greatest clearance recorded in the study at this speed, as noted in
Table 5. However, this is accomplished through a wide swerve at full speed, which ultimately results in a failure to re-converge to the original goal: it falls short of the intended travel distance, and the goal remains unattained. This contrast is especially notable as the baseline succeeds in terms of safety during the avoidance maneuver but fails in restoring goal-directed motion. While the quadratic-program filter effectively enforces avoidance, it lacks a mechanism to reinstate goal-directed motion post-evasion, a function exclusively provided by the learned policy absent in the baseline. Thus, only the proposed framework successfully balances both pedestrian avoidance and task completion at this speed.
Table 5 clearly illustrates the division of responsibilities between the two layers of the controller and how they correspond to the two properties claimed for the integrated controller. In the safety-and-avoidance block, both controllers maintain a safe distance at all tested speeds, demonstrating that the barrier filter effectively enforces the forward invariance of the safe set in both cases. However, the proposed controller stands out by reducing the closing rate through braking, in accordance with the relative velocity barrier term. In the goal-convergence block, both controllers perform similarly at lower and intermediate speeds, but diverge at higher speeds. Notably, only the proposed framework is able to return to the goal. This behavior explains the graceful degradation observed as pedestrian speed increases: the integrated controller remains safe at each moment, as dictated by the barrier constraint in Equation (
24), while also ensuring asymptotic goal-reaching, as governed by the stability constraint in Equation (
19). In contrast, the baseline controller only guarantees safety. This comparison supports the key argument of this section: a learning-based controller that incorporates both a Lyapunov–barrier formalism and a deployment-time filter is most effective for safe pedestrian avoidance. This effectiveness is enhanced when the learned policy and the deployment-time filter are designed together within a unified framework, rather than being treated as separate, sequential modules.
The Kinematic-Model Validity block in
Table 5 outlines the key factors that assess whether the small-slip-angle, no-slip model presented in Equation (
5) remains valid during maneuvers. For both controllers and at all crossing speeds, the friction utilization, denoted as
—which represents the combined longitudinal and lateral tire demands as a fraction of the available friction
—stays below the friction limit at all times. It peaks at approximately half of the available grip during the full-speed turn around the static obstacle and decreases significantly during braking to approximately 0.16. Consequently, the required contact forces remain within the limits that the surface can provide, ensuring that the vehicle maintains traction throughout the maneuver. Since
aggregates demands from both axes, it also accounts for scenarios where braking and steering occur simultaneously, which actually present the lowest demand.
The peak slip angle remains around 20–22°, peaking at 22.11°. At this angle, the simplifications
and
result in errors of only 7%. The slightly higher slip angle measured during the higher-speed runs corresponds to the vehicle being stationary at times, carrying no lateral load—a finding consistent with the observed lateral acceleration and friction figures, which do not increase alongside it. Furthermore, the slip angle is directly measured by the onboard IMU, providing an observed rather than an assumed value. These results validate the use of the kinematic bicycle model for the low-speed conditions analyzed; however, its potential limitations under aggressive cornering, higher speeds, or reduced surface friction are discussed in
Section 5.
The QP Constraint Relaxation section found in
Table 5 outlines the slack magnitudes observed during deployment, illustrating how the filter balances stability and safety constraints. A constraint is implemented at each step when its slack reaches zero. The pedestrian barrier, represented by slack
, only engages upon detecting a pedestrian. While the pedestrian is hidden behind an obstruction, the barrier
h is large, and the second-order condition (
24) is comfortably satisfied by the nominal acceleration, which means the constraint does not bind, keeping
trivially at zero. The slack becomes significant for assessing safety enforcement primarily during the braking action triggered by the pedestrian’s appearance, during which
consistently remained at zero within solver tolerance across all tests: the barrier was strictly enforced when it influenced the motion. The safe set continued to remain forward-invariant without any relaxation. In contrast, the stability slack
was active, increasing in magnitude with pedestrian speed, indicating the extended braking and recovery phase required for faster crossings; this behavior is by design, as the goal-convergence constraint is relaxed while the safety constraint is strictly adhered to.
The reason
does not activate is that the barrier is only allowed to relax when no acceleration within
can fulfill the safety requirement—essentially, when the constraint becomes infeasible. This situation does not occur because the higher-order barrier responds in anticipation. Once a pedestrian is detected, the closing-rate term
and the class-
margins
start dictating the response while
h remains well inside the safe set, ensuring that the necessary deceleration to maintain
is gradual and remains within the actuator’s limits. A barrier that only engages at the last moment could demand an unmanageable stop, leading to
; it is the proactive, relative velocity approach that ensures the required braking remains feasible. With just one detectable pedestrian, the feasible set is guaranteed to be non-empty at every step. Given that
, any tension between reaching the goal and maintaining safety is absorbed by
instead of the barrier slack. Consequently, the barrier is enforced precisely whenever the scenario remains within the capabilities of the actuator; the conditions under which this may fail—such as dense or partially visible traffic, or when a pedestrian appears too close to stop for—are explored in
Section 5.
4.4. Computational Cost and Real-Time Feasibility
In the context of the HOCLBF-QP, as expressed in Equation (
37), it is imperative that the solution is computed in real time at each control step, as established in
Section 3.3. The controller engages once per simulation step, during which the trained policy generates the slip angle command, followed by the resolution of the HOCLBF-QP for the acceleration command prior to implementing the action on the vehicle.
To evaluate the computational burden, we document the execution time for each step for both the proposed CLBF-PPO-HOCLBF-QP and the traditional HOCLBF-QP, distinguishing between the OSQP solver core time and other components. All recorded measurements reflect wall-clock times on an Apple MacBook Pro equipped with an M4 Pro 14-core CPU and 48 GB of RAM. Warm-start procedures between steps are taken into account while excluding the initialization time for the solver at the initial step. The statistics compiled span three different pedestrian crossing speeds, as described in
Section 4.3.
Figure 26 illustrates the distribution of per-step quadratic programming solve times and the overall per-step execution times for both control strategies. Across the aggregated runs, the average solution time for the QP solver per controller is relatively brief: approximately 4.7 ms for the proposed controller and 4.2 ms for the traditional controller. The total execution times per control step are approximately 6.2 ms and 5.0 ms, respectively. Notably, even the longest recorded time—8.8 ms for the proposed controller at the maximum crossing speed—affords a significant margin against the defined control period. The solving times for both controllers are comparable, with the proposed controller exhibiting a marginally longer total time due to the inclusion of the policy-network evaluation at each step, which contributes an average of less than one millisecond (specifically 0.7 ms). Consequently, the computational load attributed to the learned component is minimal in relation to the control period, ensuring that both controllers comfortably meet the real-time operational requirement at the 25 Hz rate.
These findings align with existing literature reporting real-time implementations of similar optimization-based safety controllers. For instance, a hierarchical autonomous driving controller, which combines a high-order CLBF-QP low-level controller with a deep reinforcement learning decision layer, has reported an average low-level QP solve time of 0.66 ms per step at a control rate of 100 Hz [
26]. Furthermore, operator-splitting solvers, such as the one utilized in this study, are explicitly designed for real-time and embedded applications in quadratic programming [
41]. In our implementation, the optimization process itself is completed in approximately 54 μs for the proposed controller and 37 μs for the traditional controller. Thus, the millisecond-scale per-step cost is primarily a result of the assembly of the quadratic program within the host environment and the scheduling overhead from the operating system, rather than the OSQP solver itself. This overhead contributes to the slightly increased variability in step execution times for the proposed controller, given that general-purpose operating systems tend to optimize for average-case performance, leading to timing fluctuations arising from caching, memory allocation, and task scheduling [
47]. Employing a real-time operating system or a compiled deployment could minimize both absolute cost and variability, although such measures are not essential to meet the present operational constraints.
The per-step execution cost remains largely consistent across varying pedestrian crossing speeds, which is why it is characterized collectively rather than individually for each scenario; the mean solve time for each controller varies by less than 0.3 ms across the tested speeds. The only notable speed dependence is observed in the upper tail of the proposed controller. This is attributed to the higher closing rate, which keeps the barrier constraint active for an extended duration during the maneuver, resulting in a larger fraction of steps occurring in the constrained phase. Consequently, the most prolonged execution time is recorded at the highest crossing speed; however, the total per-step time remains well within the designated control period. These results corroborate the real-time feasibility of the online optimization process using OSQP and validate the integrated framework, demonstrating that the incorporation of a learned policy in conjunction with the quadratic programming safety filter does not hinder real-time operation.