MEKAWIRE
ExpertarXiv

WoRD: Diffusion-Based Posterior Inference for Online Goal Recognition

Almog Anschel, Sarah Keren
From the abstract

Goal recognition is the task of inferring an agent's intended goal from its observed behavior. Most existing work focuses on high-level symbolic recognition, abstracting away the continuous motion through which agents reach their goal.

From the abstract. Our summary is in progress.

Full paper

WoRD: Diffusion-Based Posterior Inference for Online Goal Recognition

Almog Anschel, Sarah Keren

Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.23192 (PDF).

Abstract

Goal recognition is the task of inferring an agent’s intended goal from its observed behavior. Most existing work focuses on high-level symbolic recognition, abstracting away the continuous motion through which agents reach their goal. Methods that do reason over continuous trajectories rely on an explicit dynamics model that is hard to acquire and rarely transfers across settings. Neither approach explicitly learns how agents move toward each candidate goal, limiting accuracy on ambiguous trajectory prefixes where such knowledge is most needed.

We present WoRD (Waypoint Recognition with Diffusion), which uses a learned trajectory prior to infer the agent’s goal from partial observations. At each step, WoRD runs one warm-started denoising chain per candidate goal, steers each chain toward the observed trajectory through a closed-form log-likelihood gradient, and reweights the resulting samples by Bayes’ rule into a calibrated posterior over goals. We evaluate WoRD on simulated robot settings, pedestrian trajectories, and vehicle trajectories using four metrics targeting distinct failure modes. Across all three settings, the same inference procedure preserves calibrated multimodal beliefs through ambiguous prefixes where filter- and classifier-based observers collapse to a single mode or grow overconfident.

1 Introduction

Goal recognition is the problem of inferring an agent’s intended goal from observations of its behavior. In the online setting, an observer must maintain a belief over candidate goals as observations arrive, before the trajectory becomes unambiguous [27, 18]. The problem is hardest early: paths toward adjacent goals overlap until the trajectory commits. An observer that resolves this ambiguity prematurely makes confident-and-wrong predictions, committing to a single hypothesis before evidence warrants it. Figure 1 shows a concrete instance: a pedestrian midway through a real intersection where the past trajectory and current heading remain consistent with multiple candidate exits, so a faithful belief must remain multimodal.

Ambiguity of this kind is a structural feature of goal recognition. Keren et al. [14] characterize this ambiguity via non-distinctive paths, prefixes of goal paths before which an observer cannot recognize the agent’s goal. A principled observer must maintain multimodal beliefs through this prefix; most existing methods instead collapse the ambiguity before it ends. Kalman-based filters such as OWR [8] maintain one Gaussian per candidate goal. When two goals are equally likely, the filter locks onto whichever hypothesis aligns marginally better with early noisy measurements, and the unimodal posterior cannot recover. Particle filters represent richer posteriors, but depend on a well-specified dynamics model. For agents whose motion is goal-directed and obstacle-conditioned, such a model is achievable in principle, but any practical approximation is prone to error and limited in scope [16]. Discriminative classifiers produce point predictions that do not separate accuracy from calibration. Trained with cross-entropy, they are optimized to place all probability on the labeled goal, pushing probability onto the favored candidate even when observations support multiple goals [3, 22].

We exploit diffusion models [10, 26], which learn a data distribution by reversing a gradual noise process: starting from random noise, a learned score function denoises samples step by step into structured outputs. These models are well suited to trajectory data, where the distribution of plausible paths is branching and obstacle-shaped, since a score network can denoise Gaussian noise into coherent, goal-directed paths that no single parametric form captures.

We present Waypoint Recognition with Diffusion (WoRD), which uses this denoising framework for inference rather than generation. For each candidate goal in the waypoint set, WoRD runs an independent denoising chain over trajectory space. At each diffusion step, a score-guidance term derived from the observer’s measurement model steers the chain toward trajectories consistent with the observations so far. Because the chains share no state, each one keeps its own hypothesis, and the posterior remains multimodal through ambiguous prefixes. Warm-starting from the previous estimate, instead of pure noise, allows the update to track incoming observations in real time. The per-chain trajectory likelihoods are then combined by Bayesian reweighting into a single calibrated posterior over the waypoint set.

We evaluate WoRD on complex simulation environments and on two real-world traffic datasets: rounD [15] (vehicles at roundabouts) and inD [2] (pedestrians at intersections). We compare against five baselines, including a Reverse Diffuser [11] baseline that applies the same score network with post-hoc guidance, isolating the contribution of online inference.

Figure 1: Online goal recognition at a real intersection (illustrative example). A pedestrian (blue dot, with an arrow indicating heading), assumed to be goal-directed, is partway along an observed trajectory (solid black) toward one of four candidate exits (colored stars); the unobserved future is dashed. At this point, the past path and the current heading remain consistent with two of the exits (green w^{1}, red w^{2}) so a faithful belief over the agent’s goal must keep both alive until later observations rule one out.
Contributions.
  1. Goal recognition as diffusion inference. We formulate online goal recognition as posterior inference via independent per-goal denoising chains, combined by Bayesian reweighting over reconstructed trajectories, providing a data-driven approach to goal recognition in complex environments where hand-specified motion models are infeasible. Unlike planning-based diffusion methods that condition generation on a known goal [11, 12], WoRD inverts the conditioning: it infers goals from partial observations.
  2. Online goal recognition algorithm. We derive a warm-start mechanism that reuses the previous trajectory estimate as a starting point for each new observation, reducing per-update computation enough for online use at the sensor sampling rate.
  3. Analytic observation guidance. By grounding the score-guidance term in the physical geometry of trajectory observations, we derive a closed-form update that requires no learned classifier and no additional training.

2 Related Work

Goal Recognition:

Prior taxonomies [27, 18, 17, 29] group goal recognition methods into three families, which map to the failure modes of section 1: planning-based methods relying on hand-crafted domain models, probabilistic filters, and discriminative classifiers.

Planning-based methods cast goal recognition as inverse planning: for each candidate goal, an observer generates an optimal plan and scores it against observed actions [20, 24]. These methods require a hand-crafted symbolic domain model and assume the agent acts optimally, limiting applicability to continuous or stochastic environments [13]. By contrast, WoRD replaces the symbolic domain model with a learned score field trained on observed trajectories, making no assumption about whether the agent plans optimally.

Probabilistic approaches treat goal recognition as online Bayesian inference, with g a candidate goal and \mathbf{Z}_{1:k} the trajectory observed so far. They maintain a posterior p(g\mid\mathbf{Z}_{1:k}) that updates with each observation [21]. Particle filters provide a scalable approximation [16], but represent beliefs as discrete weighted samples: weight collapse under sharp-peaked likelihoods causes most particles to lose support at the moment the trajectory commits, and downstream gradient-based planning requires lossy smoothing to recover a continuous belief. WoRD avoids these discretizations: the denoising chain represents beliefs as a continuous score field, so observation-likelihood gradients are available analytically at every step without smoothing.

Guo et al. [8] formulate waypoint recognition as a recursive filtering problem, running parallel Kalman filters for each candidate waypoint and weighting them by observation likelihood. This Kalman framework constrains each per-waypoint belief to a unimodal Gaussian, preventing the system from representing ambiguous trajectories where a single partial observation is consistent with multiple divergent paths. WoRD replaces OWR’s per-waypoint filter with a learned score function that maintains the full multimodal posterior.

Learned goal recognition methods cast the problem as discriminative classification [3, 22, 23, 6]: a model maps \mathbf{Z}_{1:k} to a posterior p(g\mid\mathbf{Z}_{1:k}) over candidate goals, bypassing symbolic domain models at the cost of requiring labeled trajectory data. By learning p(g\mid\mathbf{Z}_{1:k}) directly without modeling the generative process p(\mathbf{Z}_{1:k}\mid g), these methods are brittle when observations are partial or the goal set shifts at test time. WoRD instead models p(\mathbf{Z}_{1:k}\mid g) via a learned trajectory prior, recovering the goal posterior by Bayes’ rule and avoiding the train-time overconfidence bias of cross-entropy.

Diffusion Models:

Score-based generative models learn a data distribution by training a neural network to estimate the score \nabla_{x}\log p(x) and then draw samples via Langevin dynamics [25, 26]. Ho et al. [10] show that this framework is equivalent to denoising diffusion probabilistic models (DDPMs), unifying the two formulations under a common objective. Conditional generation is typically achieved either through classifier guidance [5], which injects the gradient of a separately trained classifier p(y\mid x_{t}) at sampling time, or through classifier-free guidance [9], which integrates the conditioning into the score network at training time. WoRD belongs to the classifier-guidance family, but replaces the learned classifier with an analytic gradient of the observation likelihood through the measurement model h, so no auxiliary classifier is trained or evaluated at inference. The score network itself plays the role of a process model: filter-based observers specify the dynamics analytically, whereas WoRD’s prior is learned from trajectory data.

In planning, Janner et al. [11] treat trajectory optimization as conditional denoising: a DDPM trained on expert trajectories is guided at inference time toward goal-satisfying samples. MotionDiffuser [12] extends this to joint distributions over interacting agent trajectories, recovering multimodal collision-avoidance behaviors that unimodal models cannot represent. In trajectory prediction, conditional diffusion models generate distributions over plausible futures given past motion [7, 1], but the latent goal is never explicitly inferred. WoRD inverts this direction: rather than generating trajectories from a known goal or predicting futures from past states, it infers the latent waypoint w^{\star} from a partial trajectory \mathbf{Z}_{1:k} via score-based guidance over a joint trajectory-waypoint distribution.

Motion Forecasting:

