A self-driving car's forecaster must output a small set of possible futures for all nearby road users at once, and the set is useful only if one of its members resembles what actually happens. Recent work makes these joint futures physically consistent, so that predicted cars do not drive through each other. The natural next step is to impose traffic logic outright: give right-of-way to the correct car, forbid overlaps, and solve for the best consistent combination. This proposal argues that step is backwards for the cases that matter most. The rare, dangerous events in driving logs are often the ones where somebody breaks the rules: a car runs the yield, cuts in, or comes within a hair of contact. If constraints filter out rule-breaking futures, they will remove exactly the long-tail hypotheses a safety system most needs to see.
The core idea is to use constraints to decide what the set of predicted futures must contain, rather than only what it must exclude. Each agent receives candidate futures tagged with discrete behavior modes. A map-derived graph of conflict points turns every pair of candidates into a discrete relation, such as "A passes first," "B passes first," or "contact." A small integer program then selects K joint futures. Each one must be internally consistent. The whole set must also cover every interaction outcome the model considers plausible, including the rule-violating ones. Put in two sentences: predicted joint futures should be chosen like a portfolio in which each discrete way an interaction can resolve gets at least one representative, not like a filter. We expect this to cut collisions among predicted agents about as much as hard-constraint approaches do, while recovering, on long-tail splits, the ground-truth outcomes that hard constraints discard.
Core Claim
Constrained joint inference can improve multi-agent forecasting in the long tail only if physical validity is separated from behavioral coverage. Physical validity is a hard, per-hypothesis constraint. Behavioral coverage is a set-level constraint defined on discrete interaction relations over a structured scene graph. A validity-only constrained selector will reduce inter-agent collision rates but will lower the recall of rare interaction outcomes relative to unconstrained sampling. Adding coverage constraints will keep the collision gains and raise rare-outcome recall above both.
Where This Sits in Prior Work
Four bodies of work each supply one piece of this proposal.
Hybrid, state-aware predictors supply the candidate generator. HYPER models each agent as a probabilistic hybrid automaton, meaning a system that switches among discrete modes such as lane-following, turning, and stopping while moving continuously within each mode. It samples mode sequences with a learned proposal and then applies farthest-point sampling for spatial spread. It reports minADE 0.72m, minFDE 1.26m and a discrete-mode error rate lowered from 11.01% to 7.65% on Argoverse v1.1. HYPER predicts one agent at a time, and its selection step is spatial diversity rather than relational reasoning. We reuse its mode-tagged candidates and replace its selection step. Map-Adaptive Goal-Based Trajectory Prediction adds a goal-free fallback mode for agents that leave the lane geometry, mixing it in by ad hoc weighting. In our formulation, that fallback becomes a mode the set is required to cover when it is plausible.
Joint prediction work motivates the proposal and supplies the strongest baselines. From Marginal to Joint Predictions compares three approaches on Argoverse 2, all built on the SIMPL predictor: recombining per-agent predictions with beam search, training on a scene-level loss with an Anchor Point Transformer, and a conditional variational autoencoder (CVAE) that samples whole-scene futures. The CVAE is most accurate. The Anchor Point Transformer, which passes messages between the predicted modes of different agents, has the fewest collisions. Neither uses discrete relations or constraints, and neither is evaluated on long-tail splits. Its reported trade-off between accuracy and collision avoidance is the tension we target.
Constrained conditional models supply the inference method. These models (Integer Linear Programming in NLP, Structured learning with constrained conditional models) combine neural scores with declarative rules, rules stated explicitly rather than learned, and solve the combination as an integer program. They report that such rules substitute for labels when data is scarce: citation parsing with 5 labels rose from 58.48% to 71.64%. Deep Visual Template-Free Form Parsing found that global branch-and-bound pairing beats distance heuristics (F-measure 0.607 vs. 0.306). All of these apply constraints as validity filters on static structures such as text and documents. The departure here is set-level coverage constraints over time-varying trajectory relations.
Long-tail trajectory work defines the evaluation regime and also constrains the design. Makansi et al. define difficulty as the error of a Kalman filter, a simple constant-motion tracker, and reshape embeddings with a contrastive loss. FEND clusters futures and adapts the decoder with a hypernetwork. LongComp factorizes scenes into ego and social contexts and shows that the Motion Transformer (MTR) degrades 14.7% on unseen open-world contexts. All three define rarity from single-agent kinematics or learned autoencoder codes. We define rarity by the discrete interaction relation, for example "the non-priority car passed first," which is directly checkable and matches what the coverage constraints act on. The safety-critical generators AdvSim and SAFE-SIM show that rule-violating interactions are exactly what break autonomy stacks. They are generators, not predictors. We use their outputs only as an optional stress test.
Research Program
Scene graph. For each scene we build a conflict graph from the high-definition (HD) map. Nodes are agents. An edge joins two agents whose candidate paths cross or merge at a map conflict point, meaning an intersection of lane centerlines, or come within a proximity threshold off-map. Given a candidate future for each agent on an edge, a deterministic rule assigns the pair one relation from a small alphabet: i-passes-first, j-passes-first, no-interaction, or contact. Contact means a minimum separation below a threshold. Right-of-way comes from lane priority and signal state in the map, so each relation is also marked "compliant" or "violating." The same rule labels ground-truth futures. This gives relation labels for every training and test scene at no annotation cost.
Candidates and scores. Any backbone can supply candidates; we use SIMPL on Argoverse 2 and MTR on the Waymo Open Motion Dataset. Each agent $i$ gets $M$ candidate futures, each tagged with a HYPER-style mode sequence and a log-probability $s_{i,m}$. We then train a small relation head, a graph network in the spirit of Interaction Networks, to predict a probability $p_{ij}(r)$ for each relation $r$ on each edge from the scene history. Violating relations are rare in the logs, so this head is trained with class-balanced loss. We also use constraint-driven self-training on unlabeled scenes, as in the constrained-model literature: the relation head is fit to relation labels computed from consistent selections that the solver makes on scenes without ground truth.
Selection. Let $x^k_{i,m}\in\{0,1\}$ indicate that joint hypothesis $k$ assigns candidate $m$ to agent $i$, and let $R_{ij}(m,m')$ be the relation induced by a candidate pair. For $k=1,\dots,K$ we solve
$$\max_{x}\ \sum_{k}\sum_{i,m} s_{i,m}\,x^k_{i,m}\quad \text{s.t.}\quad \sum_m x^k_{i,m}=1,\qquad x^k_{i,m}+x^k_{j,m'}\le 1 \ \text{if } R_{ij}(m,m')=\text{contact and } p_{ij}(\text{contact})<\epsilon,$$
$$\sum_{k} y^k_{ij,r}\ \ge 1 \quad \text{for every edge and relation with } p_{ij}(r)\ge\tau,$$
where $y^k_{ij,r}$ is a linearized indicator that hypothesis $k$ realizes relation $r$ on edge $(i,j)$. The first line is the validity constraint. It forbids contact unless the relation head itself thinks contact is plausible, so predicted near-misses and collisions survive. The second line is the coverage constraint. The thresholds $\epsilon$ and $\tau$ are tuned on validation data. Since conflict graphs decompose into small connected components, we solve each component exactly with an off-the-shelf integer-programming solver. When a component exceeds a size limit, we fall back to greedy selection. That fallback is valid because coverage objectives of this form are monotone set functions for which greedy selection is near-optimal. We will report wall-clock latency and compare it against the ~31.6 ms beam-search figure from From Marginal to Joint Predictions.
Long-tail splits. We build three splits. The first is the Kalman-difficulty top 1% from Makansi et al.. The second is LongComp's closed- and open-world unseen-context splits on the Waymo dataset. The third is our new relational-rarity split: scenes whose ground-truth relation on any edge is "violating" or "contact," or whose multi-edge relation pattern falls in the bottom percentile of training frequency. We will report how much the relational split overlaps with the Kalman split. Low overlap would itself be a finding: it would mean kinematic difficulty misses a class of interaction difficulty.
Baselines
The naive reference point takes each agent's top-K marginal predictions from the same backbone and pairs them by rank. This shows how much any joint reasoning buys.
The strongest existing joint methods are the CVAE and the Anchor Point Transformer from From Marginal to Joint Predictions. On Argoverse 2 the CVAE reports minSFDE 2.014 and minSADE 0.844, and the Anchor Point Transformer reports an actor collision rate of 0.0085. These are the numbers to match or beat on the full validation set. We will retrain both on the same SIMPL backbone, with the same K and the same training epochs, so that the long-tail splits are evaluated under identical conditions, since the paper reports no long-tail results. Beating them means two things together. On the full set, collision rate must be at or below 0.0085 with minSFDE within noise of 2.014. On the relational-rarity split, relation recall and minSFDE must be clearly better than both. On the Waymo dataset, the strongest reference is LongComp on MTR, which reports open-world degradation of 11.5% versus 14.7% for plain MTR. Our selector runs on top of MTR, so the fair test is whether it reduces the open-world gap further, and whether it stacks with LongComp's gating modules when both are applied.
Beam-search recombination of marginal predictions from the same paper is the unconstrained combinatorial baseline, run with the same candidate pool. Rejection sampling from the CVAE is the simplest filter: draw many scene samples, discard those with collisions, and keep K using farthest-point sampling. It gets the same number of backbone samples and the same latency budget as our solver.
The decisive ablation keeps our pipeline but drops the coverage constraint, leaving validity-only constrained selection that forbids all contact and all violating relations. This is the "obvious" constrained-inference design. A second ablation keeps coverage but replaces learned $p_{ij}$ with uniform coverage of every relation, which tests whether the relation head matters or whether brute enumeration suffices. Every variant is tuned with the same validation budget for $\epsilon$, $\tau$ and K.
Why not just…?
Why not just reject colliding samples from a strong generative model? This is the most serious threat. If the CVAE already places mass on rare interaction outcomes, drawing more samples and filtering them could match coverage without a solver. Two things argue against it. The long-tail literature (Makansi et al.) shows that likelihood-trained models push rare maneuvers toward the average, so rare relations may simply be absent from the samples. In addition, a blanket collision filter deletes the true near-contact futures. The matched-compute rejection-sampling baseline, run as a function of sample count, settles this. If its relation recall on the rare split catches up with ours at a feasible sample count, the solver adds little and we will report that.
Why not just train with a soft collision or rule loss? A soft penalty pushes every mode toward compliance, which is exactly the bias we want to avoid in the tail. From Marginal to Joint Predictions found that a scene-level loss alone does not resolve conflicts without architectural coordination, and SAFE-SIM needed extra anchoring beyond its soft regularizer. The Anchor Point Transformer is the best learned version of this idea, and it is a baseline here. The test is whether it loses relation recall on the violating split.
Why not just reweight or contrastively reshape training on hard cases? Makansi-style and FEND-style methods improve the tail by changing the representation. They do not decide which joint combinations are output, and they define hardness kinematically. They are complementary rather than competing, so we run our selector on top of a Makansi-reweighted backbone. If reweighting alone closes the relational-rarity gap, the selection step is unnecessary. The relational split is designed to reveal cases where kinematic reweighting does not help.
Why not just raise K or use farthest-point sampling for diversity? Spatial diversity is not relational diversity. Two geometrically distant hypotheses can share the same passing order. We report relation recall as a function of K for FPS against coverage selection. Coverage should reach a given recall at a smaller K.
Proposed Experiments and Decisive Checks
We evaluate on Argoverse 2 (dataset paper) and on the Waymo Open Motion Dataset (dataset paper). Metrics are scene-level minADE/minFDE, actor collision rate, relation recall (whether the ground-truth relation on every edge is realized by at least one of the K hypotheses), violating-relation recall, and latency. Each is reported on the full sets and on the three long-tail splits.
The first decisive check tests whether the obvious design fails. Validity-only selection should lower collision rate relative to the CVAE but also lower violating-relation recall below the unconstrained CVAE. If it does not lose recall, the premise of this proposal is wrong, and plain hard constraints suffice.
The second check tests coverage. Adding the coverage constraints should restore violating-relation recall above the CVAE, keep collision rate near the Anchor Point Transformer's 0.0085, and improve minSFDE on the relational-rarity split, all at matched compute with the rejection-sampling baseline.
The third check tests low-data value, echoing the constrained-model results on scarce labels. We train the relation head on 10%, 25% and 100% of the violating-relation examples, with and without constraint-driven self-training on unlabeled scenes. Gains should be largest at the smallest fractions.
As a qualitative stress test, the selector runs on SAFE-SIM-style adversarial rollouts, with no numeric claims tied to results reported in that paper. We will also report the overlap between the relational and Kalman tail splits, which tests whether interaction rarity is a distinct axis of difficulty.
References
- HYPER: Learned Hybrid Trajectory Prediction via Factored Inference and Adaptive Sampling
- Map-Adaptive Goal-Based Trajectory Prediction
- From Marginal to Joint Predictions: Evaluating Scene-Consistent Trajectory Prediction Approaches for Automated Driving
- Integer Linear Programming in NLP - Constrained Conditional Models
- Structured learning with constrained conditional models
- Deep Visual Template-Free Form Parsing
- On exposing the challenging long tail in future prediction of traffic actors
- FEND: A Future Enhanced Distribution-Aware Contrastive Learning Framework for Long-Tail Trajectory Prediction
- LongComp: Long-Tail Compositional Zero-Shot Generalization for Robust Trajectory Prediction
- AdvSim: Generating Safety-Critical Scenarios for Self-Driving Vehicles
- SAFE-SIM: Safety-Critical Closed-Loop Traffic Simulation with Diffusion-Controllable Adversaries
- Interaction Networks for Learning about Objects, Relations and Physics
- Argoverse 2: Next Generation Datasets for Self-Driving Perception and Forecasting
- Large Scale Interactive Motion Forecasting for Autonomous Driving : The Waymo Open Motion Dataset