Trajectory Forecasting through Low-Rank Adaptation of Discrete Latent Codes
Riccardo Benaglia, Angelo Porrello, Pietro Buzzega, Simone Calderara, Rita Cucchiara
TL;DR
This work tackles multi-agent trajectory forecasting with a multi-modal generative model that mitigates posterior collapse by using a Vector Quantized VAE (VQ-VAE) with a context-aware, instance-based codebook. A low-rank adaptation mechanism conditions the codebook on past motion and neighbor interactions, producing a flexible yet compact latent space $e_c$ for discrete representations. A diffusion-based categorical prior then enables non-autoregressive sampling of latent codes, while a k-means centroids strategy improves multi-modal coverage and reduces noise. The approach achieves state-of-the-art results on three benchmarks (e.g., Stanford Drone, NBA, NFL) and demonstrates strong ablations, confirming the benefits of per-instance codebook customization and discrete diffusion for trajectory forecasting, with practical implications for surveillance, sports analytics, and autonomous systems.
Abstract
Trajectory forecasting is crucial for video surveillance analytics, as it enables the anticipation of future movements for a set of agents, e.g. basketball players engaged in intricate interactions with long-term intentions. Deep generative models offer a natural learning approach for trajectory forecasting, yet they encounter difficulties in achieving an optimal balance between sampling fidelity and diversity. We address this challenge by leveraging Vector Quantized Variational Autoencoders (VQ-VAEs), which utilize a discrete latent space to tackle the issue of posterior collapse. Specifically, we introduce an instance-based codebook that allows tailored latent representations for each example. In a nutshell, the rows of the codebook are dynamically adjusted to reflect contextual information (i.e., past motion patterns extracted from the observed trajectories). In this way, the discretization process gains flexibility, leading to improved reconstructions. Notably, instance-level dynamics are injected into the codebook through low-rank updates, which restrict the customization of the codebook to a lower dimension space. The resulting discrete space serves as the basis of the subsequent step, which regards the training of a diffusion-based predictive model. We show that such a two-fold framework, augmented with instance-level discretization, leads to accurate and diverse forecasts, yielding state-of-the-art performance on three established benchmarks.
