[Paper Review] Human Trajectory Prediction via Counterfactual Analysis
This paper proposes a plug-and-play counterfactual analysis module for human trajectory prediction that mitigates deployment bias by isolating causal effects of historical trajectories from spurious environment interactions. By replacing past trajectory features with counterfactual versions (e.g., uniform motion) and subtracting the resulting predictions, the method reduces overfitting to training environment biases and achieves state-of-the-art performance across multiple benchmarks.
Forecasting human trajectories in complex dynamic environments plays a critical role in autonomous vehicles and intelligent robots. Most existing methods learn to predict future trajectories by behavior clues from history trajectories and interaction clues from environments. However, the inherent bias between training and deployment environments is ignored. Hence, we propose a counterfactual analysis method for human trajectory prediction to investigate the causality between the predicted trajectories and input clues and alleviate the negative effects brought by environment bias. We first build a causal graph for trajectory forecasting with history trajectory, future trajectory, and the environment interactions. Then, we cut off the inference from environment to trajectory by constructing the counterfactual intervention on the trajectory itself. Finally, we compare the factual and counterfactual trajectory clues to alleviate the effects of environment bias and highlight the trajectory clues. Our counterfactual analysis is a plug-and-play module that can be applied to any baseline prediction methods including RNN- and CNN-based ones. We show that our method achieves consistent improvement for different baselines and obtains the state-of-the-art results on public pedestrian trajectory forecasting benchmarks.
Motivation & Objective
- To address the generalization gap in human trajectory prediction caused by distribution shift between training and deployment environments.
- To investigate causality between past trajectories and future predictions, disentangling real behavioral cues from spurious environmental correlations.
- To develop a plug-and-play module that enhances any existing trajectory prediction model without architectural changes.
- To improve robustness and reliability of trajectory forecasts in real-world autonomous systems by mitigating overfitting to biased environment interactions.
Proposed method
- Construct a causal graph with nodes for past trajectory (X), environment interaction (E), and future trajectory (Y) to model causal dependencies.
- Perform counterfactual intervention by replacing the past trajectory feature with a synthetic counterfactual (e.g., zero, mean, or random vector) to sever E→X dependence.
- Compute the causality-aware prediction as the difference between factual and counterfactual predictions, thereby isolating the true causal effect of historical behavior.
- Apply the method as a plug-in module to both RNN-based (e.g., STGAT) and CNN-based (e.g., Social-STGCNN) baselines without retraining.
- Use uniform rectilinear motion or mean trajectory as counterfactuals to simulate plausible alternative behaviors.
- Ensure inference stability by using the expected value (zero) of the random distribution during testing, avoiding bias in deployment.
Experimental results
Research questions
- RQ1How does counterfactual intervention improve trajectory prediction generalization across different environments?
- RQ2To what extent can counterfactual analysis reduce overfitting to spurious environmental correlations in trajectory prediction?
- RQ3Can a plug-and-play counterfactual module consistently improve diverse baseline models (RNN and CNN-based) without architectural changes?
- RQ4How robust are different counterfactual implementations (zero, mean, random) to variations in training and deployment settings?
- RQ5Does the method enhance prediction reliability in complex scenarios where environment bias misleads conventional models?
Key findings
- The proposed counterfactual method achieves state-of-the-art performance on public pedestrian trajectory forecasting benchmarks, outperforming existing methods.
- All counterfactual implementations—zero, mean, and random—yield consistent improvements across multiple baselines, demonstrating the method’s robustness.
- The 'Zero' counterfactual implementation achieves slightly better performance than others, likely due to its stronger disruption of spurious environment dependencies.
- The method introduces negligible parameter overhead, as all parameters are shared between factual and counterfactual branches.
- Inference speed is slightly reduced due to additional computation, but the cost remains light since only a portion of the network is used for counterfactual processing.
- Qualitative results show that causality-aware predictions better capture real behavioral patterns (e.g., group movement) and avoid spurious predictions driven by environment bias (e.g., forced convergence in crowds).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.