Manuscript Offprint
arXiv:2611.22998Residual-Guided Lightweight Reinforcement Learning for Risk-Aware Trajectory Selection with a Frozen World Model
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In automated driving, world models provide future scene predictions for evaluating candidate trajectories, but fixed selection rules may not capture scene-dependent trade-offs. We propose a residual-guided reinforcement learning (RL) framework for lightweight trajectory selection with a frozen world model and a fixed candidate bank. The framework uses proximal policy optimization (PPO) to fine-tune a joint policy over candidate selection and bounded trajectory residuals. A context-conditioned ranking network learns candidate preferences from feedback obtained by evaluating local perturbations of the selected trajectories. At inference, the selector combines learned preference and predicted risk ranks using fixed weights and returns the stored coordinates of the selected candidate trajectory. Fine-tuning updates 16,106 parameters across the actor and critic, while the deployed selector retains only the 11,725-parameter ranking network, with the residual branch and critic used exclusively during training. In open-loop evaluation on the nuScenes validation set, the method reduces average Euclidean trajectory error (L2) by 3.99% relative to the RiskWorld model baseline without RL-based selection. Under matched budgets for feedback accesses and actor updates, residual exploration reduces L2 by 0.83% relative to the categorical PPO variant trained without residuals. The method also maintains lower L2 than RiskWorld when risk features are removed or shuffled.
Index Terms:
Autonomous driving, reinforcement learning, trajectory selection, frozen world models, residual exploration.
Existing methods address candidate generation and selection in different ways. SparseDrive [sparsedrive] uses collision-aware rescoring, while DiffusionDrive [diffusiondrive] generates multimodal candidates through truncated diffusion. Li et al. [scoring] train scorers over frozen planners using perturbations of logged human trajectories, whereas WorldRFT [worldrft] applies reinforcement learning (RL) to fine-tune continuous trajectory predictions. A remaining challenge is to train a lightweight selector through learned local exploration around the planner’s own candidates, while keeping the world model frozen and returning a preferred candidate at inference.
In this paper, we propose residual-guided RL to train a lightweight selector using feedback from local trajectory variations. A context-conditioned ranking network combines candidate features with pooled candidate-set information to learn preferences and risk coefficients. During training, a joint policy samples a candidate and a bounded residual. Proximal policy optimization (PPO) [ppo] learns from feedback on the resulting trajectory, evaluated against logged futures using accuracy, progress, smoothness, and safety costs. At inference, the residual head and critic are removed, and a fixed weighted sum of preference and risk ranks selects an original candidate. The main contributions are as follows:
- A lightweight decision layer learns context-dependent candidate preferences while keeping the world model and candidate generator frozen. Deployment adds only an 11,725-parameter ranking network.
- A joint candidate-residual policy learns from local trajectory variations during training while preserving candidate geometry at inference. Fine-tuning updates only 16,106 actor and critic parameters in total.
- Open-loop evaluation on the nuScenes validation set shows a 3.99% reduction in average L2 relative to the RiskWorld baseline [riskworld], together with a lower collision rate. At matched feedback and update budgets, residual exploration further reduces L2 by 0.83% relative to categorical PPO without residuals. The method also retains lower L2 than RiskWorld when risk features are zeroed or shuffled.

