Battling the Non-stationarity in Time Series Forecasting via Test-time Adaptation
HyunGi Kim, Siwon Kim, Jisoo Mok, Sungroh Yoon
TL;DR
Non-stationarity degrades pre-trained time series forecasters, motivating test-time adaptation for TSF (TSF-TTA). The paper introduces TAFAS, a model-agnostic framework that uses periodicity-aware adaptation scheduling (PAAS) to obtain semantically meaningful partially-observed ground truth and a gated calibration module (GCM) to locally and globally calibrate inputs and outputs, while keeping the original forecaster frozen. The approach combines partial and full adaptation losses, enabling proactive adjustment of future predictions without overwriting learned temporal semantics, and demonstrates substantial gains across seven datasets, multiple architectures, and even foundation models (Chronos), especially for long-horizon forecasting (up to ~45% improvement in some settings). These results highlight TAFAS’s potential for robust, scalable deployment of TSF models in non-stationary environments, and its compatibility with pre-training-based non-stationarity remedies and large-time-series foundation models.
Abstract
Deep Neural Networks have spearheaded remarkable advancements in time series forecasting (TSF), one of the major tasks in time series modeling. Nonetheless, the non-stationarity of time series undermines the reliability of pre-trained source time series forecasters in mission-critical deployment settings. In this study, we introduce a pioneering test-time adaptation framework tailored for TSF (TSF-TTA). TAFAS, the proposed approach to TSF-TTA, flexibly adapts source forecasters to continuously shifting test distributions while preserving the core semantic information learned during pre-training. The novel utilization of partially-observed ground truth and gated calibration module enables proactive, robust, and model-agnostic adaptation of source forecasters. Experiments on diverse benchmark datasets and cutting-edge architectures demonstrate the efficacy and generality of TAFAS, especially in long-term forecasting scenarios that suffer from significant distribution shifts. The code is available at https://github.com/kimanki/TAFAS.
