Adaptive output steps: FlexiSteps network for dynamic trajectory prediction

Y Yunxiang Liu H Hongkuo Niu J Jianlin Zhu

Abstract

Accurate trajectory prediction is vital for autonomous driving, robotics, and intelligent decision-making systems, yet traditional models typically rely on fixed-length output predictions, limiting their adaptability to dynamic real-world scenarios. In this paper, we introduce the FlexiSteps Network (FSN), a novel framework that dynamically adjusts prediction output time steps based on varying contextual conditions. Inspired by recent advancements addressing observation length discrepancies and dynamic feature extraction, FSN incorporates a pre-trained Adaptive Prediction Module (APM) to intelligently determine optimal prediction horizons and a Dynamic Decoder (DD) module that enables flexible output generation across different time steps. Additionally, to balance prediction horizon and accuracy, we design a scoring mechanism that leverages Fréchet distance to evaluate geometric similarity between predicted and ground truth trajectories while considering prediction length, enabling principled trade-offs between prediction horizon and accuracy. Our plug-and-play design allows seamless integration with existing trajectory prediction models. Extensive experiments on benchmark datasets including Argoverse and INTERACTION demonstrate that FSN achieves superior prediction accuracy and contextual adaptability compared to traditional fixed-step approaches.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 10
Published October 27, 2025
Pages e0333926
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (3)

Y

Yunxiang Liu

H

Hongkuo Niu

J

Jianlin Zhu