Fig. 1: Overview of residual-guided reinforcement learning. (a) The frozen RiskWorld [riskworld] backbone fuses the RiskExpert and BEV features in GeoBEV [geobev]. (b) The ranking network predicts candidate scores. (c) Joint candidate–residual sampling provides feedback for PPO training. (d) Rank fusion selects an original candidate at inference. Training and inference share the ranking network in (b). MSE: mean squared error; KL: Kullback–Leibler divergence.
II Related Work
II-A World Models and Candidate Planning
World models inform driving decisions through future scene prediction. DriveDreamer [drivedreamer] generates driving videos and predicts actions from real-world scenes. RiskWorld [riskworld] combines shared occupancy forecasting and structured risk representations for selective trajectory intervention. ResWorld [resworld] models dynamic regions through temporal residuals and refines trajectories using predicted future representations.
For multimodal planning, SparseDrive [sparsedrive] combines sparse scene representations with collision-aware candidate rescoring. DiffusionDrive [diffusiondrive] uses multimodal anchors and truncated diffusion for efficient candidate generation. Li et al. [scoring] train scorers over frozen generative planners using lateral and longitudinal perturbations of logged human trajectories.
II-B Learnable Costs and Decision Representations
Trajectory evaluation requires representations of motion preferences and driving costs. Differentiable integrated prediction and planning (DIPP) [dipp] jointly trains motion prediction and cost weights through a differentiable nonlinear planner. Deep Sets [deepsets] combines shared element-wise mappings with symmetric aggregation for permutation-invariant representations and permutation-equivariant outputs. Weighted rank aggregation [rank] integrates ordered preferences from multiple classifier predictions.
II-C Policy Optimization and Driving Evaluation
RL has been used to refine existing controllers and fine-tune trajectory planners. Residual RL [residualrl] combines a conventional feedback controller with a learned correction to the executed control signal. PPO [ppo] uses a clipped probability-ratio objective to discourage large policy updates. For automated driving, WorldRFT [worldrft] fine-tunes continuous trajectory predictions using Gaussianization, collision-aware rewards, and group-based policy optimization. DiffusionDriveV2 [diffusiondrivev2] combines scale-adaptive exploration with intra-anchor and inter-anchor policy updates for multimodal diffusion planning. Planning performance is commonly assessed using open-loop evaluation on the nuScenes [nuscenes, stp3, vad] benchmark, reporting trajectory displacement and collision metrics.
These aforementioned studies improve future scene prediction, trajectory generation, and learned scoring. However, the benefit of policy-guided local exploration for a compact selector with a frozen prediction stack and fixed candidate bank remains less clear. In this paper, we investigate this gap with residual-guided PPO, using feedback from local variations of policy-selected candidates to learn context-dependent candidate preferences.
TABLE I: Evaluation and comparison of Development-stage open-loop planning performance on nuScenes.
| Method | Input | Aux. Sup. | Params. (M) | L2 (m) | CR (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 s | 2 s | 3 s | Avg. | 1 s | 2 s | 3 s | Avg. | ||||
| UniAD [uniad] | C | M+B+Mo+Tr+O | 125.00 | 0.44 | 0.67 | 0.96 | 0.69 | 0.04 | 0.08 | 0.23 | 0.12 |
| VAD [vad] | C | M+B+Mo | 58.36 | 0.41 | 0.70 | 1.05 | 0.72 | 0.07 | 0.17 | 0.41 | 0.22 |
| SparseDrive-S [sparsedrive] | C | M+B+Mo+Tr | 85.90 | 0.29 | 0.58 | 0.96 | 0.61 | 0.01 | 0.05 | 0.18 | 0.08 |
| DiffusionDrive [diffusiondrive] | C | M+B+Mo+Tr | 92.04 | 0.27 | 0.54 | 0.90 | 0.57 | 0.03 | 0.05 | 0.16 | 0.08 |
| RiskWorld [riskworld] | C+M+GT-Tr | Risk/O+Coll. | 91.099 | 0.182 | 0.374 | 0.660 | 0.405 | 0.068 | 0.083 | 0.147 | 0.099 |
| RiskWorld + ER | C+M+GT-Tr | Risk/O+Coll. | 91.110 | 0.179 | 0.369 | 0.653 | 0.400 | 0.068 | 0.083 | 0.156 | 0.103 |
| RiskWorld + PPO [ppo] | C+M+GT-Tr | Risk/O+Coll. | 91.110 | 0.176 | 0.360 | 0.636 | 0.391 | 0.068 | 0.083 | 0.150 | 0.100 |
| RiskWorld + A3C [a3c] | C+M+GT-Tr | Risk/O+Coll. | 91.110 | 0.178 | 0.363 | 0.641 | 0.394 | 0.088 | 0.106 | 0.158 | 0.117 |
| Ours w/o Residual | C+M+GT-Tr | Risk/O+Coll. | 91.110 | 0.177 | 0.362 | 0.639 | 0.393 | 0.068 | 0.083 | 0.152 | 0.101 |
| Ours with LoRA† | C+M+GT-Tr | Risk/O+Coll. | 91.111 | 0.176 | 0.360 | 0.634 | 0.390 | 0.068 | 0.083 | 0.143 | 0.098 |
| Residual-guided PPO (ours)† | C+M+GT-Tr | Risk/O+Coll. | 91.110 | 0.176 | 0.359 | 0.633 | 0.389 | 0.068 | 0.083 | 0.142 | 0.098 |
C: cameras; M: maps; GT-Tr: ground-truth actor states. B: 3D object bounding-box; Mo: motion; Tr: tracks; O: occupancy; Coll.: collisions. Aux. Sup. excludes ego-trajectory supervision. Params.: inference parameters (millions). Light blue backgrounds denote results in published studies with camera-only inputs, differing from those of the local experiments. RiskWorld [riskworld] is included as the fixed official reference, and all RL-based methods share the frozen prediction stack and candidate set. L2 rankings are computed separately within each group: darker blue and gray shading mark the 3 lowest distinct values in each column for the published and local results, respectively. Bold and underlining indicate the lowest and second-lowest values. For CR, only the lowest average value within each group is highlighted. Ties after rounding share formatting. : training-time residual exploration.
TABLE II: Planning performance under inference-time perturbations of RiskExpert features.
| Risk features | RiskWorld [riskworld] | Ours | ||
|---|---|---|---|---|
| L2 (m) | CR (%) | L2 (m) | CR (%) | |
| Original (Full) | 0.4054 | 0.0993 | 0.3893 | 0.0979 |
| Zeroed | 0.6399 | 0.2816 | 0.5698 | 0.2491 |
| Shuffled | 0.5004 | 0.2675 | 0.4636 | 0.2344 |
Metrics are averaged over 1, 2, and 3 s. The Original RiskWorld row uses the fixed official reference. Shaded bold entries mark the lower value in each row.

Fig. 2: Qualitative comparison on nuScenes: (a) nighttime road, (b) left turn, and (c) intersection. Each row shows six camera views, BEV trajectories, and a close-up. Crosses mark collisions; trajectory markers indicate 1, 2, and 3 s. FL/F/FR and RL/R/RR denote the front-left/front/front-right and rear-left/rear/rear-right cameras. Nighttime views are gamma-corrected with an exponent of 0.5 for visualization.
III Method
Fig. 1 shows the residual-guided RL framework. Frozen RiskWorld [riskworld] fuses the RiskExpert representation and the bird’s-eye-view (BEV) features from GeoBEV [geobev] into candidate-aligned inputs. A context-conditioned trajectory ranking network learns through PPO with joint candidate-residual feedback. At inference, rank fusion combines learned-score and predicted-risk ranks to select an original candidate. RiskWorld remains frozen throughout; residual exploration is confined to training.
III-A Decision Learning over Frozen Predictions
For each scene context , frozen RiskWorld provides trajectories , validity masks , and aligned features . Each trajectory possesses states at 0.5 s intervals. The features comprise 25 predictions and 39 state/navigation descriptors covering collisions, road risks, clearance, motion, and navigation. The prediction stack and candidate generator remain fixed.
We formulate adaptation as a one-step contextual decision. Given and , the actor samples a candidate and a conditional residual. An evaluator scores the resulting trajectory against logged futures, with surrounding actors following their recorded trajectories. The actor’s ranking network and residual head share features, while a separate critic estimates the context value. Only the actor and critic receive gradients.
Fig. 1 omits the context index . In panel (a), the RiskExpert representation and GeoBEV features are fused as , where is a learned feature correction computed from aligned visual features , risk features , and their coverage mask, and is a coverage-dependent gate.
III-B Context-Conditioned Trajectory Ranking
Ranking scores define the categorical training policy and enter rank fusion at inference. Features are standardized with fixed training statistics and split into and . Here, covers collision/off-road predictions at each step, while covers the remaining predictions and state/navigation features. To condition scores on the available alternatives, we concatenate with its mean over valid candidates:
Every context has a valid candidate. A shared multilayer perceptron (MLP) with two width- hidden layers and rectified linear unit (ReLU) activations maps to . The score head in Fig. 1 (b) produces outputs: a base preference and risk-weight offsets . The score is
where indexes the risk features. The learned coefficients act on standardized risk features and may be negative. Mean pooling is permutation-invariant. The shared mapping is permutation-equivariant, so reordering candidates reorders their scores. A masked softmax defines , assigning zero probability to invalid candidates.
III-C Joint Learning with Local Residual Feedback
Local residual exploration provides training feedback from trajectories near the selected candidate. An affine residual head maps to the mean of a diagonal Gaussian over the latent . The learned log-scale vector is shared across candidates and scenes and clamped to . The joint policy is
The residual head’s dependence on allows residual feedback to update the shared ranking features through the joint objective.
The sampled latent defines a bounded displacement (m), applied along the trajectory using the smoothstep weight , where . If the perturbed trajectory violates acceleration, curvature, or forward-motion constraints, a geometric projection progressively shrinks the displacement. Original candidate is used if no shrinkage step satisfies these constraints. The evaluator combines trajectory accuracy, progress, and smoothness with safety and road costs:
Here, denotes trajectory error, is a progress proxy, and is a motion-smoothness cost. The four components of are expressed as fractions and quantify collision exposure, any-collision events, road violations, and mean collision exposure under small translations. We fix and .
Each context supplies one valid candidate and conditional residual sampled from the old joint policy. The separate critic predicts a scalar value from the -dimensional mean of normalized valid-candidate features using an MLP with one width- hidden layer. Its pre-update prediction defines the advantage:
Advantages are standardized within each batch as , using the population standard deviation, and remain fixed during the update. The critic is trained with detached inputs and a separate optimizer, so value regression updates its own parameters.
PPO [ppo] updates the actor using the joint probability ratio :
The regularizer penalizes deviations from fixed reference policy, and denotes categorical entropy. The probability ratio is evaluated in latent space for the sampled candidate and latent under the current and old joint policies. The Jacobian of the shared transformation cancels in this ratio, while geometric projection affects only feedback evaluation. At inference, no residual is sampled or applied, and neither the critic nor the feedback evaluator is used.
III-D Risk-Aware Selection at Inference
The selector combines learned preference with raw collision predictions from the frozen world model. The risk signal is , where is the predicted collision probability for candidate at future step . Among valid candidates, scores and risks are converted to ranks and . Selection minimizes their weighted sum:
Scores and risks are mapped to a common ordinal scale using zero-based ranks obtained through two argsort operations. Ties in are resolved by selecting the lowest candidate index. We select through out-of-fold (OOF) evaluation on the training scenes, subject to an accuracy constraint. The selected value, , is fixed for all evaluation scenes (Fig. 1(d)). The output trajectory retains the selected candidate’s coordinates.
The actor contains 11,881 parameters, including 156 in the residual head, and the critic contains 4,225, giving a total of 16,106 trainable parameters during fine-tuning. At inference, the residual head and critic are removed, leaving the 11,725-parameter ranking network.
IV Experiments and Results
In this section, we evaluate the proposed selector against the fixed selection rule in RiskWorld [riskworld], assess the contribution of residual exploration under matched feedback and update budgets, and examine sensitivity to risk-feature perturbations.
IV-A Dataset and Metrics
Training and development use 698 scenes from nuScenes [nuscenes], split by scene into 18,989 fitting contexts and 4,779 internal-validation contexts. Open-loop evaluation uses 5,119 contexts with complete future annotations from the 150 nuScenes validation scenes, all excluded from training. Inputs comprise annotated actor states and maps; feedback is derived from logged future trajectories. We use the fixed official RiskWorld [riskworld] results as the reference. All learning methods in Table I share the same frozen predictions and candidates. Published results with camera-only inputs [uniad, vad, sparsedrive, diffusiondrive] are included only for complementary reference because their input settings differ from ours.
Following VAD [vad] and ST-P3 [stp3], we report Euclidean trajectory error (L2) and collision rate (CR, %), with collisions assessed against annotated agent boxes. At each horizon (1, 2, and 3 s), both metrics are averaged over all preceding time steps, including the horizon itself; Avg. is the mean of these three values. We average learning-based results over three training runs with matched random seeds across methods. We estimate 95% confidence intervals (CIs) with 2,000 paired scene-bootstrap resamples, preserving within-scene dependence. These intervals characterise variability across evaluation scenes conditional on the trained models. Relative changes are calculated from unrounded metric values.
IV-B Implementation Details
All learning-based methods are initialized from the same ranking-network checkpoint pretrained with RL feedback. The reference policy in (6) is held fixed at its initial parameters. All methods share feature normalization, candidate trajectories, the reward function, and the inference weight . Each method is fine-tuned independently and evaluated after its final update. We use AdamW [adamw] as the optimizer, with the learning rate and weight decay both set to . The PPO clipping parameter , KL weight , and entropy weight are set to 0.2, 0.1, and 0.01, respectively.
Learning objectives. During fine-tuning, ER, PPO, and A3C use feedback only from original candidates. Expected return (ER) enumerates valid candidates and maximizes their policy-weighted cached return without sampling actions. PPO [ppo] and four-worker asynchronous advantage actor–critic (A3C) [a3c] sample candidates and use critics. Our method and its low-rank adaptation (LoRA) [lora] variant also explore bounded residuals, as indicated by in Table I. LoRA freezes the ranking-network weights and trains rank-4 adapters on both hidden mappings, while retaining joint PPO, the critic, and residual exploration. Ours w/o Residual uses categorical PPO without residual exploration during fine-tuning.
Training budgets. Each cached-return read or residual-trajectory evaluation counts as one feedback access. Our method, its LoRA variant, and Ours w/o Residual each use 9,830,400 feedback accesses and 800 actor updates per run. ER uses 2,457,600 accesses per run; PPO and A3C each use 204,800 accesses and 800 actor updates. The residual and LoRA ablations use matched feedback and update budgets. Comparisons with ER, PPO, and A3C reflect differences in both the learning objective and feedback budget.
IV-C Main Results
Compared with the fixed official RiskWorld [riskworld] baseline, our method reduces average L2 from 0.405 m to 0.389 m, a relative reduction of 3.99% (Table I). The largest horizon-level improvement occurs at 3 s. The paired 95% CI for the L2 difference (ours minus RiskWorld) is m. The average CR point estimate decreases from 0.099% to 0.098%, with a corresponding 95% CI of percentage points for the difference.
PPO and A3C also reduce average L2 relative to the RiskWorld [riskworld] baseline, but their CR point estimates of 0.100% and 0.117%, respectively, exceed the reference value. Our method achieves lower average L2 and CR point estimates than both baselines under the same frozen-candidate interface, using a slightly larger feedback budget.
Fig. 2 illustrates how candidate selection changes lateral position, turning curvature, and timing. On the nighttime road (a), absolute lateral-coordinate error at 3 s decreases from 5.52 to 1.22 m. In the left-turn scenario (b), our method selects a candidate with adjusted turning curvature; at the intersection (c), it selects one with adjusted forward timing. Evaluated against recorded actor trajectories, these candidates avoid the collisions as in the RiskWorld baseline at 2.5 s and 3 s, respectively.
IV-D Ablation Studies
Residual exploration. Relative to the RiskWorld [riskworld] baseline, Ours w/o Residual achieves lower average L2 but a higher CR point estimate (0.101% versus 0.099%). With matched feedback and update budgets, adding residual exploration further reduces average L2 by 0.8% and lowers the CR point estimate to 0.098%. Both variants share the same initialization and return original candidate trajectories at inference. During fine-tuning, feedback from residual trajectories also contributes to updates of the shared ranking features.
Low-rank adaptation (LoRA). LoRA uses 65.5% fewer trainable actor and critic parameters than the full method. Its average L2 is 0.001 m higher, and its average CR matches that of the full method (Table I). Both point estimates remain below the corresponding RiskWorld [riskworld] reference values.
IV-E Sensitivity to Risk-Feature Perturbations
Following RiskWorld [riskworld], we hold all model weights fixed during the risk-feature perturbation tests. Original (Full) uses unperturbed inputs. Zeroed tests reliance on risk information by setting the RiskExpert representation ( in Fig. 1(a)) to zero before fusion. Shuffled tests scene correspondence by exchanging representations across contexts while preserving each receiving context’s validity mask. Both perturbations increase L2 and CR for both methods (Table II). Compared with RiskWorld [riskworld], our method retains lower point estimates for both metrics, with L2 of 0.5698 versus 0.6399 m under Zeroed and 0.4636 versus 0.5004 m under Shuffled.
V Conclusion
This paper presents a residual-guided RL method for lightweight trajectory selection with a frozen world model and candidate generator. Joint candidate-residual sampling provides local trajectory feedback for training a context-conditioned ranker. At inference, the compact ranking network combines learned preference and predicted risk ranks to select an original candidate and return its stored coordinates. On nuScenes, the method reduces average open-loop Euclidean trajectory error (L2) by 3.99% relative to the fixed official RiskWorld [riskworld] reference. Matched-budget ablations show a further improvement from residual exploration over categorical PPO without residuals. The advantage regarding L2 error over the RiskWorld [riskworld] baseline also persists when risk features are zeroed or shuffled.
We evaluate the method in an open-loop setting with a single backbone and dataset, using annotation-derived actor states and maps. Future work should prioritise reactive closed-loop evaluation to assess executed driving performance and interactions with other road users. Evaluation across additional backbones and datasets with perception-derived inputs would assess transfer and robustness to perception errors and distribution shifts. Further work includes adaptive candidate generation for better coverage in challenging scenes and broader evaluation across training runs and rare-event scenarios to characterise collision outcomes.