Temporal Window Smoothing of Exogenous Variables for Improved Time Series Prediction

Mustafa Kamal, Niyaz Bin Hashem, Robin Krambroeckers, Nabeel Mohammed, Shafin RahmanarXiv 2025

TL;DR

The paper introduces Temporal Window Smoothing (TWS), a novel preprocessing technique that enhances time series forecasting by "whitening" exogenous variables. By projecting local exogenous data windows onto a global orthogonal subspace derived via Principal Component Analysis (PCA), TWS filters out noise and redundancy while injecting long-term global context—all without increasing the model's look-back window size or adding learnable parameters.

Visualization of the proposed TWS approach compared to traditional forecasting methods.

What Problem Does This Paper Address?

Modern time series forecasting models increasingly rely on exogenous variables (external drivers like weather conditions or traffic indicators) to improve predictions of endogenous variables (the target metrics, such as energy consumption). However, integrating exogenous data effectively is challenging:

  1. Redundancy and Noise: Exogenous and endogenous inputs often originate from similar sources, leading to highly redundant information that can confuse deep learning networks.
  2. The Look-Back Bottleneck: Models typically look at a fixed historical window. Expanding this window to capture long-term trends and seasonality drastically increases computational complexity, especially for Transformer-based architectures with quadratic attention mechanisms.

Existing methods usually concatenate or independently project raw exogenous inputs, failing to address these underlying data irregularities and localized perspective limits.

Methods

The authors propose Temporal Window Smoothing (TWS), a parameter-free block that refines exogenous inputs before they enter the forecasting network.

Fig. 2. Block diagram of (a-b) traditional approaches where raw exogenous input is directly integrated with endogenous input, in contrast to (c) our proposed method, which incorporates a smoothing process for exogenous input prior to its integration with endogenous input.

The pipeline consists of three main stages:

  1. Global Subspace Extraction: The method applies PCA to the entire training set of exogenous variables to compute a global covariance matrix and its corresponding eigenvectors. These eigenvectors represent orthogonal basis vectors capturing macro-level patterns like long-term trends and seasonality.
  2. Dynamic Variance Selection & Projection: For any local look-back window, the exogenous data is projected onto this global subspace. To avoid manual hyperparameter tuning, the method dynamically selects the top-$k$ principal components required to retain at least 90% of the variance.
  3. Reconstruction (Whitening): The data is reconstructed back to its original dimensions using only these top components. This process effectively "whitens" the window—smoothing out localized noise and redundancy while embedding global structural awareness.

Architecture Integration

Once smoothed, the exogenous tokens are integrated into a channel-independent Transformer architecture. A learnable global token acts as an information bridge, using self-attention to gather patch-level context from endogenous variables and cross-attention to aggregate features from the whitened exogenous embeddings.

Fig. 3. Overall architecture of the proposed method consists of three main components. (a) The exogenous series is whitened using our proposed method and projected into a latent space via a linear layer. (b) The endogenous series is split into patches, which are linearly projected to create patch embeddings, followed by concatenation of global tokens. (c) These representations are processed by a transformer-based architecture to to obtain the final predictions.

Datasets

The model was evaluated across seven standard, diverse multivariate time series benchmarks:

  • ETT (Electricity Transformer Temperature): Includes four subsets (ETTh1, ETTh2 sampled hourly; ETTm1, ETTm2 sampled every 15 minutes).
  • Weather: 21 meteorological indicators recorded every 10 minutes.
  • ECL (Electricity Consumption Load): Hourly electricity consumption data.
  • Traffic: Hourly road occupancy rates from San Francisco Bay Area freeways.

Key Insights and Ideas

  • Global Context via Local Preprocessing: Instead of forcing a Transformer to learn long-term dependencies by feeding it massive historical windows, TWS injects global context directly into local windows using statistical properties derived from the entire training set.
  • Whitening as a Regularizer: Raw exogenous data often acts as a noisy distraction. By filtering out components that contribute minimally to global variance, the model is forced to focus on statistically significant, robust macro-trends.
  • Zero-Parameter Efficiency: TWS achieves state-of-the-art performance improvements purely through deterministic linear algebra (PCA), meaning it introduces zero additional learnable parameters to the neural network.

Key Results

The proposed method was benchmarked against 11 baseline models, including competitive architectures like TimeXer, iTransformer, PatchTST, and TiDE.

Evaluated across 35 distinct experimental settings (varying datasets and prediction horizons $H \in \{96, 192, 336, 720\}$):

  • Superiority: The TWS-equipped model achieved the best Mean Squared Error (MSE) performance in 21 out of 35 settings, outperforming the runner-up, TimeXer (which won 12 settings).
  • Error Reduction: Compared to the best baseline models, it achieved an average MSE reduction of 2.29% on ETTh1 and 1.57% on ETTm1 across all forecasting lengths.
  • Ablation Validation: Ablation studies confirmed that combining TWS with a cross-attention bridging mechanism yielded significantly better results than directly concatenating the raw or smoothed features.

Limitations and Future Work

While highly effective, the paper notes a few areas for expansion:

  • Model Scope: The evaluation primarily focused on integrating TWS with Transformer-based multivariate forecasting architectures. Its compatibility with simpler, linear-based forecasting models remains to be thoroughly explored.
  • Task Variety: The current study focuses strictly on long-term forecasting. The authors suggest that future work should investigate how TWS applies to adjacent time series tasks such as short-term forecasting, anomaly detection, imputation, and classification.

Summary updated

BibTeX
@misc{kamal2025temporal,
  author = {Mustafa Kamal and Niyaz Bin Hashem and Robin Krambroeckers and Nabeel Mohammed and Shafin Rahman},
  title = {{Temporal Window Smoothing of Exogenous Variables for Improved Time Series Prediction}},
  year = {2025},
  eprint = {2507.05284},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.05284},
}

Loading related content...

Figure