Forecasting the Past: Gradient-Based Distribution Shift Detection in Trajectory Prediction
Not on the map. Why?
Abstract (arXiv)
Trajectory prediction models often fail in real-world automated driving due to distributional shifts between training and test conditions. Such distributional shifts, whether behavioural or environmental, pose a critical risk by causing the model to make incorrect forecasts in unfamiliar situations. We propose a self-supervised method that trains a decoder in a post-hoc fashion on the self-supervised task of forecasting the second half of observed trajectories from the first half. The L2 norm of the gradient of this forecasting loss with respect to the decoder's final layer defines a score to identify distribution shifts. Our approach, first, does not affect the trajectory prediction model, ensuring no interference with original prediction performance and second, demonstrates substantial improvements on distribution shift detection for trajectory prediction on the Shifts and Argoverse datasets. Moreover, we show that this method can also be used to early detect collisions of a deep Q-Network motion planner in the Highway simulator. Source code is available at https://github.com/Michedev/forecasting-the-past.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 34 of its 40 references that are in the map. First posted on arXiv 14 Apr 2026.
Builds on
34 of 40 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2019nuScenes: A multimodal dataset for autonomous drivingcited by 4,485
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2017GradNorm: Gradient Normalization for Adaptive Loss Balancing in Deep Multitask Networkscited by 816
- 2019Argoverse: 3D Tracking and Forecasting with Rich Mapscited by 728
- 2021Large Scale Interactive Motion Forecasting for Autonomous Driving : The Waymo Open Motion Datasetcited by 532
- 2017End-to-end Driving via Conditional Imitation Learningcited by 479
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 338
- 2019INTERACTION Dataset: An INTERnational, Adversarial and Cooperative moTION Dataset in Interactive Driving Scenarios with Semantic Mapscited by 231
22 more
- 2020Can Autonomous Vehicles Identify, Recover From, and Adapt to Distribution Shifts?cited by 139
- 2017A Tutorial on Kernel Density Estimation and Recent Advancescited by 100
- 2021Shifts: A Dataset of Real Distributional Shift Across Multiple Large-Scale Taskscited by 100
- 2018Deep Imitative Models for Flexible Inference, Planning, and Controlcited by 75
- 2024UniTraj: A Unified Framework for Scalable Vehicle Trajectory Predictioncited by 51
- 2023ADAPT: Efficient Multi-Agent Trajectory Prediction with Adaptationcited by 39
- 2022S2TNet: Spatio-Temporal Transformer Networks for Trajectory Prediction in Autonomous Drivingcited by 22
- 2024Multi-Transmotion: Pre-trained Model for Human Motion Predictioncited by 21
- 2021Anomaly Detection in Multi-Agent Trajectories for Automated Drivingcited by 15
- 2023Joint Out-of-Distribution Detection and Uncertainty Estimation for Trajectory Predictioncited by 10
- 2023VT-Former: An Exploratory Study on Vehicle Trajectory Prediction for Highway Surveillance through Graph Isomorphism and Transformercited by 10
- 2022Heatmap-based Out-of-Distribution Detectioncited by 9
- 2023SafeShift: Safety-Informed Distribution Shifts for Robust Trajectory Prediction in Autonomous Drivingcited by 9
- 2024Curb Your Attention: Causal Attention Gating for Robust Trajectory Prediction in Autonomous Drivingcited by 9
- 2024Improving Out-of-Distribution Generalization of Trajectory Prediction for Autonomous Driving via Polynomial Representationscited by 8
- 2024JointMotion: Joint Self-Supervision for Joint Motion Predictioncited by 7
- 2023Structural Attention-Based Recurrent Variational Autoencoder for Highway Vehicle Anomaly Detectioncited by 6
- 2025Evidential Uncertainty Estimation for Multi-Modal Trajectory Predictioncited by 4
- 2022MEAT: Maneuver Extraction from Agent Trajectoriescited by 3
- 2025Uncertainty-Aware Likelihood Ratio Estimation for Pixel-Wise Out-of-Distribution Detectioncited by 3
- 2025DyTTP: Trajectory Prediction with Normalization-Free Transformerscited by 2
- 2025Target-Agnostic Calibration under Distribution Shift with Frequency-Aware Gradient Rectificationcited by 1
Built on by
Not cited yet.