A self-driving planner that negotiates merges and unsignalized intersections has to ask "what will the other drivers do if I take this path?" It answers with an action-conditioned forecaster, a model that predicts other agents' futures given the scene history and a proposed ego trajectory. These forecasters are trained on logs of human driving, where the ego trajectory is whatever the human chose. At planning time, the same model is queried with trajectories that the planner generates, and these are often more assertive, more hesitant, or simply different from what humans did. The forecaster is trained on one distribution of ego actions and used on another. Its errors pile up exactly where the planner's proposals depart from human behavior, and those departures are the decisions that matter.
We propose to treat this as the standard problem from survey statistics of making inferences about a target population from a convenience sample. The logged human trajectories are the sample, and the planner's candidate proposals are the population. A weighted logistic regression trained to tell logged ego actions from planner proposals gives an importance weight for every training example. The forecaster is retrained under those weights so its accuracy is concentrated where the planner will query it. The same classifier also flags proposals that have no logged support. There the forecaster's "reaction" is extrapolation, and the planner should not trust it. In short, we reweight the reaction model toward the planner's own query distribution, and we use the classifier's score to recognize when a what-if question cannot be answered from the data.
Core Claim
The obvious bridge between these fields is to reweight driving scenarios by maneuver type to fix long-tail imbalance. It has a weak record. Beyond the Data Imbalance reports that SMOTE and simple loss reweighting failed to fix the "always predict straight" bias in maneuver prediction, and that solving it required pretraining on a balanced drone dataset. We therefore do not propose class rebalancing.
Our claim is narrower and different. The relevant mismatch for interactive forecasting is between the logged distribution of (scene, ego action) pairs and the planner's query distribution over the same pairs. Unlike most covariate shift problems, this target distribution is fully known, because we generate it ourselves. A classifier between logs and proposals therefore estimates the needed density ratio directly, with no assumptions about an external population.
Formally, let $x$ be the scene history, $u$ an ego trajectory, and $c(x,u)$ the calibrated probability from a logistic classifier that a pair came from the planner rather than the logs. The training weight for a logged example is
$$w(x,u) = \frac{n_{\log}}{n_{\text{plan}}}\cdot\frac{c(x,u)}{1-c(x,u)},$$
where $n_{\log}$ and $n_{\text{plan}}$ are the numbers of logged and proposal pairs used to fit the classifier. The prefactor undoes the class imbalance in fitting. The forecaster is then trained by minimizing $\sum_i \tilde w_i \,\ell(y_i; x_i, u_i)$, where $\ell$ is its usual negative log-likelihood, $y_i$ the other agents' observed futures, and $\tilde w_i$ the weights after stabilization and trimming.
Wherever $c(x,u)$ approaches 1, a proposal sits outside logged support. This is the survey positivity violation, which Pluralistic Preference Alignment via Sortition-Weighted RLHF notes no weighting can repair. We use that score at plan time as an abstention signal instead of hiding it.
We are explicit about what this does not fix. If the human driver reacted to cues the model cannot see, then the logged ego action carries information about the other agent's future. A model conditioned on "ego went first" may learn "so the other driver yielded." This is the causal confusion that Causal Confusion in Imitation Learning shows cannot be resolved from observational data alone. Weighting on observed variables cannot remove confounding by unobserved ones. The proposal is built to measure where the gain from weighting ends and this harder problem begins.
Research Program
Forecaster. The base forecaster follows the query-centric design of DTPP. DTPP feeds candidate ego trajectory branches as queries into a Transformer decoder and predicts every surrounding agent's reaction in one forward pass, then scores branches with a cost learned by maximum-entropy inverse reinforcement learning. We keep the prediction architecture and change only the training distribution. Our analysis therefore isolates the weighting rather than a new network.
Planner and query distribution. The planner's query distribution is defined concretely. For each training scene we generate the planner's candidate set, either DTPP's trajectory tree or a fixed set of proposals in the style of PDM-Closed from Parting with Misconceptions about Learning-based Vehicle Motion Planning. These proposals become the "population" sample.
Classifier. The classifier is a logistic regression on a compact, interpretable feature vector. The features include ego acceleration and lateral offset profiles, the time gap to each nearby agent along the proposal, scenario type, and distance to conflict points. We also fit a variant with a small learned feature head. We choose logistic regression on purpose: the density ratio needs calibrated probabilities rather than just good ranking, and calibration is easy to check and repair for a low-capacity model.
Variance control. Weights are stabilized and trimmed at percentiles chosen on validation data, following the practice discussed in Weight Trimming and Propensity Score Weighting. We report the effective sample size after weighting, so that variance inflation is visible rather than buried.
Survey-calibration comparator. We also build a calibration-weighting version. Here weights are fit by raking, which iteratively adjusts weights so that weighted logged marginals of the same interpretable features match the proposal marginals. Raking needs only marginals and is the standard survey tool when joint cells are empty, as in the raking applications in What Do People Think about Sentient AI?. Comparing raking with classifier ratios tells us whether matching a handful of interaction features is enough, or whether the joint structure the classifier captures matters.
Support gate. At plan time, any proposal whose classifier score exceeds a threshold is treated as unsupported. Its predicted reactions are replaced by a conservative prior: other agents keep their current behavior and ignore the ego. The planner then scores the proposal under that prior. The threshold is set on held-out data to bound how often supported logged pairs are wrongly flagged.
Baselines
Naive reference. The do-nothing baseline is the same DTPP-style forecaster and planner trained without weights on the same nuPlan training split, with the same architecture, epochs, and hyperparameter search budget. Our weighted model must improve over it in closed-loop score and in counterfactual reaction error to justify itself. A gain only on open-loop displacement error does not count, given the negative correlation between open-loop and closed-loop performance documented in Parting with Misconceptions.
Strongest learned interactive method. This is DTPP itself, which reports a reactive closed-loop nuPlan planning score of 0.8978 in DTPP. We retrain it ourselves under our compute budget so that our number and theirs share a split and evaluation code. Beating our reproduction by a margin larger than the seed-to-seed spread counts as a win for the weighting.
Strongest overall system. This is the rule-based PDM family. The DTPP paper reports PDM-Closed at 0.9150 on reactive closed loop, and Parting with Misconceptions reports PDM-Hybrid at a reactive closed-loop score of 92 on Val14. We do not expect a learned reaction model to beat PDM on the full Val14 average, which is dominated by lane following. The meaningful test is the subset of Val14 scenario categories involving merges, lane changes, and unprotected turns. PDM's authors acknowledge that it cannot actively change lanes or negotiate. Matching PDM overall while beating it on those categories would count as success.
Ablations isolating the key ingredient. The first ablation is stratified reweighting by scenario category only. This is post-stratification on a coarse label, the cheap reviewer's version of survey weighting. If it matches the classifier weights, the planner-query framing adds nothing. The second is the raking variant described above. The third is the support gate without any training weights, and the weights without the gate. These two separate the contribution of retraining from that of abstention.
Why not just…?
Why not just train the unweighted model with more capacity, since conditioning on the scene already accounts for observed confounders? In the infinite-data limit with no unobserved confounding, the unweighted conditional model is already correct, and weighting adds nothing. With finite data and finite capacity, a model spends its accuracy where the training mass is, which is human-like ego actions. The planner then queries it elsewhere. Our semi-synthetic experiment below tests this directly. If the unweighted model at matched compute is as accurate on planner-distributed queries as the weighted one, this objection wins and we would report that.
Why not just reweight by maneuver class, the way imbalance is usually handled? Beyond the Data Imbalance already found that loss reweighting and SMOTE leave turning recall near zero, so class reweighting is a weak prior. Category-stratified weights are nonetheless included as an ablation. The relevant contrast is not rare versus common maneuvers. It is human ego actions versus planner ego actions within the same maneuver. A planner merging with a 1.2-second gap differs from the human logs in the same "merge" category.
Why not just generate counterfactual reactions in simulation, as in online interactive learning? Learning Interaction-aware Motion Prediction Model for Decision-making in Autonomous Driving collects interventional reaction data by nudging agents in the SMARTS simulator, and it reports 99.3% overall success there. This is a real threat wherever simulated agents are realistic. However, the reactions learned are those of the simulator's agents, and that paper is evaluated only in simulation. nuPlan's reactive agents follow a car-following rule rather than human behavior. Our method uses only real logs. We include a variant trained on nuPlan rollouts with rule-following reactive agents to show what synthetic intervention buys and what it costs on real human reactions.
Why not just use ensemble disagreement instead of a classifier to detect unsupported queries? Ensembles flag inputs on which models disagree. Models extrapolating identically from shared inductive biases can agree confidently off-support. We will compare the two signals by how well each predicts large counterfactual error in the semi-synthetic setting. If ensembles win, the gate should use them, and the classifier would remain only as the weighting tool.
Proposed Experiments
Semi-synthetic test with known counterfactuals. This is the decisive experiment, because real logs contain no ground-truth reaction to a proposal the human never drove. In nuPlan's simulator with reactive agents, and separately in SMARTS, we roll out a human-like behavior policy to create "logs." We then train forecasters on those logs and query them with planner proposals. Because the simulator can replay each proposal, we know the true reaction for every proposal.
We create two log variants. In the first, the behavior policy's choices depend only on variables the forecaster sees. In the second, the policy also sees each other agent's hidden yield intention. We predict that weighting reduces counterfactual reaction error on proposals in the first variant. We also predict it fails to remove the optimistic "they will yield" bias in the second variant, where the confounding is unobserved. This would separate the covariate-shift error, which weighting can address, from causal confusion, which it cannot. We report error as a function of classifier score, to test whether the score really tracks where predictions break.
Real-data evaluation. On real nuPlan, we train on the standard training split. We report reactive and non-reactive closed-loop scores on Val14 overall and on the interaction-heavy categories. Every method is evaluated over several seeds with identical tuning budgets. As an offline proxy, we also report reaction prediction error on held-out logged pairs, weighted toward the proposal distribution using the held-out classifier. This tells us whether the training weights improve the quantity they target.
Diagnostics. Across both settings, we track effective sample size and the calibration of the classifier, measured by reliability curves on held-out log-versus-proposal pairs. We also track the fraction of proposals the gate flags, and the closed-loop cost of flagging, meaning how often abstention leads to the over-cautious waiting that interactive forecasting was meant to avoid.
Failure criterion. If weighting improves counterfactual error in the semi-synthetic test but not real closed-loop score, the conclusion is that nuPlan's reactive agents do not reward better human-reaction modeling. That is itself a useful finding about the benchmark. If weighting fails even in the semi-synthetic test with observed confounding, the idea is wrong.
References
- Beyond the Data Imbalance: Employing the Heterogeneous Datasets for Vehicle Maneuver Prediction
- Pluralistic Preference Alignment via Sortition-Weighted RLHF
- Causal Confusion in Imitation Learning
- DTPP: Differentiable Joint Conditional Prediction and Cost Evaluation for Tree Policy Planning in Autonomous Driving
- Parting with Misconceptions about Learning-based Vehicle Motion Planning
- Weight Trimming and Propensity Score Weighting
- Perceptions of Sentient AI and Other Digital Minds: Evidence from the AI, Morality, and Sentience (AIMS) Survey
- Learning Interaction-Aware Motion Prediction Model for Decision-Making in Autonomous Driving