arXiv:2609.31383cs.ROSep 2026

Manuscript Offprint

arXiv:2609.31383

Guiding End-to-End Driving Models with Endpoint-Constrained Trajectory Optimization

Brayden Zhang, Mahsa Golchoubian, Igor Gilitschenski, Boris Ivanovic, Kashyap Chitta

Brayden Zhang 1^{1}, Mahsa Golchoubian 1,2^{1,2}, Igor Gilitschenski 1,2^{1,2}, Boris Ivanovic 3^{3}, and Kashyap Chitta 4,5∗^{4,5*}

t = 0.0 s

t = 2.5 s

t = 5.0 s

Figure

Fig. 1: Endpoint-Constrained Optimization (ECO) in HUGSIM. Top: Front-camera views comparing the base VaVAM policy against VaVAM + ECO. At t = 0 the sampled base plan (red) exhibits lateral inconsistencies. ECO retains the endpoint and starts from the executed state while optimizing the waypoints between them into a smooth trajectory (blue). In the resulting closed-loop rollouts, base VaVAM later collides, whereas VaVAM + ECO completes the route. Bottom: Bird's-eye view of the same rollouts, where ECO allows the vehicle to complete the route, achieving a higher HD-Score.

Abstract—End-to-end driving policies are commonly trained through open-loop behavior cloning, yet they must ultimately operate in closed-loop when deployed on a vehicle, creating a fundamental mismatch between training and execution. Beyond the commonly studied effects of covariate shift and causal confusion, we identify a complementary factor for this open-loop/closed-loop gap: waypoint-based supervision and displacement metrics do not ensure that the intermediate trajectory is physically coherent or easy for the controller to track. We observe that these inconsistencies concentrate primarily at intermediate waypoints, while the predicted endpoint remains comparatively reliable. Based on this observation, we introduce Endpoint-Constrained Optimization (ECO), a lightweight post-processing layer that anchors the trajectory to the vehicle's executed history, preserves the policy's predicted endpoint, and reshapes the intermediate waypoints to improve feasibility. ECO requires no map, privileged simulator state, or additional training, and can be inserted between a broad range of waypoint-emitting policies and their controllers. Across two closed-loop simulators, it improves the aggregate closed-loop score of all six evaluated generative and regression-based driving policies, and the gains tend to increase with how often the base plans violate motion limits. On HUGSIM, ECO improves VaVAM from 18.1 to 31.0 HD-Score (+71%), achieving 1st place on the HUGSIM Closed-Loop Driving Challenge. Similarly, on AlpaSim, ECO increases the scene scores of VaVAM and DiffusionDrive by 123% and 22%, respectively. These results show that for a broad collection of end-to-end driving models, repairing the intermediate geometry of predicted trajectories without changing the policy's predicted endpoint can substantially improve closed-loop performance.

I. INTRODUCTION

Driving policies are increasingly trained end-to-end to predict future trajectories from sensor observations and navigation commands [1]. This is most commonly done through open-loop behavior cloning, where predicted trajectories are

1^{1}University of Toronto, 2^{2}Vector Institute, 3^{3}NVIDIA Research, 4^{4}ELLIS Institute Tübingen, 5^{5}KE:SAI. *Work done in part while at NVIDIA Research. Contact: brayden.zhang@mail.utoronto.ca

Project page: brayden-zhang.github.io/guiding-e2e-eco compared against logged human driving. In closed-loop evaluation, however, the vehicle executes actions derived from these predictions autoregressively, changing its future observations and subsequent predictions. As a result, a policy may achieve strong open-loop trajectory metrics yet fail during rollouts in closed-loop environments, illustrating the well-known open-loop/closed-loop (OL/CL) gap [2].

Most existing work on this gap has focused on covariate shift and causal confusion [3], [4] as potential causes. However, a complementary factor is that open-loop training uses waypoint-based representations that reward agreement with logged positions without explicitly enforcing the physical plausibility of the output trajectories. Training loss functions are typically applied to all predicted waypoints at an equal scale, leading to a larger learning signal for distant endpoints than nearer intermediate waypoints. Open-loop metrics like average displacement error (ADE) look at waypoint positions in isolation, so they miss the accelerations, jerks, and discontinuities among the waypoints as well as between the vehicle's historical states and waypoint predictions. Other metrics like final displacement error (FDE) ignore the entire path except the endpoint. As a result, a plan may score strongly in open-loop even if its intermediate waypoints are hard for the controller to follow and extract actions from.

We therefore introduce Endpoint-Constrained Optimization (ECO), a training-free post-processor that improves a policy's executability by preserving the policy's high-level plan while refining the intermediate trajectory. Specifically, we apply a lightweight optimization on the sequence of historical and predicted waypoints, with the history and end poses kept fixed, encouraging physical plausibility. ECO consumes and returns the same fixed-period waypoint representation, so it can be inserted between any waypoint-emitting policy and its controller, whether the policy uses a generative [5], [6] or regression-based [7]–[10] head. Across two simulators [11], [12] and five datasets (nuScenes [13], Waymo [14], KITTI-360 [15], PandaSet [16], and the AlpaSim NuRec set [12]), ECO increases the aggregate closed-loop score of every evaluated policy. These improvements are significant enough to place first in the HUGSIM Closed-Loop Driving Challenge [17] and require no simulator-specific hyperparameter re-tuning, despite differences in vehicle dynamics, controllers, and evaluation settings.

Our contributions are:

• An analysis of the OL/CL gap showing that standard displacement metrics can miss physically inconsistent waypoint sequences, with most violations occurring in the middle of the trajectory rather than at its endpoints.

• ECO, a training-free trajectory optimization layer that keeps the executed history and the policy’s endpoint fixed and repairs the trajectory between them.

• A set of controlled closed-loop studies that isolate why this refinement works and when it transfers.

References (45)