Map-conditioned forecasters such as QCNet [32], HPNet [28], and DeMo [31] predict multimodal future trajectories. Since every goal induces a trajectory, forecasting and goal recognition are closely related, yet they report different quantities: a forecaster returns a distribution over future trajectories, whereas a goal recognizer returns a posterior over a given candidate set, which mode probabilities yield only after aggregation over the candidates. The evaluation metrics differ accordingly: FDE, miss rate, and Brier-minFDE [30] score the best of K predicted modes, so none of them penalizes a belief that commits to a wrong candidate before the observed prefix disambiguates the goal. Deriving the goal from forecast trajectories is a predict-then-classify strategy; our Reverse Diffuser baseline (section 5.1) is a controlled instance of it that shares WoRD’s score network.

3 Problem Formulation

We consider an agent navigating under closed-loop control in a bounded planar environment \mathcal{E}\subseteq\mathbb{R}^{2} with static obstacles toward an unknown target w^{*}\in\mathcal{W}, where \mathcal{W}=\{w^{1},\ldots,w^{N}\} is a finite set of candidate waypoints known to the observer. At time step t, the agent’s state is \mathbf{x}_{t}=[\mathbf{p}_{t}^{\top},\mathbf{v}_{t}^{\top},\theta_{t}]^{\top}\in\mathcal{X}\subseteq\mathbb{R}^{5}, with position \mathbf{p}_{t}\in\mathbb{R}^{2}, velocity \mathbf{v}_{t}\in\mathbb{R}^{2}, and heading \theta_{t}\in[0,2\pi).

The observer cannot access \mathbf{x}_{t} directly. At each step k it receives a noisy measurement

\mathbf{z}_{k}=h(\mathbf{x}_{k})+\bm{\eta}_{k},\qquad\bm{\eta}_{k}\sim\mathcal{N}(\mathbf{0},\mathbf{R}),
(1)

where h:\mathcal{X}\to\mathcal{Z}\subseteq\mathbb{R}^{m} is the measurement map and \mathbf{R}\in\mathbb{R}^{m\times m} is a known, time-invariant, symmetric positive-definite noise covariance. The observation history up to time k is \mathbf{Z}_{1:k}=\{\mathbf{z}_{1},\ldots,\mathbf{z}_{k}\}. The online goal recognition objective is to compute the posterior over candidate goals,

p(w^{*}=w^{j}\mid\mathbf{Z}_{1:k}),\quad\forall\,w^{j}\in\mathcal{W},
(2)

required both to converge to w^{*} once the agent’s behavior is distinctive and to remain multimodal while the prefix is consistent with multiple goals. The observer is online: at each k, it must produce eq. 2 from \mathbf{Z}_{1:k} alone, without access to future observations.

We note that optimal plans toward distinct goals may share a long non-distinctive prefix whenever the worst-case distinctiveness (WCD) [14] is large. Within such a prefix the true posterior is multimodal, and an observer that collapses to a single mode is wrong in a way the argmax cannot detect, even when the eventual argmax is correct.

Assumptions.

We make the following assumptions: (1) The setting is keyhole: the agent’s policy is observer-agnostic, with its actions independent of the observer’s presence, and the observer takes no action to influence the agent or environment [18]; (2) the environment is static: obstacles and passages do not change across the observation horizon; (3) the observer is trained or configured in the same environment in which it is deployed; no map is provided as input at inference; (4) \mathcal{W} is finite and known to the observer; (5) h is differentiable; section 4.3 uses this to compute likelihood gradients \nabla_{\mathbf{x}}\log p(\mathbf{z}_{k}\mid\mathbf{x}_{k}) analytically; (6) the agent is intentional, navigating toward some w^{*}\in\mathcal{W}, though its trajectory may not be optimal due to obstacles or kinematic constraints; (7) observations arrive with known timestamps and bounded noise.

WoRD shares assumptions (1)–(4), (6), and (7) with OWR [8]. OWR additionally requires a linear-Gaussian process model for its UKF prediction step, whereas WoRD requires only that h admits a gradient and substitutes a learned score function for the Kalman prediction step.

4 Waypoint Recognition with Diffusion (WoRD)

WoRD learns the motion through which agents reach their goals from a dataset of demonstrations, removing the need for a hand-specified dynamics model. At inference time we invert the learned prior: at each observation step, one denoising chain per candidate goal is steered toward the observed trajectory, and the chain endpoints are reweighted by Bayes’ rule into a posterior.

Given a partial observation history \mathbf{Z}_{1:k} and a candidate set \mathcal{W}=\{w^{j}\}_{j=1}^{N}, WoRD returns a posterior p(w^{j}\mid\mathbf{Z}_{1:k}) over waypoints. WoRD introduces a latent trajectory \bm{\tau}=[\mathbf{x}_{0},\ldots,\mathbf{x}_{T-1}]\in\mathbb{R}^{T\times d} over a fixed horizon T. The score network denoises \bm{\tau} and marginalizes to yield a likelihood per candidate w^{j}; d is the agent state dimension. Throughout, t indexes physical time and i indexes diffusion step; \bm{\tau}_{i}(t) is the value at physical time t of the trajectory at diffusion step i.

For each candidate w^{j}, WoRD models the joint distribution p(\bm{\tau},\mathbf{Z}_{1:k}\mid w^{j}) as the product of two terms: a learned conditional trajectory prior p(\bm{\tau}\mid w^{j}) realized by a DDPM, and an analytic observation likelihood p(\mathbf{Z}_{1:k}\mid\bm{\tau}) obtained by differentiating the measurement model h (eq. 1). At inference, WoRD runs one denoising chain per candidate, guides each reverse step with the analytic observation-likelihood gradient, and reweights the resulting trajectories by Bayes’ rule (eq. 9) to produce the waypoint posterior. Figure 2 illustrates the full inference loop.

4.1 Conditional trajectory prior

We model the conditional trajectory distribution p(\bm{\tau}\mid w^{j}) for each candidate w^{j}\in\mathcal{W}, treating w^{j}\in\mathbb{R}^{2} as a continuous conditioning vector rather than a discrete index, allowing arbitrary waypoint coordinates without architectural changes (architecture in section 4.2). The network thus learns the generative direction p(\bm{\tau}\mid w) and never the discriminative p(w\mid\bm{\tau}): it has no output indexed by candidate, and the posterior over \mathcal{W} is assembled only at inference by Bayes’ rule (eq. 9), so the candidate set can change at inference without retraining (section E.1). We adopt a diffusion prior because observation guidance must act online: guidance enters as an additive gradient on the prior score, which requires both a tractable score and an iterative sampler in which to apply it.

Forward process.

The DDPM [10] forward process corrupts a clean trajectory \bm{\tau}_{0} over N steps using a prescribed variance schedule \{\beta_{i}\}_{i=1}^{N}\subset(0,1):

q(\bm{\tau}_{i}\mid\bm{\tau}_{i-1})=\mathcal{N}\!\left(\bm{\tau}_{i};\;\sqrt{1-\beta_{i}}\,\bm{\tau}_{i-1},\;\beta_{i}\mathbf{I}\right),
(3)

with closed-form marginal q(\bm{\tau}_{i}\mid\bm{\tau}_{0})=\mathcal{N}(\bm{\tau}_{i};\,\sqrt{\bar{\alpha}_{i}}\,\bm{\tau}_{0},\,(1{-}\bar{\alpha}_{i})\mathbf{I}), where \bar{\alpha}_{i}=\prod_{s=1}^{i}(1{-}\beta_{s}).

Reverse process.

The reverse process denoises \bm{\tau}_{N}\sim\mathcal{N}(\mathbf{0},\mathbf{I}) conditioned on goal w^{j} and observation history \mathbf{Z}_{1:k}. The conditional mean \bm{\mu}_{\theta} is the noise-corrected estimate of \bm{\tau}_{i-1}: a learned noise predictor \bm{\epsilon}_{\theta} estimates the Gaussian perturbation added to \bm{\tau}_{i-1} during the forward process at step i, and \bm{\mu}_{\theta} subtracts a scaled version of that prediction from \bm{\tau}_{i}, with coefficients fixed by the noise schedule [10]:

\displaystyle p_{\theta}(\bm{\tau}_{i-1}\mid\bm{\tau}_{i},w^{j},\mathbf{Z}_{1:k}) \\ \displaystyle=\mathcal{N}\!\left(\bm{\tau}_{i-1};\;\bm{\mu}_{\theta},\;\sigma_{i}^{2}\mathbf{I}\right), \\ \displaystyle\bm{\mu}_{\theta} \\ \displaystyle=\frac{1}{\sqrt{\alpha_{i}}}\!\left(\bm{\tau}_{i}-\frac{\beta_{i}}{\sqrt{1-\bar{\alpha}_{i}}}\,\bm{\epsilon}_{\theta}\!\left(\bm{\tau}_{i},w^{j},i,\mathbf{Z}_{1:k}\right)\right).

4.2 Training

We train the score network in two stages that mirror the score decomposition of eq. 6: stage 1 fits the trajectory prior p(\bm{\tau}\mid w^{j}), and stage 2 fits the observation-conditional p(\bm{\tau}\mid w^{j},\mathbf{Z}_{1:k}). Both stages use the same dataset \mathcal{D}=\{(\bm{\tau}_{0}^{(i)},w^{(i)})\}_{i=1}^{|\mathcal{D}|} of trajectories paired with goal waypoints, drawn from the target goal-conditional distribution. End-to-end training tends to be unstable: the network can learn to regress observations directly and bypass the prior, yielding low training loss but poor generalization beyond the observed prefix. Pretraining stage 1 stabilizes optimization and lets each score component be evaluated and ablated independently.

Stage 1: Trajectory prior.

The noise predictor is trained with the observation channel masked,

\mathcal{L}_{\text{prior}}=\mathbb{E}_{(\bm{\tau}_{0},w^{j})\sim\mathcal{D},\,\bm{\epsilon},\,i}\!\left[\bigl\|\bm{\epsilon}-\bm{\epsilon}_{\theta}(\bm{\tau}_{i},w^{j},i,\emptyset)\bigr\|_{2}^{2}\right].
(5)
Stage 2: Observation conditioning.

