SSL-Interactions: Pretext Tasks for Interactive Trajectory Prediction

Prarthana Bhattacharyya, Chengjie Huang, Krzysztof Czarnecki · DOI

Abstract

SSL-Interactions is a self-supervised learning (SSL) framework designed to enhance trajectory prediction for autonomous vehicles in complex, interaction-heavy traffic. By training models on specialized "pretext tasks"—such as predicting the closest future distance between agents or identifying interaction types—the framework enables models to capture social dynamics without the computational overhead of full joint modeling. Evaluation on the Argoverse dataset demonstrates up to an 8% improvement in prediction accuracy for interactive scenarios, maintaining high inference speeds suitable for real-time applications.

Introduction

Predicting agent trajectories in dense traffic is a significant challenge for autonomous driving. Traditional marginal prediction models each agent independently, which is computationally efficient but often fails to account for social interactions, leading to unrealistic predictions like "ghost" collisions. Conversely, joint prediction models the entire scene's distribution but suffers from exponential complexity as the number of agents increases.

SSL-Interactions proposes a "middle ground" by utilizing self-supervised pretext tasks during the training phase to teach the model about agent-to-agent (A2A) dynamics. These tasks are discarded during inference, allowing the model to remain fast while benefiting from the social awareness gained during training.

Methods

Architecture Overview

The SSL-Interactions framework integrates an Agent-to-Agent (A2A) Encoder into a standard prediction pipeline. The model processes map and agent data through dedicated encoders, which are then fused by a context encoder. The A2A encoder specifically focuses on modeling the social friction between agents.

The SSL-Interactions architecture, featuring the A2A encoder and the integration of pretext losses with a stop-gradient mechanism.

Self-Supervised Pretext Tasks

To guide the A2A encoder, the authors introduce four physics-grounded pretext tasks that force the model to understand spatial and temporal relationships between agents:

  1. Range Gap Prediction: Estimating the distance between two agents at specific future timestamps.
  2. Closest Distance Prediction: Classifying the minimum distance two agents will reach during their trajectories.
  3. Direction of Movement: Determining if agents are converging or receding.
  4. Type of Interaction: Identifying specific social roles, such as "close-lead" or "left-turn-follow."
Visualization of the four pretext tasks used to train the model on traffic physics and social dynamics.

Technical Innovations

  • Stop-Gradient Training: A stop-gradient is applied to the pretext loss to ensure it specifically optimizes the A2A encoder without negatively impacting the primary trajectory decoder.
  • Interaction Curation: The training data is filtered using a specialized algorithm to focus on "interaction-heavy" moments, such as unprotected left turns, providing a cleaner learning signal for social dynamics.

Datasets and Evaluation

The model was trained and validated on the Argoverse v1.1 dataset. To rigorously test social intelligence, the authors curated an Interactive Split containing over 93,000 unique sequences characterized by high interactivity.

In addition to standard metrics like minFDE, new metrics were introduced:

  • i-min-FDE: Accuracy specifically for interacting agents.
  • CAM (Collision Awareness Metric): Measures the frequency of predicted collisions that did not occur in the ground truth.

Results

SSL-Interactions outperformed state-of-the-art baselines by 3.3% to 5.3% on standard benchmarks and showed an 8.1% improvement on the curated interactive subset. Qualitative analysis confirmed that the model successfully predicts yielding behaviors in scenarios where baseline models predicted collisions. This demonstrates that the pretext tasks effectively substitute for expensive joint modeling by factoring the joint distribution into marginal and conditional components.

Conclusion and Future Work

SSL-Interactions provides a scalable way to incorporate social awareness into trajectory prediction. While highly effective for vehicle-to-vehicle interactions, future work will focus on extending the framework to include pedestrians and cyclists. Additionally, further validation across diverse geographic locations is needed to ensure the generalizability of the learned social priors.

Summary updated

BibTeX
@inproceedings{bhattacharyya2024ssl,
  author = {Prarthana Bhattacharyya and Chengjie Huang and Krzysztof Czarnecki},
  title = {{SSL-Interactions: Pretext Tasks for Interactive Trajectory Prediction}},
  booktitle = {IV},
  year = {2024},
  url = {https://openreview.net/forum?id=d6rZudN3Zn},
}
Figure