Hybrid Retrieval-Augmented Forecasting Network for Traffic Flow Prediction
Abstract
Traffic flow prediction is fundamental to intelligent transportation systems. However, existing methods face three critical challenges: (i) calendar-driven non-stationarity where traffic patterns vary significantly across temporal contexts, (ii) multi-scale periodicity spanning from hourly to weekly cycles, and (iii) time-varying spatial dependencies that shift with traffic conditions. Current approaches either adapt generic time series models without traffic-specific considerations or model these factors independently. We propose HybridRAFT, a retrieval-augmented forecasting network that addresses these challenges by integrating three specialized modules: a Temporal Context Encoder with gated modulation for calendar effects, a Periodic Profiler with Fourier-guided 2D convolutions for multi-scale periodicity, and a Dynamic Graph Encoder with adaptive adjacency for evolving spatial correlations. Experiments on PEMS04, PEMS07, and PEMS08 demonstrate that HybridRAFT achieves 4–21% MSE reduction over state-of-the-art baselines, with particularly notable improvements at longer prediction horizons where error degradation is reduced from 65% to 44%.