Current trajectory prediction models are primarily trained in an open-loop manner, which often leads to covariate shift and compounding errors when deployed in real-world, closed-loop settings. In this work, we propose a closed-loop training paradigm for receding-horizon ego prediction and identify two design choices that are critical for it to succeed. First, closed-loop supervision must be on-policy: each predicted mode is rolled out and supervised only from the states its own execution produced, preserving the prediction accuracy that cross-mode supervision would otherwise degrade. Second, gradients must not flow across the executed state transition, as backpropagating through these transitions allows the model to retroactively adjust an earlier prediction so that the resulting state is easier to predict from, mathematically regretting a mistake rather than learning to recover from it. We show empirically that this shortcut couples the learned policy to the specific replanning rate used during training and degrades at other rates, whereas detaching the gradient forces the model to rectify drift instead, allowing it to generalize across replanning rates unseen during training. Evaluated across three benchmarks (nuScenes, DeepScenario, and Argoverse 2) and two architectures, a decoder-only adaptation of LMFormer and an unmodified implementation of QCNet, our approach matches open-loop baselines under single-shot evaluation and improves with higher replanning rates, reducing collisions by up to 35% and off-road rates by up to 67%.
Figures & tables
Fig. 1 : On-policy closed-loop rollout for a single predicted mode. At t=0 the model produces a full Tpred -horizon prediction from the logged state (open-loop sample). The first Tsim seconds are executed, advancing the ego to a drifted state; the model then re-predicts from this self-induced state (closed-loop sample at t=Tsim ). The process repeats at t=2Tsim . Surrounding agents advance via log replay. Gradients are detached at each state transition (Sec. III-B ), so each planning cycle is supervised independently. Every resulting prediction is supervised against the static ground truth over its remaining horizon (Green).
Eval
Model
k=1
k=5
OffRoad% ↓
Tsim
Col% ↓
minFDE ↓
minADE ↓
MR ↓
6.0(s)
OL
2.97±.08
7.17±.12
1.14±.01
0.50±.01
1.02±.05
CL
2.96±.10
7.17±.14
1.15±.02
0.51±.01
0.95±.04
2.0(s)
OL
2.49±.14
7.18±.14
1.13±.01
0.50±.01
1.13±.12
CL
2.38±.10
6.96±.13
1.11±.02
0.47±.01
0.86±.07
0.5(s)
OL
3.95±.19
8.37±.21
1.56±.03
0.66±.02
5.65±.69
TABLE I : OL vs. CL training with LMFormer-D on nuScenes . The CL advantage is negligible under single-shot evaluation and grows monotonically with the replanning rate.
Eval
Model
k=1
k=5
OffRoad% ↓
Tsim
Col% ↓
minFDE ↓
minADE ↓
MR ↓
6.0(s)
OL
2.23±.30
7.50±.34
1.10±.05
0.45±.04
7.26±.88
CL
1.90±.28
6.84±.23
1.19±.07
0.49±.02
6.03±.90
2.0(s)
OL
1.75±.05
7.63±.28
1.24±.06
0.48±.02
5.64±.58
CL
1.33±.24
6.99±.31
1.24±.14
0.44±.05
4.72±1.45
0.5(s)
OL
4.46±.20
12.61±.83
3.22±.07
0.90±.02
22.28±4.04
TABLE II : OL vs. CL training on DeepScenario . Denser, more interactive scenarios amplify the gains of CL at higher replanning rates.
Eval
Model
k=1
k=6
OffRoad% ↓
Tsim
Col% ↓
minFDE ↓
minADE ↓
MR ↓
6.0(s)
OL
1.64±.09
4.44±.04
0.76±.01
0.18±.00
11.76±.29
CL
1.69±.06
4.75±.05
0.75±.00
0.19±.00
11.99±.12
2.0(s)
OL
1.98±.04
5.47±.25
0.93±.03
0.29±.03
13.66±.50
CL
1.87±.06
5.40±.13
0.89±.01
0.28±.00
13.13±.52
0.5(s)
OL
2.84±.14
8.35±.47
1.30±.01
0.52±.03
16.67±.67
TABLE III : OL vs. CL training with QCNet on Argoverse 2 . CL improves mean of reported metrics at Tsim=0.5\text{,}\mathrm{s}$$
Fig. 2 : Collision rate vs. rollout duration on nuScenes. Under single-shot evaluation (left) the OL and CL curves coincide. At Tsim=0.5\text{,}\mathrm{s}$$ (right) the curves are indistinguishable for the first 1.5s and then diverge, reaching a 1.7 pp gap at 6s . The gap is therefore not a constant improvement in prediction quality but a difference in the rate at which error compounds.
Fig. 3 : Per-signal comfort violation rate at Tsim=0.5\text{,}\mathrm{s}$$ averaged over all five modes and twelve timesteps. Lateral violations are negligible for both. Longitudinal acceleration is comparable, however, longitudinal jerk is substantially lower for CL, indicating no corrective jerk from supervising against the original logged trajectory. Error bars: ±1σ .
Eval
Policy
k=1
k=5
OffRoad% ↓
Tsim
Col% ↓
minFDE ↓
minADE ↓
MR ↓
6.0(s)
Off-
2.83±.20
7.02±.12
1.15±.00
0.50±.01
1.06±.04
On-
2.96±.10
7.17±.14
1.15±.02
0.51±.01
0.95±.04
2.0(s)
Off-
1.92±.04
7.60±.01
1.28±.02
0.58±.02
1.42±.02
On-
2.38±.10
6.96±.13
1.11±.02
0.47±.01
0.86±.07
0.5(s)
Off-
3.50±.05
12.51±.83
2.35±.11
0.77±.02
2.47±1.07
TABLE IV : Off- vs. on-policy closed-loop rollout during training (nuScenes, three seeds). On-policy rollout dominates every displacement and compliance metric at Tsim≤2.0\text{,}\mathrm{s}$$ .
Fig. 4 : Differentiable training produces a frequency-specific policy. Collision rate over a 6s rollout versus evaluation replanning period for CL models trained at three different replanning periods. The Diff model’s minimum collision rate (red) tracks its training Tsim in every panel. In contrast, Non-Diff models (blue) generalize better to higher replanning rates, with the Tsim=2.0\text{,}\mathrm{s}$$ variant achieving the lowest overall collision rates.
Eval
Sim.
k=1
k=5
OffRoad% ↓
Tsim
Col% ↓
minFDE ↓
minADE ↓
MR ↓
6.0(s)
Scene
2.89±.11
7.22±.21
1.15±.01
0.51±.01
0.94±.07
Log
2.96±.10
7.17±.14
1.15±.02
0.51±.01
0.95±.04
2.0(s)
Scene
2.24±.10
6.93±.24
1.11±.01
0.47±.01
0.78±.08
Log
2.38±.10
6.96±.13
1.11±.02
0.47±.01
0.86±.07
0.5(s)
Scene
3.35±.44
7.85±.12
1.43±.05
0.59±.02
2.14±.37
TABLE V : Log-replay vs. goal-conditioned scene prediction during training on nuScenes. Differences are within or close to the seed spread.
Models
Prediction Metrics
Model Efficiency
k=5
k=1
OffRoad
Parameters
FLOPS
minFDE ↓
minADE ↓
MR ↓
minFDE ↓
minADE ↓
MR ↓
Rate ↓
(mil)
(GFLOPS)
LMFormer 1
2.145
1.155
0.500
7.114
3.136
0.832
0.010
2.234
3.365
LMFormer-D 1
2.141
1.141
0.492
7.069
3.152
0.829
0.011
1.207 (-45%)
1.249 (-62%)
TABLE VI : Effect of the decoder-only design on nuScenes. Prediction quality is preserved while parameters and FLOPs are roughly halved and thirded.
Fig. 5 : Qualitative comparison of OL vs. CL rollouts with different replanning periods . While the OL model accumulates lateral drift and departs the lane, the CL model recovers lane alignment (bottom). Additionally, the CL ego decelerates for a leading vehicle during a right turn (top).
Aalborg University Aalborg, Denmark · Chongqing Universtiy of Posts and Telecommunications Chongqing, China · East China Normal University Shanghai, China +1