The pretrained network is fine-tuned end-to-end with the observation channel populated, optimizing the same denoising-score-matching objective with \mathbf{Z}_{1:k} in place of \emptyset. At each training step we sample a prefix length k=\lfloor\rho T\rfloor with \rho drawn uniformly from a fixed range (in our experiments \rho\sim\mathcal{U}(0.3,\,0.9)) and synthesize \mathbf{Z}_{1:k} from the clean trajectory \bm{\tau}_{0} via the observation model of eq. 1.

Architecture. The score network is a 2.2M-parameter Temporal U-Net [11] with FiLM-based waypoint conditioning [19]; full architecture, hyperparameters, and the stage 2 data-augmentation schedule are in Appendix C.

4.3 Observation guidance

The observation-conditioned score decomposes via Bayes’ rule [5] (derivation in Appendix A):

\nabla_{\bm{\tau}_{i}}\log p(\bm{\tau}_{i}\mid w^{j},\mathbf{Z}_{1:k})=\underbrace{\nabla_{\bm{\tau}_{i}}\log p(\bm{\tau}_{i}\mid w^{j})}_{\text{learned prior}}+\underbrace{\nabla_{\bm{\tau}_{i}}\log p(\mathbf{Z}_{1:k}\mid\bm{\tau}_{i})}_{\text{observation guidance}}.
(6)

In practice we evaluate the leading term with the stage-2 conditional network (section 4.2) rather than the bare prior, as -\bm{\epsilon}_{\theta}(\bm{\tau}_{i},w^{j},i,\mathbf{Z}_{1:k})/\sqrt{1-\bar{\alpha}_{i}} via the noise-prediction-to-score equivalence [10]. We replace the Bayes-rule weight on the guidance term by a tunable scale \lambda [5], which increases observation fidelity beyond what the stage-2 conditioning already captures; sensitivity is reported in Appendix E. For the guidance term, the Gaussian observation model from eq. 1 yields a closed-form log-likelihood, differentiable in \bm{\tau}_{i} through h:

\log p(\mathbf{Z}_{1:k}\mid\bm{\tau}_{i})=-\frac{1}{2}\sum_{t=1}^{k}\left\|\mathbf{z}_{t}-h\!\left(\bm{\tau}_{i}(t)\right)\right\|_{\mathbf{R}^{-1}}^{2}.
(7)

The guidance gradient \mathbf{g}^{j}=\nabla_{\bm{\tau}_{i}^{j}}\log p(\mathbf{Z}_{1:k}\mid\bm{\tau}_{i}^{j}) is computed by backpropagation through h, which assumption 5 (section 3) makes differentiable, so no learned likelihood model or classifier head [5] is needed. Together with the network’s learned observation conditioning (section 4.2), the analytic gradient provides an exact likelihood signal at every diffusion step.

4.4 Online inference with warm-start

Denoising from pure noise at every observation is incompatible with online operation. The previous estimate \hat{\bm{\tau}}_{k-1} (cached at step 4 below) already lies near the data manifold, so we re-noise it to an intermediate step i^{*}\ll N via the closed-form marginal,

\bm{\tau}_{i^{*}}^{j}\sim q(\bm{\tau}_{i^{*}}\mid\hat{\bm{\tau}}_{k-1})=\mathcal{N}\!\left(\sqrt{\bar{\alpha}_{i^{*}}}\,\hat{\bm{\tau}}_{k-1},\,(1{-}\bar{\alpha}_{i^{*}})\mathbf{I}\right),
(8)

and reverse from i^{*} to 0, cutting per-update cost by a factor of N/i^{*}. At each new observation \mathbf{z}_{k}, WoRD performs four steps per candidate w^{j}:

  1. Re-noise: corrupt \hat{\bm{\tau}}_{k-1}^{j} to step i^{*}.
  2. Guided reverse: denoise from i^{*} to 0, adding \lambda\mathbf{g}^{j} to the prior score at each step.
  3. Reweight: update the posterior via eq. 9.
  4. Store: cache \hat{\bm{\tau}}_{k}^{j}=\bm{\tau}_{0}^{j} for the next warm-start.

To reduce variance, we draw S trajectories per candidate from the shared warm-start and estimate the marginal likelihood as

\hat{p}(\mathbf{Z}_{1:k}\mid w^{j})\;=\;\frac{1}{S}\sum_{s=1}^{S}p\!\left(\mathbf{Z}_{1:k}\mid\bm{\tau}_{0}^{j,(s)}\right).
(9)

Combining these per-candidate marginal likelihoods with the candidate prior via Bayes’ rule yields the posterior p(w^{j}\mid\mathbf{Z}_{1:k}). Appendix B states the full inference procedure.

Figure 2: WoRD online inference on a 2-goal synthetic scenario. An agent (green) starts at the bottom of a 10\times 10 world and must reach one of two goals separated by a circular obstacle; WoRD maintains one denoising chain per candidate goal and updates a posterior as observations arrive. (a) Prior. Before any observation, the score network \bm{\epsilon}_{\theta} shapes Gaussian noise into two obstacle-aware trajectory clusters, one towards each waypoint, and the goal prior is uniform. (b) Ambiguity. The agent has skirted the lower edge of the obstacle but its heading is still consistent with both goals; both clusters survive and the posterior remains nearly balanced. A filtering baseline would already have collapsed onto one mode here. (c) Observation guidance. Once the agent commits left of the obstacle, the score-guidance term \nabla_{\bm{\tau}}\log p(\mathbf{Z}\mid\bm{\tau}) (orange) pins each chain to the observed path; the right cluster must arc awkwardly over the obstacle to remain reachable, and posterior mass shifts toward w^{1}. (d) Commitment. As the agent approaches w^{1}, the surviving chain dominates and the posterior collapses. Pseudocode is in algorithm 1.

5 Experiments

We evaluate WoRD on five domains and five baselines. The domains split into two settings by whether goal-directed behavior is distinctive in the early prefix: non-complex, with optimal trajectories that diverge early, and complex, with prefixes that stay ambiguous for many timesteps. The central claim under test is that WoRD preserves multimodal beliefs through these ambiguous prefixes, which yields better performance when premature unimodal commitment misrepresents the true posterior, while still converging onto w^{*} once the trajectory becomes distinctive. The formulation also transfers across agent types without method-level changes, consistent with the data-source-agnostic training procedure of section 4.2.

5.1 Setup

Domains. We created two simulated domains by procedurally generating 2D worlds: Sim 3WP and Sim 4WP use three and four waypoints, respectively, while Sim 4WP-complex (Sim 4WP-c) uses a four-waypoint complex variant with longer ambiguous prefixes. Obstacle layouts and trajectories are randomized to produce ambiguous prefixes, the setting in which multimodal belief preservation matters. For real-world data, we use two human-driven datasets. From the rounD dataset [15] we extracted the vehicle subset rounD vehicles (rounD-V); from the inD dataset [2] we extracted the pedestrian-agent subset inD pedestrians (inD-Ped). For each real-world domain, we retrain the score network with the same two-stage procedure described in section 4.2. Locations covered, goal extraction, clustering hyperparameters, per-domain sampling rates, observation models, and episode counts are in Appendix D. Sim 3WP and Sim 4WP are the non-complex domains; Sim 4WP-complex, rounD vehicles, and inD pedestrians are the complex domains with extended ambiguous prefixes.

Baselines.

We compare WoRD against five baselines spanning the main families of online goal-recognition methods, in the order of the failure-mode discussion in section 1: (1) Naive, a distance-and-heading geometric heuristic. It serves as a floor: since it ignores dynamics, observation history, and goal structure, a recognizer that fails to outperform it is mismatched to the domain. (2) Particle Filter (PF), structurally identical to OWR but replacing the per-waypoint Gaussian filter with a particle-based posterior, using dynamics propagation and observation-weighted resampling. This isolates the contribution of the unimodal Gaussian assumption from the rest of the OWR pipeline. (3) Online Waypoint Recognizer (OWR) [8], a UKF-per-waypoint filter whose precomputed reference trajectories are generated from a hand-specified dynamic model of the agent. (4) GRU Classifier (GRU) [4], trained with cross-entropy on the same trajectory data, the discriminative-learning alternative for goal recognition [3, 22] that sees the same data but commits to a single softmax per timestep with no generative model. (5) Reverse Diffuser (RD) [11], which uses the same WoRD model but applies observation guidance post-hoc rather than during denoising and re-initializes each chain from noise at every update; RD is thus a controlled instance of the predict-then-classify strategy.

Metrics. A goal recognizer faces two failure modes that argmax accuracy alone cannot separate. When a distinctive path is present, the optimal posterior peaks sharply on w^{*} and the recognizer should converge to it. When the prefix is non-distinctive (optimal plans toward different goals overlap), the true posterior is multimodal; unimodal collapse is the failure of placing \max_{j}p_{t}(w^{j}) on a single waypoint before the trajectory disambiguates the goal, locking the recognizer onto a commitment that may be wrong. We use four metrics chosen to expose both modes. Top-1 (\uparrow, fraction of timesteps with \arg\max_{j}p_{t}(w^{j})=w^{*}) and Brier (\downarrow, \tfrac{1}{T}\sum_{t,j}(p_{t}(w^{j})-\mathbb{1}[w^{j}{=}w^{*}])^{2}) test convergence and full-posterior calibration. CVaR0.1 (\uparrow, mean p_{t}(w^{*}) on the worst 10\% of (episode, timestep) pairs) and CaW (\downarrow, fraction of pairs with \max_{j}p_{t}(w^{j})\geq 0.92 on an incorrect waypoint) test the other failure mode: whether the recognizer keeps w^{*} in its support through ambiguous prefixes and avoids unimodal collapse, which argmax-style metrics underweight. Extended results, including per-scene inD/rounD breakdown, are in Appendix F.

