Abstract
Predicting pedestrian trajectories is a critical task for autonomous vehicles and robots, requiring an integrated understanding of temporal dynamics, social interactions, and environmental constraints. We present ASTRA, a lightweight, scene-aware transformer-based model that achieves state-of-the-art performance with a 7x reduction in parameters compared to leading models. ASTRA utilizes a U-Net keypoint extractor for scene context and a graph-aware transformer with Random Walk Positional Encodings (RWPE) to model social dynamics efficiently. Evaluated on ETH-UCY and PIE datasets, ASTRA demonstrates significant improvements in both Bird’s Eye View (BEV) and Ego-Vehicle View (EVV) perspectives.
Introduction
Trajectory prediction serves as the "crystal ball" for autonomous systems, enabling them to navigate complex environments safely. To be effective, a model must synthesize three dimensions: the agent's movement history (temporal), interactions with other agents (social), and physical environmental constraints (scene context). Existing state-of-the-art (SOTA) models often suffer from high computational costs, making them unsuitable for edge deployment on drones or vehicles. Furthermore, many models are optimized for specific viewpoints, lacking versatility. ASTRA addresses these challenges by providing a lightweight, versatile, and highly accurate forecasting framework.
Methodology
ASTRA's architecture is modular, designed to balance representational power with computational efficiency.
Scene-aware Transformer Encoder
Rather than using computationally expensive semantic segmentation, ASTRA employs a pre-trained U-Net keypoint extractor. This component identifies regions of pedestrian activity directly from video frames, capturing essential scene context without the need for manual pixel-level annotations.
Graph-aware Transformer and RWPE
To model social interactions, agents are represented as nodes in a graph. ASTRA utilizes Random Walk Positional Encodings (RWPE) to embed structural graph information directly into transformer tokens. This approach allows the model to process spatial, temporal, and social dimensions concurrently, avoiding the overhead of multi-stage processing.
Parabolic Weighted Loss and Stochasticity
ASTRA introduces a parabolic weighted loss function that prioritizes accuracy at the beginning and end of the prediction window, mitigating "drift" in long-term forecasts. For multi-modal future paths, a Conditional Variational Auto-Encoder (CVAE) is used to generate a distribution of potential trajectories.
Experimental Results
The model was rigorously tested on the ETH-UCY (BEV) and PIE (EVV) benchmarks.
Accuracy and Efficiency
ASTRA achieved a 27% improvement in deterministic settings and a 10% improvement in stochastic settings on ETH-UCY. On the PIE dataset, accuracy improved by 26%. Remarkably, these gains were achieved with only 1.56 million parameters—a 7x reduction compared to the 11.2 million parameters used by the previous SOTA, Leapfrog.
Real-time Performance
With an inference time of 19.23ms, ASTRA is highly suitable for real-time applications on edge hardware, where low latency and low memory footprint are paramount.
Conclusion and Future Work
ASTRA demonstrates that architectural efficiency can enhance rather than compromise predictive performance. While the model shows slight performance drops in stationary scenes with long-duration standing agents, it sets a new benchmark for lightweight trajectory forecasting. Future work will focus on extending ASTRA to multi-agent environments including cyclists and vehicles, and exploring advanced fusion mechanisms like gated cross-attention.
Summary updated