Learning with Calibration: Exploring Test-Time Computing of Spatio-Temporal Forecasting
Wei Chen, Yuxuan Liang
TL;DR
The paper addresses non-stationary shifts in spatio-temporal forecasting by introducing ST-TTC, a lightweight test-time calibration framework. It combines a Spectral Domain Calibrator that applies per-band amplitude and phase corrections in the Fourier domain after a backbone predictor, with a Flash Gradient Update that updates calibration parameters online using a streaming memory queue and a single-step gradient rule. The approach leverages frequency-domain representations to capture periodic biases efficiently, using a grouped parameterization over $M=\tfrac{T}{2}+1$ frequency bins divided into $G$ groups, and updates parameters with a small learning rate $\eta$ to ensure stable descent. Extensive experiments across 14 real-world STF datasets and diverse backbones show consistent gains in MAE, RMSE, and MAPE, improved robustness to distribution shifts, and favorable efficiency compared with baselines, highlighting the method's universality and practicality for real-time forecasting tasks. Mathematical notation is kept in $...$ delimiters to ensure precise interpretation of FFT-based calibration and update dynamics.
Abstract
Spatio-temporal forecasting is crucial in many domains, such as transportation, meteorology, and energy. However, real-world scenarios frequently present challenges such as signal anomalies, noise, and distributional shifts. Existing solutions primarily enhance robustness by modifying network architectures or training procedures. Nevertheless, these approaches are computationally intensive and resource-demanding, especially for large-scale applications. In this paper, we explore a novel test-time computing paradigm, namely learning with calibration, ST-TTC, for spatio-temporal forecasting. Through learning with calibration, we aim to capture periodic structural biases arising from non-stationarity during the testing phase and perform real-time bias correction on predictions to improve accuracy. Specifically, we first introduce a spectral-domain calibrator with phase-amplitude modulation to mitigate periodic shift and then propose a flash updating mechanism with a streaming memory queue for efficient test-time computation. ST-TTC effectively bypasses complex training-stage techniques, offering an efficient and generalizable paradigm. Extensive experiments on real-world datasets demonstrate the effectiveness, universality, flexibility and efficiency of our proposed method.