Protocol. For each method we run 5 training seeds and evaluate each seed on 50 held-out episodes per simulation domain and 100 per real-world domain, reporting the mean \pm\;1.96\times\mathrm{SE} across seeds (Table 3). Real-world episodes come from a leave-one-location-out cross-validation, so the test location is never seen during training. All baselines see the same observation history \mathbf{Z}_{1:k} and candidate set \mathcal{W} at every timestep. Hardware, GRU retraining, ablation seeds, and per-method wall-clock are documented in Appendices C, F and E.

5.2 Results

Per-domain numbers are reported in Table 1 (simulation) and Table 2 (real-world); the four-metric trade-off scatter plots (fig. 5) are in Appendix F.

Table 1: Simulation results. Bold marks the best entry in each column. Sim 3WP and Sim 4WP are non-complex domains; Sim 4WP-complex is the complex variant.
  • Naive
    Top-1 (%) \uparrow 3WP
    64.2{\pm}2.1
    Top-1 (%) \uparrow 4WP
    55.6{\pm}2.4
    Top-1 (%) \uparrow 4WPc
    38.4{\pm}3.2
    Brier \downarrow [0,2] 3WP
    0.41{\pm}0.03
    Brier \downarrow [0,2] 4WP
    0.49{\pm}0.03
    Brier \downarrow [0,2] 4WPc
    0.59{\pm}0.04
  • OWR
    Top-1 (%) \uparrow 3WP
    81.4{\pm}1.6
    Top-1 (%) \uparrow 4WP
    75.2{\pm}1.9
    Top-1 (%) \uparrow 4WPc
    58.7{\pm}2.7
    Brier \downarrow [0,2] 3WP
    0.17{\pm}0.02
    Brier \downarrow [0,2] 4WP
    0.24{\pm}0.03
    Brier \downarrow [0,2] 4WPc
    0.34{\pm}0.03
  • PF
    Top-1 (%) \uparrow 3WP
    74.8{\pm}2.1
    Top-1 (%) \uparrow 4WP
    76.8{\pm}2.0
    Top-1 (%) \uparrow 4WPc
    64.2{\pm}2.4
    Brier \downarrow [0,2] 3WP
    0.19{\pm}0.02
    Brier \downarrow [0,2] 4WP
    0.23{\pm}0.02
    Brier \downarrow [0,2] 4WPc
    0.30{\pm}0.03
  • GRU
    Top-1 (%) \uparrow 3WP
    88.4{\pm}1.3
    Top-1 (%) \uparrow 4WP
    82.9{\pm}1.4
    Top-1 (%) \uparrow 4WPc
    67.8{\pm}2.1
    Brier \downarrow [0,2] 3WP
    0.12{\pm}0.01
    Brier \downarrow [0,2] 4WP
    0.16{\pm}0.02
    Brier \downarrow [0,2] 4WPc
    0.27{\pm}0.02
  • RD
    Top-1 (%) \uparrow 3WP
    84.3{\pm}1.4
    Top-1 (%) \uparrow 4WP
    80.7{\pm}1.6
    Top-1 (%) \uparrow 4WPc
    70.4{\pm}1.9
    Brier \downarrow [0,2] 3WP
    0.14{\pm}0.01
    Brier \downarrow [0,2] 4WP
    0.18{\pm}0.02
    Brier \downarrow [0,2] 4WPc
    0.23{\pm}0.02
  • WoRD
    Top-1 (%) \uparrow 3WP
    84.6{\pm}1.5
    Top-1 (%) \uparrow 4WP
    82.4{\pm}1.3
    Top-1 (%) \uparrow 4WPc
    78.2{\pm}1.6
    Brier \downarrow [0,2] 3WP
    0.13{\pm}0.01
    Brier \downarrow [0,2] 4WP
    0.17{\pm}0.02
    Brier \downarrow [0,2] 4WPc
    0.19{\pm}0.02
  • No data
    Top-1 (%) \uparrow 3WP
    CVaR0.1 \uparrow
    Top-1 (%) \uparrow 4WP
    CVaR0.1 \uparrow
    Top-1 (%) \uparrow 4WPc
    CVaR0.1 \uparrow
    Brier \downarrow [0,2] 3WP
    CaW (%) \downarrow
    Brier \downarrow [0,2] 4WP
    CaW (%) \downarrow
    Brier \downarrow [0,2] 4WPc
    CaW (%) \downarrow
  • Method
    Top-1 (%) \uparrow 3WP
    3WP
    Top-1 (%) \uparrow 4WP
    4WP
    Top-1 (%) \uparrow 4WPc
    4WPc
    Brier \downarrow [0,2] 3WP
    3WP
    Brier \downarrow [0,2] 4WP
    4WP
    Brier \downarrow [0,2] 4WPc
    4WPc
  • Naive
    Top-1 (%) \uparrow 3WP
    0.06{\pm}0.01
    Top-1 (%) \uparrow 4WP
    0.04{\pm}0.01
    Top-1 (%) \uparrow 4WPc
    0.03{\pm}0.01
    Brier \downarrow [0,2] 3WP
    19.8{\pm}2.0
    Brier \downarrow [0,2] 4WP
    28.4{\pm}2.7
    Brier \downarrow [0,2] 4WPc
    39.7{\pm}3.5
  • OWR
    Top-1 (%) \uparrow 3WP
    0.18{\pm}0.02
    Top-1 (%) \uparrow 4WP
    0.13{\pm}0.02
    Top-1 (%) \uparrow 4WPc
    0.08{\pm}0.01
    Brier \downarrow [0,2] 3WP
    11.4{\pm}1.6
    Brier \downarrow [0,2] 4WP
    17.6{\pm}2.0
    Brier \downarrow [0,2] 4WPc
    25.2{\pm}2.6
  • PF
    Top-1 (%) \uparrow 3WP
    0.26{\pm}0.02
    Top-1 (%) \uparrow 4WP
    0.22{\pm}0.02
    Top-1 (%) \uparrow 4WPc
    0.17{\pm}0.02
    Brier \downarrow [0,2] 3WP
    14.2{\pm}1.8
    Brier \downarrow [0,2] 4WP
    19.3{\pm}2.1
    Brier \downarrow [0,2] 4WPc
    23.1{\pm}2.3
  • GRU
    Top-1 (%) \uparrow 3WP
    0.13{\pm}0.02
    Top-1 (%) \uparrow 4WP
    0.10{\pm}0.02
    Top-1 (%) \uparrow 4WPc
    0.07{\pm}0.01
    Brier \downarrow [0,2] 3WP
    24.7{\pm}2.2
    Brier \downarrow [0,2] 4WP
    36.5{\pm}2.9
    Brier \downarrow [0,2] 4WPc
    50.8{\pm}3.7
  • RD
    Top-1 (%) \uparrow 3WP
    0.32{\pm}0.02
    Top-1 (%) \uparrow 4WP
    0.27{\pm}0.02
    Top-1 (%) \uparrow 4WPc
    0.22{\pm}0.02
    Brier \downarrow [0,2] 3WP
    7.0{\pm}1.3
    Brier \downarrow [0,2] 4WP
    14.6{\pm}1.8
    Brier \downarrow [0,2] 4WPc
    17.2{\pm}2.0
  • WoRD
    Top-1 (%) \uparrow 3WP
    0.48{\pm}0.02
    Top-1 (%) \uparrow 4WP
    0.43{\pm}0.02
    Top-1 (%) \uparrow 4WPc
    0.32{\pm}0.02
    Brier \downarrow [0,2] 3WP
    4.6{\pm}0.9
    Brier \downarrow [0,2] 4WP
    8.5{\pm}1.3
    Brier \downarrow [0,2] 4WPc
    11.4{\pm}1.6
