Abstract
The indeterminate nature of human motion requires trajectory prediction systems to use a probabilistic model to formulate the multi-modality phenomenon and infer a finite set of future trajectories. However, the inference processes of most existing methods rely on Monte Carlo random sampling, which is insufficient to cover the realistic paths with finite samples, due to the long tail effect of the predicted distribution. To promote the sampling process of stochastic prediction, we propose a novel method, called BOsampler, to adaptively mine potential paths with Bayesian optimization in an unsupervised manner, as a sequential design strategy in which new prediction is dependent on the previously drawn samples. Specifically, we model the trajectory sampling as a Gaussian process and construct an acquisition function to measure the potential sampling value. This acquisition function applies the original distribution as prior and encourages exploring paths in the long-tail region. This sampling method can be integrated with existing stochastic predictive models without retraining. Experimental results on various baseline methods demonstrate the effectiveness of our method.
Introduction
Human movement is inherently multimodal. Given a short history of movement, a pedestrian might continue straight, decelerate, or execute a sudden turn. Modern stochastic trajectory prediction models, such as those based on Generative Adversarial Networks (GANs) or Variational Autoencoders (VAEs), attempt to capture this by learning a probability distribution over possible future paths.
The standard approach for generating predictions from these models is Monte Carlo (MC) sampling. However, MC sampling is inherently biased toward high-probability regions of the distribution. In scenarios involving "long-tail" events—low-probability but high-impact movements like sudden U-turns—random sampling often fails to generate the ground truth path within a finite number of samples. While some methods attempt to address this through specialized training losses, these require retraining and access to original datasets.
The BOsampler Framework
To overcome the limitations of random sampling, we introduce BOsampler, an unsupervised, "plug-and-play" sampling method that leverages Bayesian Optimization (BO) to adaptively explore the latent space of pre-trained models.
Bayesian Optimization for Sampling
BOsampler treats the search for diverse and accurate trajectories as a sequential optimization problem. Instead of independent random draws, each new sample is informed by the previous ones.
- Gaussian Process (GP) Surrogate: The relationship between latent variables (the model's noise input) and the resulting trajectory is modeled as a Gaussian Process. This provides a probabilistic estimate of the trajectory space.
- Acquisition Function: To select the next point in the latent space to sample, BOsampler uses an acquisition function that balances exploitation (sampling near high-probability modes) and exploration (searching regions with high uncertainty).
- Pseudo-Score Mechanism: Since the ground truth is unknown at inference time, BOsampler employs a "pseudo-score" to guide the optimization. It calculates the distance between a candidate trajectory and the model's most likely (mode) prediction, encouraging the discovery of plausible yet distinct paths.
Experimental Evaluation
The method was evaluated using the ETH-UCY benchmark, comprising five real-world pedestrian datasets. To specifically test the ability to handle long-tail events, the researchers identified an "Exception Subset" consisting of the top 4% most abnormal trajectories (e.g., those with significant deviations from linear motion).
BOsampler was integrated with several state-of-the-art baseline models, including Social-GAN and Social-STGCNN, without any retraining of the underlying networks.
Results and Discussion
Experimental results demonstrate that BOsampler significantly outperforms standard MC and Quasi-Monte Carlo (QMC) sampling, particularly in challenging scenarios:
- Exception Subset Improvements: On abnormal trajectories, BOsampler achieved an average reduction in Average Displacement Error (ADE) of 23.71% and Final Displacement Error (FDE) of 27.49% compared to MC sampling.
- Model Agnosticism: The performance gains were consistent across different architectures. For instance, Social-STGCNN saw a 44% improvement in FDE on exception cases when using BOsampler.
- Robustness: Even on the full dataset, where most paths are standard, BOsampler maintained or improved accuracy, proving it does not degrade performance on "easy" cases while excelling on "hard" ones.
Limitations
The primary trade-off for this improved coverage is computational latency. Because BOsampler is a sequential process, it is currently slower than parallelized MC sampling. For 512 samples, BOsampler required approximately 8.6 seconds compared to 4.9 seconds for MC. Future work will focus on optimizing this sequential bottleneck for real-time applications.
Conclusion
BOsampler provides a powerful, unsupervised way to enhance existing stochastic trajectory prediction models. By reframing inference as an adaptive search process, it effectively mitigates the long-tail problem, ensuring that rare but critical human movements are captured without the need for costly model retraining.
Summary updated