TimeCNN: Refining Cross-Variable Interaction on Time Point for Time Series Forecasting

Ao Hu, Dongkai Wang, Yong Dai, Shiyi Qi, Liangjian Wen, Jun Wang, Zhi Chen, Xun Zhou, Zenglin Xu, Jiang DuanarXiv 2024 · DOI

Introduction

Multivariate time series forecasting is a critical task in domains ranging from traffic management to energy grid optimization. A central challenge lies in effectively modeling the interactions between multiple variables over time. While recent Transformer-based architectures like iTransformer have achieved significant progress by treating variable sequences as tokens, they often rely on two limiting assumptions: that variable correlations are static across the lookback window and that these relationships are predominantly positive (due to the Softmax mechanism in attention).

The Problem: Dynamic and Negative Correlations

The authors of TimeCNN argue that real-world data exhibits highly dynamic correlations. For instance, two sensors might be positively correlated during peak hours but negatively correlated during off-peak times. Standard attention mechanisms, which map scores to a (0, 1) range via Softmax, tend to suppress negative correlations, treating them as near-zero weights. This "Softmax Trap" prevents models from capturing inverse relationships explicitly.

Methodology: Timepoint-Independent Convolutions

TimeCNN introduces a "timepoint-independent" approach to refine cross-variable interactions. Unlike traditional 1D convolutions that slide across time, or attention mechanisms that aggregate across the entire sequence, TimeCNN employs the CrossCNN module.

Comparison of Transformer, iTransformer, and TimeCNN views.

As shown in Figure 2, while the standard Transformer views timepoints as tokens and iTransformer views variables as tokens, TimeCNN processes each timepoint independently. The model assigns $L$ independent convolution kernels (where $L$ is the lookback window length). Each kernel focuses exclusively on the $N$ variables at a specific timestamp. This allows the model to:

  1. Capture Shifting Dynamics: Each timepoint has its own set of weights, enabling the network to adapt to rapidly evolving system states.
  2. Model Negative Correlations: Convolutional weights are not constrained to be positive, allowing the model to naturally represent inverse relationships.
Detailed architecture of the TimeCNN model.

The overall architecture (Figure 6) follows a structured pipeline: the CrossCNN captures variable interactions at each point, followed by a transpose operation. The data then passes through an Embedding layer and a shared Feed-Forward Network (FFN) to learn temporal representations for each variable before projecting the final forecast.

Experimental Evaluation

The model was evaluated on 12 real-world benchmarks, including ETT, Traffic, ECL, Weather, Solar-Energy, and PEMS datasets. These datasets represent a wide variety of scales and variable counts, providing a robust testbed for forecasting accuracy and computational efficiency.

Key Results and Insights

TimeCNN consistently achieved state-of-the-art (SOTA) results, particularly on large-scale datasets like Traffic and PEMS. Beyond accuracy, the model offers significant efficiency advantages:

  • Computational Efficiency: TimeCNN achieved a 60.46% reduction in Multiply-Accumulate Operations (MACs) compared to iTransformer.
  • Parameter Reduction: The model uses approximately 57.50% fewer parameters.
  • Inference Speed: On a GeForce RTX 4090, TimeCNN delivered predictions 3 to 4 times faster than the iTransformer benchmark.

Furthermore, TimeCNN demonstrated superior robustness to Gaussian noise, likely due to its ability to refine interactions locally at each timepoint rather than being influenced by global noise patterns across the entire window.

Conclusion and Future Work

TimeCNN demonstrates that a return to convolutional principles, specifically through timepoint-independent kernels, can outperform complex attention mechanisms in multivariate forecasting. While the current temporal modeling via FFN is effective, future work may explore more sophisticated temporal encoders or "patch-based" strategies to handle extremely long lookback windows where linear scaling of kernels might become a constraint.

Summary updated

BibTeX
@misc{hu2024timecnn,
  author = {Ao Hu and Dongkai Wang and Yong Dai and Shiyi Qi and Liangjian Wen and Jun Wang and Zhi Chen and Xun Zhou and Zenglin Xu and Jiang Duan},
  title = {{TimeCNN: Refining Cross-Variable Interaction on Time Point for Time Series Forecasting}},
  year = {2024},
  eprint = {2410.04853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.04853},
}
Figure