Manuscript Offprint

arXiv:2611.05793

ZipDrift: Generating Multimodal Short-Horizon MPC Costs with One-Step Drifting Models

Ke Zhang

Ke Zhang

Trinity College Dublin, Dublin, Ireland

zhangk2@tcd.ie

Abstract—Short-horizon model predictive control (MPC) is fast but myopic. ZipMPC compensates by learning a context-dependent correction of the short-horizon cost that imitates a long-horizon expert. We observe that the optimal correction is often multimodal: when a slower opponent can be passed on either side, good corrections of opposite sign coexist, and the expert's choice between them hinges on tiny cost differences. Deterministic regression then averages modes or inherits inconsistent expert tie-breaking. We propose ZipDrift, which trains a one-step drifting generator over MPC cost corrections, tilted toward low closed-loop cost and learned only from cost evaluations of candidate corrections, without differentiating through the optimiser. A few generated candidates are ranked by a learned critic, and the model-based MPC then enforces dynamics and constraints. In a kinematic overtaking benchmark derived from ZipMPC, 53% of contexts are bimodal and the manual short-horizon MPC crashes in 28.5% of test episodes. With an eight-dimensional stagewise correction, ZipDrift is collision-free in all 600 test episodes and matches the best evaluated candidate, whereas an idealised ZipMPC-style regressor crashes in 4.0% (16.0% with inconsistent expert labels) and critic-ranked random candidates with the same budget in 2.0%.

Index Terms—Model predictive control, imitation learning, generative models, autonomous racing.

I. INTRODUCTION

Model predictive control (MPC) is the method of choice for agile vehicles because it enforces dynamics and constraints explicitly, but its computational cost grows with the prediction horizon. Short horizons run in real time yet act myopically: a race car that cannot see past the next few metres brakes late for corners and cannot prepare an overtake. ZipMPC [1] addresses this by compressing a long horizon into the cost of a short one. A neural network maps context, such as the upcoming track curvature, to a correction of the short-horizon cost, and is trained so that the short MPC imitates a long-horizon expert. The learned correction acts like a pseudo reference: on the racing benchmark it shifts the vehicle laterally in anticipation of curves that lie beyond the horizon.

This paper starts from an observation about what such a correction must represent. Consider a slower opponent ahead, outside the short horizon but inside the long one. Passing on the left and passing on the right are both good, and they require lateral cost corrections of opposite sign. The optimal correction is therefore a set with two separated components, and which one an expert picks can depend on arbitrarily small differences in cost. A deterministic map trained by regression, as in ZipMPC and related weight-adaptation schemes [2]–[4], converges to the conditional mean of its labels, which lies between the modes, i.e., straight into the opponent (Proposition 1).

Generative models represent such multimodality naturally, and recent drifting models [5] do so with a single network evaluation. Drifting MPC [6] tilts a drifting generator toward low cost to plan trajectories from offline data, but it does not use a dynamics model, does not enforce constraints, scores plans on generated states, and has so far been evaluated on a linear mass-spring-damper system. Trajectory-space drifting also suffers from a kernel geometry dominated by far-future dimensions, which collapses plans to their average [7].

We propose ZipDrift, which combines the two ideas in the space where each is strongest. A one-step drifting generator, tilted by the closed-loop cost, outputs the cost correction of a model-based short-horizon MPC; the MPC enforces dynamics and constraints; a small number of candidates is generated in one pass and the best is selected. Our contributions are:

  • We identify and quantify mode averaging in context-dependent MPC cost learning. In an overtaking task built on the ZipMPC kinematic racing setup, 53% of contexts admit two separated sets of good corrections, and the long-horizon expert's two local solutions differ by less than 0.5% in cost in about half of the contexts where both exist. Imitation is therefore sensitive to how the expert breaks near-ties.

  • We formulate cost-parameter-space drifting with a Gibbs target over MPC cost corrections. Training only needs closed-loop cost evaluations of candidate corrections, not gradients through the optimiser, so labels come from the deployment solver with hard constraints.

  • In closed loop with an eight-dimensional stagewise correction, ZipDrift is collision-free in all 600 test episodes, whereas an idealised ZipMPC-style regressor crashes in 4.0% (16.0% with inconsistent expert labels) and critic-ranked random candidates with the same budget in 2.0%. With a one-dimensional correction, simpler multimodal baselines are as effective, and we report this as well.

This is a preliminary study on a deliberately minimal benchmark; Section VI lists its limitations.

References (28)