Table 2: Real-world results. Bold marks the best entry in each column. rounD vehicles aggregates the three roundabout locations; inD pedestrians aggregates the four intersections. Per-scene splits are in section F.2.
  • Naive
    Top-1 (%) \uparrow rounD-V
    32.8{\pm}5.5
    Top-1 (%) \uparrow inD-Ped
    27.4{\pm}6.2
    Brier \downarrow [0,2] rounD-V
    0.63{\pm}0.06
    Brier \downarrow [0,2] inD-Ped
    0.67{\pm}0.08
    CVaR0.1 \uparrow rounD-V
    0.02{\pm}0.02
    CVaR0.1 \uparrow inD-Ped
    0.02{\pm}0.02
    CaW (%) \downarrow rounD-V
    44.6{\pm}5.8
    CaW (%) \downarrow inD-Ped
    50.1{\pm}6.6
  • OWR
    Top-1 (%) \uparrow rounD-V
    53.1{\pm}4.7
    Top-1 (%) \uparrow inD-Ped
    31.4{\pm}6.2
    Brier \downarrow [0,2] rounD-V
    0.42{\pm}0.06
    Brier \downarrow [0,2] inD-Ped
    0.48{\pm}0.07
    CVaR0.1 \uparrow rounD-V
    0.06{\pm}0.02
    CVaR0.1 \uparrow inD-Ped
    0.05{\pm}0.02
    CaW (%) \downarrow rounD-V
    29.8{\pm}4.4
    CaW (%) \downarrow inD-Ped
    47.8{\pm}5.9
  • PF
    Top-1 (%) \uparrow rounD-V
    62.7{\pm}4.5
    Top-1 (%) \uparrow inD-Ped
    54.2{\pm}5.2
    Brier \downarrow [0,2] rounD-V
    0.31{\pm}0.05
    Brier \downarrow [0,2] inD-Ped
    0.36{\pm}0.05
    CVaR0.1 \uparrow rounD-V
    0.14{\pm}0.03
    CVaR0.1 \uparrow inD-Ped
    0.11{\pm}0.03
    CaW (%) \downarrow rounD-V
    24.7{\pm}3.8
    CaW (%) \downarrow inD-Ped
    28.6{\pm}4.5
  • GRU
    Top-1 (%) \uparrow rounD-V
    63.4{\pm}4.6
    Top-1 (%) \uparrow inD-Ped
    57.1{\pm}5.4
    Brier \downarrow [0,2] rounD-V
    0.32{\pm}0.05
    Brier \downarrow [0,2] inD-Ped
    0.39{\pm}0.06
    CVaR0.1 \uparrow rounD-V
    0.05{\pm}0.02
    CVaR0.1 \uparrow inD-Ped
    0.04{\pm}0.02
    CaW (%) \downarrow rounD-V
    48.4{\pm}4.6
    CaW (%) \downarrow inD-Ped
    51.2{\pm}5.8
  • RD
    Top-1 (%) \uparrow rounD-V
    64.9{\pm}4.4
    Top-1 (%) \uparrow inD-Ped
    58.6{\pm}5.1
    Brier \downarrow [0,2] rounD-V
    0.27{\pm}0.05
    Brier \downarrow [0,2] inD-Ped
    0.31{\pm}0.05
    CVaR0.1 \uparrow rounD-V
    0.18{\pm}0.03
    CVaR0.1 \uparrow inD-Ped
    0.14{\pm}0.03
    CaW (%) \downarrow rounD-V
    22.4{\pm}3.4
    CaW (%) \downarrow inD-Ped
    24.4{\pm}3.4
  • WoRD
    Top-1 (%) \uparrow rounD-V
    71.3{\pm}3.7
    Top-1 (%) \uparrow inD-Ped
    65.7{\pm}5.1
    Brier \downarrow [0,2] rounD-V
    0.22{\pm}0.04
    Brier \downarrow [0,2] inD-Ped
    0.25{\pm}0.04
    CVaR0.1 \uparrow rounD-V
    0.34{\pm}0.02
    CVaR0.1 \uparrow inD-Ped
    0.26{\pm}0.04
    CaW (%) \downarrow rounD-V
    14.1{\pm}2.9
    CaW (%) \downarrow inD-Ped
    17.0{\pm}3.2

Overall. WoRD is best on every CVaR0.1 and CaW cell and on the Top-1 and Brier cells of all three complex domains; three of the four non-complex Top-1 and Brier cells are statistical ties with GRU under overlapping 95\% CIs, with Sim 3WP Top-1 the one cell where GRU leads outside the CI (Tables 1 and 2). The split between the argmax-style metrics and the multimodal-belief metrics follows from the mechanism: argmax wins require keeping w^{*} in the support throughout the prefix, which only matters when prefixes become ambiguous, while CVaR0.1 and CaW penalize unimodal collapse independently of whether the eventual argmax is correct.

Non-complex setting.

On Sim 3WP and Sim 4WP, goal-directed trajectories diverge early enough that an aggressive early commitment is usually correct: the clarifying signal arrives before a wrong hypothesis can compound into a persistent error. Top-1 and Brier consequently reduce to ties among methods that converge by the end of the prefix. GRU leads WoRD on Top-1 by 3.8 pp on Sim 3WP and 0.5 pp on Sim 4WP (Table 1); only the Sim 3WP gap falls outside the 95\% CI. This is the one cell where a discriminative classifier cleanly beats WoRD, because Sim 3WP prefixes disambiguate too early to reward belief preservation. Brier ties on both. CaW exposes the cost: GRU’s confident-and-wrong rate on Sim 3WP is 24.7{\pm}2.2, more than five times WoRD’s 4.6{\pm}0.9, because cross-entropy training commits confidently regardless of prefix ambiguity. Here the argmax is correct often enough to mask this miscalibration.

Complex setting.

rounD vehicles most clearly shows why multimodal belief preservation matters. Vehicles entering a roundabout follow an identical circular arc for most of the trajectory; the exit maneuver is the first and only distinctive part of the trajectory. Throughout the shared arc the optimal posterior is multimodal: a well-calibrated recognizer should distribute belief over all plausible exits and commit only as the exit signal emerges. CVaR0.1 directly tests whether a method maintains this distribution. GRU’s CVaR0.1 on rounD vehicles is 0.05{\pm}0.02: the true exit receives almost no probability mass during the shared arc, because cross-entropy training has already driven the softmax to commit to one exit long before the trajectory disambiguates the goal. WoRD’s CVaR0.1 is 0.34{\pm}0.02, a more than six-fold improvement, because per-step score guidance keeps probability spread across plausible exits and updates proportionally as the trajectory disambiguates the goal. CaW shows the downstream consequence: GRU emits a confident-and-wrong belief on 48.4{\pm}4.6 of (episode, timestep) pairs, while WoRD exceeds the 0.92 threshold on an incorrect hypothesis on only 14.1{\pm}2.9.

The same pattern holds across the full complex set. WoRD leads GRU on Top-1 by +10.4 pp on Sim 4WP-complex, +7.9 pp on rounD vehicles, and +8.6 pp on inD pedestrians, gaps that are negligible in the non-complex domains and arise because correct final recognition requires keeping w^{*} in the support throughout the ambiguous prefix. On inD pedestrians, where pedestrians share entry corridors before diverging to distinct destinations, GRU’s CaW reaches 51.2{\pm}5.8, on par with Naive’s 50.1{\pm}6.6 despite GRU’s access to the full observation history; cross-entropy training has amplified overconfidence to the point where GRU’s safety-critical error rate matches a method with no observation model at all. WoRD remains at 17.0{\pm}3.2, a 34 pp gap that Top-1 alone does not reveal.

Mechanism.

The Reverse Diffuser (RD) shares architecture and training with WoRD but applies the observation likelihood as post-hoc reweighting of unguided samples and re-initializes each denoising chain from noise at every update instead of warm-starting. The CaW gap between RD and WoRD therefore measures the joint contribution of online guidance and warm-start. That gap widens substantially in the complex setting: 2.4 pp on Sim 3WP, 6.1 pp on Sim 4WP, 5.8 pp on Sim 4WP-complex, 8.3 pp on rounD vehicles, and 7.4 pp on inD pedestrians. CVaR0.1 shows the same pattern: RD’s worst-decile p_{t}(w^{*}) on rounD vehicles is 0.18{\pm}0.03 compared to WoRD’s 0.34{\pm}0.02. Both metrics tie the multimodal belief advantage to online inference rather than to the architecture or prior, which the two methods share. The \lambda rows of Table 5 isolate guidance alone: at \lambda=0, Top-1 falls to chance.

Transfer.

OWR’s Top-1 drops by 50 pp from Sim 3WP to inD pedestrians (81.4{\pm}1.6 to 31.4{\pm}6.2) and PF’s by 20 pp (74.8{\pm}2.1 to 54.2{\pm}5.2) as their hand-coded dynamics models meet real-world geometry, while WoRD’s drop over the same span is 19 pp (84.6{\pm}1.5 to 65.7{\pm}5.1), comparable in magnitude; the loss is attributable to distribution shift in the learned prior, whereas OWR and PF lose to model misspecification.

Key finding.

WoRD is the only observer in our evaluation that improves on all four metrics jointly. It reduces the safety-critical confident-and-wrong rate by roughly 8 percentage points relative to the strongest baseline (Table 2), without regressing on Top-1 accuracy. The advantage is largest on domains with naturally ambiguous prefixes (intersections, roundabouts), where filter-based observers commit early and discriminative classifiers grow overconfident. The Reverse Diffuser, which shares WoRD’s score network but reweights unguided samples post-hoc, is the strongest baseline on CaW and trails WoRD by 0.06 Brier and \sim8 percentage points of confident-and-wrong rate. The safety-critical gain therefore comes from online inference rather than from the learned prior.

6 Conclusion

We present WoRD, which casts online goal recognition as posterior inference under a learned diffusion prior: each candidate waypoint anchors an independent denoising chain, observation guidance enters analytically through the gradient of the measurement model, and warm-starting keeps per-update cost compatible with online operation. Across three simulated and two real-world domains, WoRD is the only observer that improves on all four metrics jointly. It preserves calibrated multimodal beliefs through ambiguous prefixes where filter- and classifier-based observers collapse to a single mode or grow overconfident, and it lowers the confident-and-wrong rate by roughly 8 percentage points relative to the strongest baseline on real-world data.

Limitations. Three assumptions limit WoRD’s applicability. The candidate waypoint set \mathcal{W} must be specified in advance: the method recognizes goals from a known finite set and cannot discover new ones at inference time. This closed-set assumption is standard in goal recognition and shared with OWR; when it is violated, WoRD degrades toward uncertainty, whereas OWR commits confidently to a wrong goal (section E.1). All real-world results hold out the test location, so deployment does not require training data from the target site. Symbolic goal recognition over discrete action domains is complementary to our continuous-trajectory setting and outside our scope. The measurement model h must be known and differentiable; sensor models with non-differentiable gates (rejected detections, hard occlusion masks) require a smoothed surrogate. Finally, although warm-starting reduces per-update cost by a factor of N/i^{*}, WoRD remains more expensive per observation than a Kalman filter step (section C.1); on hardware-constrained platforms the appropriate operating point trades off the cost of confident-and-wrong predictions against inference latency.

Future Directions. WoRD currently operates on planar position trajectories; extending to full 3D state with attitude and angular velocity is a question of training data and network capacity rather than method-level changes. Open-set goal discovery, in which \mathcal{W} is augmented from observations, would relax the most restrictive limitation above; the conditional score network already supports continuous goal coordinates, so the remaining bottleneck is detecting new candidates. Latent diffusion would extend WoRD to image- or video-based intent inference without changing the inference principle, but raises two open problems: guidance is informative only if progress toward a goal varies smoothly in the learned latent geometry, and calibration must survive the encoder. Finally, the multimodal posteriors that WoRD maintains are the input that risk-sensitive planners need to reason about branching futures and deceptive agents.

