Unveiling Stochasticity: Universal Multi-modal Probabilistic Modeling for Traffic Forecasting Weijiang Xionga , Robert Fonoda , Nikolas Geroliminisa,∗
arXiv:2604.16084v1 [cs.LG] 17 Apr 2026
a
Urban Transport Systems Laboratory (LUTS), EPFL, Lausanne, 1015, Switzerland
Abstract Traffic forecasting is a challenging spatio-temporal modeling task and a critical component of urban transportation management. Current studies mainly focus on deterministic predictions, with limited considerations on the uncertainty and stochasticity in traffic dynamics. Therefore, this paper proposes an elegant yet universal approach that transforms existing models into probabilistic predictors by replacing only the final output layer with a novel Gaussian Mixture Model (GMM) layer. The modified model requires no changes to the training pipeline and can be trained using only the Negative LogLikelihood (NLL) loss, without any auxiliary or regularization terms. Experiments on multiple traffic datasets show that our approach generalizes from classic to modern model architectures while preserving deterministic performance. Furthermore, we propose a systematic evaluation procedure based on cumulative distributions and confidence intervals, and demonstrate that our approach is considerably more accurate and informative than unimodal or deterministic baselines. Finally, a more detailed study on a real-world dense urban traffic network is presented to examine the impact of data quality on uncertainty quantification and to show the robustness of our approach under imperfect data conditions. Code available at [link provided upon acceptance]. Keywords: Traffic forecasting, Uncertainty quantification, Deep learning, Gaussian mixture models ∗
Corresponding author. Email addresses: [email protected] (Weijiang Xiong), [email protected] (Robert Fonod), [email protected] (Nikolas Geroliminis)
1. Introduction Spatio-temporal modeling is a fundamental task in machine learning with applications in various domains, such as sustainable power systems (Bessa et al., 2014), climate change (Maclean, 2020), transportation systems (Yuan and Li, 2021) and video data analysis (Zhou et al., 2025). Specifically, traffic forecasting has been an active research topic in this domain, owing to its vital role in smart cities (Tedjopurnomo et al., 2022; Chen and Chen, 2019). With a traffic forecasting model, future traffic states of the city can be predicted using historical data, providing essential grounds for adaptive traffic management (Ravish and Swamy, 2021; Wang et al., 2018). In earlier research, statistical methods, such as Historical Average (HA) and Autoregressive Integrated Moving Average (ARIMA), were developed as baseline predictors that use the periodic patterns and temporal dynamics of traffic (Vlahogianni et al., 2014). However, these approaches have limited performance because traffic data contains complex dependencies in both spatial and temporal dimensions: the future state of one road depends on its own dynamics and on nearby roads (Ermagun and Levinson, 2018). As a result, the modern research trend focuses on learning these correlations to improve prediction accuracy (Jiang and Luo, 2022). Since the collected data is deterministic, i.e., only one value is measured for a traffic state variable at a specific location and time, the most natural evaluation is to compare error metrics, such as Mean Absolute Error (MAE) (Ferreira et al., 2023). These facts and practices have shaped the paradigm for developing and evaluating traffic forecasting methods, and traffic forecasting has long been framed in a deterministic setting, i.e., one future value is predicted and evaluated. However, urban traffic is highly dynamic and uncertain due to various factors, such as traffic signals, pedestrian activities, weather conditions, traffic incidents, and the randomness in drivers’ behaviors (Mauro et al., 2015). As a result, the process that generates deterministic traffic data is stochastic, and the collected data can be regarded as one realization of that process. From the perspective of modeling, the future traffic variables should be modeled with probabilistic distributions instead of deterministic values (Ghosh et al., 2010). On the other hand, real-world decision-making processes, such as traffic control, should consider all possibilities to provide safe and robust solutions covering all outcomes (Wanke et al., 2004). Moreover, the randomness in traffic can have a big impact and result in distinct outcomes. For example, travel time on an arterial road can have multiple probable values 2