arXiv:2611.23192cs.AINov 2026

Manuscript Offprint

arXiv:2611.23192

WoRD: Diffusion-Based Posterior Inference for Online Goal Recognition

Almog Anschel, Sarah Keren

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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

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 w1w^{1}, red w2w^{2}) so a faithful belief over the agent’s goal must keep both alive until later observations rule one out.

References (32)