Abstract
Accurate prediction of pedestrian movement from a vehicle's first-person perspective is essential for the safety of autonomous driving systems. However, ego-motion introduces significant noise into perceived trajectories. This paper presents a multimodal transformer-based model that integrates pedestrian spatial data with ego-vehicle speed. By employing a single-pass decoding strategy and a novel "zero-tensor" training approach, the model achieves state-of-the-art accuracy on the PIE and JAAD benchmarks. Notably, the architecture provides a 235x increase in inference speed compared to previous leading methods, enabling real-time deployment on edge hardware.
1. Introduction
Predicting the future path of pedestrians is a cornerstone of autonomous vehicle (AV) safety. While bird's-eye view (BEV) prediction has seen significant progress, first-person perspective (FPP) prediction remains a formidable challenge. In FPP, the apparent motion of a pedestrian in a camera frame is a composite of the pedestrian’s actual movement and the "parallax" effect caused by the ego-vehicle’s own motion.
Existing solutions often rely on Recurrent Neural Networks (RNNs) or iterative Transformers that predict the future one step at a time. These methods are frequently slow and prone to error accumulation. To address these issues, we propose a Multimodal Transformer that leverages environmental context—specifically vehicle speed—to de-noise trajectories while maintaining the high-speed performance required for onboard edge computing.
2. Methodology
The proposed architecture is designed for both accuracy and computational efficiency, comprising three core components:
2.1 Multimodal Encoder
The encoder processes two distinct data streams:
- Spatial Dynamics: Historical pedestrian bounding box coordinates representing the observed trajectory.
- Ego-Vehicle Context: The speed of the vehicle.
These inputs are processed through separate feature extractors, augmented with positional encodings, and fused via temporal concatenation. This allows the model to correlate the pedestrian's screen-space movement with the vehicle's physical velocity, effectively accounting for perspective shifts.
2.2 Single-Pass Decoder
Standard transformer decoders are often auto-regressive, predicting the next time step based on the previous output. Our model utilizes a "single-pass" decoder that generates the entire 1.5-second future trajectory simultaneously. This architectural choice eliminates the sequential bottleneck, drastically reducing inference time.
2.3 The Zero-Tensor Training Strategy
During the training phase, the researchers implemented a "zero-tensor" trick. Instead of using "teacher forcing" (where the decoder is fed ground-truth future values to guide learning), the decoder is initialized with an empty tensor. This forces the model to rely entirely on the rich context provided by the multimodal encoder, leading to more robust feature representation and better generalization during real-world inference.
3. Experimental Setup
The model was evaluated on two benchmark datasets:
- PIE (Pedestrian Intention and Trajectory Estimation): A large-scale dataset featuring 1,835 trajectories with precise numerical vehicle speed data.
- JAAD (Joint Attention in Autonomous Driving): A dataset containing 2,800 trajectories, utilizing categorical speed labels (e.g., "slow," "fast").
In all experiments, the model observed 0.5 seconds of history (15 frames) to predict the subsequent 1.5 seconds (45 frames).
4. Results and Analysis
The Multimodal Transformer demonstrates superior performance across accuracy, speed, and efficiency metrics.
4.1 Prediction Accuracy
On the PIE dataset, the model achieved a Mean Squared Error (MSE) of 398 at the 1.5s horizon, outperforming the previous state-of-the-art model, SGNet, which recorded an MSE of 442. Ablation studies confirmed that removing vehicle speed data significantly hurt performance, especially for longer-term predictions, validating the importance of ego-motion context.
4.2 Inference Latency
The most significant contribution of this work is the reduction in latency. The model achieves an inference time of just 2ms on an NVIDIA GTX 3090. In comparison, SGNet requires 470ms and PIETraj requires 374ms. This represents a speedup of approximately 235x, making the model uniquely suited for real-time safety-critical applications on edge hardware.
4.3 Model Complexity
The model maintains a compact footprint with 2.9 million parameters. While slightly larger than the ultra-light BiTraP (1.5M), it is significantly more efficient than PIETraj (17.7M), striking an optimal balance between predictive power and hardware requirements.
5. Conclusion and Future Work
This research demonstrates that a context-aware, single-pass transformer can effectively mitigate the challenges of first-person trajectory prediction. By treating ego-vehicle speed as a primary input, the model successfully de-biases pedestrian motion from vehicle motion.
Future work may involve integrating visual semantic context (such as crosswalk locations) and modeling social interactions between multiple pedestrians to further refine accuracy in complex urban environments.
Summary updated