                                    Safety-Polarized and Prioritized Reinforcement Learning



                                                                                     1

Table 5. The crash rates and episode rewards (mean and std), averaged over the last 10  training steps and six random seeds, of all

compared algorithms. SPOM achieves the lowest or one of the lowest crash rates while maintaining competitive episode rewards.





                                             TwoWay          Merge       Roundabout     Intersection      ACC             Circle

                      SPOM PER (ours)       0.073±0.011    0.043±0.008    0.055±0.027   0.086±0.025    0.163±0.011      0.038±0.010

                      SPOM (ours)           0.085±0.019    0.042±0.006    0.167±0.105   0.069±0.014    0.200±0.013      0.104±0.016

                      SafeQ                 0.104±0.018    0.050±0.007    0.090±0.056   0.091±0.020    0.351±0.013      0.255±0.021

                      Recovery              0.134±0.016    0.063±0.007    0.062±0.031   0.068±0.023    0.205±0.011      0.119±0.029

 Crash Rate ↓         RCDQN                 0.176±0.061    0.052±0.008    0.120±0.029   0.113±0.028    0.350±0.009      0.268±0.018

                      RewsDQN               0.209±0.097    0.042±0.008    0.122±0.067   0.130±0.027    0.344±0.018      0.350±0.043

                      DQN                   0.198±0.079    0.074±0.014    0.115±0.047   0.118±0.012    0.351±0.008      0.288±0.035

                      RESPO                 0.704±0.391    0.228±0.247    0.047±0.104   0.403±0.169    0.932±0.062      0.239±0.017

                      PPOLag                0.509±0.354    0.406±0.276    0.140±0.184   0.355±0.209    0.729±0.043      0.148±0.022

                      SPOM PER (ours)       10.124±0.370   1.883±0.035    0.985±0.324   4.433±0.601    78.393±0.558   279.432±2.865

                      SPOM (ours)           10.520±0.389   1.823±0.028    0.947±0.218   4.978±0.210    78.337±0.551   279.432±2.865

                      SafeQ                 10.636±0.163   1.929±0.043    0.799±0.111   5.115±0.112    73.013±0.551   268.774±4.754

                      Recovery               6.392±0.279   1.897±0.028    0.637±0.413   3.208±1.351    78.296±0.320   216.606±91.921

 Episode Reward ↑     RCDQN                 10.217±0.567   1.935±0.049    0.818±0.256   4.844±0.818    73.026±0.818   273.679±1.308

                      RewsDQN                9.775±0.472   1.764±0.075    0.827±0.177   4.932±0.286    72.571±1.084   209.573±85.724

                      DQN                   10.284±0.250   1.919±0.040    0.789±0.292   5.125±0.121    73.278±1.077   270.404±5.609

                      RESPO                  6.099±3.568   0.900±0.384    0.071±0.103   3.294±1.476    22.396±7.868    7.179±1.662

                      PPOLag                 4.860±3.870   0.535±0.690    0.298±0.352   3.024±1.812    37.752±2.766    25.753±4.506





Comparison with CMDP-based approach RCDQN, RESPO, and PPOLag: The DQN-based RCDQN has stable perfor-

mance but fails to guide the policy effectively in terms of safety due to sparse cost signals. The PPO-based algorithms,

RESPO and PPOLag, suffer from high variance and fail to optimize either safety or rewards effectively. In highway-env,

their performance shows inconsistency between crash rates and rewards, and in ACC and Circle, they converge prematurely

to suboptimal solutions. Overall, CMDP-based methods struggle with sparse cost signals in our tasks, leading to subpar

performance compared to SPOM PER and SPOM.

Comparison with reward-shaping approach RewsDQN: While RewsDQN achieves competitive crash rates in some tasks

like Merge, its episode rewards are significantly lower. In Circle, RewsDQN fails to achieve comparable crash rates and

rewards as SPOM PER and SPOM, demonstrating the difficulty of balancing safety through reward shaping alone.

Note on vanilla DQN: Vanilla DQN can reduce crash rates to a certain level due to early termination in tasks. However, its

performance in balancing crash rates and rewards falls far behind SPOM PER and SPOM, which consistently achieve

better safety and reward trade-offs.



C.3.2. A DDITIONAL A BLATION S TUDIES

We provide the training curves of our ablation studies for the remaining four tasks in Figure 8.

Once again, we can find the over-conservative phenomena of direct optimal action masking “OAM” in Merge and Roundabout

(the first two rows in Figure 8), where “OAM” shares similar crash rates as others while it significantly sacrifices the rewards

to achieve the same level of safety. This shows the hurt brought by optimal action masking on an immature ψ network in the

early stage of training, which is also the reason of suboptimality of the strong polarization effect given by “xp”. And the

weak polarization effect given by “log” cannot ensure to be safe enough. But in ACC and Circle, all ablation algorithms

have competitive safety and reward performance (the last two rows in Figure 8).



C.3.3. A DDITIONAL R ESULTS C OMPARED TO PPOBARRIER

We present the training curves on the four highway benchmarks, comparing our methods against the baseline PPOBarrier,

in Figure 9.









                                                                21