Broader Impacts. Better-calibrated goal recognition supports safer autonomous planning: planners can defer commitment under ambiguity rather than collapse to a single hypothesis and replan when the agent diverges. The same framework applied to passive trajectory streams could enable behavioral surveillance, and a planner that anticipates pedestrian intent could in principle plan adversarially against humans. Responsible deployment therefore requires consent frameworks for the data sources that feed the score network, and oversight of the planners that consume WoRD’s posterior.

References

  1. [1] Inhwan Bae, Young-Jae Park, and Hae-Gon Jeon. SingularTrajectory: Universal trajectory predictor using diffusion model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17890–17901, 2024. doi: 10.1109/CVPR52733.2024.01694.
  2. [2] Julian Bock, Robert Krajewski, Tobias Moers, Steffen Runde, Lennart Vater, and Lutz Eckstein. The inD dataset: A drone dataset of naturalistic road user trajectories at German intersections. In IEEE Intelligent Vehicles Symposium (IV 2020), pages 1929–1934, 2020. doi: 10.1109/IV47402.2020.9304839.
  3. [3] Mattia Chiari, Alfonso Emilio Gerevini, Francesco Percassi, Luca Putelli, Ivan Serina, and Matteo Olivato. Goal Recognition as a Deep Learning Task: The GRNet Approach. Proceedings of the International Conference on Automated Planning and Scheduling, 33(1):560–568, July 2023. ISSN 2334-0843, 2334-0835. doi: 10.1609/icaps.v33i1.27237. URL https://ojs.aaai.org/index.php/ICAPS/article/view/27237.
  4. [4] Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1724–1734. Association for Computational Linguistics, 2014.
  5. [5] Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. In Advances in Neural Information Processing Systems 34 (NeurIPS 2021), 2021. URL https://proceedings.neurips.cc/paper/2021/hash/49ad23d1ec9fa4bd8d77d02681df5cfa-Abstract.html.
  6. [6] Osher Elhadad, Owen Morrissey, and Reuth Mirsky. General dynamic goal recognition using goal-conditioned and meta reinforcement learning. In Proc. of the 25th International Conference on Autonomous Agents and Multiagent Systems, AAMAS 2026, Paphos, Cyprus, May 25–29, 2026, 2026. URL https://arxiv.org/abs/2505.09737.
  7. [7] Tianpei Gu, Guangyi Chen, Junlong Li, Chunze Lin, Yongming Rao, Jie Zhou, and Jiwen Lu. Stochastic trajectory prediction via motion indeterminacy diffusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17113–17122, 2022.
  8. [8] Jia Guo, Sushrut Surve, Zilong He, Silvia Ferrari, and Sarah Keren. Online waypoint recognition of controlled agents in uncertain environments. In IEEE International Conference on Robotics and Automation, ICRA 2025, Atlanta, GA, USA, May 19-23, 2025, pages 12600–12606. IEEE, 2025. doi: 10.1109/ICRA55743.2025.11128799. URL https://doi.org/10.1109/ICRA55743.2025.11128799.
  9. [9] Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance, 2022. URL https://arxiv.org/abs/2207.12598. arXiv:2207.12598.
  10. [10] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020), 2020. URL https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html.
  11. [11] Michael Janner, Yilun Du, Joshua B. Tenenbaum, and Sergey Levine. Planning with diffusion for flexible behavior synthesis. In Proceedings of the 39th International Conference on Machine Learning (ICML 2022), pages 9902–9915, 2022. URL https://proceedings.mlr.press/v162/janner22a.html.
  12. [12] Chiyu Max Jiang, Andre Cornman, Cheolho Park, Ben Sapp, Yin Zhou, and Dragomir Anguelov. MotionDiffuser: Controllable multi-agent motion prediction using diffusion. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR 2023), 2023. URL https://openaccess.thecvf.com/content/CVPR2023/html/Jiang_MotionDiffuser_Controllable_Multi-Agent_Motion_Prediction_Using_Diffusion_CVPR_2023_paper.html.
  13. [13] Gal Kaminka, Mor Vered, and Noa Agmon. Plan recognition in continuous domains. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), Apr. 2018. doi: 10.1609/aaai.v32i1.12097. URL https://ojs.aaai.org/index.php/AAAI/article/view/12097.
  14. [14] Sarah Keren, Avigdor Gal, and Erez Karpas. Goal Recognition Design. Proceedings of the International Conference on Automated Planning and Scheduling, 24:154–162, May 2014. ISSN 2334-0843, 2334-0835. doi: 10.1609/icaps.v24i1.13617. URL https://ojs.aaai.org/index.php/ICAPS/article/view/13617.
  15. [15] Robert Krajewski, Tobias Moers, Julian Bock, Lennart Vater, and Lutz Eckstein. The round dataset: A drone dataset of road user trajectories at roundabouts in germany. In 2020 IEEE 23rd International Conference on Intelligent Transportation Systems (ITSC), pages 1–6, 2020. doi: 10.1109/ITSC45102.2020.9294728.
  16. [16] Jean Massardi, Mathieu Gravel, and Éric Beaudry. Error-Tolerant Anytime Approach to Plan Recognition Using a Particle Filter. Proceedings of the International Conference on Automated Planning and Scheduling, 29:284–291, July 2019. ISSN 2334-0843, 2334-0835. doi: 10.1609/icaps.v29i1.3490. URL https://ojs.aaai.org/index.php/ICAPS/article/view/3490.
  17. [17] Felipe Meneguzzi and Ramon Fraga Pereira. A survey on goal recognition as planning. In Proceedings of the 30th International Joint Conference on Artificial Intelligence (IJCAI), pages 4524–4532, 2021. doi: 10.24963/ijcai.2021/616.
  18. [18] Reuth Mirsky, Sarah Keren, and Christopher Geib. Introduction to symbolic plan and goal recognition, volume 16. Springer, 2021.
  19. [19] Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, pages 3942–3951, 2018. doi: 10.1609/aaai.v32i1.11671.
  20. [20] Miquel Ramırez and Hector Geffner. Plan recognition as planning. In Proceedings of the 21st international joint conference on Artifical intelligence. Morgan Kaufmann Publishers Inc, pages 1778–1783, 2009.
  21. [21] Miguel Ramírez and Hector Geffner. Probabilistic Plan Recognition Using Off-the-Shelf Classical Planners. Proceedings of the AAAI Conference on Artificial Intelligence, 24(1):1121–1126, July 2010. ISSN 2374-3468, 2159-5399. doi: 10.1609/aaai.v24i1.7745. URL https://ojs.aaai.org/index.php/AAAI/article/view/7745.
  22. [22] Lorenzo Serina, Mattia Chiari, Alfonso Emilio Gerevini, Luca Putelli, and Ivan Serina. Towards efficient online goal recognition through deep learning. In Proceedings of the 24th International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2025), pages 1895–1903. International Foundation for Autonomous Agents and Multiagent Systems / ACM, 2025. doi: 10.5555/3709347.3743826. URL https://dl.acm.org/doi/10.5555/3709347.3743826.
  23. [23] Matan Shamir and Reuth Mirsky. GRAML: Goal recognition as metric learning. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence (IJCAI 2025), pages 8626–8634, 2025. doi: 10.24963/ijcai.2025/959. URL https://www.ijcai.org/proceedings/2025/959.
  24. [24] Shirin Sohrabi, Anton V. Riabov, and Octavian Udrea. Plan recognition as planning revisited. In Proceedings of the 25th International Joint Conference on Artificial Intelligence (IJCAI), pages 3258–3264, 2016. URL https://www.ijcai.org/Abstract/16/461.
  25. [25] Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems (NeurIPS), volume 32, 2019.
  26. [26] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In 9th International Conference on Learning Representations (ICLR 2021). OpenReview.net, 2021. URL https://openreview.net/forum?id=PxTIG12RRHS. arXiv:2011.13456.
  27. [27] Gita Sukthankar, Christopher W. Geib, Hung Hai Bui, David V. Pynadath, and Robert P. Goldman, editors. Plan, Activity, and Intent Recognition: Theory and Practice. Morgan Kaufmann, Waltham, MA, USA, 2014. ISBN 978-0-12-398532-3.
  28. [28] Xiaolong Tang, Meina Kan, Shiguang Shan, Zhilong Ji, Jinfeng Bai, and Xilin Chen. HPNet: Dynamic trajectory forecasting with historical prediction attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 15261–15270, 2024. doi: 10.1109/CVPR52733.2024.01445.
  29. [29] Franz A. Van-Horenbeke and Angelika Peer. Activity, Plan, and Goal Recognition: A Review. Frontiers in Robotics and AI, 8:643010, May 2021. ISSN 2296-9144. doi: 10.3389/frobt.2021.643010. URL https://www.frontiersin.org/articles/10.3389/frobt.2021.643010/full.
  30. [30] Benjamin Wilson, William Qi, Tanmay Agarwal, John Lambert, Jagjeet Singh, Siddhesh Khandelwal, Bowen Pan, Ratnesh Kumar, Andrew Hartnett, Jhony Kaesemodel Pontes, Deva Ramanan, Peter Carr, and James Hays. Argoverse 2: Next generation datasets for self-driving perception and forecasting. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 2021.
  31. [31] Bozhou Zhang, Nan Song, and Li Zhang. DeMo: Decoupling motion forecasting into directional intentions and dynamic states. In Advances in Neural Information Processing Systems (NeurIPS), volume 37, 2024.
  32. [32] Zikang Zhou, Jianping Wang, Yung-Hui Li, and Yu-Kai Huang. Query-centric trajectory prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17863–17873, 2023.

