DONUT: A Decoder-Only Model for Trajectory Prediction

Markus Knoche, Daan de Geus, Bastian Leibe

TL;DR

This paper introduces DONUT, a novel decoder-only Transformer model for autonomous driving trajectory prediction. By unifying historical and future trajectory processing within a single autoregressive model and incorporating an "overprediction" strategy, DONUT achieves state-of-the-art performance on the Argoverse 2 benchmark, demonstrating improved accuracy, especially for longer prediction horizons.

What Problem Does This Paper Address?

Predicting the future movements of other vehicles and agents is critical for safe and efficient autonomous driving. Existing methods typically employ an encoder-decoder architecture: an encoder processes historical agent data and scene context, and a decoder uses this encoded information to predict future trajectories. However, this separation can lead to outdated information being fed to the decoder for long-term predictions, and potential inconsistencies between how historical and future data are processed. This paper aims to overcome these limitations by proposing a unified, decoder-only approach that treats historical and future trajectories in a consistent manner, ensuring the model always has access to the most relevant, up-to-date information.

Methods

The core innovation is DONUT, a decoder-only Transformer model for trajectory prediction. Unlike traditional encoder-decoder setups, DONUT uses a single, unified model to process both past and future trajectories autoregressively. This means that at each step, the model is informed by the most recent predictions and scene context, leading to more consistent and accurate forecasts.

Key methodological contributions include:

  • Unified Autoregressive Processing: DONUT processes historical and future trajectories within the same Transformer decoder. This eliminates the need for separate encoder and decoder modules, ensuring a consistent data flow and processing paradigm.
  • Query-Centric Scene Encoding: Similar to the QCNet baseline, DONUT utilizes a query-centric approach. Scene elements (agents, road lanes) are encoded as tokens with local reference frames, making the model invariant to global positions and orientations. Relative positional encodings are used for interactions.
  • "Overprediction" Strategy: Inspired by multi-token prediction in Large Language Models, DONUT is trained to predict not only the immediate future trajectory segment but also a segment further into the future. This auxiliary task encourages the model to better anticipate longer-term possibilities and improves its ability to make informed predictions.
  • Proposer and Refiner Modules: The decoder operates in steps, predicting sub-trajectories. A "proposer" module makes an initial prediction and an "overprediction." A "refiner" module then uses these, along with updated scene information, to produce refined predictions. The reference point for relative encodings is dynamically updated to the endpoint of the proposed trajectory at each step.

Datasets

The paper uses the Argoverse 2 dataset for training and evaluation. This dataset is described as competitive for single-agent motion forecasting. The authors train on the train set and evaluate on the val and hidden test sets.

Key Insights and Ideas

  • Decoder-Only is Sufficient (and Better): The paper strongly suggests that a separate encoder is not strictly necessary for trajectory prediction. A unified decoder-only approach can achieve superior performance by maintaining consistency and up-to-date information flow.
  • Consistency is Key for Long-Term Prediction: The autoregressive nature of DONUT, where each prediction builds upon the previous one, seems to be crucial for accurately forecasting further into the future. This contrasts with encoder-decoder models where historical embeddings can become stale.
  • "Overprediction" as a Training Signal: The analogy to LLMs is insightful. Forcing the model to "look ahead" during training, even for auxiliary predictions that are discarded during inference, significantly boosts performance. This acts as a regularizer, guiding the model towards more robust and anticipatory predictions.
  • Dynamic Reference Point Updates: The continuous updating of the reference point for relative encodings is vital. It allows the model to adapt its perspective as the predicted trajectory unfolds, ensuring that interactions with scene elements remain relevant.

Key Results

  • State-of-the-Art Performance: DONUT achieves state-of-the-art results on the Argoverse 2 benchmark, particularly on the b-minFDE6 metric, which balances prediction accuracy with probability assignment.
  • Improved Long-Term Accuracy: Figure 4 shows that DONUT significantly outperforms the encoder-decoder baseline in terms of final displacement error as the prediction horizon increases.
  • Ablation Study Highlights: Table 1 demonstrates the effectiveness of each component:
  • The decoder-only approach alone (without overprediction or refinement) already improves performance over the encoder-decoder baseline.
  • The combination of overprediction and refinement yields the best results.
  • Overprediction appears to stabilize training when used with the refiner.
  • Qualitative Improvements: Figure 5 showcases qualitative examples where DONUT predicts more accurate and plausible trajectories, especially in complex scenarios like intersections, compared to the QCNet baseline. DONUT's predictions are better at maintaining safe distances and avoiding collisions.

Limitations and Future Work

  • Unimodal Metrics vs. Multimodal Reality: The authors note that DONUT slightly underperforms on unimodal metrics (minADE1, minFDE1) compared to some methods. They argue these metrics are less suitable for multimodal prediction tasks, as they penalize predictions that don't perfectly match the ground truth when multiple plausible futures exist. DONUT's strength lies in its ability to predict multiple plausible futures and assign probabilities, as reflected in the MR1 metric.
  • Future Work: The paper suggests that the decoder-only paradigm is well-suited for complex, longer-term forecasting and encourages future work in this direction, expecting it to generalize to more complex scenarios. The authors also mention that their approach can be extended to other forecasting tasks.

Summary updated

BibTeX
@inproceedings{knoche2025donut,
  author = {Markus Knoche and Daan de Geus and Bastian Leibe},
  title = {{DONUT: A Decoder-Only Model for Trajectory Prediction}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=Ad4iJfRqYS},
}
Figure