NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

How many Observations are Enough? Knowledge Distillation for Trajectory Forecasting

Alessio Monti, Angelo Porrello, Simone Calderara, Pasquale Coscia, Lamberto Ballan, Rita Cucchiara

Abstract

Trajectory forecasting models generally rely on extended histories of past movements (typically 3–5 seconds) to predict future paths. However, real-world surveillance and autonomous systems often face broken tracks due to occlusions or sensor limitations. This paper introduces Distilling the Observations (DTO), a knowledge distillation framework designed to train a "student" model to perform accurate trajectory forecasting using only two past observations. By distilling knowledge from a teacher model trained on longer sequences, the student achieves performance parity with state-of-the-art models while exhibiting enhanced robustness to tracking noise and domain shifts.

Introduction

In autonomous navigation and smart surveillance, predicting pedestrian intent is critical for safety and efficiency. The research community has largely adopted the "8-12 protocol," which utilizes 8 past frames (3.2 seconds) to predict the subsequent 12 frames. However, a significant "reality gap" exists: automated tracking systems like DeepSORT frequently suffer from identity switches and occlusions, making a continuous 8-frame history difficult to maintain.

Furthermore, existing deep learning models are susceptible to the "length-shift" problem. When a model trained on 8 frames is provided with only 4 at inference time, its predictive accuracy often collapses rather than degrading gracefully. This paper addresses these challenges by enabling high-fidelity forecasting from minimal historical data.

Methodology: Distilling the Observations (DTO)

The authors propose a teacher-student framework to bridge the gap between ideal long-term histories and realistic short-term observations. Both models utilize a Spatio-Temporal Transformer (STT) architecture, which incorporates Temporal Attention for individual motion and Spatial Attention for social interactions.

The DTO framework utilizes three distillation losses to align student representations with teacher knowledge.

The distillation process involves three primary loss functions:

  • Encoder Distillation ($\mathcal{L}_{ED}$): Aligns the student’s internal representations of short sequences with the teacher’s representations of long sequences.
  • Decoder Distillation ($\mathcal{L}_{DD}$): Encourages the student to mimic the teacher’s activations and self-attention coefficients during trajectory generation.
  • Ground Truth Loss ($\mathcal{L}_{GT}$): A standard supervised loss comparing predictions against the actual future path.

Experimental Setup

The DTO framework was evaluated across three diverse benchmarks:

  1. ETH/UCY: The standard for pedestrian forecasting, featuring five outdoor scenes.
  2. Stanford Drone Dataset (SDD): Large-scale overhead drone footage with complex multi-agent interactions.
  3. Lyft Prediction Dataset: A massive autonomous vehicle dataset used to evaluate generalization in high-traffic environments.

Results and Discussion

A key finding of this work is the prevalence of "Recency Bias" in trajectory data. Analysis shows that the most recent observation can contribute over 80% of the predictive value. DTO leverages this by teaching the student to effectively "hallucinate" missing historical context from the most recent frames.

Error distribution and attention analysis highlighting the importance of recent timesteps.

Key Performance Metrics

  • Closing the Performance Gap: On ETH/UCY, the DTO student (2 observations) achieved an Average Displacement Error (ADE) of 0.46, nearly matching the teacher’s (8 observations) 0.43, and significantly outperforming a student trained from scratch (0.57).
  • Robustness to Tracking Noise: When integrated with real-world trackers like DeepSORT on the SDD dataset, the DTO student actually outperformed the teacher. This is attributed to the fact that trackers accumulate more errors over 8 frames than over 2, making the shorter, "cleaner" input more reliable.
  • Generalization and Transfer Learning: The student model demonstrated superior generalization to unseen environments. By focusing on fewer frames, the model avoids overfitting to dataset-specific motion "rhythms," facilitating better cross-dataset performance.

Conclusion

The DTO framework successfully mitigates the "length-shift" problem and the reliance on long-term tracking. While the model excels in standard scenarios, predicting highly complex maneuvers—such as sudden sharp turns—remains a challenge with only two frames of physical information. Future work will explore applying these distillation strategies to stochastic models to better capture human uncertainty and integrating forecasting more tightly with end-to-end tracking systems.

Summary updated

BibTeX
@inproceedings{monti2022how,
  author = {Alessio Monti and Angelo Porrello and Simone Calderara and Pasquale Coscia and Lamberto Ballan and Rita Cucchiara},
  title = {{How many Observations are Enough? Knowledge Distillation for Trajectory Forecasting}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=L2U23QT-Trs},
}
Figure