Appendix A Bayes’ Rule on Observations

Bayes’ rule applied to p(\bm{\tau}_{i}\mid w^{j},\mathbf{Z}_{1:k}) gives

p(\bm{\tau}_{i}\mid w^{j},\mathbf{Z}_{1:k})\;=\;\frac{p(\mathbf{Z}_{1:k}\mid\bm{\tau}_{i},w^{j})\,p(\bm{\tau}_{i}\mid w^{j})}{p(\mathbf{Z}_{1:k}\mid w^{j})}.
(10)

Taking the logarithm and then the gradient with respect to \bm{\tau}_{i} removes the evidence term \log p(\mathbf{Z}_{1:k}\mid w^{j}), which is constant in \bm{\tau}_{i}:

\nabla_{\bm{\tau}_{i}}\log p(\bm{\tau}_{i}\mid w^{j},\mathbf{Z}_{1:k})\;=\;\nabla_{\bm{\tau}_{i}}\log p(\bm{\tau}_{i}\mid w^{j})\;+\;\nabla_{\bm{\tau}_{i}}\log p(\mathbf{Z}_{1:k}\mid\bm{\tau}_{i},w^{j}).
(11)

The measurement model of eq. 1 depends on the trajectory alone, so p(\mathbf{Z}_{1:k}\mid\bm{\tau}_{i},w^{j})=p(\mathbf{Z}_{1:k}\mid\bm{\tau}_{i}), recovering eq. 6 with \lambda=1. In practice, following classifier guidance [5], we treat \lambda as a tunable guidance scale: \lambda>1 sharpens the posterior toward observation-consistent trajectories at the cost of prior coverage, while \lambda<1 relaxes it. The Bayesian derivation no longer holds exactly under \lambda\neq 1; we report sensitivity in Appendix E.

Appendix B Online inference algorithm

Algorithm 1 shows the full WoRD online process.

Algorithm 1 WoRD Online Inference with Warm-Start

The pseudocode maps line-by-line to the equations of section 4. Lines 1 and 2 implement the warm-start branch: at the first observation (k{=}1) every candidate’s chain is initialized from pure noise and runs through the full N reverse steps, while at every subsequent step the cached estimate \hat{\bm{\tau}}_{k-1}^{j} is re-noised to i^{*} via the closed-form forward marginal of eq. 8. Lines 3 through 10 form the guided reverse chain, repeated independently per candidate w^{j}: line 5 evaluates the stage-2 noise predictor \bm{\epsilon}_{\theta} from section 4.2; line 6 computes the observation-likelihood gradient \mathbf{g}^{j} of eq. 7 by backpropagation through the measurement model h, exploiting the differentiability assumption of section 3; line 7 forms the standard DDPM mean of eq. 4; and line 8 draws the next iterate from a Gaussian whose mean is shifted by the guidance term \sigma_{i}^{2}\mathbf{g}^{j}, implementing the score modification of eq. 6. Line 11 reweights the candidates via Bayes’ rule with a uniform candidate prior and the single-sample marginal-likelihood estimator of eq. 9 (the S{=}1 case), evaluating the observation likelihood at the denoised endpoint \bm{\tau}_{0}^{j} and normalizing across j to produce a proper distribution. Line 12 caches this endpoint per candidate so that the next observation can re-noise from a near-data-manifold trajectory rather than from pure noise. The output is the full waypoint posterior \{p(w^{j}\mid\mathbf{Z}_{1:k})\}_{j=1}^{N} over \mathcal{W}, which the multimodal-belief metrics of section 5 (CVaR0.1, CaW, Brier) consume directly rather than reduced to an argmax.

Appendix C Implementation details

Architecture.

The score network is a Temporal U-Net [11] operating on trajectory tensors of shape (T,d_{\text{in}}) with T{=}100 and d_{\text{in}}{=}6 input channels per timestep: the diffused position (\bm{\tau}_{x},\bm{\tau}_{y}), the observed position (\mathbf{z}_{x},\mathbf{z}_{y}), the observation mask, and the heading \theta. The encoder uses three downsampling scales with channel widths [32,64,128] and two residual blocks per scale; the decoder mirrors the encoder with skip connections. Each residual block is a 1D convolution (kernel size 3) followed by GroupNorm (8 groups) and a SiLU nonlinearity, with FiLM conditioning [19] injected by a learned linear projection from the concatenation of the waypoint embedding w^{j}\in\mathbb{R}^{2} and a sinusoidal diffusion-step embedding of dimension 64. The output head projects back to (T,2), predicting noise on the (x,y) channels only. The full network has 2.2M parameters.

Hyperparameters.

Table 3 lists the hyperparameters used throughout the paper for both training and online inference. Inference values are the canonical defaults; ablations on i^{*}, \lambda, S, and the score-network architecture are reported in Appendix E.

Table 3: Implementation hyperparameters used in WoRD experiments.
  • Diffusion
    Hyperparameter
    Trajectory horizon T
    Value
    100
  • Number of steps N
    Hyperparameter
    100
  • \beta schedule
    Hyperparameter
    linear, \beta\in[10^{-4},\,2{\times}10^{-2}]
  • Network
    Hyperparameter
    Architecture
    Value
    Temporal U-Net
  • Channels per scale
    Hyperparameter
    [32,64,128]
  • Residual blocks per scale
    Hyperparameter
    2
  • Time embedding dim
    Hyperparameter
    64
  • Conditioning
    Hyperparameter
    FiLM on w^{j}
  • Total parameters
    Hyperparameter
    2.2M
  • Training (both stages)
    Hyperparameter
    Optimizer
    Value
    Adam, lr =10^{-4}
  • Batch size
    Hyperparameter
    64
  • Gradient clip (\ell_{2})
    Hyperparameter
    1.0
  • Epochs (stage 1 / stage 2)
    Hyperparameter
    200 / 100
  • Stage 2 augmentation
    Hyperparameter
    Prefix length sampling
    Value
    k=\lfloor\rho T\rfloor,\;\rho\sim\mathcal{U}(0.3,\,0.9)
  • Observation noise std
    Hyperparameter
    0.1
  • Inference
    Hyperparameter
    Warm-start step i^{*}
    Value
    20
  • Guidance scale \lambda
    Hyperparameter
    1.0
  • Samples per candidate S
    Hyperparameter
    50
  • Posterior temperature \tau
    Hyperparameter
    1
  • Evaluation
    Hyperparameter
    Training seeds
    Value
    5
  • Episodes per seed (sim.)
    Hyperparameter
    50
  • Episodes per seed (real-world)
    Hyperparameter
    100
Compute.

All training and evaluation use a single NVIDIA L40 GPU. Two-stage training completes in under one day on the simulation dataset and in a few hours per recording fold on inD and rounD. Online inference cost is dominated by the U-Net forward pass and scales linearly in the warm-start step i^{*} and the sample count S.

C.1 Runtime

Table 4 reports the per-update wall-clock of every method, averaged over 10{,}000 updates, with all methods of a scenario timed on the same GPU. The cost of the classical filters grows with the number of candidates, whereas both diffusion-based methods are dominated by a fixed per-update denoising cost that is insensitive to it.

Table 4: Per-update wall-clock in milliseconds, mean over 10{,}000 updates. All methods within a scenario are timed on the same GPU.
  • Naive
    2WP
    0.036
    3WP
    0.036
    4WP
    0.038
  • OWR (UKF)
    2WP
    0.96
    3WP
    1.40
    4WP
    1.89
  • Particle Filter
    2WP
    0.85
    3WP
    1.26
    4WP
    1.69
  • GRU
    2WP
    2.70
    3WP
    2.72
    4WP
    2.72
  • WoRD (ours)
    2WP
    6.8
    3WP
    10.3
    4WP
    12.2
  • Reverse Diffuser
    2WP
    111
    3WP
    169
    4WP
    199

Iterative denoising is more expensive per update than a Kalman or particle-filter step; WoRD’s per-update cost of 6.8 to 12.2 ms is nonetheless of the same order as the 10 ms observation budget and therefore compatible with online operation. Goal recognition also tolerates a slower update rate than low-level control, since the destination of a pedestrian or vehicle remains stable over seconds and the belief is consumed by a planning or decision layer. The implementation is not optimized for inference speed: it runs in full precision with an uncompiled sampling loop and without step distillation, so table 4 is an upper bound on the cost of WoRD.

WoRD is roughly 16\times faster than the Reverse Diffuser, which re-initializes every denoising chain from noise at each update; warm-starting from the previous estimate removes this cost. In the 2WP ablation setting (table 5), a cold start (i^{*}=100) is about 5\times slower than the default i^{*}=20 and also less accurate. The cost can be reduced further at a modest loss in accuracy: relative to the default configuration, S=25 samples per candidate cost about 0.6\times at 91.2 Top-1 (against 93.1), and the MLP score network costs about 0.7\times at 89.2 Top-1.

Appendix D Datasets

D.1 Real-World Datasets

Figure 3: Representative locations from the two real-world domains, with DBSCAN-extracted candidate goals overlaid. Stars mark cluster centroids of agent terminal positions. Aerial backgrounds are recordings rec28 (inD) and rec00 (rounD).
Goal extraction.

For both real-world domains (inD pedestrians and rounD vehicles), candidate goals are extracted from the terminal positions of agent trajectories using per-agent-group DBSCAN clustering, with \varepsilon{=}3.5 m and \textsc{min\_samples}{=}5. Figure 3 shows one location from each domain with the recovered candidate set overlaid on the recording’s aerial. Per-domain sampling rates, observation models, and episode counts are summarized below.

D.2 Simulation

Figure 4: Synthetic simulation scenarios for diverse-dataset training and candidate-count scaling.
Synthetic scenarios.

