Abstract:Trajectory prediction is essential for the safety and efficiency of planning in autonomous vehicles. However, current models often fail to fully capture complex traffic rules and the complete range of potential vehicle movements. Addressing these limitations, this study introduces three novel loss functions: Offroad Loss, Direction Consistency Error, and Diversity Loss. These functions are designed to keep predicted paths within driving area boundaries, aligned with traffic directions, and cover a wider variety of plausible driving scenarios. As all prediction modes should adhere to road rules and conditions, this work overcomes the shortcomings of traditional "winner takes all" training methods by applying the loss functions to all prediction modes. These loss functions not only improve model training but can also serve as metrics for evaluating the realism and diversity of trajectory predictions. Extensive validation on the nuScenes and Argoverse 2 datasets with leading baseline models demonstrates that our approach not only maintains accuracy but significantly improves safety and robustness, reducing offroad errors on average by 47% on original and by 37% on attacked scenes. This work sets a new benchmark for trajectory prediction in autonomous driving, offering substantial improvements in navigating complex environments. Our code is available at <a class="link-external link-https" href="https://github.com/vita-epfl/stay-on-track" rel="external noopener nofollow">this https URL</a> .
Computer Vision and Pattern Recognition,Artificial Intelligence,Machine Learning,Multiagent Systems,Robotics
What problem does this paper attempt to address?
This paper attempts to solve several key problems in the trajectory prediction of autonomous vehicles:
1. **Comprehensive Capture of Complex Traffic Rules and Potential Vehicle Movements**:
- Current models often fail to fully understand complex traffic rules and cannot cover all possible vehicle movement patterns. This leads to inaccurate or unreasonable predictions in some complex scenarios (such as intersections, multi - lane roads, etc.).
2. **Improving the Safety and Reliability of Predictions**:
- Trajectory prediction in autonomous driving systems is crucial for ensuring safety and efficiency. However, existing models may produce predictions that do not conform to actual road rules in some cases, such as deviating from lanes or violating traffic directions, which pose a threat to safety.
3. **Improving Training Methods to Cover All Prediction Modes**:
- The traditional "winner - takes - all" training method only focuses on minimizing the prediction error closest to the real trajectory, while ignoring other feasible but less common trajectory predictions. This method limits the model's ability to effectively handle rare or complex operations.
To solve these problems, the author introduces three new loss functions:
- **Offroad Loss**: Ensure that the predicted trajectory remains within the drivable area, and encourage accurate navigation by penalizing off - road behavior.
\[
\text{Offroad Loss} (yyy, \Omega) = \frac{1}{M} \sum_{i = 1}^{M} \sum_{t = 1}^{T} \max(\varphi(y_i^t, \Omega)+m, 0)
\]
where \( y_i^t \) represents the position of the \( i \) - th predicted trajectory at time step \( t \), \( \varphi \) is the signed distance function, and \( m \) is a boundary buffer.
- **Direction Consistency Error**: Ensure that the predicted trajectory is consistent with the expected traffic flow direction and road layout, especially suitable for complex environments such as intersections and multi - lane roads.
\[
\text{Direction Consistency} (yyy, ccc) = \frac{1}{M} \sum_{i = 1}^{M} \sum_{t = 1}^{T} \min_{1\leq s\leq S, 1\leq k\leq K} \delta(c_s^k, y_i^t)
\]
where \( \delta(c, y_i^t) \) is defined as:
\[
\delta(c, y_i^t) = \max\left( \| (x, y)-(x', y') \|_2 - m_d, 0 \right)+\max\left( | \theta-\gamma_i^t | - m_\theta, 0 \right)
\]
- **Diversity Loss**: Encourage the model to generate diverse predictions, covering all possible results, especially in dynamic traffic situations where multiple routes may be feasible.
\[
\text{Mode Diversity} (y, 1) = \sum_{1\leq i\leq M, 1(i) = 1} \sum_{i\leq j\leq M, 1(j) = 1} \frac{1}{T} \sum_{t = 1}^{T} \| y_i^t - y_j^t \|_2
\]
where \( 1(i)=1 \) indicates that the trajectory \( y_i \) is within the drivable area.
Through these loss functions, the paper aims to improve the model's understanding of complex scenarios, ensure compliance with traffic rules, and enhance the diversity of predictions, thereby significantly improving the safety and robustness of trajectory prediction for autonomous vehicles.