Diffusion-based planners capture the multimodality of human driving behavior well, yet covariate shift in closed-loop driving can lead them to generate trajectories that result in collisions or road departures. Reinforcement learning (RL) finetuning offers a promising way to tackle this issue, but applying it to diffusion-based planners is complicated by their iterative denoising process and receding-horizon execution. We find that small adjustments to the planned trajectories can prevent many of these unsafe outcomes. Motivated by this observation, we propose PlanNudge, which preserves the learned planning capabilities of a pretrained diffusion-based planner by freezing it and trains a lightweight policy that we call the nudge policy. At each planning step, the nudge policy outputs a nudge, a two-dimensional adjustment of the speed and curvature of the plan from the frozen planner. The nudge policy is a multilayer perceptron that predicts the nudge in a single forward pass, and both dimensions directly change the motion of the vehicle, so standard off-policy RL can train it in closed-loop simulation. We evaluate PlanNudge on nuPlan, a large-scale autonomous driving benchmark based on real-world driving data. In all six settings, PlanNudge matches or exceeds the final scores of the previous state-of-the-art RL finetuning method while using about one sixth as many environment steps and less than one fifth as much model compute. We also provide guidelines for reward shaping, value learning, and exploration when using off-policy RL to post-train autonomous driving planners. Our results are reported with means and standard deviations over six training runs. Project page: https://zerlinwang.github.io/plannudge/
Figures & tables
Figure 3: Overview of PlanNudge. Starting from random noise, the frozen pretrained diffusion-based planner samples a base plan with K denoising steps. The nudge policy reads the ego state, the pooled scene features, and the beginning of the base plan, and outputs a bounded 2-D action, which the plan transform converts into a speed offset and a curvature offset of the base plan. The simulator follows the nudged plan for one replanning interval Δt before it returns the next scene observation and the planner replans. Each transition is stored in a replay buffer. The diffusion-based planner is a part of the environment and is never called during RL agent updates.
Val14
Test14-hard
Test14-random
RL
Type
Method
NR
R
NR
R
NR
R
steps
Expert
Log replay
93.53
80.32
85.96
68.80
94.03
75.86
–
Imitation learning
PLUTO [ 7 ]
88.89
78.11
70.03
59.74
89.90
78.62
–
Diffusion Planner [ 60 ]
89.87
82.80
75.99
69.22
89.19
82.93
–
Flow Planner [ 49 ]
90.43
83.31
76.47
70.42
89.88
82.93
–
DFP [ 58 ]
90.33
79.97
76.91
63.56
90.69
81.96
–
Table 1: Closed-loop scores on nuPlan, official devkit. Starting from the Diffusion Planner (DDIM), open-loop finetuning from logs and PlanNudge are implemented by us and reported as the mean and standard deviation over six runs, with the change in brackets. Bold denotes the highest result in each setting. Red: worse than the pretrained planner. Blue: an improvement of more than 1 point.
Figure 4: Qualitative results under non-reactive (a) and reactive (b) traffic. Upper row: the pretrained planner, whose drive ends at the failure (red outline). Lower row: PlanNudge at the same times. Dashed: plans, drawn for their first 4 s. Solid: driven paths. Gray: the pretrained planner. Orange: PlanNudge. The curves show the speed and curvature offsets. The numbers 1 to 4 mark the times of the four snapshots on the curves. The red dashed line marks the pretrained planner’s failure. After it, the offsets return toward zero.
Figure 5: PlanNudge on two planners and two training traffic modes, official devkit. Score change over the pretrained planner, mean and standard deviation over six runs.
Figure 6: Learning curves on Val14, our simulator. Change over the pretrained planner against environment steps for PlanNudge and variants, mean and standard deviation (band) over six runs.
Terminal score
+ Safety penalty (ours)
Change on Val14
NR
R
NR
R
Collision
+0.3
+0.3
+0.5
+0.7
Time-to-collision
+0.7
+0.5
+1.1
+1.0
Drivable
+0.4
+0.8
+0.5
+0.9
Score
+0.79 ± 0.14
+1.62 ± 0.13
+1.09 ± 0.26
+1.78 ± 0.27
Table 2: Change over the pretrained planner on Val14 with different reward functions, our simulator.
Figure 7: Value learning with 1-step and 10-step returns, our simulator. (a) Bias of the critic, its Q-value minus the Monte Carlo return of its own drives on the unseen scenarios of Val14 R, in buckets of steps remaining. (b) Change over the pretrained planner.
Change on Test14-hard R
Without events
+ Speed events (ours)
Stalls released
9%
29%
Progress gate
−0.1
+0.9
Progress
+0.2
+0.3
Collision
+1.2
+1.7
Time-to-collision
+1.9
+2.1
Score
+3.25 ± 0.34
+4.55 ± 0.64
Table 3: The importance of speed events, our simulator. Change over the pretrained planner on Test14-hard R.
Figure 8: Different exploration noise, our simulator. The 72 Val14 NR failures of the pretrained Diffusion Planner are rerun with a zero nudge plus the noise at the training size. (a) Share of the failures that reach a score of at least 50 at least once. (b) Final displacement error (FDE) from the planner’s own drive.
Parameter
Value
Parameter
Value
Parameter
Value
Nudge policy
RL
Data collection
Input: pooled encoder tokens
192
Critics M
10
Environments
32
Input: ego state
10
Target subset ∣S∣
2
Episodes per iteration
32
Input: first 2 s of the plan
20×4
Discount γ
0.99
Episode length
at most 150 steps
Speed bound vmax
1.0 m/s
n -step
10
Control rate
10 Hz
Curvature bound κmax
0.05 m -1
Batch size
2,048
Warm-up transitions
20,000
Table 4: Hyperparameters of PlanNudge.
Figure 10: Temporally correlated random nudges can avoid closed-loop failures. For each condition, we perform 50 closed-loop rollouts in our simulator for each of the 72 Val14 NR scenarios in which the frozen Diffusion Planner fails. For a rollout budget of k , the curves show the fraction of these scenarios in which at least one of the k rollouts achieves a score of at least 50. Solid lines correspond to temporally correlated random nudges to the planned speed and curvature at three noise scales, expressed relative to the corresponding action bounds. The dashed line resamples the planner with new diffusion noise, without applying a nudge.
Val14
Test14-hard
Test14-random
RL
Method
NR
R
NR
R
NR
R
steps
HDP [ 61 ] (our evaluation)
89.74
82.18
75.91
69.06
88.02
81.94
–
PlanNudge, trained with non-reactive traffic
91.62 ± 0.28 (+1.88)
83.41 ± 0.15 (+1.23)
78.41 ± 0.58 (+2.50)
69.77 ± 0.44 (+0.71)
90.78 ± 0.88 (+2.76)
83.36 ± 0.36 (+1.42)
4.6 M
PlanNudge, trained with reactive traffic
91.61 ± 0.28 (+1.87)
83.49 ± 0.24 (+1.31)
78.59 ± 0.30 (+2.68)
70.46 ± 0.27 (+1.40)
91.35 ± 0.48 (+3.33)
83.94 ± 0.48 (+2.00)
8.9 M
Diffusion Planner, DDIM (our evaluation)
90.00
83.22
75.74
68.93
89.99
82.70
–
PlanNudge, trained with non-reactive traffic
91.72 ± 0.37 (+1.72)
84.47 ± 0.28 (+1.25)
78.16 ± 0.71 (+2.42)
72.00 ± 0.92 (+3.07)
91.38 ± 0.53 (+1.39)
85.37 ± 0.51 (+2.67)
7.7 M
Table 5: PlanNudge on two planners and two training traffic modes, official devkit. PlanNudge rows: the mean over six training runs with its standard deviation after it, each run evaluated as its own policy and its score rounded to two decimals before averaging. In brackets, the change of the mean over the pretrained planner, whose Diffusion Planner row is the mean over six devkit runs with different sampling-noise seeds. The last column counts the environment steps of RL training up to the reported checkpoint.
Val14
Test14-hard
Test14-random
Variant
NR
R
NR
R
NR
R
PlanNudge (ours)
+1.09 ± 0.26 (19.8 / 5.5)
+1.78 ± 0.27 (28.8 / 6.5)
+1.63 ± 0.27 (7.8 / 3.5)
+4.55 ± 0.64 (16.2 / 1.3)
+1.17 ± 0.58 (5.0 / 3.3)
+3.45 ± 0.52 (9.8 / 0.3)
(a) Reward
Terminal score only
+0.79 ± 0.14 (13.5 / 4.0)
+1.62 ± 0.13 (24.0 / 4.3)
+1.64 ± 0.42 (5.8 / 1.8)
+3.57 ± 0.81 (12.2 / 1.3)
+1.14 ± 0.72 (4.0 / 1.7)
+3.38 ± 0.28 (10.3 / 0.5)
(b) Value learning
1-step returns
+0.08 ± 0.12 (4.0 / 3.0)
+0.34 ± 0.28 (6.7 / 2.2)
+0.65 ± 0.25 (1.8 / 0.2)
+0.70 ± 0.30 (2.5 / 0.7)
+0.44 ± 0.30 (1.5 / 0.7)
+0.93 ± 0.73 (2.5 / 0.0)
Table 6: The six settings of every ablation row, our simulator. Diffusion Planner with the DDIM solver. Each cell: change over the pretrained planner, mean ± SD over runs, and in brackets the failures fixed (new score at least 50) / the other scenarios broken (new score below 50) per run. Six runs per row.
Method
R score
Collision
TTC
Drivable
Progress gate
Progress
Speed
Comfort
NR score
Log replay
68.80
77.02
69.85
95.96
100.00
98.48
94.12
99.26
85.96
Pretrained planner
68.93
88.02
80.57
95.28
91.24
75.59
97.55
87.44
75.74
Open-loop finetuning from logs
70.42 ± 0.20 ( +1.49 )
86.76 ± 0.17 ( −1.26 )
79.29 ± 0.30 ( −1.28 )
95.41 ± 0.31 (+0.13)
94.24 ± 0.19 ( +3.00 )
78.67 ± 0.42 ( +3.08 )
97.53 ± 0.13 ( −0.02 )
88.66 ± 0.28 ( +1.22 )
76.39 ± 0.89 (+0.65)
PlanNudge (ours)
73.44 ± 0.63 ( +4.51 )
90.04 ± 0.47 ( +2.02 )
83.58 ± 0.68 ( +3.01 )
97.00 ± 0.15 ( +1.72 )
93.32 ± 0.43 ( +2.08 )
76.18 ± 0.31 (+0.59)
97.58 ± 0.05 (+0.03)
87.69 ± 0.39 (+0.25)
77.16 ± 0.32 ( +1.42 )
Table 7: Sub-metrics on Test14-hard, official devkit. Bold denotes the highest result of each column, excluding the log replay. Red: a change below zero. Blue: a change above 1 point.
Measured cost
FLOPs
Diffusion Planner, outside the denoising loop ( E )
2.52 G
Diffusion Planner, one DDIM step of the DiT decoder ( D )
0.117 G
Nudge agent, actor forward, one sample ( a )
2.24 M
Nudge agent, one critic forward, one sample ( c )
8.68 M
Per environment step
GFLOPs
PlanNudge: collection ( E+5D+a )
3.1
Table 8: Estimated model FLOPs of RL training per run. Measured with the FLOP counter of PyTorch on one scene. A backward pass counts as two forward passes. M, G, and P denote 106 , 109 , and 1015 floating-point operations (FLOPs). PlanNudge: the settings of Tab. 4 . PlannerRFT: its Table A1 (group size 8, 5 DDIM steps, 128 environments × 32 steps per iteration, GRPO mini-batch 4,096, 6 steps per epoch, 1 epoch). One mini-batch sample is taken as one candidate trajectory with its five denoising steps, as in DiffusionDriveV2 [ 62 ] . The exploration policy of PlannerRFT, whose size is not stated, and its PPO updates are not counted, which favors PlannerRFT.
Figure 11: A left turn, non-reactive traffic. The pretrained planner does not turn sharply enough and leaves the drivable area at 8.6 s. PlanNudge steers further left.
Figure 12: A vehicle enters the ego vehicle’s lane from the left, non-reactive traffic. PlanNudge steers right.
Figure 13: A vehicle crosses ahead, non-reactive traffic. PlanNudge slows down to let it pass.
Figure 14: A vehicle beside the ego in the right lane, reactive traffic. The pretrained planner collides with it at 10.4 s. PlanNudge steers left and passes it.
Figure 15: A queue departs at an intersection, reactive traffic. The pretrained planner follows too slowly. PlanNudge increases the planned speed. The left panel shows the vehicle speed in both drives, gray for the pretrained planner and orange for PlanNudge.
Figure 16: Starting from a standstill, reactive traffic. The pretrained planner barely moves until the end of the scenario. PlanNudge increases the planned speed and departs. The left panel shows the vehicle speed in both drives, gray for the pretrained planner and orange for PlanNudge.
University of Science and Technology of China · 3Hefei Institutes of Physical Science, Chinese Academy of Sciences · 2Yinwang Intelligent Technology Co., Ltd