Abstract
Multivariate time series forecasting (MTSF) is critical for applications ranging from finance to urban planning. While Graph Attention Networks (GATs) have shown promise in capturing complex inter-dependencies between variables, they often lack theoretical guarantees regarding generalization performance. This paper addresses this gap by deriving a strict generalization error bound for GATs using Rademacher complexity. Based on these theoretical insights, we propose "Weights-bounded GAT," an architecture that explicitly constrains weight norms to prevent overfitting. Our empirical results on real-world datasets demonstrate that our model not only aligns with theoretical predictions but also achieves state-of-the-art performance with significantly fewer parameters than existing methods.
Introduction
Multivariate time series forecasting (MTSF) involves predicting the future trajectories of multiple correlated variables. Capturing these correlations is the primary challenge. Graph Neural Networks (GNNs), particularly Graph Attention Networks (GATs), have emerged as powerful tools for this task by treating each time series as a node in a graph. However, the high expressivity of GATs makes them prone to overfitting. Until now, there has been a lack of theoretical understanding regarding their generalization error—the difference between training and test performance—leaving researchers to rely on trial-and-error for network design.
Theoretical Foundations of GAT Generalization
To bridge the gap between practice and theory, we analyze the generalization error of GATs through the lens of Rademacher complexity. We derive an upper bound for the generalization error of an $L$-layer GAT. Our analysis reveals that the error bound is a function of several key architectural parameters:
- Number of Attention Heads ($K$): The error scales polynomially with the number of heads.
- Maximum Number of Neighbors ($d$): Denser local connectivity increases the complexity and the risk of overfitting.
- Weight Matrix Norms ($\Vert W \Vert_F$): The Frobenius norm of the weights in each layer directly impacts the bound.
- Input Feature Norms: The scale of the input data also plays a role.
- Network Depth ($L$): The bound grows exponentially with the number of layers.
Proposed Method: Weights-bounded GAT
Inspired by these theoretical findings, we introduce the Weights-bounded GAT. Unlike traditional regularization techniques like weight decay, which only penalize large weights, our approach enforces a hard constraint. We explicitly clip the Frobenius norm of the weight matrices to a predefined threshold before each forward pass. This ensures that the model remains within the theoretically sound complexity regime, effectively preventing the "exploding" complexity that leads to poor generalization.
Empirical Validation of Theoretical Bounds
A core contribution of this work is the empirical verification of our derived bounds. By systematically varying parameters such as the number of heads, neighbors, and weight norms, we observed that the test error follows the polynomial growth patterns predicted by our theory.
As shown in Figure 1, the relationship between model complexity and generalization error is not merely qualitative. The empirical curves for the number of attention heads, neighbors, and weight norms align closely with the $O(x^{L-1})$, $O(x^L)$, and $O(x)$ theoretical curves, respectively. Similarly, the error decreases with the effective sample size following an $O(x^{-1/2})$ trend.
Experimental Results
We evaluated the Weights-bounded GAT on diverse datasets, including US Daily Stock data and Beijing PM2.5 levels.
- Superior Accuracy: On the US Stock dataset, our model achieved an MSE of $2.04 \times 10^{-3}$, significantly lower than Vanilla GAT ($7.36 \times 10^{-3}$) and complex spatial-temporal models like ASTGCN ($7.14 \times 10^{-3}$).
- Efficiency: Our model is remarkably efficient, requiring only ~65K parameters compared to the 1.3 million parameters used by some baselines. This efficiency is a direct result of the theoretically guided design, which avoids unnecessary complexity.
- Probabilistic Forecasting: Using quantile regression, the model provided accurate uncertainty estimates, outperforming baselines across various quantiles (Q=0.1, 0.5, and 0.9).
- Benchmarking: In comparisons against state-of-the-art Transformers like PatchTST on standard MTSF benchmarks, Weights-bounded GAT consistently delivered superior results.
Conclusion
This work provides a rigorous theoretical framework for understanding and improving the generalization of GATs in multivariate time series forecasting. By identifying the mathematical drivers of overfitting and introducing an explicit weight-bounding mechanism, we offer a principled approach to GNN design. Future work will explore adaptive bounding techniques to address over-smoothing in deeper networks and refine bounds for extremely dense graphs.
Summary updated