Trajectory forecasting is a sequential prediction task, where a forecasting model predicts future trajectories of all moving agents (humans, vehicles, etc.) in a scene, based on their past trajectories and/or the scene context. (Illustrative figure from Social NCE: Contrastive Learning of Socially-aware Motion Representations)