The synthetic environments used for diverse-dataset training and the candidate-count scaling experiments are configurable 10{\times}10 m worlds with a differential-drive agent and static circular obstacles. In each panel of fig. 4, stars denote the candidate goals \{w^{j}\}, the white circle marks the shared start at (5,\,1.5), and gray discs are the obstacles. The 3WP scenario (fig. 4(a)) places three top-row goals around a single central obstacle. The simple 4WP scenario (fig. 4(b)) retains that obstacle but compresses the goal set into a single horizontal row, isolating the effect of candidate count. The complex 4WP variant (fig. 4(c)) replaces the central obstacle with four scattered discs that induce two sequential lateral forks before the agent reaches the goal row, isolating the effect of obstacle layout. The full diverse training pool covers 50 environments sampled from this configuration space.

Appendix E Ablation studies

These ablations probe sensitivity to design choices; the primary evidence for our main claims is the five-domain evaluation in section 5. All runs use the 2WP toy environment: a 10\times 10 m world with two goals at (3,8) and (7,8), a single circular obstacle of radius 1 at (5,5), and a fixed start at (5,1.5). The symmetric two-goal layout admits a closed-form analytical posterior, which we use as a ground-truth reference to cross-check implementations before scaling to the full evaluation set. Each cell reports the mean and bootstrap 95\% CI over (episode, timestep) pairs from n=5 training seeds. The direction of each effect below transfers to the five primary domains, though the absolute magnitudes do not.

Table 5: Ablation studies on WoRD design choices, all runs on the 2WP environment. Default configuration shaded. CIs are bootstrap 95\% over (\text{episode},\,t) pairs from n=5 seeds.
  • Warm-start i^{*}
    Value
    0 (no re-noise)
    Top-1 \uparrow
    76.2{\pm}2.4
    Brier \downarrow
    0.20{\pm}0.02
  • 10
    Value
    88.7{\pm}1.8
    Top-1 \uparrow
    0.10{\pm}0.01
  • 20 (default)
    Value
    93.1{\pm}1.4
    Top-1 \uparrow
    0.07{\pm}0.01
  • 100 (cold start)
    Value
    89.4{\pm}1.7
    Top-1 \uparrow
    0.09{\pm}0.01
  • Guidance \lambda
    Value
    0.0 (prior only)
    Top-1 \uparrow
    49.1{\pm}2.1
    Brier \downarrow
    0.32{\pm}0.02
  • 0.5
    Value
    81.6{\pm}2.0
    Top-1 \uparrow
    0.13{\pm}0.02
  • 1.0 (default)
    Value
    93.4{\pm}1.4
    Top-1 \uparrow
    0.07{\pm}0.01
  • 5.0
    Value
    58.7{\pm}2.3
    Top-1 \uparrow
    0.13{\pm}0.02
  • Architecture
    Value
    Temporal U-Net
    Top-1 \uparrow
    93.1{\pm}1.4
    Brier \downarrow
    0.07{\pm}0.01
  • MLP
    Value
    89.2{\pm}1.9
    Top-1 \uparrow
    0.09{\pm}0.02
  • Samples S
    Value
    10
    Top-1 \uparrow
    86.4{\pm}2.0
    Brier \downarrow
    0.12{\pm}0.02
  • 25
    Value
    91.2{\pm}1.6
    Top-1 \uparrow
    0.09{\pm}0.01
  • 50 (default)
    Value
    93.1{\pm}1.4
    Top-1 \uparrow
    0.07{\pm}0.01
  • 100
    Value
    93.6{\pm}1.5
    Top-1 \uparrow
    0.06{\pm}0.01

E.1 Sensitivity to the candidate set

The closed-set assumption of section 3 can fail at deployment in two ways: \mathcal{W} may contain irrelevant candidates, or it may omit the agent’s true destination. We test both cases on 2WP with the trained 2WP model and without retraining, which is possible because the network is conditioned on waypoint coordinates rather than on a fixed set of class indices (section 4.1). The GRU classifier cannot be evaluated in either case, since its output layer is fixed to the training goals.

Irrelevant candidates.

We add 2 or 6 distractor candidates placed away from the paths to the two true goals. As the candidate set grows, the accuracy of WoRD falls and its peak confidence falls with it (table 6): six distractors cost 18 points of accuracy and 31 points of peak confidence. This coupling is the property a downstream planner relies on, since a belief that loses accuracy while retaining its confidence would mislead it. The model-based baselines retain a confidence of 1.0 in this setting, because their hand-specified reference trajectories rule out off-path candidates entirely; the same mechanism makes them confidently wrong when the true goal is absent.

Table 6: Irrelevant distractor candidates added to the 2WP candidate set. Accuracy, CaW, and mean peak confidence of WoRD.
  • 2 goals (control)
    Acc \uparrow
    0.93
    CaW \downarrow
    0.00
    Max-conf
    0.91
  • +2 distractors (4)
    Acc \uparrow
    0.82
    CaW \downarrow
    0.24
    Max-conf
    0.63
  • +6 distractors (8)
    Acc \uparrow
    0.75
    CaW \downarrow
    0.30
    Max-conf
    0.60
True goal removed.

For each test episode we remove the true goal, so that every observer receives the remaining goal and two off-path candidates and no candidate explains the observed motion. Since every candidate is wrong, any confidence is misplaced. Table 7 reports the confidence each observer places on its top candidate at the final step, over 200 episodes (100 per removed goal).

Table 7: True goal removed from the candidate set (2WP, 200 episodes). With no correct candidate, lower confidence and higher entropy are better. Values at the final step, averaged over the two removed-goal conditions. Entropy uses the natural logarithm, so its maximum for three candidates is \ln 3\approx 1.10 nats.
  • WoRD (ours)
    Mean max-conf \downarrow
    0.80
    Episodes with max-conf \geq 0.9 \downarrow
    3\%
    Entropy (nats) \uparrow
    0.58
  • Particle Filter
    Mean max-conf \downarrow
    0.82
    Episodes with max-conf \geq 0.9 \downarrow
    38\%
    Entropy (nats) \uparrow
    0.45
  • Naive
    Mean max-conf \downarrow
    0.98
    Episodes with max-conf \geq 0.9 \downarrow
    95\%
    Entropy (nats) \uparrow
    0.04
  • OWR
    Mean max-conf \downarrow
    1.00
    Episodes with max-conf \geq 0.9 \downarrow
    100\%
    Entropy (nats) \uparrow
    0.00

WoRD is the least confident observer when the true goal is absent (table 7). OWR renormalizes its near-deterministic likelihoods over the remaining candidates and commits to a wrong goal with full confidence in every episode, whereas WoRD weights each candidate by how well the learned prior explains the observed motion, so that no candidate receives confident mass when none fits. The same weighting explains the distractor result: implausible candidates are down-weighted without receiving zero mass, so adding them dilutes the confidence of WoRD.

Appendix F Extended experimental results

F.1 Pareto trade-offs across metrics

Figure 5 reads the per-cell rankings of Tables 1 and 2 as four metric trade-offs, with one point per (method, domain) on each panel. Color identifies the method; marker shape identifies the domain (legend below the figure). The four panels separate the two failure modes the metrics target: panels (a) and (b) ask whether a method converges and is calibrated when it does; panels (c) and (d) ask whether it preserves multimodal belief through ambiguous prefixes. Methods that win one pair but not the other, most visibly GRU on (b) but not (c), are the reason we report four metrics rather than Top-1 alone.

Figure 5: Four metric trade-offs across the five evaluation domains. Each panel scatters one point per (method, domain) for the six methods over the five domains. Colour identifies the method; marker shape identifies the domain (legend below). WoRD points carry a thicker outline. The desirable corner is bottom-right in every panel; panel (d) reverses the x-axis so lower Brier still points right.

Panel (a), Top-1 vs. CaW (accuracy vs. safety): WoRD reaches the desirable corner on every domain, and the orange cluster sits well below the GRU red cluster on the three complex domains (triangle, diamond, pentagon). Panel (b), Top-1 vs. Brier (accuracy vs. calibration): on the non-complex sim domains (circle, square) GRU and WoRD are statistical ties; on the three complex domains WoRD dominates by a Brier margin that grows with prefix ambiguity. Panel (c), CVaR0.1 vs. CaW (tail success vs. tail failure): the most direct test of multimodal belief preservation. WoRD sits uniformly to the right of every other method, and the gap is largest on rounD-V (diamond), where the shared circular arc keeps the optimal posterior multimodal for most of the trajectory. Panel (d), Brier vs. CaW with reversed x-axis: the bottom-right corner combines low calibration error with low unimodal collapse; the GRU cluster (red) sits high on CaW despite competitive Brier, the signature of cross-entropy overconfidence. Per-cell numerical values are in Tables 1 and 2.

F.2 Per-scene inD/rounD breakdown

Table 8 decomposes the headline real-world Top-1 numbers by recording location: inD pedestrians at four signalized-intersection locations (Loc 1–4 in standard inD nomenclature, left half) and rounD vehicle traffic at three roundabout locations (Loc 0–2, right half). The rightmost “Avg” column reproduces the headline Top-1 from Table 2; per-location standard deviations across the 5 training seeds range from \pm 2.4 to \pm 4.2 for WoRD and from \pm 3.1 to \pm 5.3 for the baselines. The method ordering, WoRD > RD > GRU > PF > OWR > Naive, is preserved at every location, so the aggregate ranking is not driven by a single easy or hard scene. Rank-preserving variation across locations spans 6–10 Top-1 points within each dataset and reflects geometry density: rounD Loc 0 (the densest roundabout) and inD Loc 3–4 (the largest multi-arm intersections) are the hardest scenes for every method.

Table 8: Top-1 accuracy decomposed by recording location for the two real-world domains. Left: inD pedestrians, four signalized-intersection locations. Right: rounD vehicle traffic, three roundabout locations.