Unify and Anchor: A Context-Aware Transformer for Cross-Domain Time Series Forecasting
Xiaobin Hong, Jiawen Zhang, Wenzhong Li, Sanglu Lu, Jia Li
TL;DR
This work addresses cross-domain time series forecasting by tackling temporal pattern complexity and semantic misalignment through the Unify and Anchor paradigm. It introduces ContexTST, a Transformer variant that unifies frequency-domain representations via a Time Series Coordinator and grounds domain adaptation with contextual domain anchors through a Context-Aware Transformer and a Context-Informed MoE. The approach yields strong in-domain and zero-shot transfer performance across diverse datasets, with ablations confirming the crucial roles of frequency decomposition, contextual anchoring, and specialized experts. This framework enables more robust cross-domain forecasting with improved generalization, offering practical benefits for real-world time series applications without extensive retraining on new domains.
Abstract
The rise of foundation models has revolutionized natural language processing and computer vision, yet their best practices to time series forecasting remains underexplored. Existing time series foundation models often adopt methodologies from these fields without addressing the unique characteristics of time series data. In this paper, we identify two key challenges in cross-domain time series forecasting: the complexity of temporal patterns and semantic misalignment. To tackle these issues, we propose the ``Unify and Anchor" transfer paradigm, which disentangles frequency components for a unified perspective and incorporates external context as domain anchors for guided adaptation. Based on this framework, we introduce ContexTST, a Transformer-based model that employs a time series coordinator for structured representation and the Transformer blocks with a context-informed mixture-of-experts mechanism for effective cross-domain generalization. Extensive experiments demonstrate that ContexTST advances state-of-the-art forecasting performance while achieving strong zero-shot transferability across diverse domains.
