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

Xiannan Huang, Quan Yuan, Chao Yang
2/25/2026
cs.LGcs.AI

Official code: xiannanhuang/FORESEE (1 star, last commit 2026-02-04).

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

View on arXivView PDF

Code Implementations(1)

10PythonOct 17, 20258 months ago

Similar Papers

Cite this paper

@article{huang2026learning,
  title  = {Learning from Yesterday's Error: An Efficient Online Learning Method for Traffic Demand Prediction},
  author = {Xiannan Huang and Quan Yuan and Chao Yang},
  year   = {2026},
  eprint = {2602.21757},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.21757v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.21757.svg)](https://codeofpaper.com/paper/2602.21757)

Discussion