Transformers have revolutionized sequence modeling, yet their application to multivariate time series forecasting often encounters significant hurdles. These models are typically parameter-heavy, susceptible to overfitting on noisy data, and struggle to effectively balance temporal patterns with spatial inter-dependencies between variables.
PSformer introduces a novel architecture that significantly reduces parameter counts while improving forecasting accuracy. By rethinking the attention mechanism and employing a radical parameter-sharing strategy, PSformer achieves state-of-the-art results across major benchmarks.
The Challenge of Multivariate Forecasting
Multivariate time series data, such as weather metrics or traffic flow, involve two critical dimensions: Time (temporal sequences) and Space (relationships between different variables). Existing models often prioritize one over the other. Channel-independent models like PatchTST focus on individual variables to manage complexity but miss cross-variable interactions. Conversely, models that attempt to capture all dependencies simultaneously often suffer from high parameter counts, leading to overfitting and computational inefficiency.
Methodology
PSformer addresses these challenges through two primary innovations: Spatial-Temporal Segment Attention and the Parameter Sharing Block.
Spatial-Temporal Segment Attention (SegAtt)
Instead of treating time points or entire variable histories as tokens, PSformer divides data into "patches." It then groups patches from the same temporal position across all variables into a single Segment. Attention is performed within these segments to capture local spatio-temporal relationships—for instance, how temperature in one location relates to pressure in another at a specific time. These local representations are then integrated to form a global context.
Parameter Sharing (PS) Block
To ensure efficiency, the core encoder utilizes a PS Block—a three-layer fully connected structure with residual connections. A key feature of this block is that the exact same weights are reused for projecting Query (Q), Key (K), and Value (V) matrices, as well as for the final fusion stage. This constraint acts as a regularizer, preventing the model from memorizing noise and ensuring more robust feature extraction.
Experimental Setup
The model was rigorously evaluated on eight mainstream long-term forecasting benchmarks, encompassing diverse domains such as energy, weather, finance, and transportation.
The training process also incorporated Sharpness-Aware Minimization (SAM) to find flatter minima in the loss landscape, further enhancing the model's generalization capabilities.
Key Results
- State-of-the-Art Performance: PSformer achieved the lowest Mean Squared Error (MSE) on seven out of the eight datasets, outperforming established models like iTransformer, PatchTST, and large-scale pre-trained models like MOMENT.
- Efficiency and Speed: The parameter savings are substantial. In the Traffic dataset, PSformer utilizes approximately 4,500 times fewer parameters than ModernTCN. This efficiency translates to speed; on the Weather dataset, PSformer is roughly 6x faster per iteration than PatchTST and 29x faster than ModernTCN.
- Robustness: By mixing spatial and temporal information early through SegAtt and enforcing weight reuse, the model avoids the need for traditional positional encodings while maintaining superior performance.
Conclusion
PSformer demonstrates that extreme parameter efficiency can coexist with high performance in time series forecasting. By focusing on local spatio-temporal segments and aggressive weight sharing, the model provides a scalable and robust alternative to traditional Transformer architectures. Future research will explore integrating these principles into larger foundation models to handle thousands of variables efficiently.
Summary updated