Skip to content
Open access

Weformer: Adaptive spectral cross-variable transformer for long-horizon weather forecasting

Aug 2026 · Journal of King Saud University: Computer and Information Sciences · Vol 38 · 0 citations · 47 references

TL;DR

This work proposes Weformer, a Transformer-based architecture purpose-built for sensor-derived weather time series, and introduces two core innovations: a Frequency-driven Cross-Variable Rotary Position Embedding (CrossVarRoPE) that extracts dominant spectral patterns via the Fourier transform and injects adaptive, cross-variable-aware positional encoding into the attention mechanism.

Abstract

Accurate long-term weather forecasting from multivariate sensor time series remains challenging due to the inherent non-stationarity of atmospheric observations acquired by heterogeneous environmental sensors and the complex physical coupling among meteorological variables. Existing general-purpose deep forecasting models, while successful on idealized benchmarks, suffer notable performance degradation on raw ground-station sensor data because they lack domain-specific mechanisms for cross-variable interaction and noise resistance. We propose Weformer, a Transformer-based architecture purpose-built for sensor-derived weather time series. Weformer introduces two core innovations: (1) a Frequency-driven Cross-Variable Rotary Position Embedding (CrossVarRoPE) that extracts dominant spectral patterns via the Fourier transform and injects adaptive, cross-variable-aware positional encoding into the attention mechanism, and (2) a Global Token mechanism that distills macroscopic environmental context through cross-attention, preventing overfitting to local high-frequency sensor noise. We provide rigorous theoretical analysis, including a noise-suppression bound, a capacity bound for the global token, and a forecasting error decomposition, to justify the design. To bridge the evaluation gap in current benchmarks, we curate seven new real-world datasets sourced from ground-station sensor networks and energy-grid monitoring systems, spanning diverse climate zones and temporal resolutions. Extensive experiments on eight datasets demonstrate that Weformer achieves the best overall performance among seven competitive baselines—the lowest global average MSE and MAE and the largest number of first-place results—under both standard and long-horizon settings (up to 2,880 steps, i.e., 20–120 days depending on the sampling resolution), while CrossVarRoPE serves as a portable plug-in that improves standard Transformer architectures in most evaluated settings. Code and data are available at https://github.com/sekiro1211/Weformer.

Read PDF

Similar papers

Book Open access Aug 2026

AeroWF: A Geometric Spectral-Temporal Dual-Stream Learning Framework for Aerodrome Weather Forecasting

Accurate and reliable aerodrome weather forecasting is essential for aerodrome safety and efficiency. However, existing approaches often fail to effectively capture the multi-scale dynamics and structural heterogeneity inherent in airport meteorological data, which involves variable numbers of runways, entangled high-f...

Xinyu Li, Yunyi Huang, Quan Fang et al. · 0 citations
Conference 2026

AdaDyTS: Dynamic Multi-Scale Spectral Decoupling and Time-Variant Inference for Time Series Forecasting

AdaDyTS, a unified knowledge-driven forecasting framework that synergistically integrates three complementary mechanisms: multi-scale frequency-domain interpolation decoupling via the Cascaded Spectral Residual Extractor, dynamic morphological perception via the Dynamic Morphological Perception Unit, and time-variant s...

Jin-Lai Zhang · 0 citations
#artificial intelligence Preprint Sep 2026

Channel-Dependent State Space Model for Multivariate Time Series Forecasting

Multivariate time series forecasting (MTSF) is critical across many real-world domains. Existing deep learning approaches fall into two paradigms with distinct limitations: channel-independent (CI) methods unconditionally ignore cross-variable dependencies and model only temporal dynamics, while channel-dependent (CD)...

Yu-Cheng Wu, Fan-Keng Sun, Li-Chun Lu et al. · 0 citations
Sep 2026

MSF-TransPV: a multi-source fusion transformer for short-term photovoltaic power forecasting

Experimental results demonstrate that MSF-TransPV consistently outperforms persistence, statistical baselines, recurrent neural networks, and vanilla Transformer models in terms of RMSE, MAE, and normalized error metrics, while also providing reliable prediction intervals, indicating that explicit multi-source fusion a...

Xiao-Mei Wang, Pei-Xuan Xu, Xiao-Hui Wang · 0 citations
Open access Sep 2026

Data-Driven Short-Term Forecasting of Indoor Thermal Fields via ST-JEPA for HVAC Feedforward Regulation

Precise indoor thermal environment forecasting is critical for the energy-efficient operation and model predictive control of building heating, ventilation, and air-conditioning (HVAC) systems. However, conventional predictive models often struggle to untangle the complex spatiotemporal dynamics captured by sparse sens...

Jing Wang, Xiao-Li Zhao, Bo-Rui Wang et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.