cs.LGFeb 25, 2026

Learning from Yesterday's Error: An Efficient Online Learning Method for Traffic Demand Prediction

Authors: Xiannan Huang, Quan Yuan, Chao Yang

Organizations: Key Laboratory of Road and Traffic Engineering, Ministry of Education at Tongji University, 4800 Cao’an Road, Shanghai, 201804, Shanghai, China · Urban Mobility Institute, Tongji University, 1239 Siping Road, Shanghai, 200092, Shanghai, China

Abstract

Accurately predicting short-term traffic demand is critical for intelligent transportation systems. While deep learning models achieve strong performance under stationary conditions, their accuracy often degrades significantly when faced with distribution shifts caused by external events or evolving urban dynamics. Frequent model retraining to adapt to such changes incurs prohibitive computational costs, especially for large-scale or foundation models. To address this challenge, we propose FORESEE (Forecasting Online with Residual Smoothing and Ensemble Experts), a lightweight online adaptation framework that is accurate, robust, and computationally efficient. FORESEE operates without any parameter updates to the base model. Instead, it corrects today's forecast in each region using yesterday's prediction error, stabilized through exponential smoothing guided by a mixture-of-experts mechanism that adapts to recent error dynamics. Moreover, an adaptive spatiotemporal smoothing component propagates error signals across neighboring regions and time slots, capturing coherent shifts in demand patterns. Extensive experiments on seven real-world datasets with three backbone models demonstrate that FORESEE consistently improves prediction accuracy, maintains robustness even when distribution shifts are minimal (avoiding performance degradation), and achieves the lowest computational overhead among existing online methods. By enabling real-time adaptation of traffic forecasting models with negligible computational cost, FORESEE paves the way for deploying reliable, up-to-date prediction systems in dynamic urban environments. Code and data are available at https://github.com/xiannanhuang/FORESEE

Figures & tables

Explore similar work

CardsList
  1. A Multi-View Coupled Tensor Decomposition for Lightweight Online Adaptive Traffic Prediction

    Aug 26, 2026Quan Yu, Jie Ni, Yu-Hong Dai +1Traffic ForecastingSpatiotemporal Forecasting

  2. DSETA: A Dual-Stage Continual Learning Framework for Travel Time Prediction in Dynamic Traffic Environments

    Aug 1, 2026Yanming Lyu, Yue Cheng, Lingkun Li +4Intelligent Transportation SystemsOnline Continual Learning

  3. Structure-Aware Graph Multi-Task Learning for Dynamic Sparse OD Demand Prediction

    Jun 19, 2026Ming Xu, Jiawei CaoIntelligent Transportation SystemsMulti-Task Learning